cloudbeds

package module
v0.0.0-...-bbc4811 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const SOURCE_KIND_ACCOUNTS_RECEIVABLE_LEDGER = "ACCOUNTS_RECEIVABLE_LEDGER"
View Source
const SOURCE_KIND_GROUP_PROFILE = "GROUP_PROFILE"
View Source
const SOURCE_KIND_HOUSE_ACCOUNT = "HOUSE_ACCOUNT"
View Source
const SOURCE_KIND_RESERVATION = "RESERVATION"

Variables

View Source
var (
	StatusNotConfirmed Status = "not_confirmed"
	StatusCanceled     Status = "canceled"
	StatusCheckedIn    Status = "checked_in"
	StatusCheckedOut   Status = "checked_out"
	StatusNoShow       Status = "no_show"

	TransactionFilterSimpleTransactions TransactionFilter = "simple_transactions"
	TransactionFilterAdjustments        TransactionFilter = "adjustments"
	TransactionFilterAdjustmentsVoids   TransactionFilter = "adjustments_voids"
	TransactionFilterVoids              TransactionFilter = "voids"
	TransactionFilterRefunds            TransactionFilter = "refunds"
)
View Source
var (
	BaseURL = url.URL{
		Scheme: "https",
		Host:   "api.cloudbeds.com",
		Path:   "",
	}
)

Functions

func AddQueryParamsToRequest

func AddQueryParamsToRequest(requestParams interface{}, req *http.Request, skipEmpty bool) error

func CheckResponse

func CheckResponse(r *http.Response) error

CheckResponse checks the Client response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. Client error responses are expected to have either no response body, or a json response body that maps to ErrorResponse. Any other response body will be silently ignored.

func NewSchemaEncoder

func NewSchemaEncoder() *schema.Encoder

Types

type APIError

type APIError struct {
	// HTTP response that caused this error
	Response *http.Response `json:"-"`

	ID           string    `json:"id"`
	Timestamp    time.Time `json:"timestamp"`
	ErrorCode    string    `json:"errorCode"`
	ErrorDetails string    `json:"errorDetails"`
}

func (APIError) Error

func (a APIError) Error() string

type APIError2

type APIError2 struct {
	// HTTP response that caused this error
	Response *http.Response `json:"-"`

	ID          string `json:"id"`
	Timestamp   string `json:"timestamp"`
	Code        string `json:"code"`
	Description string `json:"description"`
}
{
  "id": null,
  "timestamp": "2024-12-27T12:31:53.318020618",
  "code": "ACCESS_DENIED",
  "description": "Access denied"
}

func (APIError2) Error

func (a APIError2) Error() string

type AccessTokenCheckPathParams

type AccessTokenCheckPathParams struct {
}

func (*AccessTokenCheckPathParams) Params

func (p *AccessTokenCheckPathParams) Params() map[string]string

type AccessTokenCheckQueryParams

type AccessTokenCheckQueryParams struct {
}

func (AccessTokenCheckQueryParams) ToURLValues

func (p AccessTokenCheckQueryParams) ToURLValues() (url.Values, error)

type AccessTokenCheckRequest

type AccessTokenCheckRequest struct {
	// contains filtered or unexported fields
}

func (*AccessTokenCheckRequest) Do

func (*AccessTokenCheckRequest) Method

func (r *AccessTokenCheckRequest) Method() string

func (*AccessTokenCheckRequest) NewResponseBody

func (*AccessTokenCheckRequest) PathParams

func (*AccessTokenCheckRequest) QueryParams

func (*AccessTokenCheckRequest) RequestBody

func (*AccessTokenCheckRequest) SetMethod

func (r *AccessTokenCheckRequest) SetMethod(method string)

func (*AccessTokenCheckRequest) SetRequestBody

func (r *AccessTokenCheckRequest) SetRequestBody(body AccessTokenCheckRequestBody)

func (*AccessTokenCheckRequest) URL

func (r *AccessTokenCheckRequest) URL() url.URL

type AccessTokenCheckRequestBody

type AccessTokenCheckRequestBody struct {
}

type AccessTokenCheckResponseBody

type AccessTokenCheckResponseBody struct {
	Success bool `json:"success"`
}

type Account

type Account struct {
	// ID of account
	ID string `json:"id"`
	// Description of the account
	Description string `json:"description"`
	// Name of the account
	Name string `json:"name"`
	// Account category
	// - DEPOSITS
	Category string `json:"category"`
	// Chart of account type
	// - LIABILITIES
	// - REVENUE
	// - ASSETS
	// - EQUITY
	// - EXPENSES
	ChartOfAccountType string `json:"chartOfAccountType"`
}

func (Account) IsZero

func (a Account) IsZero() bool

type AccountingTrialBalanceConfigurationStatusGetPathParams

type AccountingTrialBalanceConfigurationStatusGetPathParams struct {
}

func (*AccountingTrialBalanceConfigurationStatusGetPathParams) Params

type AccountingTrialBalanceConfigurationStatusGetQueryParams

type AccountingTrialBalanceConfigurationStatusGetQueryParams struct{}

func (AccountingTrialBalanceConfigurationStatusGetQueryParams) ToURLValues

type AccountingTrialBalanceConfigurationStatusGetRequest

type AccountingTrialBalanceConfigurationStatusGetRequest struct {
	// contains filtered or unexported fields
}

func (*AccountingTrialBalanceConfigurationStatusGetRequest) Do

func (*AccountingTrialBalanceConfigurationStatusGetRequest) Method

func (*AccountingTrialBalanceConfigurationStatusGetRequest) NewResponseBody

func (*AccountingTrialBalanceConfigurationStatusGetRequest) PathParams

func (*AccountingTrialBalanceConfigurationStatusGetRequest) QueryParams

func (*AccountingTrialBalanceConfigurationStatusGetRequest) RequestBody

func (*AccountingTrialBalanceConfigurationStatusGetRequest) SetMethod

func (*AccountingTrialBalanceConfigurationStatusGetRequest) SetRequestBody

func (*AccountingTrialBalanceConfigurationStatusGetRequest) URL

type AccountingTrialBalanceConfigurationStatusGetRequestBody

type AccountingTrialBalanceConfigurationStatusGetRequestBody struct{}

type AccountingTrialBalanceConfigurationStatusGetResponseBody

type AccountingTrialBalanceConfigurationStatusGetResponseBody struct {
	Configured   bool     `json:"configured"`
	ConfiguredAt DateTime `json:"configuredAt"`
}

type AccountingTrialBalanceReportGetPathParams

type AccountingTrialBalanceReportGetPathParams struct {
}

func (*AccountingTrialBalanceReportGetPathParams) Params

type AccountingTrialBalanceReportGetQueryParams

type AccountingTrialBalanceReportGetQueryParams struct {
	Date Date `schema:"date"`
}

func (AccountingTrialBalanceReportGetQueryParams) ToURLValues

type AccountingTrialBalanceReportGetRequest

type AccountingTrialBalanceReportGetRequest struct {
	// contains filtered or unexported fields
}

func (*AccountingTrialBalanceReportGetRequest) Do

func (*AccountingTrialBalanceReportGetRequest) Method

func (*AccountingTrialBalanceReportGetRequest) NewResponseBody

func (*AccountingTrialBalanceReportGetRequest) PathParams

func (*AccountingTrialBalanceReportGetRequest) QueryParams

func (*AccountingTrialBalanceReportGetRequest) RequestBody

func (*AccountingTrialBalanceReportGetRequest) SetMethod

func (r *AccountingTrialBalanceReportGetRequest) SetMethod(method string)

func (*AccountingTrialBalanceReportGetRequest) SetRequestBody

func (*AccountingTrialBalanceReportGetRequest) URL

type AccountingTrialBalanceReportGetRequestBody

type AccountingTrialBalanceReportGetRequestBody struct{}

type AccountingTrialBalanceReportGetResponseBody

type AccountingTrialBalanceReportGetResponseBody struct {
}

type Addon

type Addon struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	ProductID   string `json:"productId"`
	Price       struct {
		Amount       Int    `json:"amount"`
		CurrencyCode string `json:"currencyCode"`
	} `json:"price"`
}

type Addons

type Addons []Addon

type And

type And struct {
	Operator string `json:"operator"`
	Value    string `json:"value"`
	Field    string `json:"field"`
}

type AssignedRoom

type AssignedRoom struct {
	ReservationRoomID string `json:"reservationRoomID"`
	RoomTypeID        string `json:"roomTypeID"`
	RoomTypeName      string `json:"roomTypeName"` // Room Type Name where guest is assigned
	RoomTypeIsVirtual bool   `json:"roomTypeIsVirtual"`
	RoomCheckIn       Date   `json:"roomCheckIn"`
	RoomCheckOut      Date   `json:"roomCheckOut"`
	RoomID            string `json:"roomID"`            // Room ID where guest is assigned
	RoomName          string `json:"roomName"`          // Room Name where guest is assigned
	SubReservationID  string `json:"subReservationID"`  // Sub Reservation ID where guest is assigned
	RoomTypeNameShort string `json:"roomTypeNameShort"` // Short name of the assigned room type
	RateID            string `json:"rateID"`
	RatePlaneName     string `json:"ratePlanName"`
	StartDate         Date   `json:"startDate"`
	EndDate           Date   `json:"endDate"`
	Adults            Int    `json:"adults"`
	Children          Int    `json:"children"`
	DailyRates        []struct {
		Date Date    `json:"date"`
		Rate float64 `json:"rate"`
	} `json:"dailyRates"`
	RoomTotal  StringFloat `json:"roomTotal"`
	MarketName string      `json:"marketName"`
	MarketCode string      `json:"marketCode"`
	RoomStatus string      `json:"roomStatus"`
}

type AssignedRooms

type AssignedRooms []AssignedRoom

type BalanceDetailed

type BalanceDetailed struct {
	SuggestedDeposit StringFloat `json:"suggestedDeposit"`
	SubTotal         float64     `json:"subTotal"`
	AdditionalItems  int         `json:"additionalItems"`
	TaxesFees        float64     `json:"taxesFees"`
	GrandTotal       float64     `json:"grandTotal"`
	Paid             float64     `json:"paid"`
}

type Bool

type Bool bool

func (Bool) MarshalJSON

func (b Bool) MarshalJSON() ([]byte, error)

func (Bool) MarshalSchema

func (b Bool) MarshalSchema() string

type CardOnFile

type CardOnFile struct {
	CardID     string `json:"cardID"`
	CardNumber string `json:"cardNumber"`
	CardType   string `json:"cardType"`
}

type CardsOnFile

type CardsOnFile []CardOnFile

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *http.Client) *Client

func (*Client) BaseURL

func (c *Client) BaseURL() url.URL

func (*Client) Charset

func (c *Client) Charset() string

func (*Client) Debug

func (c *Client) Debug() bool

func (*Client) Do

func (c *Client) Do(req *http.Request, responseBody interface{}) (*http.Response, error)

Do sends an Client request and returns the Client response. The Client response is json decoded and stored in the value pointed to by v, or returned as an error if an Client error has occurred. If v implements the io.Writer interface, the raw response will be written to v, without attempting to decode it.

func (*Client) GetEndpointURL

func (c *Client) GetEndpointURL(relative string, pathParams PathParams) url.URL

func (*Client) MediaType

func (c *Client) MediaType() string

func (*Client) NewAccessTokenCheckPathParams

func (c *Client) NewAccessTokenCheckPathParams() *AccessTokenCheckPathParams

func (*Client) NewAccessTokenCheckQueryParams

func (c *Client) NewAccessTokenCheckQueryParams() *AccessTokenCheckQueryParams

func (*Client) NewAccessTokenCheckRequest

func (c *Client) NewAccessTokenCheckRequest() AccessTokenCheckRequest

func (*Client) NewAccessTokenCheckRequestBody

func (s *Client) NewAccessTokenCheckRequestBody() AccessTokenCheckRequestBody

func (*Client) NewAccountingTrialBalanceConfigurationStatusGetPathParams

func (c *Client) NewAccountingTrialBalanceConfigurationStatusGetPathParams() *AccountingTrialBalanceConfigurationStatusGetPathParams

