mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
add test data
This commit is contained in:
parent
7a750f930a
commit
4531df2759
51
tests/Mock/Response/Http/200-cutomer-response.txt
Normal file
51
tests/Mock/Response/Http/200-cutomer-response.txt
Normal file
@ -0,0 +1,51 @@
|
||||
HTTP/1.1 200 OK
|
||||
Server: nginx
|
||||
Date: Sun, 05 May 2013 08:52:09 GMT
|
||||
Content-Type: application/json;charset=utf-8
|
||||
Content-Length: 127
|
||||
Connection: keep-alive
|
||||
Cache-Control: no-cache, no-store
|
||||
Access-Control-Max-Age: 300
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
{
|
||||
"Customer": {
|
||||
"PrimaryEmailAddr": {
|
||||
"Address": "Surf@Intuit.com"
|
||||
},
|
||||
"SyncToken": "0",
|
||||
"domain": "QBO",
|
||||
"GivenName": "Bill",
|
||||
"DisplayName": "Bill's Windsurf Shop",
|
||||
"BillWithParent": false,
|
||||
"FullyQualifiedName": "Bill's Windsurf Shop",
|
||||
"CompanyName": "Bill's Windsurf Shop",
|
||||
"FamilyName": "Lucchini",
|
||||
"sparse": false,
|
||||
"PrimaryPhone": {
|
||||
"FreeFormNumber": "(415) 444-6538"
|
||||
},
|
||||
"Active": true,
|
||||
"Job": false,
|
||||
"BalanceWithJobs": 85.0,
|
||||
"BillAddr": {
|
||||
"City": "Half Moon Bay",
|
||||
"Line1": "12 Ocean Dr.",
|
||||
"PostalCode": "94213",
|
||||
"Lat": "37.4307072",
|
||||
"Long": "-122.4295234",
|
||||
"CountrySubDivisionCode": "CA",
|
||||
"Id": "3"
|
||||
},
|
||||
"PreferredDeliveryMethod": "Print",
|
||||
"Taxable": false,
|
||||
"PrintOnCheckName": "Bill's Windsurf Shop",
|
||||
"Balance": 85.0,
|
||||
"Id": "2",
|
||||
"MetaData": {
|
||||
"CreateTime": "2014-09-11T16:49:28-07:00",
|
||||
"LastUpdatedTime": "2014-09-18T12:56:01-07:00"
|
||||
}
|
||||
},
|
||||
"time": "2015-07-23T11:04:15.496-07:00"
|
||||
}
|
161
tests/Mock/Response/Http/200-invoice-response.txt
Normal file
161
tests/Mock/Response/Http/200-invoice-response.txt
Normal file
@ -0,0 +1,161 @@
|
||||
HTTP/1.1 200 OK
|
||||
Server: nginx
|
||||
Date: Sun, 05 May 2013 08:52:09 GMT
|
||||
Content-Type: application/json;charset=utf-8
|
||||
Content-Length: 127
|
||||
Connection: keep-alive
|
||||
Cache-Control: no-cache, no-store
|
||||
Access-Control-Max-Age: 300
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
{
|
||||
"Invoice": {
|
||||
"TxnDate": "2014-09-19",
|
||||
"domain": "QBO",
|
||||
"PrintStatus": "NeedToPrint",
|
||||
"SalesTermRef": {
|
||||
"value": "3"
|
||||
},
|
||||
"TotalAmt": 362.07,
|
||||
"Line": [
|
||||
{
|
||||
"Description": "Rock Fountain",
|
||||
"DetailType": "SalesItemLineDetail",
|
||||
"SalesItemLineDetail": {
|
||||
"TaxCodeRef": {
|
||||
"value": "TAX"
|
||||
},
|
||||
"Qty": 1,
|
||||
"UnitPrice": 275,
|
||||
"ItemRef": {
|
||||
"name": "Rock Fountain",
|
||||
"value": "5"
|
||||
}
|
||||
},
|
||||
"LineNum": 1,
|
||||
"Amount": 275.0,
|
||||
"Id": "1"
|
||||
},
|
||||
{
|
||||
"Description": "Fountain Pump",
|
||||
"DetailType": "SalesItemLineDetail",
|
||||
"SalesItemLineDetail": {
|
||||
"TaxCodeRef": {
|
||||
"value": "TAX"
|
||||
},
|
||||
"Qty": 1,
|
||||
"UnitPrice": 12.75,
|
||||
"ItemRef": {
|
||||
"name": "Pump",
|
||||
"value": "11"
|
||||
}
|
||||
},
|
||||
"LineNum": 2,
|
||||
"Amount": 12.75,
|
||||
"Id": "2"
|
||||
},
|
||||
{
|
||||
"Description": "Concrete for fountain installation",
|
||||
"DetailType": "SalesItemLineDetail",
|
||||
"SalesItemLineDetail": {
|
||||
"TaxCodeRef": {
|
||||
"value": "TAX"
|
||||
},
|
||||
"Qty": 5,
|
||||
"UnitPrice": 9.5,
|
||||
"ItemRef": {
|
||||
"name": "Concrete",
|
||||
"value": "3"
|
||||
}
|
||||
},
|
||||
"LineNum": 3,
|
||||
"Amount": 47.5,
|
||||
"Id": "3"
|
||||
},
|
||||
{
|
||||
"DetailType": "SubTotalLineDetail",
|
||||
"Amount": 335.25,
|
||||
"SubTotalLineDetail": {}
|
||||
}
|
||||
],
|
||||
"DueDate": "2014-10-19",
|
||||
"ApplyTaxAfterDiscount": false,
|
||||
"DocNumber": "1037",
|
||||
"sparse": false,
|
||||
"CustomerMemo": {
|
||||
"value": "Thank you for your business and have a great day!"
|
||||
},
|
||||
"ProjectRef": {
|
||||
"value": "39298045"
|
||||
},
|
||||
"Deposit": 0,
|
||||
"Balance": 362.07,
|
||||
"CustomerRef": {
|
||||
"name": "Sonnenschein Family Store",
|
||||
"value": "24"
|
||||
},
|
||||
"TxnTaxDetail": {
|
||||
"TxnTaxCodeRef": {
|
||||
"value": "2"
|
||||
},
|
||||
"TotalTax": 26.82,
|
||||
"TaxLine": [
|
||||
{
|
||||
"DetailType": "TaxLineDetail",
|
||||
"Amount": 26.82,
|
||||
"TaxLineDetail": {
|
||||
"NetAmountTaxable": 335.25,
|
||||
"TaxPercent": 8,
|
||||
"TaxRateRef": {
|
||||
"value": "3"
|
||||
},
|
||||
"PercentBased": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"SyncToken": "0",
|
||||
"LinkedTxn": [
|
||||
{
|
||||
"TxnId": "100",
|
||||
"TxnType": "Estimate"
|
||||
}
|
||||
],
|
||||
"BillEmail": {
|
||||
"Address": "Familiystore@intuit.com"
|
||||
},
|
||||
"ShipAddr": {
|
||||
"City": "Middlefield",
|
||||
"Line1": "5647 Cypress Hill Ave.",
|
||||
"PostalCode": "94303",
|
||||
"Lat": "37.4238562",
|
||||
"Long": "-122.1141681",
|
||||
"CountrySubDivisionCode": "CA",
|
||||
"Id": "25"
|
||||
},
|
||||
"EmailStatus": "NotSet",
|
||||
"BillAddr": {
|
||||
"Line4": "Middlefield, CA 94303",
|
||||
"Line3": "5647 Cypress Hill Ave.",
|
||||
"Line2": "Sonnenschein Family Store",
|
||||
"Line1": "Russ Sonnenschein",
|
||||
"Long": "-122.1141681",
|
||||
"Lat": "37.4238562",
|
||||
"Id": "95"
|
||||
},
|
||||
"MetaData": {
|
||||
"CreateTime": "2014-09-19T13:16:17-07:00",
|
||||
"LastUpdatedTime": "2014-09-19T13:16:17-07:00"
|
||||
},
|
||||
"CustomField": [
|
||||
{
|
||||
"DefinitionId": "1",
|
||||
"StringValue": "102",
|
||||
"Type": "StringType",
|
||||
"Name": "Crew #"
|
||||
}
|
||||
],
|
||||
"Id": "130"
|
||||
},
|
||||
"time": "2015-07-24T10:48:27.082-07:00"
|
||||
}
|
Loading…
Reference in New Issue
Block a user