Show / Hide Table of Contents

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 Source

City

City

Declaration
[JsonProperty(PropertyName = "city", Required = Required.Always)]
public string City { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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.String
| Improve this Doc View Source

PostCode

Address post code

Declaration
[JsonProperty(PropertyName = "post_code", Required = Required.Always)]
public string PostCode { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

State

State, if applicable

Declaration
[JsonProperty(PropertyName = "state")]
public string State { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

StreetLine1

First line for the address

Declaration
[JsonProperty(PropertyName = "street_line1", Required = Required.Always)]
public string StreetLine1 { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

StreetLine2

Second line for the address

Declaration
[JsonProperty(PropertyName = "street_line2", Required = Required.Always)]
public string StreetLine2 { get; set; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • City
    • CountryCode
    • PostCode
    • State
    • StreetLine1
    • StreetLine2
Back to top Generated by DocFX