func (*Client) NewAccountingTrialBalanceConfigurationStatusGetQueryParams

func (c *Client) NewAccountingTrialBalanceConfigurationStatusGetQueryParams() *AccountingTrialBalanceConfigurationStatusGetQueryParams

func (*Client) NewAccountingTrialBalanceConfigurationStatusGetRequest

func (c *Client) NewAccountingTrialBalanceConfigurationStatusGetRequest() AccountingTrialBalanceConfigurationStatusGetRequest

func (*Client) NewAccountingTrialBalanceConfigurationStatusGetRequestBody

func (s *Client) NewAccountingTrialBalanceConfigurationStatusGetRequestBody() AccountingTrialBalanceConfigurationStatusGetRequestBody

func (*Client) NewAccountingTrialBalanceReportGetPathParams

func (c *Client) NewAccountingTrialBalanceReportGetPathParams() *AccountingTrialBalanceReportGetPathParams

func (*Client) NewAccountingTrialBalanceReportGetQueryParams

func (c *Client) NewAccountingTrialBalanceReportGetQueryParams() *AccountingTrialBalanceReportGetQueryParams

func (*Client) NewAccountingTrialBalanceReportGetRequest

func (c *Client) NewAccountingTrialBalanceReportGetRequest() AccountingTrialBalanceReportGetRequest

func (*Client) NewAccountingTrialBalanceReportGetRequestBody

func (s *Client) NewAccountingTrialBalanceReportGetRequestBody() AccountingTrialBalanceReportGetRequestBody

func (*Client) NewGetAddonsPathParams

func (c *Client) NewGetAddonsPathParams() *GetAddonsPathParams

func (*Client) NewGetAddonsQueryParams

func (c *Client) NewGetAddonsQueryParams() *GetAddonsQueryParams

func (*Client) NewGetAddonsRequest

func (c *Client) NewGetAddonsRequest() GetAddonsRequest

func (*Client) NewGetAddonsRequestBody

func (s *Client) NewGetAddonsRequestBody() GetAddonsRequestBody

func (*Client) NewGetCustomFieldsPathParams

func (c *Client) NewGetCustomFieldsPathParams() *GetCustomFieldsPathParams

func (*Client) NewGetCustomFieldsQueryParams

func (c *Client) NewGetCustomFieldsQueryParams() *GetCustomFieldsQueryParams

func (*Client) NewGetCustomFieldsRequest

func (c *Client) NewGetCustomFieldsRequest() GetCustomFieldsRequest

func (*Client) NewGetCustomFieldsRequestBody

func (s *Client) NewGetCustomFieldsRequestBody() GetCustomFieldsRequestBody

func (*Client) NewGetCustomGeneralLedgerCodesPathParams

func (c *Client) NewGetCustomGeneralLedgerCodesPathParams() *GetCustomGeneralLedgerCodesPathParams

func (*Client) NewGetCustomGeneralLedgerCodesQueryParams

func (c *Client) NewGetCustomGeneralLedgerCodesQueryParams() *GetCustomGeneralLedgerCodesQueryParams

func (*Client) NewGetCustomGeneralLedgerCodesRequest

func (c *Client) NewGetCustomGeneralLedgerCodesRequest() GetCustomGeneralLedgerCodesRequest

func (*Client) NewGetCustomGeneralLedgerCodesRequestBody

func (s *Client) NewGetCustomGeneralLedgerCodesRequestBody() GetCustomGeneralLedgerCodesRequestBody

func (*Client) NewGetCustomTransactionCodesPathParams

func (c *Client) NewGetCustomTransactionCodesPathParams() *GetCustomTransactionCodesPathParams

func (*Client) NewGetCustomTransactionCodesQueryParams

func (c *Client) NewGetCustomTransactionCodesQueryParams() *GetCustomTransactionCodesQueryParams

func (*Client) NewGetCustomTransactionCodesRequest

func (c *Client) NewGetCustomTransactionCodesRequest() GetCustomTransactionCodesRequest

func (*Client) NewGetCustomTransactionCodesRequestBody

func (s *Client) NewGetCustomTransactionCodesRequestBody() GetCustomTransactionCodesRequestBody

func (*Client) NewGetFiscalDocumentRecipientsPathParams

func (c *Client) NewGetFiscalDocumentRecipientsPathParams() *GetFiscalDocumentRecipientsPathParams

func (*Client) NewGetFiscalDocumentRecipientsQueryParams

func (c *Client) NewGetFiscalDocumentRecipientsQueryParams() *GetFiscalDocumentRecipientsQueryParams

func (*Client) NewGetFiscalDocumentRecipientsRequest

func (c *Client) NewGetFiscalDocumentRecipientsRequest() GetFiscalDocumentRecipientsRequest

func (*Client) NewGetFiscalDocumentRecipientsRequestBody

func (s *Client) NewGetFiscalDocumentRecipientsRequestBody() GetFiscalDocumentRecipientsRequestBody

func (*Client) NewGetFiscalDocumentTransactionsPathParams

func (c *Client) NewGetFiscalDocumentTransactionsPathParams() *GetFiscalDocumentTransactionsPathParams

func (*Client) NewGetFiscalDocumentTransactionsQueryParams

func (c *Client) NewGetFiscalDocumentTransactionsQueryParams() *GetFiscalDocumentTransactionsQueryParams

func (*Client) NewGetFiscalDocumentTransactionsRequest

func (c *Client) NewGetFiscalDocumentTransactionsRequest() GetFiscalDocumentTransactionsRequest

func (*Client) NewGetFiscalDocumentTransactionsRequestBody

func (s *Client) NewGetFiscalDocumentTransactionsRequestBody() GetFiscalDocumentTransactionsRequestBody

func (*Client) NewGetFiscalDocumentsPathParams

func (c *Client) NewGetFiscalDocumentsPathParams() *GetFiscalDocumentsPathParams

func (*Client) NewGetFiscalDocumentsQueryParams

func (c *Client) NewGetFiscalDocumentsQueryParams() *GetFiscalDocumentsQueryParams

func (*Client) NewGetFiscalDocumentsRequest

func (c *Client) NewGetFiscalDocumentsRequest() GetFiscalDocumentsRequest

func (*Client) NewGetFiscalDocumentsRequestBody

func (s *Client) NewGetFiscalDocumentsRequestBody() GetFiscalDocumentsRequestBody

func (*Client) NewGetHotelDetailsPathParams

func (c *Client) NewGetHotelDetailsPathParams() *GetHotelDetailsPathParams

func (*Client) NewGetHotelDetailsQueryParams

func (c *Client) NewGetHotelDetailsQueryParams() *GetHotelDetailsQueryParams

func (*Client) NewGetHotelDetailsRequest

func (c *Client) NewGetHotelDetailsRequest() GetHotelDetailsRequest

func (*Client) NewGetHotelDetailsRequestBody

func (s *Client) NewGetHotelDetailsRequestBody() GetHotelDetailsRequestBody

func (*Client) NewGetHotelsPathParams

func (c *Client) NewGetHotelsPathParams() *GetHotelsPathParams

func (*Client) NewGetHotelsQueryParams

func (c *Client) NewGetHotelsQueryParams() *GetHotelsQueryParams

func (*Client) NewGetHotelsRequest

func (c *Client) NewGetHotelsRequest() GetHotelsRequest

func (*Client) NewGetHotelsRequestBody

func (s *Client) NewGetHotelsRequestBody() GetHotelsRequestBody

func (*Client) NewGetInternalTransactionCodesPathParams

func (c *Client) NewGetInternalTransactionCodesPathParams() *GetInternalTransactionCodesPathParams

func (*Client) NewGetInternalTransactionCodesQueryParams

func (c *Client) NewGetInternalTransactionCodesQueryParams() *GetInternalTransactionCodesQueryParams

func (*Client) NewGetInternalTransactionCodesRequest

func (c *Client) NewGetInternalTransactionCodesRequest() GetInternalTransactionCodesRequest

func (*Client) NewGetInternalTransactionCodesRequestBody

func (s *Client) NewGetInternalTransactionCodesRequestBody() GetInternalTransactionCodesRequestBody

func (*Client) NewGetPaymentsPathParams

func (c *Client) NewGetPaymentsPathParams() *GetPaymentsPathParams

func (*Client) NewGetPaymentsQueryParams

func (c *Client) NewGetPaymentsQueryParams() *GetPaymentsQueryParams

func (*Client) NewGetPaymentsRequest

func (c *Client) NewGetPaymentsRequest() GetPaymentsRequest

func (*Client) NewGetPaymentsRequestBody

func (s *Client) NewGetPaymentsRequestBody() GetPaymentsRequestBody

func (*Client) NewGetReportsQueryDataPathParams

func (c *Client) NewGetReportsQueryDataPathParams() *GetReportsQueryDataPathParams

func (*Client) NewGetReportsQueryDataQueryParams

func (c *Client) NewGetReportsQueryDataQueryParams() *GetReportsQueryDataQueryParams

func (*Client) NewGetReportsQueryDataRequest

func (c *Client) NewGetReportsQueryDataRequest() GetReportsQueryDataRequest

func (*Client) NewGetReportsQueryDataRequestBody

func (s *Client) NewGetReportsQueryDataRequestBody() GetReportsQueryDataRequestBody

func (*Client) NewGetReservationPathParams

func (c *Client) NewGetReservationPathParams() *GetReservationPathParams

func (*Client) NewGetReservationQueryParams

func (c *Client) NewGetReservationQueryParams() *GetReservationQueryParams

func (*Client) NewGetReservationRequest

func (c *Client) NewGetReservationRequest() GetReservationRequest

func (*Client) NewGetReservationRequestBody

func (s *Client) NewGetReservationRequestBody() GetReservationRequestBody

func (*Client) NewGetReservationsPathParams

func (c *Client) NewGetReservationsPathParams() *GetReservationsPathParams

func (*Client) NewGetReservationsQueryParams

func (c *Client) NewGetReservationsQueryParams() *GetReservationsQueryParams

func (*Client) NewGetReservationsRequest

func (c *Client) NewGetReservationsRequest() GetReservationsRequest

func (*Client) NewGetReservationsRequestBody

func (s *Client) NewGetReservationsRequestBody() GetReservationsRequestBody

func (*Client) NewGetTransactionsPathParams

func (c *Client) NewGetTransactionsPathParams() *GetTransactionsPathParams

func (*Client) NewGetTransactionsQueryParams

func (c *Client) NewGetTransactionsQueryParams() *GetTransactionsQueryParams

func (*Client) NewGetTransactionsRequest

func (c *Client) NewGetTransactionsRequest() GetTransactionsRequest

func (*Client) NewGetTransactionsRequestBody

func (s *Client) NewGetTransactionsRequestBody() GetTransactionsRequestBody

func (*Client) NewGetTrialBalanceReportPathParams

func (c *Client) NewGetTrialBalanceReportPathParams() *GetTrialBalanceReportPathParams

func (*Client) NewGetTrialBalanceReportQueryParams

func (c *Client) NewGetTrialBalanceReportQueryParams() *GetTrialBalanceReportQueryParams

func (*Client) NewGetTrialBalanceReportRequest

func (c *Client) NewGetTrialBalanceReportRequest() GetTrialBalanceReportRequest

func (*Client) NewGetTrialBalanceReportRequestBody

func (s *Client) NewGetTrialBalanceReportRequestBody() GetTrialBalanceReportRequestBody

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, method string, URL url.URL, body interface{}) (*http.Request, error)

func (*Client) NewUserinfoPathParams

func (c *Client) NewUserinfoPathParams() *UserinfoPathParams

func (*Client) NewUserinfoQueryParams

func (c *Client) NewUserinfoQueryParams() *UserinfoQueryParams

func (*Client) NewUserinfoRequest

func (c *Client) NewUserinfoRequest() UserinfoRequest

func (*Client) NewUserinfoRequestBody

func (s *Client) NewUserinfoRequestBody() UserinfoRequestBody

func (*Client) PropertyID

func (c *Client) PropertyID() int

