v3api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	DefaultAPI DefaultAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the STACKIT Cost API API v3.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *config.Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiGetCostsForProjectRequest

type ApiGetCostsForProjectRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiGetCostsForProjectRequest) Accept

Desired content type

func (ApiGetCostsForProjectRequest) Depth

Depth of desired cost information. \"project\" provides costs grouped by project, without services. \"service\" provides costs separated on service level.

func (ApiGetCostsForProjectRequest) Execute

func (ApiGetCostsForProjectRequest) From

Inclusive start date of the selection range. Internally, usages are recorded in UTC. This means all usages starting on and after 00:00:00 UTC on the specified date are included.

func (ApiGetCostsForProjectRequest) Granularity

Define granularity of costs – Default is \"none\" which does NOT include detailed report data. If \"monthly\", \"weekly\" or \"yearly\" is requested, the \"from\" parameter SHOULD be the first day and the \"to\" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If \"daily\" is requested, the date range defined by \"from\" and \"to\" MUST NOT be longer than 92 days.

func (ApiGetCostsForProjectRequest) IncludeZeroCosts

func (r ApiGetCostsForProjectRequest) IncludeZeroCosts(includeZeroCosts bool) ApiGetCostsForProjectRequest

Whether costs of 0 should be included in the response

func (ApiGetCostsForProjectRequest) To

Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included.

type ApiListCostsForCustomerRequest

type ApiListCostsForCustomerRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListCostsForCustomerRequest) Accept

Desired content type

func (ApiListCostsForCustomerRequest) Depth

Depth of desired cost information. \"project\" provides costs grouped by project, without services. \"service\" provides costs separated on service level.

func (ApiListCostsForCustomerRequest) Execute

func (ApiListCostsForCustomerRequest) From

Inclusive start date of the selection range. Internally, usages are recorded in UTC. This means all usages starting on and after 00:00:00 UTC on the specified date are included.

func (ApiListCostsForCustomerRequest) Granularity

Define granularity of costs – Default is \"none\" which does NOT include detailed report data. If \"monthly\", \"weekly\" or \"yearly\" is requested, the \"from\" parameter SHOULD be the first day and the \"to\" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If \"daily\" is requested, the date range defined by \"from\" and \"to\" MUST NOT be longer than 92 days.

func (ApiListCostsForCustomerRequest) IncludeZeroCosts

func (r ApiListCostsForCustomerRequest) IncludeZeroCosts(includeZeroCosts bool) ApiListCostsForCustomerRequest

Whether costs of 0 should be included in the response

func (ApiListCostsForCustomerRequest) To

Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included.

type ApiListCostsForResellerRequest

type ApiListCostsForResellerRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListCostsForResellerRequest) Accept

Desired content type

func (ApiListCostsForResellerRequest) Depth

Depth of desired cost information. \"project\" provides costs grouped by project, without services. \"service\" provides costs separated on service level.

func (ApiListCostsForResellerRequest) Execute

func (ApiListCostsForResellerRequest) From

Inclusive start date of the selection range. Internally, usages are recorded in UTC. This means all usages starting on and after 00:00:00 UTC on the specified date are included.

func (ApiListCostsForResellerRequest) Granularity

Define granularity of costs – Default is \"none\" which does NOT include detailed report data. If \"monthly\", \"weekly\" or \"yearly\" is requested, the \"from\" parameter SHOULD be the first day and the \"to\" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If \"daily\" is requested, the date range defined by \"from\" and \"to\" MUST NOT be longer than 92 days.

func (ApiListCostsForResellerRequest) IncludeZeroCosts

func (r ApiListCostsForResellerRequest) IncludeZeroCosts(includeZeroCosts bool) ApiListCostsForResellerRequest

Whether costs of 0 should be included in the response

func (ApiListCostsForResellerRequest) To

Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included.

type DefaultAPI

type DefaultAPI interface {

	/*
		GetCostsForProject V3 Costs for a certain project

		Get costs for a certain project in a customer account

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param customerAccountId ID of a customer account
		@param projectId ID of a project
		@return ApiGetCostsForProjectRequest
	*/
	GetCostsForProject(ctx context.Context, customerAccountId string, projectId string) ApiGetCostsForProjectRequest

	// GetCostsForProjectExecute executes the request
	//  @return ProjectCost
	GetCostsForProjectExecute(r ApiGetCostsForProjectRequest) (*ProjectCost, error)

	/*
		ListCostsForCustomer V3 Costs for all projects

		Get costs for all projects in a customer account

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param customerAccountId ID of a customer account
		@return ApiListCostsForCustomerRequest
	*/
	ListCostsForCustomer(ctx context.Context, customerAccountId string) ApiListCostsForCustomerRequest

	// ListCostsForCustomerExecute executes the request
	//  @return []ProjectCost
	ListCostsForCustomerExecute(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)

	/*
		ListCostsForReseller V3 Costs for all projects of all related sub-customers

		Get costs for all projects of all related sub-customer accounts

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param customerAccountId ID of a customer account
		@return ApiListCostsForResellerRequest
	*/
	ListCostsForReseller(ctx context.Context, customerAccountId string) ApiListCostsForResellerRequest

	// ListCostsForResellerExecute executes the request
	//  @return []ProjectCost
	ListCostsForResellerExecute(r ApiListCostsForResellerRequest) ([]ProjectCost, error)
}

type DefaultAPIService

type DefaultAPIService service

DefaultAPIService DefaultAPI service

func (*DefaultAPIService) GetCostsForProject

func (a *DefaultAPIService) GetCostsForProject(ctx context.Context, customerAccountId string, projectId string) ApiGetCostsForProjectRequest

GetCostsForProject V3 Costs for a certain project

Get costs for a certain project in a customer account

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param customerAccountId ID of a customer account
@param projectId ID of a project
@return ApiGetCostsForProjectRequest

func (*DefaultAPIService) GetCostsForProjectExecute

func (a *DefaultAPIService) GetCostsForProjectExecute(r ApiGetCostsForProjectRequest) (*ProjectCost, error)

Execute executes the request

@return ProjectCost

func (*DefaultAPIService) ListCostsForCustomer

func (a *DefaultAPIService) ListCostsForCustomer(ctx context.Context, customerAccountId string) ApiListCostsForCustomerRequest

ListCostsForCustomer V3 Costs for all projects

Get costs for all projects in a customer account

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param customerAccountId ID of a customer account
@return ApiListCostsForCustomerRequest

