// Code generated by go-swagger; DO NOT EDIT.

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// Billing20201105Address Address is a physical postal address.
//
// swagger:model billing_20201105Address
type Billing20201105Address struct {

	// city is a city, district, suburb, town, or village.
	City string `json:"city,omitempty"`

	// line1 is the street, PO Box, or company name.
	Line1 string `json:"line1,omitempty"`

	// line2 is the apartment, suite, unit, or building.
	Line2 string `json:"line2,omitempty"`

	// postal_code is the ZIP or postal code.
	PostalCode string `json:"postal_code,omitempty"`

	// state is a state, county, province, or region.
	State string `json:"state,omitempty"`
}

// Validate validates this billing 20201105 address
func (m *Billing20201105Address) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this billing 20201105 address based on context it is used
func (m *Billing20201105Address) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *Billing20201105Address) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *Billing20201105Address) UnmarshalBinary(b []byte) error {
	var res Billing20201105Address
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