func (*Client) RegisterRequestTimestamp

func (c *Client) RegisterRequestTimestamp(t time.Time)

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(baseURL url.URL)

func (*Client) SetCharset

func (c *Client) SetCharset(charset string)

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

func (*Client) SetDisallowUnknownFields

func (c *Client) SetDisallowUnknownFields(disallowUnknownFields bool)

func (*Client) SetMediaType

func (c *Client) SetMediaType(mediaType string)

func (*Client) SetPropertyID

func (c *Client) SetPropertyID(propertyID int)

func (*Client) SetUserAgent

func (c *Client) SetUserAgent(userAgent string)

func (*Client) SleepUntilRequestRate

func (c *Client) SleepUntilRequestRate()

func (*Client) Unmarshal

func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error

func (*Client) UserAgent

func (c *Client) UserAgent() string

type CustomField

type CustomField struct {
	CustomFieldName  string `json:"customFieldName"`  // Custom Field Name
	CustomFieldValue string `json:"customFieldValue"` // Custom Field Value
}

type CustomFields

type CustomFields []CustomField

type CustomGeneralLedgerCode

type CustomGeneralLedgerCode struct {
	ID              string `json:"id"`
	Version         int    `json:"version"`
	Name            string `json:"name"`
	Code            string `json:"code"`
	ConditionalCode string `json:"conditionalCode"`
	Group           string `json:"group"`
	Archived        bool   `json:"archived"`
}

type CustomGeneralLedgerCodes

type CustomGeneralLedgerCodes []CustomGeneralLedgerCode

type CustomTransactionCode

type CustomTransactionCode struct {
	ID                        string `json:"id"`
	Version                   int    `json:"version"`
	Name                      string `json:"name"`
	Code                      string `json:"code"`
	SKU                       string `json:"sku"`
	ItemGroup                 string `json:"itemGroup"`
	CustomGeneralLedgerCodeID string `json:"customGeneralLedgerCodeId"`
	ItemID                    string `json:"itemId"`
	PosItemID                 string `json:"posItemId"`
	TaxID                     string `json:"taxId"`
	FeeID                     string `json:"feeId"`
	PaymentID                 string `json:"paymentId"`
}

type CustomTransactionCodes

type CustomTransactionCodes []CustomTransactionCode

type DataInsightsError

type DataInsightsError struct {
	// HTTP response that caused this error
	Response *http.Response `json:"-"`

	Err struct {
		Code        int            `json:"code"`
		Status      string         `json:"status"`
		Description string         `json:"description"`
		Message     map[string]any `json:"message"`
	} `json:"error"`
}

func (DataInsightsError) Error

func (e DataInsightsError) Error() string

type Date

type Date struct {
	time.Time
}

func (Date) MarshalJSON

func (d Date) MarshalJSON() ([]byte, error)

func (Date) MarshalSchema

func (d Date) MarshalSchema() string

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(data []byte) (err error)

type DateTime

type DateTime struct {
	time.Time
}

func (DateTime) IsEmpty

func (d DateTime) IsEmpty() bool

func (*DateTime) MarshalJSON

func (d *DateTime) MarshalJSON() ([]byte, error)

func (DateTime) MarshalSchema

func (d DateTime) MarshalSchema() string

func (*DateTime) UnmarshalJSON

func (d *DateTime) UnmarshalJSON(text []byte) (err error)

type ErrorResponse

type ErrorResponse struct {
	// HTTP response that caused this error
	Response *http.Response `json:"-"`

	Messages Messages
}

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

func (*ErrorResponse) UnmarshalJSON

func (r *ErrorResponse) UnmarshalJSON(data []byte) error

type Filters

type Filters struct {
	And []And `json:"and,omitempty"`
	Or  []Or  `json:"or,omitempty"`
}

type FiscalDocumentRecipient

type FiscalDocumentRecipient struct {
	ID             string                   `json:"id,omitempty"`             // Unique identifier of the recipient
	FirstName      string                   `json:"firstName,omitempty"`      // First name of the recipient
	LastName       string                   `json:"lastName,omitempty"`       // Last name of the recipient
	Email          string                   `json:"email,omitempty"`          // Email address of the recipient
	Type           RecipientType            `json:"type,omitempty"`           // Recipient type: COMPANY, PERSON, or MANUAL
	Address        *RecipientAddress        `json:"address,omitempty"`        // Physical address of the recipient
	Company        *RecipientCompany        `json:"company,omitempty"`        // Company information, populated when Type is COMPANY
	Tax            *RecipientTaxInfo        `json:"tax,omitempty"`            // Tax information associated with the recipient
	ContactDetails *RecipientContactDetails `json:"contactDetails,omitempty"` // Additional contact details for the recipient
	Document       *RecipientDocument       `json:"document,omitempty"`       // Identity document information for the recipient
	CountryData    map[string]interface{}   `json:"countryData,omitempty"`    // Arbitrary country-specific fields from guest requirements
}

FiscalDocumentRecipient represents a single recipient associated with a fiscal document

type FiscalDocumentTransaction

type FiscalDocumentTransaction struct {
	ID                              string   `json:"id"`
	PropertyID                      string   `json:"propertyId"`
	SourceID                        string   `json:"sourceId"`
	SourceIdentifier                string   `json:"sourceIdentifier"`
	SourceKind                      string   `json:"sourceKind"` // Kind of the source entity (GROUP_PROFILE RESERVATION HOUSE_ACCOUNT ACCOUNTS_RECEIVABLE_LEDGER)
	TransactionDate                 string   `json:"transactionDate"`
	GuestName                       string   `json:"guestName"`
	Description                     string   `json:"description"`
	InternalCode                    string   `json:"internalCode"`
	Amount                          float64  `json:"amount"`
	AvailableAmount                 float64  `json:"availableAmount"`
	DocumentFiscalizedAmount        *float64 `json:"documentFiscalizedAmount"`
	Currency                        string   `json:"currency"`
	DisplayCurrency                 any      `json:"displayCurrency"`
	DisplayAmount                   any      `json:"displayAmount"`
	DisplayAvailableAmount          any      `json:"displayAvailableAmount"`
	DisplayDocumentFiscalizedAmount any      `json:"displayDocumentFiscalizedAmount"`
	FolioID                         string   `json:"folioId"`
	Status                          string   `json:"status"` // Status of the transaction - PENDING for unpaid transactions, POSTED for paid transactions
	InvoicedStatus                  string   `json:"invoicedStatus"`
	PaidAmount                      float64  `json:"paidAmount"`

	Allocations []struct {
		ReceiptNumber string `json:"receiptNumber"`
	} `json:"allocations"`

	Taxes TransactionTaxesList `json:"taxes"`
}

type FiscalDocumentTransactions

type FiscalDocumentTransactions []FiscalDocumentTransaction

type GetAddonsPathParams

type GetAddonsPathParams struct {
}

func (*GetAddonsPathParams) Params

func (p *GetAddonsPathParams) Params() map[string]string

type GetAddonsQueryParams

type GetAddonsQueryParams struct {
	Limit  int `schema:"limit,omitempty"`
	Offset int `schema:"offset,omitempty"`
}

func (GetAddonsQueryParams) ToURLValues

func (p GetAddonsQueryParams) ToURLValues() (url.Values, error)

type GetAddonsRequest

type GetAddonsRequest struct {
	// contains filtered or unexported fields
}

func (*GetAddonsRequest) Do

func (*GetAddonsRequest) Method

func (r *GetAddonsRequest) Method() string

func (*GetAddonsRequest) NewResponseBody

func (r *GetAddonsRequest) NewResponseBody() *GetAddonsResponseBody

func (*GetAddonsRequest) PathParams

func (r *GetAddonsRequest) PathParams() *GetAddonsPathParams

func (*GetAddonsRequest) QueryParams

func (r *GetAddonsRequest) QueryParams() *GetAddonsQueryParams

func (*GetAddonsRequest) RequestBody

func (r *GetAddonsRequest) RequestBody() *GetAddonsRequestBody

func (*GetAddonsRequest) SetMethod

func (r *GetAddonsRequest) SetMethod(method string)

func (*GetAddonsRequest) SetRequestBody

func (r *GetAddonsRequest) SetRequestBody(body GetAddonsRequestBody)

func (*GetAddonsRequest) URL

func (r *GetAddonsRequest) URL() url.URL

type GetAddonsRequestBody

type GetAddonsRequestBody struct {
}

type GetAddonsResponseBody

type GetAddonsResponseBody struct {
	Offset int    `json:"offset"`
	Limit  int    `json:"limit"`
	Data   Addons `json:"data"`
}

type GetCustomFieldsPathParams

type GetCustomFieldsPathParams struct {
}

func (*GetCustomFieldsPathParams) Params

func (p *GetCustomFieldsPathParams) Params() map[string]string

type GetCustomFieldsQueryParams

type GetCustomFieldsQueryParams struct {
}

func (GetCustomFieldsQueryParams) ToURLValues

func (p GetCustomFieldsQueryParams) ToURLValues() (url.Values, error)

type GetCustomFieldsRequest

type GetCustomFieldsRequest struct {
	// contains filtered or unexported fields
}

func (*GetCustomFieldsRequest) Do

func (*GetCustomFieldsRequest) Method

func (r *GetCustomFieldsRequest) Method() string

func (*GetCustomFieldsRequest) NewResponseBody

func (*GetCustomFieldsRequest) PathParams

func (*GetCustomFieldsRequest) QueryParams

func (*GetCustomFieldsRequest) RequestBody

func (*GetCustomFieldsRequest) SetMethod

func (r *GetCustomFieldsRequest) SetMethod(method string)

func (*GetCustomFieldsRequest) SetRequestBody

func (r *GetCustomFieldsRequest) SetRequestBody(body GetCustomFieldsRequestBody)

func (*GetCustomFieldsRequest) URL

func (r *GetCustomFieldsRequest) URL() url.URL

type GetCustomFieldsRequestBody

type GetCustomFieldsRequestBody struct {
}

type GetCustomFieldsResponseBody

type GetCustomFieldsResponseBody struct {
	Success bool       `json:"success"`
	Count   int        `json:"count"`
	Total   int        `json:"total"`
	Message string     `json:"message"`
	Data    []struct{} `json:"data"`
}

type GetCustomGeneralLedgerCodesPathParams

type GetCustomGeneralLedgerCodesPathParams struct {
}

func (*GetCustomGeneralLedgerCodesPathParams) Params

type GetCustomGeneralLedgerCodesQueryParams

type GetCustomGeneralLedgerCodesQueryParams struct {
}

func (GetCustomGeneralLedgerCodesQueryParams) ToURLValues

type GetCustomGeneralLedgerCodesRequest

type GetCustomGeneralLedgerCodesRequest struct {
	// contains filtered or unexported fields
}

func (*GetCustomGeneralLedgerCodesRequest) Do

func (*GetCustomGeneralLedgerCodesRequest) Method

func (*GetCustomGeneralLedgerCodesRequest) NewResponseBody

func (*GetCustomGeneralLedgerCodesRequest) PathParams

func (*GetCustomGeneralLedgerCodesRequest) QueryParams

func (*GetCustomGeneralLedgerCodesRequest) RequestBody

func (*GetCustomGeneralLedgerCodesRequest) SetMethod

func (r *GetCustomGeneralLedgerCodesRequest) SetMethod(method string)

func (*GetCustomGeneralLedgerCodesRequest) SetRequestBody

func (*GetCustomGeneralLedgerCodesRequest) URL

type GetCustomGeneralLedgerCodesRequestBody

type GetCustomGeneralLedgerCodesRequestBody struct{}

type GetCustomGeneralLedgerCodesResponseBody

type GetCustomGeneralLedgerCodesResponseBody CustomGeneralLedgerCodes

type GetCustomTransactionCodesPathParams

type GetCustomTransactionCodesPathParams struct {
}

func (*GetCustomTransactionCodesPathParams) Params

type GetCustomTransactionCodesQueryParams

type GetCustomTransactionCodesQueryParams struct {
}

func (GetCustomTransactionCodesQueryParams) ToURLValues

type GetCustomTransactionCodesRequest

