company

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*common.Client
}

func NewClient

func NewClient(client *common.Client) *Client

func (*Client) GetCompanyInfo

func (cli *Client) GetCompanyInfo(ctx context.Context) (*Info, error)

GetCompanyInfo ...

func (*Client) GetConfParameters

func (cli *Client) GetConfParameters(ctx context.Context) (*ConfParameter, error)

type ConfParameter

type ConfParameter struct {
	Announcement         string `json:"invoice_announcement_eng"`
	InvoiceClientIsPayer string `json:"invoice_client_is_payer"`
}

type GetCompanyInfoResponse

type GetCompanyInfoResponse struct {
	Status       common.Status `json:"status"`
	CompanyInfos Infos         `json:"records"`
}

type GetConfParametersResponse

type GetConfParametersResponse struct {
	Status         common.Status   `json:"status"`
	ConfParameters []ConfParameter `json:"records"`
}

GetConfParametersResponse ...

type Info

type Info struct {
	ID                 string `json:"id"`
	Name               string `json:"name"`
	Code               string `json:"code"`
	VAT                string `json:"VAT"`
	Phone              string `json:"phone"`
	Mobile             string `json:"mobile"`
	Fax                string `json:"fax"`
	Email              string `json:"email"`
	Web                string `json:"web"`
	BankAccountNumber  string `json:"bankAccountNumber"`
	BankName           string `json:"bankName"`
	BankSWIFT          string `json:"bankSWIFT"`
	BankIBAN           string `json:"bankIBAN"`
	BankAccountNumber2 string `json:"bankAccountNumber2"`
	BankName2          string `json:"bankName2"`
	BankSWIFT2         string `json:"bankSWIFT2"`
	BankIBAN2          string `json:"bankIBAN2"`
	Address            string `json:"address"`
	Country            string `json:"country"`

	//field for ConfParameters
	ConfParameters ConfParameter

} //GetCompanyInfoResponse ...

CompanyInfo ..

type Infos

type Infos []Info

CompanyInfos ..

type Manager

type Manager interface {
	GetCompanyInfo(ctx context.Context) (*Info, error)
	GetConfParameters(ctx context.Context) (*ConfParameter, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL