client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 100 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultHost is the default Host
	// found in Meta (info) section of spec file
	DefaultHost string = "tripletex.no"
	// DefaultBasePath is the default BasePath
	// found in Meta (info) section of spec file
	DefaultBasePath string = "/v2"
)

Variables

View Source
var Default = NewHTTPClient(nil)

Default tripletex HTTP client.

View Source
var DefaultSchemes = []string{"https"}

DefaultSchemes are the default schemes found in Meta (info) section of spec file

Functions

This section is empty.

Types

type TransportConfig

type TransportConfig struct {
	Host     string
	BasePath string
	Schemes  []string
}

TransportConfig contains the transport related info, found in the meta section of the spec file.

func DefaultTransportConfig

func DefaultTransportConfig() *TransportConfig

DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.

func (*TransportConfig) WithBasePath

func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig

WithBasePath overrides the default basePath, provided by the meta section of the spec file.

func (*TransportConfig) WithHost

func (cfg *TransportConfig) WithHost(host string) *TransportConfig

WithHost overrides the default host, provided by the meta section of the spec file.

func (*TransportConfig) WithSchemes

func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig

WithSchemes overrides the default schemes, provided by the meta section of the spec file.

type Tripletex

type Tripletex struct {
	AccommodationAllowance accommodation_allowance.ClientService

	Account account.ClientService

	AccountingPeriod accounting_period.ClientService

	Activity activity.ClientService

	Altinn altinn.ClientService

	AnnualAccount annual_account.ClientService

	Bank bank.ClientService

	Category category.ClientService

	CloseGroup close_group.ClientService

	Company company.ClientService

	Compilation compilation.ClientService

	Consumer consumer.ClientService

	Contact contact.ClientService

	ControlForm control_form.ClientService

	Cost cost.ClientService

	CostCategory cost_category.ClientService

	Country country.ClientService

	Currency currency.ClientService

	Customer customer.ClientService

	DeliveryAddress delivery_address.ClientService

	Department department.ClientService

	Details details.ClientService

	Deviation deviation.ClientService

	Division division.ClientService

	Document document.ClientService

	DocumentArchive document_archive.ClientService

	Employee employee.ClientService

	Employment employment.ClientService

	EmploymentType employment_type.ClientService

	Entitlement entitlement.ClientService

	Entry entry.ClientService

	Event event.ClientService

	External external.ClientService

	GoodsReceipt goods_receipt.ClientService

	GoodsReceiptLine goods_receipt_line.ClientService

	Group group.ClientService

	GroupRelation group_relation.ClientService

	Holiday holiday.ClientService

	HourlyCostAndRate hourly_cost_and_rate.ClientService

	HourlyRates hourly_rates.ClientService

	Inventories inventories.ClientService

	Inventory inventory.ClientService

	Invoice invoice.ClientService

	LeaveOfAbsence leave_of_absence.ClientService

	LeaveOfAbsenceType leave_of_absence_type.ClientService

	Ledger ledger.ClientService

	Match match.ClientService

	MileageAllowance mileage_allowance.ClientService

	Month month.ClientService

	Municipality municipality.ClientService

	NextOfKin next_of_kin.ClientService

	OccupationCode occupation_code.ClientService

	Order order.ClientService

	Orderline orderline.ClientService

	Participant participant.ClientService

	Passenger passenger.ClientService

	PaymentType payment_type.ClientService

	PaymentTypeOut payment_type_out.ClientService

	Payslip payslip.ClientService

	PerDiemCompensation per_diem_compensation.ClientService

	Period period.ClientService

	Posting posting.ClientService

	Product product.ClientService

	Productline productline.ClientService

	Project project.ClientService

	ProjectActivity project_activity.ClientService

	ProjectSpecificRates project_specific_rates.ClientService

	Prospect prospect.ClientService

	PurchaseOrder purchase_order.ClientService

	Rate rate.ClientService

	RateCategory rate_category.ClientService

	RateCategoryGroup rate_category_group.ClientService

	Reconciliation reconciliation.ClientService

	Reminder reminder.ClientService

	RemunerationType remuneration_type.ClientService

	SalaryTypeSpecification salary_type_specification.ClientService

	Salesmodules salesmodules.ClientService

	Session session.ClientService

	Settings settings.ClientService

	StandardTime standard_time.ClientService

	Statement statement.ClientService

	Stocktaking stocktaking.ClientService

	Subscription subscription.ClientService

	Supplier supplier.ClientService

	SupplierInvoice supplier_invoice.ClientService

	Task task.ClientService

	TimeClock time_clock.ClientService

	Transaction transaction.ClientService

	TravelExpense travel_expense.ClientService

	TravelExpensezone travel_expensezone.ClientService

	TypeOperations type_operations.ClientService

	Unit unit.ClientService

	VatType vat_type.ClientService

	Voucher voucher.ClientService

	VoucherType voucher_type.ClientService

	Week week.ClientService

	WorkingHoursScheme working_hours_scheme.ClientService

	Transport runtime.ClientTransport
}

Tripletex is a client for tripletex

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Tripletex

New creates a new tripletex client

func NewHTTPClient

func NewHTTPClient(formats strfmt.Registry) *Tripletex

NewHTTPClient creates a new tripletex HTTP client.

func NewHTTPClientWithConfig

func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Tripletex

NewHTTPClientWithConfig creates a new tripletex HTTP client, using a customizable transport config.

func (*Tripletex) SetTransport

func (c *Tripletex) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client and all its subresources

Jump to

Keyboard shortcuts

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