type GetCustomTransactionCodesRequest struct {
	// contains filtered or unexported fields
}

func (*GetCustomTransactionCodesRequest) Do

func (*GetCustomTransactionCodesRequest) Method

func (*GetCustomTransactionCodesRequest) NewResponseBody

func (*GetCustomTransactionCodesRequest) PathParams

func (*GetCustomTransactionCodesRequest) QueryParams

func (*GetCustomTransactionCodesRequest) RequestBody

func (*GetCustomTransactionCodesRequest) SetMethod

func (r *GetCustomTransactionCodesRequest) SetMethod(method string)

func (*GetCustomTransactionCodesRequest) SetRequestBody

func (*GetCustomTransactionCodesRequest) URL

type GetCustomTransactionCodesRequestBody

type GetCustomTransactionCodesRequestBody struct{}

type GetCustomTransactionCodesResponseBody

type GetCustomTransactionCodesResponseBody CustomTransactionCodes

type GetFiscalDocumentRecipientsPathParams

type GetFiscalDocumentRecipientsPathParams struct {
	ID string `schema:"id"`
}

func (*GetFiscalDocumentRecipientsPathParams) Params

type GetFiscalDocumentRecipientsQueryParams

type GetFiscalDocumentRecipientsQueryParams struct {
}

func (GetFiscalDocumentRecipientsQueryParams) ToURLValues

type GetFiscalDocumentRecipientsRequest

type GetFiscalDocumentRecipientsRequest struct {
	// contains filtered or unexported fields
}

func (*GetFiscalDocumentRecipientsRequest) Do

func (*GetFiscalDocumentRecipientsRequest) Method

func (*GetFiscalDocumentRecipientsRequest) NewResponseBody

func (*GetFiscalDocumentRecipientsRequest) PathParams

func (*GetFiscalDocumentRecipientsRequest) QueryParams

func (*GetFiscalDocumentRecipientsRequest) RequestBody

func (*GetFiscalDocumentRecipientsRequest) SetMethod

func (r *GetFiscalDocumentRecipientsRequest) SetMethod(method string)

func (*GetFiscalDocumentRecipientsRequest) SetRequestBody

func (*GetFiscalDocumentRecipientsRequest) URL

type GetFiscalDocumentRecipientsRequestBody

type GetFiscalDocumentRecipientsRequestBody struct {
}

type GetFiscalDocumentRecipientsResponseBody

type GetFiscalDocumentRecipientsResponseBody []FiscalDocumentRecipient
{
 "recipients": [
   {
     "id": "string",
     "propertyId": "string",
     "sourceId": "string",
     "sourceKind": "GROUP_PROFILE",
     "recipientDate": "2026-02-18T09:07:47.925Z",
     "guestName": "string",
     "description": "string",
     "internalCode": "string",
     "amount": 0,
     "folioId": "string",
     "status": "PENDING",
     "paidAmount": 0,
     "allocations": [
       {
         "receiptNumber": "string"
       }
     ]
   }
 ],
 "nextPageToken": "string"
}

type GetFiscalDocumentTransactionsPathParams

type GetFiscalDocumentTransactionsPathParams struct {
	ID string `schema:"id"`
}

func (*GetFiscalDocumentTransactionsPathParams) Params

type GetFiscalDocumentTransactionsQueryParams

type GetFiscalDocumentTransactionsQueryParams struct {
	PageToken string `schema:"pageToken,omitempty"`
	Limit     int    `schema:"limit,omitempty"`
	// 1 to 100
	// Defaults to 20
	Sort string `schema:"sort,omitempty"`

	IncludeLinkedDocumentTransactions bool `schema:"includeLinkedDocumentTransactions,omitempty"`

	FolioIDs []int64 `schema:"folioIds,omitempty"`

	NestTaxes bool `schema:"nestTaxes"`
}

func (GetFiscalDocumentTransactionsQueryParams) ToURLValues

type GetFiscalDocumentTransactionsRequest

type GetFiscalDocumentTransactionsRequest struct {
	// contains filtered or unexported fields
}

func (*GetFiscalDocumentTransactionsRequest) All

func (*GetFiscalDocumentTransactionsRequest) Do

func (*GetFiscalDocumentTransactionsRequest) Method

func (*GetFiscalDocumentTransactionsRequest) NewResponseBody

func (*GetFiscalDocumentTransactionsRequest) PathParams

func (*GetFiscalDocumentTransactionsRequest) QueryParams

func (*GetFiscalDocumentTransactionsRequest) RequestBody

func (*GetFiscalDocumentTransactionsRequest) SetMethod

func (r *GetFiscalDocumentTransactionsRequest) SetMethod(method string)

func (*GetFiscalDocumentTransactionsRequest) SetRequestBody

func (*GetFiscalDocumentTransactionsRequest) URL

type GetFiscalDocumentTransactionsRequestBody

type GetFiscalDocumentTransactionsRequestBody struct {
}

type GetFiscalDocumentTransactionsResponseBody

type GetFiscalDocumentTransactionsResponseBody struct {
	NextPageToken string `json:"nextPageToken"`

	Transactions FiscalDocumentTransactions `json:"transactions"`
}
{
 "transactions": [
   {
     "id": "string",
     "propertyId": "string",
     "sourceId": "string",
     "sourceKind": "GROUP_PROFILE",
     "transactionDate": "2026-02-18T09:07:47.925Z",
     "guestName": "string",
     "description": "string",
     "internalCode": "string",
     "amount": 0,
     "folioId": "string",
     "status": "PENDING",
     "paidAmount": 0,
     "allocations": [
       {
         "receiptNumber": "string"
       }
     ]
   }
 ],
 "nextPageToken": "string"
}

type GetFiscalDocumentsPathParams

type GetFiscalDocumentsPathParams struct {
}

func (*GetFiscalDocumentsPathParams) Params

func (p *GetFiscalDocumentsPathParams) Params() map[string]string

type GetFiscalDocumentsQueryParams

type GetFiscalDocumentsQueryParams struct {
	PageToken string `schema:"pageToken,omitempty"`
	Limit     int    `schema:"limit,omitempty"`
	// 1 to 100
	// Defaults to 20
	Sort string `schema:"sort,omitempty"`

	IDs []string `schema:"ids,omitempty"`
	// List of IDs to filter by
	SourceIDs []string `schema:"sourceIDs,omitempty"`
	// List of source IDs to filter by
	SourceIdentifiers []string `schema:"sourceIdentifiers,omitempty"`
	// List of source-specific identifiers
	SourceKind string `schema:"sourceKind,omitempty"`
	// Filter by source kind
	//
	// Allowed:
	// GROUP_PROFILE
	// RESERVATION
	// HOUSE_ACCOUNT
	// ACCOUNTS_RECEIVABLE_LEDGER
	SourceKinds []string `json:"sourceKinds,omitempty"`
	// Filter by source kind
	NumberContains string `schema:"numberContains,omitempty"`
	// Filter by document number partial match
	Statuses []string `schema:"statuses,omitempty"`
	// List of fiscal document statuses to filter by
	Kinds []string `schema:"kinds,omitempty"`
	// List of fiscal document kinds to filter by
	CreatedAtFrom DateTime `schema:"createdAtFrom,omitempty"`
	// Creation date-time range start
	CreatedAtTo DateTime `schema:"createdAtTo,omitempty"`
	// Creation date-time range end
	InvoiceDateFrom Date `schema:"invoiceDateFrom,omitempty"`
	// deprecated
	// Invoice date range start
	InvoiceDateTo Date `schema:"invoiceDateTo,omitempty"`
	// deprecated
	// Invoice date range end
	InvoiceDatePropertyTimezoneFrom Date `schema:"invoiceDatePropertyTimezoneFrom,omitempty"`
	// Invoice date range start
	InvoiceDatePropertyTimezoneTo Date `schema:"invoiceDatePropertyTimezoneTo,omitempty"`
	// Invoice date range end
	DueDateFrom Date `schema:"dueDateFrom,omitempty"`
	// deprecated
	// Due date range start
	DueDateTo Date `schema:"dueDateTo,omitempty"`
	// deprecated
	// Due date range end
	DueDatePropertyTimezoneFrom Date `schema:"dueDatePropertyTimezoneFrom,omitempty"`
	// Due date range start
	DueDatePropertyTimezoneTo Date `schema:"dueDatePropertyTimezoneTo,omitempty"`
	// Due date range end
	AmountFrom float64 `schema:"amountFrom,omitempty"`
	// Minimum document amount
	AmountTo float64 `schema:"amountTo,omitempty"`
	// Maximum document amount
	BalanceFrom float64 `schema:"balanceFrom,omitempty"`
	// Minimum document balance
	BalanceTo float64 `schema:"balanceTo,omitempty"`
}

func (GetFiscalDocumentsQueryParams) ToURLValues

func (p GetFiscalDocumentsQueryParams) ToURLValues() (url.Values, error)

type GetFiscalDocumentsRequest

type GetFiscalDocumentsRequest struct {
	// contains filtered or unexported fields
}

func (*GetFiscalDocumentsRequest) All

func (*GetFiscalDocumentsRequest) Do

func (*GetFiscalDocumentsRequest) Method

func (r *GetFiscalDocumentsRequest) Method() string

func (*GetFiscalDocumentsRequest) NewResponseBody

func (*GetFiscalDocumentsRequest) PathParams

func (*GetFiscalDocumentsRequest) QueryParams

func (*GetFiscalDocumentsRequest) RequestBody

func (*GetFiscalDocumentsRequest) SetMethod

func (r *GetFiscalDocumentsRequest) SetMethod(method string)

func (*GetFiscalDocumentsRequest) SetRequestBody

func (*GetFiscalDocumentsRequest) URL

type GetFiscalDocumentsRequestBody

type GetFiscalDocumentsRequestBody struct {
}

type GetFiscalDocumentsResponseBody