func (*DefaultAPIService) ListCostsForCustomerExecute

func (a *DefaultAPIService) ListCostsForCustomerExecute(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)

Execute executes the request

@return []ProjectCost

func (*DefaultAPIService) ListCostsForReseller

func (a *DefaultAPIService) ListCostsForReseller(ctx context.Context, customerAccountId string) ApiListCostsForResellerRequest

ListCostsForReseller V3 Costs for all projects of all related sub-customers

Get costs for all projects of all related sub-customer accounts

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param customerAccountId ID of a customer account
@return ApiListCostsForResellerRequest

func (*DefaultAPIService) ListCostsForResellerExecute

func (a *DefaultAPIService) ListCostsForResellerExecute(r ApiListCostsForResellerRequest) ([]ProjectCost, error)

Execute executes the request

@return []ProjectCost

type DefaultAPIServiceMock

type DefaultAPIServiceMock struct {
	// GetCostsForProjectExecuteMock can be populated to implement the behavior of the GetCostsForProjectExecute function of this mock
	GetCostsForProjectExecuteMock *func(r ApiGetCostsForProjectRequest) (*ProjectCost, error)
	// ListCostsForCustomerExecuteMock can be populated to implement the behavior of the ListCostsForCustomerExecute function of this mock
	ListCostsForCustomerExecuteMock *func(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)
	// ListCostsForResellerExecuteMock can be populated to implement the behavior of the ListCostsForResellerExecute function of this mock
	ListCostsForResellerExecuteMock *func(r ApiListCostsForResellerRequest) ([]ProjectCost, error)
}

DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct.

func (DefaultAPIServiceMock) GetCostsForProject

func (a DefaultAPIServiceMock) GetCostsForProject(ctx context.Context, customerAccountId string, projectId string) ApiGetCostsForProjectRequest

func (DefaultAPIServiceMock) GetCostsForProjectExecute

func (a DefaultAPIServiceMock) GetCostsForProjectExecute(r ApiGetCostsForProjectRequest) (*ProjectCost, error)

GetCostsForProjectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCostsForProjectExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) ListCostsForCustomer

func (a DefaultAPIServiceMock) ListCostsForCustomer(ctx context.Context, customerAccountId string) ApiListCostsForCustomerRequest

func (DefaultAPIServiceMock) ListCostsForCustomerExecute

func (a DefaultAPIServiceMock) ListCostsForCustomerExecute(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)

ListCostsForCustomerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCostsForCustomerExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) ListCostsForReseller

func (a DefaultAPIServiceMock) ListCostsForReseller(ctx context.Context, customerAccountId string) ApiListCostsForResellerRequest

func (DefaultAPIServiceMock) ListCostsForResellerExecute

func (a DefaultAPIServiceMock) ListCostsForResellerExecute(r ApiListCostsForResellerRequest) ([]ProjectCost, error)

ListCostsForResellerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCostsForResellerExecuteMock field in the DefaultAPIServiceMock struct.

type DefaultError

type DefaultError struct {
	Code                 string  `json:"code"`
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

DefaultError A standard error object.

func NewDefaultError

func NewDefaultError(code string) *DefaultError

NewDefaultError instantiates a new DefaultError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDefaultErrorWithDefaults

func NewDefaultErrorWithDefaults() *DefaultError

NewDefaultErrorWithDefaults instantiates a new DefaultError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DefaultError) GetCode

func (o *DefaultError) GetCode() string

GetCode returns the Code field value

func (*DefaultError) GetCodeOk

func (o *DefaultError) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*DefaultError) GetMessage

func (o *DefaultError) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*DefaultError) GetMessageOk

func (o *DefaultError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DefaultError) HasMessage

func (o *DefaultError) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (DefaultError) MarshalJSON

func (o DefaultError) MarshalJSON() ([]byte, error)

func (*DefaultError) SetCode

func (o *DefaultError) SetCode(v string)

SetCode sets field value

func (*DefaultError) SetMessage

func (o *DefaultError) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (DefaultError) ToMap

func (o DefaultError) ToMap() (map[string]interface{}, error)

func (*DefaultError) UnmarshalJSON

func (o *DefaultError) UnmarshalJSON(data []byte) (err error)

type DetailedServiceCost

type DetailedServiceCost struct {
	// Detailed service costs which are ONLY included if granularity is provided
	ReportData []ReportData `json:"reportData,omitempty"`
	// Service category name
	ServiceCategoryName string `json:"serviceCategoryName"`
	// Name of the service
	ServiceName string `json:"serviceName"`
	// Service key
	Sku string `json:"sku"`
	// Total charge (including discounts) for all services and the whole requested date range (value in cents)
	TotalCharge float64 `json:"totalCharge"`
	// Total discount for all services and the whole requested date range (value in cents)
	TotalDiscount float64 `json:"totalDiscount"`
	// Total quantity
	TotalQuantity int32 `json:"totalQuantity"`
	// Label for unit
	UnitLabel            string `json:"unitLabel"`
	AdditionalProperties map[string]interface{}
}

DetailedServiceCost Costs for a single service

func NewDetailedServiceCost

func NewDetailedServiceCost(serviceCategoryName string, serviceName string, sku string, totalCharge float64, totalDiscount float64, totalQuantity int32, unitLabel string) *DetailedServiceCost

NewDetailedServiceCost instantiates a new DetailedServiceCost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDetailedServiceCostWithDefaults

func NewDetailedServiceCostWithDefaults() *DetailedServiceCost

NewDetailedServiceCostWithDefaults instantiates a new DetailedServiceCost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DetailedServiceCost) GetReportData

func (o *DetailedServiceCost) GetReportData() []ReportData

GetReportData returns the ReportData field value if set, zero value otherwise.

func (*DetailedServiceCost) GetReportDataOk

func (o *DetailedServiceCost) GetReportDataOk() ([]ReportData, bool)

GetReportDataOk returns a tuple with the ReportData field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DetailedServiceCost) GetServiceCategoryName

func (o *DetailedServiceCost) GetServiceCategoryName() string

GetServiceCategoryName returns the ServiceCategoryName field value

func (*DetailedServiceCost) GetServiceCategoryNameOk

func (o *DetailedServiceCost) GetServiceCategoryNameOk() (*string, bool)

GetServiceCategoryNameOk returns a tuple with the ServiceCategoryName field value and a boolean to check if the value has been set.

func (*DetailedServiceCost) GetServiceName

func (o *DetailedServiceCost) GetServiceName() string

GetServiceName returns the ServiceName field value

func (*DetailedServiceCost) GetServiceNameOk

func (o *DetailedServiceCost) GetServiceNameOk() (*string, bool)

GetServiceNameOk returns a tuple with the ServiceName field value and a boolean to check if the value has been set.

func (*DetailedServiceCost) GetSku

func (o *DetailedServiceCost) GetSku() string

GetSku returns the Sku field value

func (*DetailedServiceCost) GetSkuOk

func (o *DetailedServiceCost) GetSkuOk() (*string, bool)

GetSkuOk returns a tuple with the Sku field value and a boolean to check if the value has been set.

func (*DetailedServiceCost) GetTotalCharge

func (o *DetailedServiceCost) GetTotalCharge() float64

GetTotalCharge returns the TotalCharge field value

func (*DetailedServiceCost) GetTotalChargeOk

func (o *DetailedServiceCost) GetTotalChargeOk() (*float64, bool)

GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.

func (*DetailedServiceCost) GetTotalDiscount

func (o *DetailedServiceCost) GetTotalDiscount() float64

GetTotalDiscount returns the TotalDiscount field value

func (*DetailedServiceCost) GetTotalDiscountOk

func (o *DetailedServiceCost) GetTotalDiscountOk() (*float64, bool)

GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.

func (*DetailedServiceCost) GetTotalQuantity

func (o *DetailedServiceCost) GetTotalQuantity() int32

GetTotalQuantity returns the TotalQuantity field value

func (*DetailedServiceCost) GetTotalQuantityOk

func (o *DetailedServiceCost) GetTotalQuantityOk() (*int32, bool)

GetTotalQuantityOk returns a tuple with the TotalQuantity field value and a boolean to check if the value has been set.

func (*DetailedServiceCost) GetUnitLabel

func (o *DetailedServiceCost) GetUnitLabel() string

GetUnitLabel returns the UnitLabel field value

func (*DetailedServiceCost) GetUnitLabelOk

func (o *DetailedServiceCost) GetUnitLabelOk() (*string, bool)

GetUnitLabelOk returns a tuple with the UnitLabel field value and a boolean to check if the value has been set.

func (*DetailedServiceCost) HasReportData

func (o *DetailedServiceCost) HasReportData() bool

HasReportData returns a boolean if a field has been set.

func (DetailedServiceCost) MarshalJSON

func (o DetailedServiceCost) MarshalJSON() ([]byte, error)

func (*DetailedServiceCost) SetReportData

func (o *DetailedServiceCost) SetReportData(v []ReportData)

SetReportData gets a reference to the given []ReportData and assigns it to the ReportData field.

func (*DetailedServiceCost) SetServiceCategoryName

func (o *DetailedServiceCost) SetServiceCategoryName(v string)

SetServiceCategoryName sets field value

func (*DetailedServiceCost) SetServiceName

func (o *DetailedServiceCost) SetServiceName(v string)

SetServiceName sets field value

func (*DetailedServiceCost) SetSku

func (o *DetailedServiceCost) SetSku(v string)

SetSku sets field value

func (*DetailedServiceCost) SetTotalCharge

func (o *DetailedServiceCost) SetTotalCharge(v float64)

SetTotalCharge sets field value

func (*DetailedServiceCost) SetTotalDiscount

func (o *DetailedServiceCost) SetTotalDiscount(v float64)

SetTotalDiscount sets field value

func (*DetailedServiceCost) SetTotalQuantity

func (o *DetailedServiceCost) SetTotalQuantity(v int32)

SetTotalQuantity sets field value

func (*DetailedServiceCost) SetUnitLabel

func (o *DetailedServiceCost) SetUnitLabel(v string)

SetUnitLabel sets field value

func (DetailedServiceCost) ToMap

func (o DetailedServiceCost) ToMap() (map[string]interface{}, error)

func (*DetailedServiceCost) UnmarshalJSON

func (o *DetailedServiceCost) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableDefaultError

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

func NewNullableDefaultError

func NewNullableDefaultError(val *DefaultError) *NullableDefaultError

func (NullableDefaultError) Get

func (NullableDefaultError) IsSet

func (v NullableDefaultError) IsSet() bool

func (NullableDefaultError) MarshalJSON

func (v NullableDefaultError) MarshalJSON() ([]byte, error)

func (*NullableDefaultError) Set

func (v *NullableDefaultError) Set(val *DefaultError)

func (*NullableDefaultError) UnmarshalJSON

func (v *NullableDefaultError) UnmarshalJSON(src []byte) error

func (*NullableDefaultError) Unset

func (v *NullableDefaultError) Unset()

type NullableDetailedServiceCost

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

func NewNullableDetailedServiceCost

func NewNullableDetailedServiceCost(val *DetailedServiceCost) *NullableDetailedServiceCost

func (NullableDetailedServiceCost) Get

func (NullableDetailedServiceCost) IsSet

func (NullableDetailedServiceCost) MarshalJSON

func (v NullableDetailedServiceCost) MarshalJSON() ([]byte, error)

func (*NullableDetailedServiceCost) Set

func (*NullableDetailedServiceCost) UnmarshalJSON

func (v *NullableDetailedServiceCost) UnmarshalJSON(src []byte) error

func (*NullableDetailedServiceCost) Unset

func (v *NullableDetailedServiceCost) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableProjectCost

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

func NewNullableProjectCost

func NewNullableProjectCost(val *ProjectCost) *NullableProjectCost

func (NullableProjectCost) Get

func (NullableProjectCost) IsSet

func (v NullableProjectCost) IsSet() bool

func (NullableProjectCost) MarshalJSON

func (v NullableProjectCost) MarshalJSON() ([]byte, error)

func (*NullableProjectCost) Set

func (v *NullableProjectCost) Set(val *ProjectCost)

func (*NullableProjectCost) UnmarshalJSON

func (v *NullableProjectCost) UnmarshalJSON(src []byte) error

func (*NullableProjectCost) Unset

func (v *NullableProjectCost) Unset()

type NullableProjectCostWithDetailedServices

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

func (NullableProjectCostWithDetailedServices) Get

func (NullableProjectCostWithDetailedServices) IsSet

func (NullableProjectCostWithDetailedServices) MarshalJSON

func (v NullableProjectCostWithDetailedServices) MarshalJSON() ([]byte, error)

