client

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 110 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 API 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 TripletexAPI

type TripletexAPI struct {
	AccommodationAllowance accommodation_allowance.ClientService

	Account account.ClientService

	AccountingPeriod accounting_period.ClientService

	Activity activity.ClientService

	Altinn altinn.ClientService

	AnnualAccount annual_account.ClientService

	BalanceSheet balance_sheet.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

	Master master.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

	OrderGroup order_group.ClientService

	Orderline orderline.ClientService

	Participant participant.ClientService

	Passenger passenger.ClientService

	PaymentType payment_type.ClientService

	PaymentTypeOut payment_type_out.ClientService

	Payslip payslip.ClientService

	PensionScheme pension_scheme.ClientService

	PerDiemCompensation per_diem_compensation.ClientService

	Period period.ClientService

	Posting posting.ClientService

	Product product.ClientService

	ProductPrice product_price.ClientService

	Productline productline.ClientService

	Project project.ClientService

	ProjectActivity project_activity.ClientService

	ProjectSpecificRates project_specific_rates.ClientService

	Prospect prospect.ClientService

	PurchaseOrder purchase_order.ClientService

	PurchaseOrderIncomingInvoiceRelation purchase_order_incoming_invoice_relation.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

	TransportType transport_type.ClientService

	TravelExpense travel_expense.ClientService

	TravelExpensezone travel_expensezone.ClientService

	TypeOperations type_operations.ClientService

	Unit unit.ClientService

	VatType vat_type.ClientService

	Voucher voucher.ClientService

	VoucherApprovalListElement voucher_approval_list_element.ClientService

	VoucherMessage voucher_message.ClientService

	VoucherStatus voucher_status.ClientService

	VoucherType voucher_type.ClientService

	Week week.ClientService

	WorkingHoursScheme working_hours_scheme.ClientService

	Transport runtime.ClientTransport
}

TripletexAPI is a client for tripletex API

func New

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

New creates a new tripletex API client

func NewHTTPClient

func NewHTTPClient(formats strfmt.Registry) *TripletexAPI

NewHTTPClient creates a new tripletex API HTTP client.

func NewHTTPClientWithConfig

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

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

func (*TripletexAPI) SetTransport

func (c *TripletexAPI) 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