type GetFiscalDocumentsResponseBody struct {
	NextPageToken string `json:"nextPageToken"`

	FiscalDocuments []struct {
		ID                          string  `json:"id"`                          // Fiscal document unique identifier
		Number                      string  `json:"number"`                      // Fiscal document number
		PropertyID                  string  `json:"propertyId"`                  // Property unique identifier
		UserID                      string  `json:"userId"`                      // User unique identifier who created the fiscal document
		UserFullName                string  `json:"userFullName"`                // User full name who created the fiscal document
		SourceName                  string  `json:"sourceName"`                  // Source of the fiscal document
		SourceID                    string  `json:"sourceId"`                    // Source unique identifier
		SourceKind                  string  `json:"sourceKind"`                  // Source kind (GROUP_PROFILE RESERVATION HOUSE_ACCOUNT ACCOUNTS_RECEIVABLE_LEDGER )
		Kind                        string  `json:"kind"`                        // Kind of fiscal document (INVOICE CREDIT_NOTE RECEIPT RECTIFY_INVOICE PRO_FORMA_INVOICE REFUND_RECEIPT INVOICE_RECEIPT)
		InvoiceDate                 Date    `json:"invoiceDate"`                 // Invoice date (deprecated)
		InvoiceDatePropertyTimezone Date    `json:"invoiceDatePropertyTimezone"` // Invoice date in property timezone
		FileName                    string  `json:"fileName"`                    // Name of the fiscal document file
		Amount                      float64 `json:"amount"`                      // Total amount of the fiscal document
		Balance                     float64 `json:"balance"`                     // Remaining balance of the fiscal document
		DueDate                     *Date   `json:"dueDate"`                     // Due date (deprecated)
		DueDatePropertyTimezone     *Date   `json:"dueDatePropertyTimezone"`     // Due date in property timezone

		Recipients []struct {
			ID          string `json:"id"`          // Recipient unique identifier
			FirstName   string `json:"firstName"`   // Recipient first name
			LastName    string `json:"lastName"`    // Recipient last name
			Email       string `json:"email"`       // Recipient email address
			Type        string `json:"type"`        // Recipient type (COMPANY PERSON MANUAL)
			CompanyName string `json:"companyName"` // Company name if recipient is a company
		} `json:"recipients"` // List of recipients associated with the fiscal document

		Status     string   `json:"status"`     // Fiscal document status (COMPLETED VOIDED PAID PENDING_INTEGRATION PARTIALLY_PAID COMPLETED_INTEGRATION FAILED_INTEGRATION CORRECTION_NEEDED CANCELED CANCEL_REQUESTED OPEN REQUESTED VOID_REQUESTED FAILED MANUALLY_RECONCILED REJECTED ACCEPTED PENDING_TRANSACTION)
		Origin     string   `json:"origin"`     // Origin of the fiscal document
		ExternalID string   `json:"externalId"` // External identifier related to the fiscal document
		FailReason string   `json:"failReason"` // Reason for failure if the fiscal document generation failed
		Method     string   `json:"method"`     // Method used for the fiscal document (VOID ADJUSTMENT)
		CreatedAt  DateTime `json:"createdAt"`  // Creation date-time of the fiscal document
		ParentID   string   `json:"parentId"`   // Parent fiscal document ID if applicable
		UpdatedAt  DateTime `json:"updatedAt"`  // Last update date-time of the fiscal document

		GovernmentIntegration struct {
			Number string `json:"number"` // Government integration number
			Series string `json:"series"` // Government integration series
			Status string `json:"status"` // Government integration status
			QR     struct {
				URL    string `json:"url"`    // QR code URL
				String string `json:"string"` // QR code string representation
			}
			URL                              string `json:"url"`                              // URL to access the fiscal document on the government portal
			OfficialID                       string `json:"officialId"`                       // Official ID provided by the government
			ExternalID                       string `json:"externalId"`                       // External ID related to the government integration
			RectifyingInvoiceType            string `json:"rectifyingInvoiceType"`            // Type of rectifying invoice if applicable
			CancellationFailedFallbackStatus string `json:"cancellationFailedFallbackStatus"` // Status of the fiscal document (COMPLETED VOIDED PAID PENDING_INTEGRATION PARTIALLY_PAID COMPLETED_INTEGRATION FAILED_INTEGRATION CORRECTION_NEEDED CANCELED CANCEL_REQUESTED OPEN REQUESTED VOID_REQUESTED FAILED MANUALLY_RECONCILED REJECTED ACCEPTED PENDING_TRANSACTION)
			PDFFileBase64                    string `json:"pdfFileBase64"`                    // Base64-encoded PDF file content. Only allowed when status is COMPLETED_INTEGRATION.
			Handwritten                      bool   `json:"handwritten"`                      // Indicates this is a handwritten receipt created during POS unavailability.
		}
		LatestLinkedDocument struct {
			ID        string   `json:"id"`        // ID of the latest linked document
			Number    string   `json:"number"`    // Number of the latest linked document
			CreatedAt DateTime `json:"createdAt"` // Creation date of the latest linked document
			Kind      string   `json:"kind"`      // Kind of fiscal document (INVOICE CREDIT_NOTE RECEIPT RECTIFY_INVOICE PRO_FORMA_INVOICE REFUND_RECEIPT INVOICE_RECEIPT)
			Status    string   `json:"status"`    // Status of the fiscal document (COMPLETED VOIDED PAID PENDING_INTEGRATION PARTIALLY_PAID COMPLETED_INTEGRATION FAILED_INTEGRATION CORRECTION_NEEDED CANCELED CANCEL_REQUESTED OPEN REQUESTED VOID_REQUESTED FAILED MANUALLY_RECONCILED REJECTED ACCEPTED PENDING_TRANSACTION)
		} // Information about the latest document in a rectification chain

		LinkedDocuments []struct {
			ID               string   `json:"id"`               // ID of the linked document
			Number           string   `json:"number"`           // Number of the linked document
			CreatedAt        DateTime `json:"createdAt"`        // Creation date of the linked document
			Kind             string   `json:"kind"`             // Kind of fiscal document (INVOICE CREDIT_NOTE RECEIPT RECTIFY_INVOICE PRO_FORMA_INVOICE REFUND_RECEIPT INVOICE_RECEIPT)
			Status           string   `json:"status"`           // Status of the fiscal document (COMPLETED VOIDED PAID PENDING_INTEGRATION PARTIALLY_PAID COMPLETED_INTEGRATION FAILED_INTEGRATION CORRECTION_NEEDED CANCELED CANCEL_REQUESTED OPEN REQUESTED VOID_REQUESTED FAILED MANUALLY_RECONCILED REJECTED ACCEPTED PENDING_TRANSACTION)
			IsLatest         bool     `json:"isLatest"`         // Whether this is the latest document in the chain
			RelationshipType string   `json:"relationshipType"` // The relationship type - PARENT means this document is linked to the current document, CHILD means the current document is linked to this one (PARENT CHILD)
		} // List of documents linked to this fiscal document (both parent and child relationships)

		Actions []struct {
			Type string `json:"type"` // Action that can be performed on a fiscal document (CANCEL RECTIFY DOWNLOAD CREDIT_NOTE VOID VOID_AND_REFUND ADD_PAYMENT APPLY_TO_INVOICE)
		} // Returns the list of actions available for the transaction

		SourceIdentifier string `json:"sourceIdentifier"` // Reservation Identifier or a group code
		Simplified       bool   `json:"simplified"`       // Applies to invoices only.

	} `json:"fiscalDocuments"`
}

type GetHotelDetailsPathParams

type GetHotelDetailsPathParams struct {
}

func (*GetHotelDetailsPathParams) Params

func (p *GetHotelDetailsPathParams) Params() map[string]string

type GetHotelDetailsQueryParams

type GetHotelDetailsQueryParams struct {
}

func (GetHotelDetailsQueryParams) ToURLValues

func (p GetHotelDetailsQueryParams) ToURLValues() (url.Values, error)

type GetHotelDetailsRequest

type GetHotelDetailsRequest struct {
	// contains filtered or unexported fields
}

func (*GetHotelDetailsRequest) Do

func (*GetHotelDetailsRequest) Method

func (r *GetHotelDetailsRequest) Method() string

func (*GetHotelDetailsRequest) NewResponseBody

func (*GetHotelDetailsRequest) PathParams

func (*GetHotelDetailsRequest) QueryParams

func (*GetHotelDetailsRequest) RequestBody

func (*GetHotelDetailsRequest) SetMethod

func (r *GetHotelDetailsRequest) SetMethod(method string)

func (*GetHotelDetailsRequest) SetRequestBody

func (r *GetHotelDetailsRequest) SetRequestBody(body GetHotelDetailsRequestBody)

func (*GetHotelDetailsRequest) URL

func (r *GetHotelDetailsRequest) URL() url.URL

type GetHotelDetailsRequestBody

type GetHotelDetailsRequestBody struct {
}

type GetHotelDetailsResponseBody

type GetHotelDetailsResponseBody struct {
	Success bool   `json:"success"`
	Count   int    `json:"count"`
	Total   int    `json:"total"`
	Message string `json:"message"`
	Data    struct {
		PropertyID    string `json:"propertyID"`
		PropertyName  string `json:"propertyName"`
		PropertyImage []struct {
			Thumb string `json:"thumb"`
			Image string `json:"image"`
		} `json:"propertyImage"`
		PropertyDescription string `json:"propertyDescription"`
		PropertyCurrency    struct {
			CurrencyCode     string `json:"currencyCode"`
			CurrencySymbol   string `json:"currencySymbol"`
			CurrencyPosition string `json:"currencyPosition"`
		} `json:"propertyCurrency"`
		PropertyAdditionalPhotos []struct {
			Thumb string `json:"thumb"`
			Image string `json:"image"`
		} `json:"propertyAdditionalPhotos"`
		PropertyPhone   string `json:"propertyPhone"`
		PropertyEmail   string `json:"propertyEmail"`
		PropertyAddress struct {
			PropertyAddress1  string `json:"propertyAddress1"`
			PropertyAddress2  string `json:"propertyAddress2"`
			PropertyCity      string `json:"propertyCity"`
			PropertyState     string `json:"propertyState"`
			PropertyZip       string `json:"propertyZip"`
			PropertyCountry   string `json:"propertyCountry"`
			PropertyLatitude  string `json:"propertyLatitude"`
			PropertyLongitude string `json:"propertyLongitude"`
		} `json:"propertyAddress"`
		PropertyPolicy struct {
			PropertyCheckInTime         string `json:"propertyCheckInTime"`
			PropertyCheckOutTime        string `json:"propertyCheckOutTime"`
			PropertyLateCheckOutAllowed bool   `json:"propertyLateCheckOutAllowed"`
			PropertyLateCheckOutType    string `json:"propertyLateCheckOutType"`
			PropertyLateCheckOutValue   string `json:"propertyLateCheckOutValue"`
			PropertyTermsAndConditions  string `json:"propertyTermsAndConditions"`
		} `json:"propertyPolicy"`
		PropertyAmenities []string `json:"propertyAmenities"`
	} `json:"data"`
}

type GetHotelsPathParams

type GetHotelsPathParams struct {
}

func (*GetHotelsPathParams) Params

func (p *GetHotelsPathParams) Params() map[string]string

type GetHotelsQueryParams

type GetHotelsQueryParams struct {
}

func (GetHotelsQueryParams) ToURLValues

func (p GetHotelsQueryParams) ToURLValues() (url.Values, error)

type GetHotelsRequest

type GetHotelsRequest struct {
	// contains filtered or unexported fields
}

func (*GetHotelsRequest) Do

func (*GetHotelsRequest) Method

func (r *GetHotelsRequest) Method() string

func (*GetHotelsRequest) NewResponseBody

func (r *GetHotelsRequest) NewResponseBody() *GetHotelsResponseBody

func (*GetHotelsRequest) PathParams

func (r *GetHotelsRequest) PathParams() *GetHotelsPathParams

func (*GetHotelsRequest) QueryParams

func (r *GetHotelsRequest) QueryParams() *GetHotelsQueryParams

func (*GetHotelsRequest) RequestBody

func (r *GetHotelsRequest) RequestBody() *GetHotelsRequestBody

func (*GetHotelsRequest) SetMethod

func (r *GetHotelsRequest) SetMethod(method string)

func (*GetHotelsRequest) SetRequestBody

func (r *GetHotelsRequest) SetRequestBody(body GetHotelsRequestBody)

func (*GetHotelsRequest) URL

func (r *GetHotelsRequest) URL() url.URL

type GetHotelsRequestBody

type GetHotelsRequestBody struct {
}

type GetHotelsResponseBody

type GetHotelsResponseBody struct {
	Success bool   `json:"success"`
	Count   int    `json:"count"`
	Total   int    `json:"total"`
	Message string `json:"message"`
	Data    []struct {
		PropertyID          string `json:"propertyID"`
		OrganizationID      string `json:"organizationID"`
		PropertyName        string `json:"propertyName"`
		PropertyImage       string `json:"propertyImage"`
		PropertyDescription string `json:"propertyDescription"`
		PropertyTimezone    string `json:"propertyTimezone"`
		PropertyCurrency    struct {
			CurrencyCode     string `json:"currencyCode"`
			CurrencySymbol   string `json:"currencySymbol"`
			CurrencyPosition string `json:"currencyPosition"`
		} `json:"propertyCurrency"`
	} `json:"data"`
}

type GetInternalTransactionCodesPathParams

type GetInternalTransactionCodesPathParams struct {
}

func (*GetInternalTransactionCodesPathParams) Params

type GetInternalTransactionCodesQueryParams

type GetInternalTransactionCodesQueryParams struct {
}

func (GetInternalTransactionCodesQueryParams) ToURLValues

type GetInternalTransactionCodesRequest

type GetInternalTransactionCodesRequest struct {
	// contains filtered or unexported fields
}

func (*GetInternalTransactionCodesRequest) Do

func (*GetInternalTransactionCodesRequest) Method

func (*GetInternalTransactionCodesRequest) NewResponseBody

func (*GetInternalTransactionCodesRequest) PathParams

func (*GetInternalTransactionCodesRequest) QueryParams

func (*GetInternalTransactionCodesRequest) RequestBody

func (*GetInternalTransactionCodesRequest) SetMethod