func (*NullableProjectCostWithDetailedServices) Set

func (*NullableProjectCostWithDetailedServices) UnmarshalJSON

func (v *NullableProjectCostWithDetailedServices) UnmarshalJSON(src []byte) error

func (*NullableProjectCostWithDetailedServices) Unset

type NullableProjectCostWithReports

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

func (NullableProjectCostWithReports) Get

func (NullableProjectCostWithReports) IsSet

func (NullableProjectCostWithReports) MarshalJSON

func (v NullableProjectCostWithReports) MarshalJSON() ([]byte, error)

func (*NullableProjectCostWithReports) Set

func (*NullableProjectCostWithReports) UnmarshalJSON

func (v *NullableProjectCostWithReports) UnmarshalJSON(src []byte) error

func (*NullableProjectCostWithReports) Unset

func (v *NullableProjectCostWithReports) Unset()

type NullableProjectCostWithSummarizedServices

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

func (NullableProjectCostWithSummarizedServices) Get

func (NullableProjectCostWithSummarizedServices) IsSet

func (NullableProjectCostWithSummarizedServices) MarshalJSON

func (*NullableProjectCostWithSummarizedServices) Set

func (*NullableProjectCostWithSummarizedServices) UnmarshalJSON

func (v *NullableProjectCostWithSummarizedServices) UnmarshalJSON(src []byte) error

func (*NullableProjectCostWithSummarizedServices) Unset

type NullableReportData

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

func NewNullableReportData

func NewNullableReportData(val *ReportData) *NullableReportData

func (NullableReportData) Get

func (v NullableReportData) Get() *ReportData

func (NullableReportData) IsSet

func (v NullableReportData) IsSet() bool

func (NullableReportData) MarshalJSON

func (v NullableReportData) MarshalJSON() ([]byte, error)

func (*NullableReportData) Set

func (v *NullableReportData) Set(val *ReportData)

func (*NullableReportData) UnmarshalJSON

func (v *NullableReportData) UnmarshalJSON(src []byte) error

func (*NullableReportData) Unset

func (v *NullableReportData) Unset()

type NullableReportDataTimePeriod

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

func NewNullableReportDataTimePeriod

func NewNullableReportDataTimePeriod(val *ReportDataTimePeriod) *NullableReportDataTimePeriod

func (NullableReportDataTimePeriod) Get

func (NullableReportDataTimePeriod) IsSet

func (NullableReportDataTimePeriod) MarshalJSON

func (v NullableReportDataTimePeriod) MarshalJSON() ([]byte, error)

func (*NullableReportDataTimePeriod) Set

func (*NullableReportDataTimePeriod) UnmarshalJSON

func (v *NullableReportDataTimePeriod) UnmarshalJSON(src []byte) error

func (*NullableReportDataTimePeriod) Unset

func (v *NullableReportDataTimePeriod) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableSummarizedProjectCost

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

func (NullableSummarizedProjectCost) Get

func (NullableSummarizedProjectCost) IsSet

func (NullableSummarizedProjectCost) MarshalJSON

func (v NullableSummarizedProjectCost) MarshalJSON() ([]byte, error)

func (*NullableSummarizedProjectCost) Set

func (*NullableSummarizedProjectCost) UnmarshalJSON

func (v *NullableSummarizedProjectCost) UnmarshalJSON(src []byte) error

func (*NullableSummarizedProjectCost) Unset

func (v *NullableSummarizedProjectCost) Unset()

type NullableSummarizedServiceCost

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

func (NullableSummarizedServiceCost) Get

func (NullableSummarizedServiceCost) IsSet

func (NullableSummarizedServiceCost) MarshalJSON

func (v NullableSummarizedServiceCost) MarshalJSON() ([]byte, error)

func (*NullableSummarizedServiceCost) Set

func (*NullableSummarizedServiceCost) UnmarshalJSON

func (v *NullableSummarizedServiceCost) UnmarshalJSON(src []byte) error

func (*NullableSummarizedServiceCost) Unset

func (v *NullableSummarizedServiceCost) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type ProjectCost

type ProjectCost struct {
	ProjectCostWithDetailedServices   *ProjectCostWithDetailedServices
	ProjectCostWithReports            *ProjectCostWithReports
	ProjectCostWithSummarizedServices *ProjectCostWithSummarizedServices
	SummarizedProjectCost             *SummarizedProjectCost
}

ProjectCost struct for ProjectCost

func (ProjectCost) MarshalJSON

func (src ProjectCost) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*ProjectCost) UnmarshalJSON

func (dst *ProjectCost) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type ProjectCostWithDetailedServices

type ProjectCostWithDetailedServices struct {
	CustomerAccountId string `json:"customerAccountId"`
	ProjectId         string `json:"projectId"`
	ProjectName       string `json:"projectName"`
	// Total discount for all services and the whole requested date range (value in cents). Please see \"depth\" parameter for more details.
	Services []DetailedServiceCost `json:"services,omitempty"`
	// Total charge (including discounts) for all services and the whole requested date range (value in cents)
	TotalCharge float64 `json:"totalCharge"`
	// Total discount for all services and the whole requested date range (value in cents)
	TotalDiscount        float64 `json:"totalDiscount"`
	AdditionalProperties map[string]interface{}
}

ProjectCostWithDetailedServices Detailed costs for a project including service costs

func NewProjectCostWithDetailedServices

func NewProjectCostWithDetailedServices(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *ProjectCostWithDetailedServices

NewProjectCostWithDetailedServices instantiates a new ProjectCostWithDetailedServices object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectCostWithDetailedServicesWithDefaults

func NewProjectCostWithDetailedServicesWithDefaults() *ProjectCostWithDetailedServices

NewProjectCostWithDetailedServicesWithDefaults instantiates a new ProjectCostWithDetailedServices object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectCostWithDetailedServices) GetCustomerAccountId

func (o *ProjectCostWithDetailedServices) GetCustomerAccountId() string

GetCustomerAccountId returns the CustomerAccountId field value

func (*ProjectCostWithDetailedServices) GetCustomerAccountIdOk

func (o *ProjectCostWithDetailedServices) GetCustomerAccountIdOk() (*string, bool)

GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.

func (*ProjectCostWithDetailedServices) GetProjectId

func (o *ProjectCostWithDetailedServices) GetProjectId() string

GetProjectId returns the ProjectId field value

