model

package
v0.0.0-...-8b64c4c Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FxRates

type FxRates struct {
	Rates Rates `json:"rates"`
}

FxRates struct to hold the exchange rates.

type GroupOne

type GroupOne struct {
	Duration int    `json:"duration"`
	Name     string `json:"name"`
}

GroupOne struct for the OutputSummary struct which holds the date and total work hours.

type Invoice

type Invoice struct {
	Date        string
	Id          string
	HourlyRate  float64
	SubTotal    float64
	PayoneerFee float64
	GrandTotal  float64
	WorkLog     []WorkLog
}

Invoice struct to hold the invoice details.

type OutputSummary

type OutputSummary struct {
	Total    []Total    `json:"totals"`
	GroupOne []GroupOne `json:"groupOne"`
}

OutputSummary struct to hold the response from the summary report API.

type Rates

type Rates struct {
	PHP float64 `json:"PHP"`
}

Rates struct to hold the PHP exchange rate.

type SummaryFilter

type SummaryFilter struct {
	Groups []string `json:"groups"`
}

SummaryFilter struct to hold the summary filter.

type SummaryReport

type SummaryReport struct {
	DateRangeStart string        `json:"dateRangeStart"`
	DateRangeEnd   string        `json:"dateRangeEnd"`
	SortOrder      string        `json:"sortOrder"`
	ExportType     string        `json:"exportType"`
	AmountShown    string        `json:"amountShown"`
	SummaryFilter  SummaryFilter `json:"summaryFilter"`
	Users          Users         `json:"users"`
}

SummaryReport struct to hold the summary report payload.

type Total

type Total struct {
	TotalTime int `json:"totalTime"`
}

Total struct for the OutputSummary struct which holds the total work hours.

type User

type User struct {
	Id               string `json:"id"`
	DefaultWorkspace string `json:"defaultWorkspace"`
}

User struct to hold the default workspace.

type Users

type Users struct {
	Contains string   `json:"contains"`
	Ids      []string `json:"ids"`
	Status   string   `json:"status"`
}

Users struct to hold the user id.

type WorkLog

type WorkLog struct {
	Id          int
	Date        string
	Description string
	Hours       string
	Amount      string
}

WorkLog struct to hold the work log.

Jump to

Keyboard shortcuts

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