//
// Generated by JSON2Apex http://json2apex.herokuapp.com/
//

@IsTest
public class QBCustomerJSON_Test {

	public static String json = '{'+
		'    \"QueryResponse\": {'+
		'        \"Customer\": ['+
		'            {'+
		'                \"Taxable\": true,'+
		'                \"BillAddr\": {'+
		'                    \"Id\": \"1\",'+
		'                    \"Line1\": \"123 Main St\",'+
		'                    \"City\": \"San Diego\",'+
		'                    \"CountrySubDivisionCode\": \"CA\",'+
		'                    \"PostalCode\": \"98765\"'+
		'                },'+
		'                \"ShipAddr\": {'+
		'                    \"Id\": \"1\",'+
		'                    \"Line1\": \"123 Main St\",'+
		'                    \"City\": \"San Diego\",'+
		'                    \"CountrySubDivisionCode\": \"CA\",'+
		'                    \"PostalCode\": \"98765\"'+
		'                },'+
		'                \"Job\": true,'+
		'                \"BillWithParent\": true,'+
		'                \"ParentRef\": {'+
		'                    \"value\": \"1\"'+
		'                },'+
		'                \"Level\": 1,'+
		'                \"Balance\": 0,'+
		'                \"BalanceWithJobs\": 0,'+
		'                \"CurrencyRef\": {'+
		'                    \"value\": \"USD\",'+
		'                    \"name\": \"United States Dollar\"'+
		'                },'+
		'                \"PreferredDeliveryMethod\": \"Print\",'+
		'                \"IsProject\": false,'+
		'                \"domain\": \"QBO\",'+
		'                \"sparse\": false,'+
		'                \"Id\": \"1\",'+
		'                \"SyncToken\": \"0\",'+
		'                \"MetaData\": {'+
		'                    \"CreateTime\": \"2019-07-23T07:43:19-07:00\",'+
		'                    \"LastUpdatedTime\": \"2019-07-23T07:43:19-07:00\"'+
		'                },'+
		'                \"FullyQualifiedName\": \"Amy\'s Bird Sanctuary:Amy Schwartz\",'+
		'                \"CompanyName\": \"Amy\'s Bird Sanctuary\",'+
		'                \"DisplayName\": \"Amy Schwartz\",'+
		'                \"PrintOnCheckName\": \"Amy\'s Bird Sanctuary\",'+
		'                \"Active\": true,'+
		'                \"PrimaryPhone\": {'+
		'                    \"FreeFormNumber\": \"(111) 111-3311\"'+
		'                },'+
		'                \"PrimaryEmailAddr\": {'+
		'                    \"Address\": \"Birds@Intuit.com\"'+
		'                },'+
		'                \"DefaultTaxCodeRef\": {'+
		'                    \"value\": \"2\"'+
		'                }'+
		'            }'+
		'        ],'+
		'        \"startPosition\": 1,'+
		'        \"maxResults\": 1'+
		'    },'+
		'    \"time\": \"2019-07-23T07:47:04.015-07:00\"'+
		'}';
	
	static testMethod void testParse() {
		
		QBCustomerJSON obj = QBCustomerJSON.parse(json);
		System.assert(obj != null);
	}
}