func (*ProjectCostWithDetailedServices) GetProjectIdOk

func (o *ProjectCostWithDetailedServices) GetProjectIdOk() (*string, bool)

GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.

func (*ProjectCostWithDetailedServices) GetProjectName

func (o *ProjectCostWithDetailedServices) GetProjectName() string

GetProjectName returns the ProjectName field value

func (*ProjectCostWithDetailedServices) GetProjectNameOk

func (o *ProjectCostWithDetailedServices) GetProjectNameOk() (*string, bool)

GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.

func (*ProjectCostWithDetailedServices) GetServices

GetServices returns the Services field value if set, zero value otherwise.

func (*ProjectCostWithDetailedServices) GetServicesOk

GetServicesOk returns a tuple with the Services field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProjectCostWithDetailedServices) GetTotalCharge

func (o *ProjectCostWithDetailedServices) GetTotalCharge() float64

GetTotalCharge returns the TotalCharge field value

func (*ProjectCostWithDetailedServices) GetTotalChargeOk

func (o *ProjectCostWithDetailedServices) GetTotalChargeOk() (*float64, bool)

GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.

func (*ProjectCostWithDetailedServices) GetTotalDiscount

func (o *ProjectCostWithDetailedServices) GetTotalDiscount() float64

GetTotalDiscount returns the TotalDiscount field value

func (*ProjectCostWithDetailedServices) GetTotalDiscountOk

func (o *ProjectCostWithDetailedServices) GetTotalDiscountOk() (*float64, bool)

GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.

func (*ProjectCostWithDetailedServices) HasServices

func (o *ProjectCostWithDetailedServices) HasServices() bool

HasServices returns a boolean if a field has been set.

func (ProjectCostWithDetailedServices) MarshalJSON

func (o ProjectCostWithDetailedServices) MarshalJSON() ([]byte, error)

func (*ProjectCostWithDetailedServices) SetCustomerAccountId

func (o *ProjectCostWithDetailedServices) SetCustomerAccountId(v string)

SetCustomerAccountId sets field value

func (*ProjectCostWithDetailedServices) SetProjectId

func (o *ProjectCostWithDetailedServices) SetProjectId(v string)

SetProjectId sets field value

func (*ProjectCostWithDetailedServices) SetProjectName

func (o *ProjectCostWithDetailedServices) SetProjectName(v string)

SetProjectName sets field value

func (*ProjectCostWithDetailedServices) SetServices

SetServices gets a reference to the given []DetailedServiceCost and assigns it to the Services field.

func (*ProjectCostWithDetailedServices) SetTotalCharge

func (o *ProjectCostWithDetailedServices) SetTotalCharge(v float64)

SetTotalCharge sets field value

func (*ProjectCostWithDetailedServices) SetTotalDiscount

func (o *ProjectCostWithDetailedServices) SetTotalDiscount(v float64)

SetTotalDiscount sets field value

func (ProjectCostWithDetailedServices) ToMap

func (o ProjectCostWithDetailedServices) ToMap() (map[string]interface{}, error)

func (*ProjectCostWithDetailedServices) UnmarshalJSON

func (o *ProjectCostWithDetailedServices) UnmarshalJSON(data []byte) (err error)

type ProjectCostWithReports

type ProjectCostWithReports struct {
	CustomerAccountId string `json:"customerAccountId"`
	ProjectId         string `json:"projectId"`
	ProjectName       string `json:"projectName"`
	// Detailed project costs which are ONLY included if granularity is provided AND depth is \"project\"
	ReportData []ReportData `json:"reportData,omitempty"`
	// Total charge (including discounts) for all services and the whole requested date range (value in cents)
	TotalCharge float64 `json:"totalCharge"`
	// Total discount for all services and the whole requested date range (value in cents)
	TotalDiscount        float64 `json:"totalDiscount"`
	AdditionalProperties map[string]interface{}
}

ProjectCostWithReports Detailed costs for a project

func NewProjectCostWithReports

func NewProjectCostWithReports(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *ProjectCostWithReports

NewProjectCostWithReports instantiates a new ProjectCostWithReports object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectCostWithReportsWithDefaults

func NewProjectCostWithReportsWithDefaults() *ProjectCostWithReports

NewProjectCostWithReportsWithDefaults instantiates a new ProjectCostWithReports object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectCostWithReports) GetCustomerAccountId

func (o *ProjectCostWithReports) GetCustomerAccountId() string

GetCustomerAccountId returns the CustomerAccountId field value

func (*ProjectCostWithReports) GetCustomerAccountIdOk

func (o *ProjectCostWithReports) GetCustomerAccountIdOk() (*string, bool)

GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.

func (*ProjectCostWithReports) GetProjectId

func (o *ProjectCostWithReports) GetProjectId() string

GetProjectId returns the ProjectId field value

func (*ProjectCostWithReports) GetProjectIdOk

func (o *ProjectCostWithReports) GetProjectIdOk() (*string, bool)

GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.

func (*ProjectCostWithReports) GetProjectName

func (o *ProjectCostWithReports) GetProjectName() string

GetProjectName returns the ProjectName field value

func (*ProjectCostWithReports) GetProjectNameOk

func (o *ProjectCostWithReports) GetProjectNameOk() (*string, bool)

GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.

func (*ProjectCostWithReports) GetReportData

func (o *ProjectCostWithReports) GetReportData() []ReportData

GetReportData returns the ReportData field value if set, zero value otherwise.

func (*ProjectCostWithReports) GetReportDataOk

func (o *ProjectCostWithReports) GetReportDataOk() ([]ReportData, bool)

GetReportDataOk returns a tuple with the ReportData field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProjectCostWithReports) GetTotalCharge

func (o *ProjectCostWithReports) GetTotalCharge() float64

GetTotalCharge returns the TotalCharge field value

func (*ProjectCostWithReports) GetTotalChargeOk

func (o *ProjectCostWithReports) GetTotalChargeOk() (*float64, bool)

GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.

func (*ProjectCostWithReports) GetTotalDiscount

func (o *ProjectCostWithReports) GetTotalDiscount() float64

GetTotalDiscount returns the TotalDiscount field value

func (*ProjectCostWithReports) GetTotalDiscountOk

func (o *ProjectCostWithReports) GetTotalDiscountOk() (*float64, bool)

GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.

func (*ProjectCostWithReports) HasReportData

func (o *ProjectCostWithReports) HasReportData() bool

