Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Intuit QuickBooks集成(C#.NET/SDK)-哪个PhysicalAddress属性用于ZipCode和状态字段?_C#_.net_Quickbooks Online - Fatal编程技术网

Intuit QuickBooks集成(C#.NET/SDK)-哪个PhysicalAddress属性用于ZipCode和状态字段?

Intuit QuickBooks集成(C#.NET/SDK)-哪个PhysicalAddress属性用于ZipCode和状态字段?,c#,.net,quickbooks-online,C#,.net,Quickbooks Online,我无法在我的Quickbooks在线发票沙箱帐户中获取客户数据,该帐户包含完整的发货和账单地址,主要是州和ZipCode。以下任何“行”属性是否对应于Zip或状态字段?我无法让它们在我的沙箱中填充 根据您提供给Intuit文档的链接,State和Zip似乎分别封装在PhysicalAddress类的CountrySubsectionCode和PostalCode属性中: CountrySubDivisionCode Product: QBW Description: Region with

我无法在我的Quickbooks在线发票沙箱帐户中获取客户数据,该帐户包含完整的发货和账单地址,主要是州和ZipCode。以下任何“行”属性是否对应于Zip或状态字段?我无法让它们在我的沙箱中填充


根据您提供给Intuit文档的链接,State和Zip似乎分别封装在PhysicalAddress类的CountrySubsectionCode和PostalCode属性中:

CountrySubDivisionCode
Product: QBW 
Description: Region within a country. For example, state name for USA, province name for Canada.
Max. length: 21 characters. 
Product: QBO 
Description: Globalized representation of a region. For example, state name for USA, province name for Canada.
Max. length: 255 characters.

PostalCode
Product: QBW 
Description: Postal code. 
For example, zip code for USA and Canada.
Max. length: 13 characters. 
Product: QBO 
Description: Postal code. 
For example, zip code for USA and Canada.
Max. length: 30 characters.

我看你已经试过PostalCode了;您试图分配给此属性的数据示例有哪些?

感谢您的帮助!邮政编码示例-9000,州-CA@Vahe对不起,我昨天没有时间回复。我查看了ILSPY中的DLL,以查看PostalCode属性中是否存在一些验证(例如,它可能至少需要5个字符),但没有找到任何验证,因此我不确定它为什么没有出现。您是否能够使用CountrySubsectionCode属性来填充州?不用担心,我在示例中犯了一个错误,例如,州应该是90000。最少5个字符。
Public property Line1   
    Product: QBW Description: First line of the address.[br /]Max. length: 41 characters. Product: QBO Description: First line of the address.[br /]Max. length: 500 characters.
    Public property Line2   
    Product: QBW Description: Second line of the address.[br /]Max. length: 41 characters. Product: QBO Description: Second line of the address.[br /]Max. length: 500 characters.
    Public property Line3   
    Product: QBW Description: Third line of the address.[br /]Max. length: 41 characters. Product: QBO Description: Third line of the address.[br /]Max. length: 500 characters.
    Public property Line4   
    Product: QBW Description: Fourth line of the address.[br /]Max. length: 41 characters. Product: QBO Description: Fourth line of the address.[br /]Max. length: 500 characters.
    Public property Line5   
    Product: QBW Description: Fifth line of the address.[br /]Max. length: 41 characters. Product: QBO Description: Fifth line of the address.[br /]Max. length: 500 characters. 
CountrySubDivisionCode
Product: QBW 
Description: Region within a country. For example, state name for USA, province name for Canada.
Max. length: 21 characters. 
Product: QBO 
Description: Globalized representation of a region. For example, state name for USA, province name for Canada.
Max. length: 255 characters.

PostalCode
Product: QBW 
Description: Postal code. 
For example, zip code for USA and Canada.
Max. length: 13 characters. 
Product: QBO 
Description: Postal code. 
For example, zip code for USA and Canada.
Max. length: 30 characters.