func (r *GetInternalTransactionCodesRequest) SetMethod(method string)

func (*GetInternalTransactionCodesRequest) SetRequestBody

func (*GetInternalTransactionCodesRequest) URL

type GetInternalTransactionCodesRequestBody

type GetInternalTransactionCodesRequestBody struct{}

type GetInternalTransactionCodesResponseBody

type GetInternalTransactionCodesResponseBody struct {
	Content InternalTransactionCodes `json:"content"`
}

type GetPaymentsPathParams

type GetPaymentsPathParams struct {
}

func (*GetPaymentsPathParams) Params

func (p *GetPaymentsPathParams) Params() map[string]string

type GetPaymentsQueryParams

type GetPaymentsQueryParams struct {
	// ID for the reservation to be queried.
	ReservationID string `schema:"reservationID"`
	// ID for the house account to be queried.
	HouseAccountID int `schema:"houseAccountID"`
	// ID for the guest to be queried.
	GuestID int `schema:"guestID"`
	// Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.
	CreatedFrom DateTime `schema:"createdFrom,omitempty"`
	// Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.
	CreatedTo DateTime `schema:"createdTo,omitempty"`
	// Adds payment allocation to response, when available.
	// Standaard waarde: false
	IncludePaymentAllocation bool `schema:"includePaymentAllocation,omitempty"`
	// Page number
	// Standaard waarde: 1
	PageNumber int `schema:"pageNumber,omitempty"`
	// Page size
	// Standaard waarde: 100
	PageSize int `schema:"pageSize,omitempty"`
}

func (GetPaymentsQueryParams) ToURLValues

func (p GetPaymentsQueryParams) ToURLValues() (url.Values, error)

type GetPaymentsRequest

type GetPaymentsRequest struct {
	// contains filtered or unexported fields
}

func (*GetPaymentsRequest) Do

func (*GetPaymentsRequest) Method

func (r *GetPaymentsRequest) Method() string

func (*GetPaymentsRequest) NewResponseBody

func (r *GetPaymentsRequest) NewResponseBody() *GetPaymentsResponseBody

func (*GetPaymentsRequest) PathParams

func (r *GetPaymentsRequest) PathParams() *GetPaymentsPathParams

func (*GetPaymentsRequest) QueryParams

func (r *GetPaymentsRequest) QueryParams() *GetPaymentsQueryParams

func (*GetPaymentsRequest) RequestBody

func (r *GetPaymentsRequest) RequestBody() *GetPaymentsRequestBody

func (*GetPaymentsRequest) SetMethod

func (r *GetPaymentsRequest) SetMethod(method string)

func (*GetPaymentsRequest) SetRequestBody

func (r *GetPaymentsRequest) SetRequestBody(body GetPaymentsRequestBody)

func (*GetPaymentsRequest) URL

func (r *GetPaymentsRequest) URL() url.URL

type GetPaymentsRequestBody

type GetPaymentsRequestBody struct {
}

type GetPaymentsResponseBody

type GetPaymentsResponseBody struct {
	Success bool   `json:"success"`
	Count   int    `json:"count"`
	Total   int    `json:"total"`
	Message string `json:"message"`
	Data    []struct {
	} `json:"data"`
}

type GetReportsQueryDataPathParams

type GetReportsQueryDataPathParams struct {
}

func (*GetReportsQueryDataPathParams) Params

type GetReportsQueryDataQueryParams

type GetReportsQueryDataQueryParams struct {
	Format string `schema:"format,omitempty"`
	Mode   string `schema:"mode"`
}

func (GetReportsQueryDataQueryParams) ToURLValues

func (p GetReportsQueryDataQueryParams) ToURLValues() (url.Values, error)

type GetReportsQueryDataRequest

type GetReportsQueryDataRequest struct {
	// contains filtered or unexported fields
}

func (*GetReportsQueryDataRequest) Do

func (*GetReportsQueryDataRequest) Method

func (r *GetReportsQueryDataRequest) Method() string

func (*GetReportsQueryDataRequest) NewResponseBody

func (*GetReportsQueryDataRequest) PathParams

func (*GetReportsQueryDataRequest) QueryParams

func (*GetReportsQueryDataRequest) RequestBody

func (*GetReportsQueryDataRequest) SetMethod

func (r *GetReportsQueryDataRequest) SetMethod(method string)

func (*GetReportsQueryDataRequest) SetRequestBody

func (*GetReportsQueryDataRequest) URL

type GetReportsQueryDataRequestBody

type GetReportsQueryDataRequestBody struct {
	PropertyIds  []string          `json:"property_ids"`
	DatasetID    int               `json:"dataset_id"`
	Columns      []QueryDataColumn `json:"columns"`
	GroupRows    interface{}       `json:"group_rows"`
	GroupColumns interface{}       `json:"group_columns"`
	CustomCdfs   interface{}       `json:"custom_cdfs"`
	Filters      QueryDataFilters  `json:"filters"`
	Sort         interface{}       `json:"sort"`
	Settings     struct {
		Details   bool `json:"details"`
		Totals    bool `json:"totals"`
		Transpose bool `json:"transpose"`
	} `json:"settings"`
	Periods         interface{}   `json:"periods"`
	Comparisons     interface{}   `json:"comparisons"`
	Formats         interface{}   `json:"formats"`
	CustomFieldCdfs []interface{} `json:"custom_field_cdfs"`
}

type GetReportsQueryDataResponseBody

type GetReportsQueryDataResponseBody struct {
	Headers         []string         `json:"headers"`
	Index           [][]string       `json:"index"`
	GroupRows       []string         `json:"group_rows"`
	GroupColumns    []string         `json:"group_columns"`
	Periods         []string         `json:"periods"`
	Records         map[string][]any `json:"records"`
	Subtotals       any              `json:"subtotals"`
	Totals          any              `json:"totals"`
	Type            string           `json:"type"`
	Comparisons     []string         `json:"comparisons"`
	AggregatedCount int              `json:"aggregated_count"`
}

type GetReservationPathParams

type GetReservationPathParams struct {
}

func (*GetReservationPathParams) Params

func (p *GetReservationPathParams) Params() map[string]string

type GetReservationQueryParams

type GetReservationQueryParams struct {
	// ID for the properties to be queried (comma-separated).  It can be omitted
	// if the API key is single-property, or to get results from all properties
	// on an association.
	PropertyID int `schema:"propertyID,omitempty"`
	// Reservation Unique Identifier. Obtained from one of the "Reservations" group methods
	ReservationID string `schema:"reservationID,omitempty"`
	// Includes guest requirements data in the response.
	// Defaults to false
	IncludeGuestRequirements bool `schema:"includeGuestRequirements,omitempty"`
}

func (GetReservationQueryParams) ToURLValues

func (p GetReservationQueryParams) ToURLValues() (url.Values, error)

type GetReservationRequest

type GetReservationRequest struct {
	// contains filtered or unexported fields
}

func (*GetReservationRequest) Do

func (*GetReservationRequest) Method

func (r *GetReservationRequest) Method() string

func (*GetReservationRequest) NewResponseBody

func (r *GetReservationRequest) NewResponseBody() *GetReservationResponseBody

func (*GetReservationRequest) PathParams

func (*GetReservationRequest) QueryParams

func (*GetReservationRequest) RequestBody

func (*GetReservationRequest) SetMethod

func (r *GetReservationRequest) SetMethod(method string)

func (*GetReservationRequest) SetRequestBody

func (r *GetReservationRequest) SetRequestBody(body GetReservationRequestBody)

func (*GetReservationRequest) URL

func (r *GetReservationRequest) URL() url.URL

type GetReservationRequestBody

type GetReservationRequestBody struct {
}

type GetReservationResponseBody

type GetReservationResponseBody struct {
	Success bool        `json:"success"`
	Count   int         `json:"count"`
	Total   int         `json:"total"`
	Message string      `json:"message"`
	Data    Reservation `json:"data"`
}

type GetReservationsPathParams

type GetReservationsPathParams struct {
}

func (*GetReservationsPathParams) Params

func (p *GetReservationsPathParams) Params() map[string]string

type GetReservationsQueryParams

type GetReservationsQueryParams struct {
	// ID for the properties to be queried (comma-separated).  It can be omitted
	// if the API key is single-property, or to get results from all properties
	// on an association.
	PropertyID string `schema:"propertyID,omitempty"`
	// Filter by current reservation status
	// Toegestane waarden: "not_confirmed", "confirmed", "canceled",
	// "checked_in", "checked_out", "no_show"
	Status Status `schema:"status,omitempty"`
	// 	Inferior limit datetime, used to filter reservations, based on booking
	// 	date
	ResultsFrom DateTime `schema:"resultsFrom,omitempty"`
	// Superior limit datetime, used to filter reservations, based on booking date
	ResultsTo DateTime `schema:"resultsTo,omitempty"`
	// Inferior limit datetime, used to filter reservations, based on booking modification date
	ModifiedFrom DateTime `schema:"modifiedFrom,omitempty"`
	// Superior limit datetime, used to filter reservations, based on booking modification date
	ModifiedTo DateTime `schema:"modifiedTo,omitempty"`
	// Filters reservations result to return only reservations with check-in
	// date range starting on this date
	CheckinFrom DateTime `schema:"checkinFrom,omitempty"`
	// Filters reservations result to return only reservations with check-in
	// date range ending on this date
	CheckinTo DateTime `schema:"checkinTo,omitempty"`
	// Filters reservations result to return only reservations with check-out
	// date range starting on this date
	CheckoutFrom DateTime `schema:"checkoutFrom,omitempty"`
	// Filters reservations result to return only reservations with check-out
	// date range ending on this date
	CheckoutTo DateTime `schema:"checkoutTo,omitempty"`
	// Filters reservation with the supplied room ID. CheckIn/checkOut dates OR
	// status are required. If dates are provided and span more than one day,
	// more than one reservation can be returned. If roomID supplied, roomName
	// is ignored.
	RoomID string `schema:"roomID,omitempty"`
	// Filters reservation with the supplied room name (customizable by each
	// property). CheckIn/checkOut dates OR status are required. If dates are
	// provided and span more than one day, more than one reservation can be
	// returned.
	RoomName string `schema:"roomName,omitempty"`
	// If guests details should be included or not
	// Standaard waarde: false
	IncludeGuestsDetails Bool `schema:"includeGuestsDetails,omitempty"`
	// Sort response results by most recent action
	SortByRecent bool `schema:"sortByRecent,omitempty"`
	// Results page number
	// Standaard waarde: 1
	PageNumber int `schema:"pageNumber,omitempty"`
	// Results page size. Max = 100
	// Standaard waarde: 100
	PageSize int `schema:"pageSize,omitempty"`
}

func (GetReservationsQueryParams) ToURLValues

func (p GetReservationsQueryParams) ToURLValues() (url.Values, error)

type GetReservationsRequest

type GetReservationsRequest struct {
	// contains filtered or unexported fields
}

func (*GetReservationsRequest) All

func (*GetReservationsRequest) Do

func (*GetReservationsRequest) Method

func (r *GetReservationsRequest) Method() string

func (*GetReservationsRequest) NewResponseBody

func (*GetReservationsRequest) PathParams

func (*GetReservationsRequest) QueryParams

func (*GetReservationsRequest) RequestBody

func (*GetReservationsRequest) SetMethod

func (r *GetReservationsRequest) SetMethod(method string)

func (*GetReservationsRequest) SetRequestBody

func (r *GetReservationsRequest) SetRequestBody(body GetReservationsRequestBody)

func (*GetReservationsRequest) URL

func (r *GetReservationsRequest) URL() url.URL

type GetReservationsRequestBody

type GetReservationsRequestBody struct {
}

type GetReservationsResponseBody

type GetReservationsResponseBody struct {
	Success bool         `json:"success"`
	Count   int          `json:"count"`
	Total   int          `json:"total"`
	Message string       `json:"message"`
	Data    Reservations `json:"data"`
}

type GetTransactionsPathParams

type GetTransactionsPathParams struct {
}

func (*GetTransactionsPathParams) Params

func (p *GetTransactionsPathParams) Params() map[string]string

