struct Zugpferd::TradeAddress

Overview

Postal address for a trade party (BG-5 for seller, BG-8 for buyer). Only #country_id is emitted for MINIMUM profile; all fields are available for BASIC_WL and above.

Defined in:

zugpferd/trade_address.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(city : String, country_id : String, *, line_one : String | Nil = nil, line_two : String | Nil = nil, postcode : String | Nil = nil) #

[View source]

Instance Method Detail

def city : String #

City or municipality name (BT-37 seller / BT-52 buyer).


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

City or municipality name (BT-37 seller / BT-52 buyer).


[View source]
def country_id : String #

ISO 3166-1 alpha-2 country code (BT-40 seller / BT-55 buyer), e.g. "DE", "FR", "AT".


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

ISO 3166-1 alpha-2 country code (BT-40 seller / BT-55 buyer), e.g. "DE", "FR", "AT".


[View source]
def line_one : String | Nil #

First address line, e.g. street and house number (BT-35 seller / BT-50 buyer).


[View source]
def line_one=(line_one : String | Nil) #

First address line, e.g. street and house number (BT-35 seller / BT-50 buyer).


[View source]
def line_two : String | Nil #

Second address line for additional information (BT-36 seller / BT-51 buyer).


[View source]
def line_two=(line_two : String | Nil) #

Second address line for additional information (BT-36 seller / BT-51 buyer).


[View source]
def postcode : String | Nil #

Postal/ZIP code (BT-38 seller / BT-53 buyer).


[View source]
def postcode=(postcode : String | Nil) #

Postal/ZIP code (BT-38 seller / BT-53 buyer).


[View source]