HasReportData returns a boolean if a field has been set.

func (ProjectCostWithReports) MarshalJSON

func (o ProjectCostWithReports) MarshalJSON() ([]byte, error)

func (*ProjectCostWithReports) SetCustomerAccountId

func (o *ProjectCostWithReports) SetCustomerAccountId(v string)

SetCustomerAccountId sets field value

func (*ProjectCostWithReports) SetProjectId

func (o *ProjectCostWithReports) SetProjectId(v string)

SetProjectId sets field value

func (*ProjectCostWithReports) SetProjectName

func (o *ProjectCostWithReports) SetProjectName(v string)

SetProjectName sets field value

func (*ProjectCostWithReports) SetReportData

func (o *ProjectCostWithReports) SetReportData(v []ReportData)

SetReportData gets a reference to the given []ReportData and assigns it to the ReportData field.

func (*ProjectCostWithReports) SetTotalCharge

func (o *ProjectCostWithReports) SetTotalCharge(v float64)

SetTotalCharge sets field value

func (*ProjectCostWithReports) SetTotalDiscount

func (o *ProjectCostWithReports) SetTotalDiscount(v float64)

SetTotalDiscount sets field value

func (ProjectCostWithReports) ToMap

func (o ProjectCostWithReports) ToMap() (map[string]interface{}, error)

func (*ProjectCostWithReports) UnmarshalJSON

func (o *ProjectCostWithReports) UnmarshalJSON(data []byte) (err error)

type ProjectCostWithSummarizedServices

type ProjectCostWithSummarizedServices struct {
	CustomerAccountId string `json:"customerAccountId"`
	ProjectId         string `json:"projectId"`
	ProjectName       string `json:"projectName"`
	// Summarized service costs
	Services []SummarizedServiceCost `json:"services,omitempty"`
	// Total charge (including discounts) for all services and the whole requested date range (value in cents)
	TotalCharge float64 `json:"totalCharge"`
	// Total discount for all services and the whole requested date range (value in cents)
	TotalDiscount        float64 `json:"totalDiscount"`
	AdditionalProperties map[string]interface{}
}

ProjectCostWithSummarizedServices Costs for a project including summarized service costs

func NewProjectCostWithSummarizedServices

func NewProjectCostWithSummarizedServices(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *ProjectCostWithSummarizedServices

NewProjectCostWithSummarizedServices instantiates a new ProjectCostWithSummarizedServices object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectCostWithSummarizedServicesWithDefaults

func NewProjectCostWithSummarizedServicesWithDefaults() *ProjectCostWithSummarizedServices

NewProjectCostWithSummarizedServicesWithDefaults instantiates a new ProjectCostWithSummarizedServices object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectCostWithSummarizedServices) GetCustomerAccountId

func (o *ProjectCostWithSummarizedServices) GetCustomerAccountId() string

GetCustomerAccountId returns the CustomerAccountId field value

func (*ProjectCostWithSummarizedServices) GetCustomerAccountIdOk

func (o *ProjectCostWithSummarizedServices) GetCustomerAccountIdOk() (*string, bool)

GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.

func (*ProjectCostWithSummarizedServices) GetProjectId

func (o *ProjectCostWithSummarizedServices) GetProjectId() string

GetProjectId returns the ProjectId field value

func (*ProjectCostWithSummarizedServices) GetProjectIdOk

func (o *ProjectCostWithSummarizedServices) GetProjectIdOk() (*string, bool)

GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.

func (*ProjectCostWithSummarizedServices) GetProjectName

func (o *ProjectCostWithSummarizedServices) GetProjectName() string

GetProjectName returns the ProjectName field value

func (*ProjectCostWithSummarizedServices) GetProjectNameOk

func (o *ProjectCostWithSummarizedServices) GetProjectNameOk() (*string, bool)

GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.

func (*ProjectCostWithSummarizedServices) GetServices

GetServices returns the Services field value if set, zero value otherwise.

func (*ProjectCostWithSummarizedServices) GetServicesOk

GetServicesOk returns a tuple with the Services field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProjectCostWithSummarizedServices) GetTotalCharge

func (o *ProjectCostWithSummarizedServices) GetTotalCharge() float64

GetTotalCharge returns the TotalCharge field value

func (*ProjectCostWithSummarizedServices) GetTotalChargeOk

func (o *ProjectCostWithSummarizedServices) GetTotalChargeOk() (*float64, bool)

GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.

func (*ProjectCostWithSummarizedServices) GetTotalDiscount

func (o *ProjectCostWithSummarizedServices) GetTotalDiscount() float64

GetTotalDiscount returns the TotalDiscount field value

func (*ProjectCostWithSummarizedServices) GetTotalDiscountOk

func (o *ProjectCostWithSummarizedServices) GetTotalDiscountOk() (*float64, bool)

GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.

func (*ProjectCostWithSummarizedServices) HasServices

func (o *ProjectCostWithSummarizedServices) HasServices() bool

HasServices returns a boolean if a field has been set.

func (ProjectCostWithSummarizedServices) MarshalJSON

func (o ProjectCostWithSummarizedServices) MarshalJSON() ([]byte, error)

func (*ProjectCostWithSummarizedServices) SetCustomerAccountId

func (o *ProjectCostWithSummarizedServices) SetCustomerAccountId(v string)

SetCustomerAccountId sets field value

func (*ProjectCostWithSummarizedServices) SetProjectId

func (o *ProjectCostWithSummarizedServices) SetProjectId(v string)

SetProjectId sets field value

func (*ProjectCostWithSummarizedServices) SetProjectName

func (o *ProjectCostWithSummarizedServices) SetProjectName(v string)

SetProjectName sets field value

func (*ProjectCostWithSummarizedServices) SetServices

SetServices gets a reference to the given []SummarizedServiceCost and assigns it to the Services field.

func (*ProjectCostWithSummarizedServices) SetTotalCharge

func (o *ProjectCostWithSummarizedServices) SetTotalCharge(v float64)

SetTotalCharge sets field value

func (*ProjectCostWithSummarizedServices) SetTotalDiscount

func (o *ProjectCostWithSummarizedServices) SetTotalDiscount(v float64)

SetTotalDiscount sets field value

func (ProjectCostWithSummarizedServices) ToMap

func (o ProjectCostWithSummarizedServices) ToMap() (map[string]interface{}, error)

func (*ProjectCostWithSummarizedServices) UnmarshalJSON