type GetTransactionsQueryParams

type GetTransactionsQueryParams struct {
}

func (GetTransactionsQueryParams) ToURLValues

func (p GetTransactionsQueryParams) ToURLValues() (url.Values, error)

type GetTransactionsRequest

type GetTransactionsRequest struct {
	// contains filtered or unexported fields
}

func (*GetTransactionsRequest) All

func (*GetTransactionsRequest) Do

func (*GetTransactionsRequest) Method

func (r *GetTransactionsRequest) Method() string

func (*GetTransactionsRequest) NewResponseBody

func (*GetTransactionsRequest) PathParams

func (*GetTransactionsRequest) QueryParams

func (*GetTransactionsRequest) RequestBody

func (*GetTransactionsRequest) SetMethod

func (r *GetTransactionsRequest) SetMethod(method string)

func (*GetTransactionsRequest) SetRequestBody

func (r *GetTransactionsRequest) SetRequestBody(body GetTransactionsRequestBody)

func (*GetTransactionsRequest) URL

func (r *GetTransactionsRequest) URL() url.URL

type GetTransactionsRequestBody

type GetTransactionsRequestBody struct {
	Filters   Filters `json:"filters,omitempty"`
	PageToken string  `json:"pageToken,omitempty"`
	Limit     int     `json:"limit,omitempty"`
	Sort      []Sort  `json:"sort,omitempty"`
}

type GetTransactionsResponseBody

type GetTransactionsResponseBody struct {
	Transactions  []Transaction `json:"transactions"`
	NextPageToken string        `json:"nextPageToken"`
}

type GetTrialBalanceReportPathParams

type GetTrialBalanceReportPathParams struct {
}

func (*GetTrialBalanceReportPathParams) Params

type GetTrialBalanceReportQueryParams

type GetTrialBalanceReportQueryParams struct {
	Date Date `schema:"date"`
}

func (GetTrialBalanceReportQueryParams) ToURLValues

func (p GetTrialBalanceReportQueryParams) ToURLValues() (url.Values, error)

type GetTrialBalanceReportRequest

type GetTrialBalanceReportRequest struct {
	// contains filtered or unexported fields
}

func (*GetTrialBalanceReportRequest) Do

func (*GetTrialBalanceReportRequest) Method

func (*GetTrialBalanceReportRequest) NewResponseBody

func (*GetTrialBalanceReportRequest) PathParams

func (*GetTrialBalanceReportRequest) QueryParams

func (*GetTrialBalanceReportRequest) RequestBody

func (*GetTrialBalanceReportRequest) SetMethod

func (r *GetTrialBalanceReportRequest) SetMethod(method string)

func (*GetTrialBalanceReportRequest) SetRequestBody

func (*GetTrialBalanceReportRequest) URL

type GetTrialBalanceReportRequestBody

type GetTrialBalanceReportRequestBody struct {
}

type GetTrialBalanceReportResponseBody

type GetTrialBalanceReportResponseBody struct {
	TrialBalanceId string `json:"trialBalanceId"`
	Summary        struct {
		HotelOpeningBalance          float64 `json:"hotelOpeningBalance"`
		DepositActivity              float64 `json:"depositActivity"`
		GuestLedgerActivity          float64 `json:"guestLedgerActivity"`
		ArActivity                   float64 `json:"arActivity"`
		TotalActivity                float64 `json:"totalActivity"`
		HotelClosingBalance          float64 `json:"hotelClosingBalance"`
		GuestLedgerOpeningBalance    float64 `json:"guestLedgerOpeningBalance"`
		GuestLedgerTransactionsTotal float64 `json:"guestLedgerTransactionsTotal"`
		GuestLedgerDepositTransfers  float64 `json:"guestLedgerDepositTransfers"`
		GuestLedgerArTransfers       float64 `json:"guestLedgerArTransfers"`
		GuestLedgerClosingBalance    float64 `json:"guestLedgerClosingBalance"`
		OpeningBalance               float64 `json:"openingBalance"`
		TransactionsTotalAmount      float64 `json:"transactionsTotalAmount"`
		LedgerActivity               float64 `json:"ledgerActivity"`
		ArPayments                   float64 `json:"arPayments"`
		DepositTransfers             float64 `json:"depositTransfers"`
		ClosingBalance               float64 `json:"closingBalance"`
		ArTransfers                  float64 `json:"arTransfers"`
	} `json:"summary"`
	LedgerBalances struct {
		DepositLedger []struct {
			Code        *string `json:"code"`
			Description string  `json:"description"`
			Amount      float64 `json:"amount"`
		} `json:"depositLedger"`
		GuestLedger []struct {
			Code        *string `json:"code"`
			Description string  `json:"description"`
			Amount      float64 `json:"amount"`
		} `json:"guestLedger"`
		AccountsReceivable []struct {
			Code        *string `json:"code"`
			Description string  `json:"description"`
			Amount      float64 `json:"amount"`
		} `json:"accountsReceivable"`
	} `json:"ledgerBalances"`
	GuestLedger struct {
		Charges []struct {
			Code        string  `json:"code"`
			Description string  `json:"description"`
			Amount      float64 `json:"amount"`
		} `json:"charges"`
		Taxes []struct {
			Code        string  `json:"code"`
			Description string  `json:"description"`
			Amount      float64 `json:"amount"`
		} `json:"taxes"`
		Payments []interface{} `json:"payments"`
	} `json:"guestLedger"`
}

type GuestRequirements

type GuestRequirements struct {
}

func (GuestRequirements) IsZero

func (g GuestRequirements) IsZero() bool

type HourMinute

type HourMinute struct {
	Hour   int `json:"hour"`
	Minute int `json:"minute"`
}

func (HourMinute) IsZero

func (h HourMinute) IsZero() bool

func (HourMinute) MarshalJSON

func (h HourMinute) MarshalJSON() ([]byte, error)

func (*HourMinute) UnmarshalJSON

func (h *HourMinute) UnmarshalJSON(data []byte) error

type Int

type Int int

func (Int) MarshalJSON

func (i Int) MarshalJSON() ([]byte, error)

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(data []byte) error

type InternalTransactionCode

type InternalTransactionCode struct {
	ID          int    `json:"id"`
	Code        string `json:"code"`
	Description string `json:"description"`
	Group       string `json:"group"`
}

type InternalTransactionCodes

type InternalTransactionCodes []InternalTransactionCode

type Message

type Message struct {
	MessageCode string `json:"message_code"`
	MessageType string `json:"message_type"`
	Message     string `json:"message"`
}

type MessageErrorResponse

type MessageErrorResponse struct {
	// HTTP response that caused this error
	Response *http.Response `json:"-"`

	Message string
}

func (*MessageErrorResponse) Error

func (r *MessageErrorResponse) Error() string

type Messages

type Messages []Message

func (Messages) Error

func (msgs Messages) Error() string

type Oauth2Config

type Oauth2Config struct {
	oauth2.Config
}

func NewOauth2Config

func NewOauth2Config() *Oauth2Config

func (*Oauth2Config) SetBaseURL

func (c *Oauth2Config) SetBaseURL(baseURL *url.URL)

type Or

type Or struct {
	Operator string `json:"operator"`
	Value    string `json:"value"`
	Field    string `json:"field"`
}

type PathParams

type PathParams interface {
	Params() map[string]string
}

type QueryDataAnd

type QueryDataAnd struct {
	CDF      QueryDataCDF `json:"cdf"`
	Operator string       `json:"operator"`
	Value    string       `json:"value"`
}

type QueryDataCDF

type QueryDataCDF struct {
	Type         string `json:"type"`
	Column       string `json:"column"`
	MultiLevelID int    `json:"multi_level_id,omitempty"`
}

type QueryDataColumn

type QueryDataColumn struct {
	Cdf     QueryDataCDF `json:"cdf,omitempty"`
	Metrics []string     `json:"metrics,omitempty"`
}

type QueryDataFilters

type QueryDataFilters struct {
	And []QueryDataAnd `json:"and,omitempty"`
	Or  []QueryDataAnd `json:"or,omitempty"`
}

type RecipientAddress

type RecipientAddress struct {
	Address1 string `json:"address1,omitempty"` // Primary street address line
	Address2 string `json:"address2,omitempty"` // Secondary street address line (e.g. apartment, suite)
	City     string `json:"city,omitempty"`     // City name
	State    string `json:"state,omitempty"`    // State or province
	ZipCode  string `json:"zipCode,omitempty"`  // Postal or ZIP code
	Country  string `json:"country,omitempty"`  // Country code
}

RecipientAddress represents the address of a recipient

type RecipientCompany

type RecipientCompany struct {
	Name      string `json:"name,omitempty"`      // Legal name of the company
	TaxID     string `json:"taxId,omitempty"`     // Company tax identification number
	TaxIDType string `json:"taxIdType,omitempty"` // Type/classification of the tax ID
	Address1  string `json:"address1,omitempty"`  // Primary street address line
	Address2  string `json:"address2,omitempty"`  // Secondary street address line (e.g. suite, floor)
	City      string `json:"city,omitempty"`      // City name
	State     string `json:"state,omitempty"`     // State or province
	ZipCode   string `json:"zipCode,omitempty"`   // Postal or ZIP code
	Country   string `json:"country,omitempty"`   // Country code
}

RecipientCompany represents company information for a recipient

type RecipientContactDetails

type RecipientContactDetails struct {
	Phone     string `json:"phone,omitempty"`     // Primary phone number
	Gender    string `json:"gender,omitempty"`    // Gender of the recipient
	CellPhone string `json:"cellPhone,omitempty"` // Mobile/cell phone number
	Birthday  string `json:"birthday,omitempty"`  // Date of birth in date-time format (RFC3339)
}

RecipientContactDetails represents contact details for a recipient

type RecipientDocument

type RecipientDocument struct {
	Type           string `json:"type,omitempty"`           // Type of identity document (e.g. passport, national ID)
	Number         string `json:"number,omitempty"`         // Document identification number
	IssuingCountry string `json:"issuingCountry,omitempty"` // Country that issued the document
	IssueDate      string `json:"issueDate,omitempty"`      // Date the document was issued in date-time format (RFC3339)
	ExpirationDate string `json:"expirationDate,omitempty"` // Date the document expires in date-time format (RFC3339)
}

RecipientDocument represents an identity document for a recipient

type RecipientTaxInfo

type RecipientTaxInfo struct {
	ID          string `json:"id,omitempty"`          // Tax identification number of the recipient
	CompanyName string `json:"companyName,omitempty"` // Company name associated with the tax record
}

RecipientTaxInfo represents tax information for a recipient

type RecipientType

type RecipientType string

RecipientType represents the type of fiscal document recipient

const (
	RecipientTypeCompany RecipientType = "COMPANY"
	RecipientTypePerson  RecipientType = "PERSON"
	RecipientTypeManual  RecipientType = "MANUAL"
)

type RequestCompletionCallback

type RequestCompletionCallback func(*http.Request, *http.Response)

type Reservation

