Class ShippingAddress
This object represents a shipping address.
Inheritance
System.Object
ShippingAddress
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Payment
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class ShippingAddress
Properties
| Improve this Doc View SourceCity
City
Declaration
[JsonProperty(PropertyName = "city", Required = Required.Always)]
public string City { get; set; }
Property Value
Type | Description |
---|---|
System. |
CountryCode
ISO 3166-1 alpha-2 country code
Declaration
[JsonProperty(PropertyName = "country_code", Required = Required.Always)]
public string CountryCode { get; set; }
Property Value
Type | Description |
---|---|
System. |
PostCode
Address post code
Declaration
[JsonProperty(PropertyName = "post_code", Required = Required.Always)]
public string PostCode { get; set; }
Property Value
Type | Description |
---|---|
System. |
State
State, if applicable
Declaration
[JsonProperty(PropertyName = "state")]
public string State { get; set; }
Property Value
Type | Description |
---|---|
System. |
StreetLine1
First line for the address
Declaration
[JsonProperty(PropertyName = "street_line1", Required = Required.Always)]
public string StreetLine1 { get; set; }
Property Value
Type | Description |
---|---|
System. |
StreetLine2
Second line for the address
Declaration
[JsonProperty(PropertyName = "street_line2", Required = Required.Always)]
public string StreetLine2 { get; set; }
Property Value
Type | Description |
---|---|
System. |