func (o *ProjectCostWithSummarizedServices) UnmarshalJSON(data []byte) (err error)

type ReportData

type ReportData struct {
	// Charge, value in cents
	Charge float64 `json:"charge"`
	// Discount, value in cents
	Discount float64 `json:"discount"`
	// Quantity
	Quantity             int32                `json:"quantity"`
	TimePeriod           ReportDataTimePeriod `json:"timePeriod"`
	AdditionalProperties map[string]interface{}
}

ReportData Costs report for a certain period of time

func NewReportData

func NewReportData(charge float64, discount float64, quantity int32, timePeriod ReportDataTimePeriod) *ReportData

NewReportData instantiates a new ReportData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReportDataWithDefaults

func NewReportDataWithDefaults() *ReportData

NewReportDataWithDefaults instantiates a new ReportData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ReportData) GetCharge

func (o *ReportData) GetCharge() float64

GetCharge returns the Charge field value

func (*ReportData) GetChargeOk

func (o *ReportData) GetChargeOk() (*float64, bool)

GetChargeOk returns a tuple with the Charge field value and a boolean to check if the value has been set.

func (*ReportData) GetDiscount

func (o *ReportData) GetDiscount() float64

GetDiscount returns the Discount field value

func (*ReportData) GetDiscountOk

func (o *ReportData) GetDiscountOk() (*float64, bool)

GetDiscountOk returns a tuple with the Discount field value and a boolean to check if the value has been set.

func (*ReportData) GetQuantity

func (o *ReportData) GetQuantity() int32

GetQuantity returns the Quantity field value

func (*ReportData) GetQuantityOk

func (o *ReportData) GetQuantityOk() (*int32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*ReportData) GetTimePeriod

func (o *ReportData) GetTimePeriod() ReportDataTimePeriod

GetTimePeriod returns the TimePeriod field value

func (*ReportData) GetTimePeriodOk

func (o *ReportData) GetTimePeriodOk() (*ReportDataTimePeriod, bool)

GetTimePeriodOk returns a tuple with the TimePeriod field value and a boolean to check if the value has been set.

func (ReportData) MarshalJSON

func (o ReportData) MarshalJSON() ([]byte, error)

func (*ReportData) SetCharge

func (o *ReportData) SetCharge(v float64)

SetCharge sets field value

func (*ReportData) SetDiscount

func (o *ReportData) SetDiscount(v float64)

SetDiscount sets field value

func (*ReportData) SetQuantity

func (o *ReportData) SetQuantity(v int32)

SetQuantity sets field value

func (*ReportData) SetTimePeriod

func (o *ReportData) SetTimePeriod(v ReportDataTimePeriod)

SetTimePeriod sets field value

func (ReportData) ToMap

func (o ReportData) ToMap() (map[string]interface{}, error)

func (*ReportData) UnmarshalJSON

func (o *ReportData) UnmarshalJSON(data []byte) (err error)

type ReportDataTimePeriod

type ReportDataTimePeriod struct {
	End                  *string `json:"end,omitempty"`
	Start                *string `json:"start,omitempty"`
	AdditionalProperties map[string]interface{}
}

ReportDataTimePeriod Time period according to desired granularity

func NewReportDataTimePeriod

func NewReportDataTimePeriod() *ReportDataTimePeriod

NewReportDataTimePeriod instantiates a new ReportDataTimePeriod object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReportDataTimePeriodWithDefaults

func NewReportDataTimePeriodWithDefaults() *ReportDataTimePeriod

NewReportDataTimePeriodWithDefaults instantiates a new ReportDataTimePeriod object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ReportDataTimePeriod) GetEnd

func (o *ReportDataTimePeriod) GetEnd() string

GetEnd returns the End field value if set, zero value otherwise.

func (*ReportDataTimePeriod) GetEndOk

func (o *ReportDataTimePeriod) GetEndOk() (*string, bool)

GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportDataTimePeriod) GetStart

func (o *ReportDataTimePeriod) GetStart() string

GetStart returns the Start field value if set, zero value otherwise.

func (*ReportDataTimePeriod) GetStartOk

func (o *ReportDataTimePeriod) GetStartOk() (*string, bool)

GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReportDataTimePeriod) HasEnd

func (o *ReportDataTimePeriod) HasEnd() bool

HasEnd returns a boolean if a field has been set.

func (*ReportDataTimePeriod) HasStart

func (o *ReportDataTimePeriod) HasStart() bool

HasStart returns a boolean if a field has been set.

func (ReportDataTimePeriod) MarshalJSON

func (o ReportDataTimePeriod) MarshalJSON() ([]byte, error)

func (*ReportDataTimePeriod) SetEnd

func (o *ReportDataTimePeriod) SetEnd(v string)

SetEnd gets a reference to the given string and assigns it to the End field.

func (*ReportDataTimePeriod) SetStart

func (o *ReportDataTimePeriod) SetStart(v string)

SetStart gets a reference to the given string and assigns it to the Start field.

func (ReportDataTimePeriod) ToMap

func (o ReportDataTimePeriod) ToMap() (map[string]interface{}, error)

func (*ReportDataTimePeriod) UnmarshalJSON

func (o *ReportDataTimePeriod) UnmarshalJSON(data []byte) (err error)

type SummarizedProjectCost

type SummarizedProjectCost struct {
	CustomerAccountId string `json:"customerAccountId"`
	ProjectId         string `json:"projectId"`
	ProjectName       string `json:"projectName"`
	// Total charge (including discounts) for all services and the whole requested date range (value in cents)
	TotalCharge float64 `json:"totalCharge"`
	// Total discount for all services and the whole requested date range (value in cents)
	TotalDiscount        float64 `json:"totalDiscount"`
	AdditionalProperties map[string]interface{}
}

SummarizedProjectCost Summarized costs for a project

func NewSummarizedProjectCost

func NewSummarizedProjectCost(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *SummarizedProjectCost

NewSummarizedProjectCost instantiates a new SummarizedProjectCost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSummarizedProjectCostWithDefaults

func NewSummarizedProjectCostWithDefaults() *SummarizedProjectCost

NewSummarizedProjectCostWithDefaults instantiates a new SummarizedProjectCost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SummarizedProjectCost) GetCustomerAccountId

func (o *SummarizedProjectCost) GetCustomerAccountId() string

GetCustomerAccountId returns the CustomerAccountId field value

func (*SummarizedProjectCost) GetCustomerAccountIdOk