type Reservation struct {
	PropertyID           string          `json:"propertyID"`    // Properties identifier
	ReservationID        string          `json:"reservationID"` // Reservation's unique identifier
	DateCreated          DateTime        `json:"dateCreated"`
	DateModified         DateTime        `json:"dateModified"`
	EstimatedArrivalTime HourMinute      `json:"estimatedArrivalTime"`
	Source               string          `json:"source"`
	SourceID             string          `json:"sourceID"`
	Status               Status          `json:"status"`
	TotalRevenue         float64         `json:"totalRevenue"`
	GuestID              Int             `json:"guestID"`
	ProfileID            Int             `json:"profileID"`
	GuestName            string          `json:"guestName"`
	GuestEmail           string          `json:"guestEmail"`
	StartDate            Date            `json:"startDate"`
	EndDate              Date            `json:"endDate"`
	OrderID              string          `json:"orderID"`
	Origin               string          `json:"origin"`
	Cancellation         string          `json:"cancellation"`
	AllotmentBlockCode   string          `json:"allotmentBlockCode"`
	GroupCode            *string         `json:"groupCode"`
	Adults               Int             `json:"adults"`
	Children             Int             `json:"children"`
	Total                float64         `json:"total"`
	Balance              float64         `json:"balance"`
	BalanceDetailed      BalanceDetailed `json:"balanceDetailed"`
	Assigned             AssignedRooms   `json:"assigned"`
	Unassigned           AssignedRooms   `json:"unassigned"`
	CardsOnFile          CardsOnFile     `json:"cardsOnFile"`
	CustomFields         CustomFields    `json:"customFields"`
	SourceName           string          `json:"sourceName"` // Source of reservation
	ThirdPartyIdentifier string          `json:"thirdPartyIdentifier"`
	GuestList            map[string]struct {
		GuestID string `json:"guestID"` // ID of the guest

		GuestName                   string            `json:"guestName"`
		GuestFirstName              string            `json:"guestFirstName"`
		GuestLastName               string            `json:"guestLastName"`
		Guestgender                 string            `json:"guestGender"` // Toegestane waarden: "M", "F", "N/A"
		GuestEmail                  string            `json:"guestEmail"`
		GuestPhone                  string            `json:"guestPhone"`
		GuestCellPhone              string            `json:"guestCellPhone"`
		GuestAddress                string            `json:"guestAddress"`
		GuestAddress2               string            `json:"guestAddress2"`
		GuestCity                   string            `json:"guestCity"`
		GuestState                  string            `json:"guestState"`
		GuestStatus                 string            `json:"guestStatus"` // Toegestane waarden: "active", "inactive"
		GuestCountry                string            `json:"guestCountry"`
		GuestZip                    string            `json:"guestZip"`
		GuestBirthdate              Date              `json:"guestBirthdate"`
		GuestDocumentType           string            `json:"guestDocumentType"`
		GuestDocumentNumber         string            `json:"guestDocumentNumber"`
		GuestDocumentIssueDate      Date              `json:"guestDocumentIssueDate"`
		GuestDocumentIsseingCountry string            `json:"guestDocumentIssuingCountry"`
		GuestDocumentExpirationDate Date              `json:"guestDocumentExpirationDate"`
		TaxID                       string            `json:"taxID"`        //  Guest's tax ID
		CompanyTaxID                string            `json:"companyTaxID"` // Guest's company tax ID
		CompanyName                 string            `json:"companyName"`  // Guest's company name
		SubReservationID            string            `json:"subReservationID"`
		StartDate                   Date              `json:"startDate"`
		EndDate                     Date              `json:"endDate"`
		AssignedRoom                bool              `json:"assignedRoom"` // Returns true if guest has roomed assigned, false if not
		RoomID                      string            `json:"roomID"`       // Room ID where guest is assigned
		RoomName                    string            `json:"roomName"`     // Room Name where guest is assigned
		RoomTypeName                string            `json:"roomTypeName"` // Room Name where guest is assigned
		IsMainGuest                 bool              `json:"isMainGuest"`
		UnassignedRooms             AssignedRooms     `json:"unassignedRooms"` // List of all rooms that guest is assigned to but not yet checked in
		Rooms                       AssignedRooms     `json:"rooms"`           // List of all rooms that guest is assigned to
		GuestRequirements           GuestRequirements `json:"guestRequirements,omitzero"`
		CustomFields                CustomFields      `json:"customFields"`
		IsAnonymized                bool              `json:"isAnonymized"` //  Flag indicating the guest data was removed upon request
		ReservationRoomID           string            `json:"reservationRoomID"`
	} `json:"guestList"`
	IsAnonymized bool `json:"isAnonymized"` //  Flag indicating the guest data was removed upon request
}

type Reservations

type Reservations []Reservation

type Room

type Room struct {
	ReservationRoomID string `json:"reservationRoomID"`
	RoomTypeID        string `json:"roomTypeID"`
	RoomTypeName      string `json:"roomTypeName"` // Room Type Name where guest is assigned
	RoomTypeIsVirtual bool   `json:"roomTypeIsVirtual"`
	RoomID            string `json:"roomID"`           // Room ID where guest is assigned
	RoomName          string `json:"roomName"`         // Room Name where guest is assigned
	SubReservationID  string `json:"subReservationID"` // Sub Reservation ID where guest is assigned
}

type Rooms

type Rooms []Room

type SchemaMarshaler

type SchemaMarshaler interface {
	MarshalSchema() string
}

type Sort

type Sort struct {
	Field     string `json:"field,omitempty"`
	Direction string `json:"direction,omitempty"`
}

type Status

type Status string

type StringFloat

type StringFloat float64

func (*StringFloat) UnmarshalJSON

func (f *StringFloat) UnmarshalJSON(text []byte) (err error)

type ToURLValues

type ToURLValues interface {
	ToURLValues() (url.Values, error)
}

type Transaction

type Transaction struct {
	// Id of the transaction.
	ID string `json:"id"`
	// Property ID where the transaction was created.
	PropertyID string `json:"propertyId"`
	// Internal code for the transaction, managed by Cloudbeds.
	InternalTransactionCode string `json:"internalTransactionCode"`
	// Custom code for the transaction, managed by Property.
	CustomTransactionCode string `json:"customTransactionCode"`
	// Custom code for general ledger, managed by Property.
	GeneralLedgerCustomCode string `json:"generalLedgerCustomCode"`
	// Amount of the transaction.
	Amount float64 `json:"amount"`
	// Number of decimal places for the currency.
	CurrencyScale int `json:"currencyScale"`
	// Currency (ISO code) applied to the amount of the transaction.
	Currency string `json:"currency"`
	// Id of the user who perform the transaction, also know as guest id.
	CustomerID string `json:"customerId"`
	// Root Id of the transaction, it contains the id of the transaction that is related to it.
	RootID string `json:"rootId"`
	// Id of the transaction that is parent of this one. For example Tax on top of a rate, tax on top of a fee, etc.
	ParentID string `json:"parentId"`
	// Id of the source. It is related with the source_kind, so if sourceKind is RESERVATION, is the reservation id.
	SourceID string `json:"sourceId"`
	// Id of the sub source. At the moment only for reservations that is the booking_room_id.
	SubSourceID string `json:"subSourceId"`
	// Source Kind. At the moment only available:
	// - RESERVATION
	// - GROUP_PROFILE
	// - HOUSE_ACCOUNT
	// - ACCOUNTS_RECEIVABLE.
	SourceKind string  `json:"sourceKind"`
	Account    Account `json:"account,omitzero"`
	// External relation id, for example if the transaction is a payment it will contain payment id.
	ExternalRelationID string `json:"externalRelationId"`
	// Kind of the external relation id, for example if transaction is a payment it will contain PAYMENT.
	// - ROOM
	// - PAYMENT
	// - ITEM
	// - ITEM_POS
	// - ADDON
	// - RESERVATION
	// - ACCOUNTS_RECEIVABLE
	// - ROOM_REVENUE
	// - TAX
	// - FEE
	// - ADJUSTMENT
	// - PAYMENT_FEE
	ExternalRelationKind string `json:"externalRelationKind"`
	// Id of origin of the transaction. For example if the transaction is created based on a rate, is the rate id.
	OriginID string `json:"originId"`
	// Id of the transaction that was routed from. It can be null.
	RoutedFrom interface{} `json:"routedFrom"`
	// Amount of items purchased.
	Quantity int `json:"quantity"`
	// Description of the transaction.
	Description string `json:"description"`
	// ID of the user who created the transaction
	UserID string `json:"userId"`
	// Date time the source was created. (ISO 8601) in UTC
	SourceDatetime time.Time `json:"sourceDatetime"`
	// Date time when the transaction should be created at. (ISO 8601) in UTC
	TransactionDatetime time.Time `json:"transactionDatetime"`
	// Date time when the transaction should be created at base on the property timezone.
	TransactionDatetimePropertyTime time.Time `json:"transactionDatetimePropertyTime"`
	// Date when the posted transaction was created (property time).
	ServiceDate string `json:"serviceDate"`
	// Date time when the transaction was inserted on the database. (ISO 8601) in UTC
	CreatedAt time.Time `json:"createdAt"`
	// if source_kind = RESERVATION, this field will contain a reservation identifier. For a transaction with source_kind = GROUP_PROFILE, this field will contain a group code. For source_king = HOUSE_ACCOUNT it will be null.
	SourceIdentifier string `json:"sourceIdentifier"`
	// identifier of a booking room
	SubSourceIdentifier string `json:"subSourceIdentifier"`
	// Notes associated with the transaction
	Notes string `json:"notes"`
}

type TransactionFilter

type TransactionFilter string

type TransactionTaxes

type TransactionTaxes struct {
	ID                              string   `json:"id"`
	PropertyID                      string   `json:"propertyId"`
	SourceID                        string   `json:"sourceId"`
	SourceIdentifier                string   `json:"sourceIdentifier"`
	SourceKind                      string   `json:"sourceKind"`
	TransactionDate                 string   `json:"transactionDate"`
	GuestName                       string   `json:"guestName"`
	Description                     string   `json:"description"`
	InternalCode                    string   `json:"internalCode"`
	Amount                          float64  `json:"amount"`
	AvailableAmount                 float64  `json:"availableAmount"`
	DocumentFiscalizedAmount        *float64 `json:"documentFiscalizedAmount"`
	Currency                        string   `json:"currency"`
	DisplayAmount                   any      `json:"displayAmount"`
	DisplayCurrency                 any      `json:"displayCurrency"`
	DisplayAvailableAmount          any      `json:"displayAvailableAmount"`
	DisplayDocumentFiscalizedAmount *float64 `json:"displayDocumentFiscalizedAmount"`
	FolioID                         *string  `json:"folioId"`
	Status                          string   `json:"status"`
	PaidAmount                      *float64 `json:"paidAmount"`
	InvoicedStatus                  string   `json:"invoicedStatus"`
	Taxes                           any      `json:"taxes,omitempty"`
	Allocations                     []struct {
		ReceiptNumber string `json:"receiptNumber"`
	} `json:"allocations"`
}

type TransactionTaxesList

type TransactionTaxesList []TransactionTaxes

func (TransactionTaxesList) MarshalJSON

func (t TransactionTaxesList) MarshalJSON() ([]byte, error)

type URL

type URL url.URL

func NewURL

func NewURL(s string) (*URL, error)

func (URL) MarshalJSON

func (u URL) MarshalJSON() ([]byte, error)

func (URL) String

func (u URL) String() string

func (*URL) UnmarshalJSON

func (u *URL) UnmarshalJSON(data []byte) error

type UserinfoPathParams

type UserinfoPathParams struct {
}

func (*UserinfoPathParams) Params

func (p *UserinfoPathParams) Params() map[string]string

type UserinfoQueryParams

type UserinfoQueryParams struct {
}

func (UserinfoQueryParams) ToURLValues

func (p UserinfoQueryParams) ToURLValues() (url.Values, error)

type UserinfoRequest

type UserinfoRequest struct {
	// contains filtered or unexported fields
}

func (*UserinfoRequest) Do

func (*UserinfoRequest) Method

func (r *UserinfoRequest) Method() string

func (*UserinfoRequest) NewResponseBody

func (r *UserinfoRequest) NewResponseBody() *UserinfoResponseBody

func (*UserinfoRequest) PathParams

func (r *UserinfoRequest) PathParams() *UserinfoPathParams

func (*UserinfoRequest) QueryParams

func (r *UserinfoRequest) QueryParams() *UserinfoQueryParams

func (*UserinfoRequest) RequestBody

func (r *UserinfoRequest) RequestBody() *UserinfoRequestBody

func (*UserinfoRequest) SetMethod

func (r *UserinfoRequest) SetMethod(method string)

func (*UserinfoRequest) SetRequestBody

func (r *UserinfoRequest) SetRequestBody(body UserinfoRequestBody)

func (*UserinfoRequest) URL

func (r *UserinfoRequest) URL() url.URL

type UserinfoRequestBody

type UserinfoRequestBody struct {
}

type UserinfoResponseBody

type UserinfoResponseBody struct {
	UserID    int    `json:"user_id"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Email     string `json:"email"`
}

Jump to

Keyboard shortcuts

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