class Telegram::API::ShippingAddress

Overview

This object represents a shipping address.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(country_code : String, state : String, city : String, street_line1 : String, street_line2 : String, post_code : String) #

[View source]
def self.new(pull : JSON::PullParser) #

This object represents a shipping address.


[View source]

Instance Method Detail

def city : String #

City


[View source]
def city=(city : String) #

City


[View source]
def country_code : String #

ISO 3166-1 alpha-2 country code


[View source]
def country_code=(country_code : String) #

ISO 3166-1 alpha-2 country code


[View source]
def post_code : String #

Address post code


[View source]
def post_code=(post_code : String) #

Address post code


[View source]
def state : String #

State, if applicable


[View source]
def state=(state : String) #

State, if applicable


[View source]
def street_line1 : String #

First line for the address


[View source]
def street_line1=(street_line1 : String) #

First line for the address


[View source]
def street_line2 : String #

Second line for the address


[View source]
def street_line2=(street_line2 : String) #

Second line for the address


[View source]