func (o *SummarizedProjectCost) GetCustomerAccountIdOk() (*string, bool)

GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.

func (*SummarizedProjectCost) GetProjectId

func (o *SummarizedProjectCost) GetProjectId() string

GetProjectId returns the ProjectId field value

func (*SummarizedProjectCost) GetProjectIdOk

func (o *SummarizedProjectCost) GetProjectIdOk() (*string, bool)

GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.

func (*SummarizedProjectCost) GetProjectName

func (o *SummarizedProjectCost) GetProjectName() string

GetProjectName returns the ProjectName field value

func (*SummarizedProjectCost) GetProjectNameOk

func (o *SummarizedProjectCost) GetProjectNameOk() (*string, bool)

GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.

func (*SummarizedProjectCost) GetTotalCharge

func (o *SummarizedProjectCost) GetTotalCharge() float64

GetTotalCharge returns the TotalCharge field value

func (*SummarizedProjectCost) GetTotalChargeOk

func (o *SummarizedProjectCost) GetTotalChargeOk() (*float64, bool)

GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.

func (*SummarizedProjectCost) GetTotalDiscount

func (o *SummarizedProjectCost) GetTotalDiscount() float64

GetTotalDiscount returns the TotalDiscount field value

func (*SummarizedProjectCost) GetTotalDiscountOk

func (o *SummarizedProjectCost) GetTotalDiscountOk() (*float64, bool)

GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.

func (SummarizedProjectCost) MarshalJSON

func (o SummarizedProjectCost) MarshalJSON() ([]byte, error)

func (*SummarizedProjectCost) SetCustomerAccountId

func (o *SummarizedProjectCost) SetCustomerAccountId(v string)

SetCustomerAccountId sets field value

func (*SummarizedProjectCost) SetProjectId

func (o *SummarizedProjectCost) SetProjectId(v string)

SetProjectId sets field value

func (*SummarizedProjectCost) SetProjectName

func (o *SummarizedProjectCost) SetProjectName(v string)

SetProjectName sets field value

func (*SummarizedProjectCost) SetTotalCharge

func (o *SummarizedProjectCost) SetTotalCharge(v float64)

SetTotalCharge sets field value

func (*SummarizedProjectCost) SetTotalDiscount

func (o *SummarizedProjectCost) SetTotalDiscount(v float64)

SetTotalDiscount sets field value

func (SummarizedProjectCost) ToMap

func (o SummarizedProjectCost) ToMap() (map[string]interface{}, error)

func (*SummarizedProjectCost) UnmarshalJSON

func (o *SummarizedProjectCost) UnmarshalJSON(data []byte) (err error)

type SummarizedServiceCost

type SummarizedServiceCost struct {
	CustomerAccountId string `json:"customerAccountId"`
	ProjectId         string `json:"projectId"`
	ProjectName       string `json:"projectName"`
	// Total charge (including discounts) for all services and the whole requested date range (value in cents)
	TotalCharge float64 `json:"totalCharge"`
	// Total discount for all services and the whole requested date range (value in cents)
	TotalDiscount        float64 `json:"totalDiscount"`
	AdditionalProperties map[string]interface{}
}

SummarizedServiceCost Summarized costs for a project

func NewSummarizedServiceCost

func NewSummarizedServiceCost(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *SummarizedServiceCost

NewSummarizedServiceCost instantiates a new SummarizedServiceCost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSummarizedServiceCostWithDefaults

func NewSummarizedServiceCostWithDefaults() *SummarizedServiceCost

NewSummarizedServiceCostWithDefaults instantiates a new SummarizedServiceCost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SummarizedServiceCost) GetCustomerAccountId

func (o *SummarizedServiceCost) GetCustomerAccountId() string

GetCustomerAccountId returns the CustomerAccountId field value

func (*SummarizedServiceCost) GetCustomerAccountIdOk

func (o *SummarizedServiceCost) GetCustomerAccountIdOk() (*string, bool)

GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.

func (*SummarizedServiceCost) GetProjectId

func (o *SummarizedServiceCost) GetProjectId() string

GetProjectId returns the ProjectId field value

func (*SummarizedServiceCost) GetProjectIdOk

func (o *SummarizedServiceCost) GetProjectIdOk() (*string, bool)

GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.

func (*SummarizedServiceCost) GetProjectName

func (o *SummarizedServiceCost) GetProjectName() string

GetProjectName returns the ProjectName field value

func (*SummarizedServiceCost) GetProjectNameOk

func (o *SummarizedServiceCost) GetProjectNameOk() (*string, bool)

GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.

func (*SummarizedServiceCost) GetTotalCharge

func (o *SummarizedServiceCost) GetTotalCharge() float64

GetTotalCharge returns the TotalCharge field value

func (*SummarizedServiceCost) GetTotalChargeOk

func (o *SummarizedServiceCost) GetTotalChargeOk() (*float64, bool)

GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.

func (*SummarizedServiceCost) GetTotalDiscount

func (o *SummarizedServiceCost) GetTotalDiscount() float64

GetTotalDiscount returns the TotalDiscount field value

func (*SummarizedServiceCost) GetTotalDiscountOk

func (o *SummarizedServiceCost) GetTotalDiscountOk() (*float64, bool)

GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.

func (SummarizedServiceCost) MarshalJSON

func (o SummarizedServiceCost) MarshalJSON() ([]byte, error)

func (*SummarizedServiceCost) SetCustomerAccountId

func (o *SummarizedServiceCost) SetCustomerAccountId(v string)

SetCustomerAccountId sets field value

func (*SummarizedServiceCost) SetProjectId

func (o *SummarizedServiceCost) SetProjectId(v string)

SetProjectId sets field value

func (*SummarizedServiceCost) SetProjectName

func (o *SummarizedServiceCost) SetProjectName(v string)

SetProjectName sets field value

func (*SummarizedServiceCost) SetTotalCharge

func (o *SummarizedServiceCost) SetTotalCharge(v float64)

SetTotalCharge sets field value

func (*SummarizedServiceCost) SetTotalDiscount

func (o *SummarizedServiceCost) SetTotalDiscount(v float64)

SetTotalDiscount sets field value

func (SummarizedServiceCost) ToMap

func (o SummarizedServiceCost) ToMap() (map[string]interface{}, error)

func (*SummarizedServiceCost) UnmarshalJSON

func (o *SummarizedServiceCost) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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