Documentation
¶
Index ¶
- type Address
- type AttachFunctionalitiesToRoleRequest
- type Client
- func (c *Client) AttachFunctionalitiesToRole(ctx context.Context, req AttachFunctionalitiesToRoleRequest) (*EmptyResponse, error)
- func (c *Client) CreateAccountingRecipe(ctx context.Context, req CreateAccountingRecipeRequest) (*CreateAccountingRecipeResponse, error)
- func (c *Client) CreateCustomOrderStatus(ctx context.Context, req CreateCustomOrderStatusRequest) (*CreateCustomOrderStatusResponse, error)
- func (c *Client) CreateEmployee(ctx context.Context, req CreateEmployeeUserRequest) (*CreateEmployeeUserResponse, error)
- func (c *Client) CreateMessageTemplate(ctx context.Context, req CreateMessageTemplateRequest) (*CreateMessageTemplateResponse, error)
- func (c *Client) CreateOpenIDProvider(ctx context.Context, req CreateOpenIDProviderRequest) (*CreateOpenIDProviderResponse, error)
- func (c *Client) CreateOrderLedgerType(ctx context.Context, req CreateOrderLedgerTypeRequest) (*CreateOrderLedgerTypeResponse, error)
- func (c *Client) CreateOrganizationUnit(ctx context.Context, req CreateOrganizationUnitRequest) (*CreateOrganizationUnitResponse, error)
- func (c *Client) CreateRole(ctx context.Context, req CreateRoleRequest) (*CreateRoleResponse, error)
- func (c *Client) DeleteAccountingRecipe(ctx context.Context, req DeleteAccountingRecipeRequest) (*EmptyResponse, error)
- func (c *Client) DeleteCustomOrderStatus(ctx context.Context, req DeleteCustomOrderStatusRequest) (*EmptyResponse, error)
- func (c *Client) DeleteMessageTemplate(ctx context.Context, req DeleteMessageTemplateRequesst) (*EmptyResponse, error)
- func (c *Client) DeleteOpenIDProvider(ctx context.Context, req DeleteOpenIDProviderRequest) (*DeleteOpenIDProviderResponse, error)
- func (c *Client) DeleteOrderLedgerType(ctx context.Context, req DeleteOrderLedgerTypeRequest) (*DeleteOrderLedgerTypeResponse, error)
- func (c *Client) DeleteOrganizationUnit(ctx context.Context, req DeleteOrganizationUnitRequest) (*EmptyResponse, error)
- func (c *Client) DeleteRole(ctx context.Context, req DeleteRoleRequest) (*EmptyResponse, error)
- func (c *Client) DeleteUser(ctx context.Context, req DeleteUserRequest) (*EmptyResponse, error)
- func (c *Client) DetachFunctionalitiesFromRole(ctx context.Context, req DetachFunctionalitiesFromRoleRequest) (*EmptyResponse, error)
- func (c *Client) GetAccountingRecipe(ctx context.Context, req GetAccountingRecipeRequest) (*GetAccountingRecipeResponse, error)
- func (c *Client) GetMessageTemplateByID(ctx context.Context, req GetMessageTemplateByIDRequest) (*GetMessageTemplateByIDResponse, error)
- func (c *Client) GetOpenIDProvider(ctx context.Context, req GetOpenIDProviderRequest) (*GetOpenIDProviderResponse, error)
- func (c *Client) GetOrganizationUnitDetailed(ctx context.Context, req GetOrganizationUnitDetailedRequest) (*GetOrganizationUnitDetailedResponse, error)
- func (c *Client) GetRole(ctx context.Context, req GetRoleRequest) (*GetRoleResponse, error)
- func (c *Client) GetSetting(ctx context.Context, req GetSettingRequest) (*GetSettingResponse, error)
- func (c *Client) GetUser(ctx context.Context, req GetUserRequest) (*GetEmployeeResponse, error)
- func (c *Client) GetUserRole(ctx context.Context, req GetUserRoleRequest) (*GetUserRoleResponse, error)
- func (c *Client) ListCustomOrderStatus(ctx context.Context) (*ListCustomOrderStatusResponse, error)
- func (c *Client) ListOrderLedgerTypes(ctx context.Context) (*ListOrderLedgerTypeResponse, error)
- func (c *Client) Login(ctx context.Context, req LoginCredentials) error
- func (c *Client) SetAuthorizationHeader(token string)
- func (c *Client) SetPrimaryOpenIDProvider(ctx context.Context, req SetPrimaryOpenIDProviderRequest) (*SetPrimaryOpenIDProviderResponse, error)
- func (c *Client) SetSettings(ctx context.Context, req SetSettingsRequest) (*EmptyResponse, error)
- func (c *Client) SetUserRole(ctx context.Context, req SetUserRoleRequest) (*EmptyResponse, error)
- func (c *Client) UnsetSettings(ctx context.Context, req UnsetSettingsRequest) (*EmptyResponse, error)
- func (c *Client) UpdateAccountingRecipe(ctx context.Context, req UpdateAccountingRecipeRequest) (*UpdateAccountingRecipeResponse, error)
- func (c *Client) UpdateCustomOrderStatus(ctx context.Context, req UpdateCustomOrderStatusRequest) (*EmptyResponse, error)
- func (c *Client) UpdateMessageTemplate(ctx context.Context, req UpdateMessageTemplateRequest) (*EmptyResponse, error)
- func (c *Client) UpdateOpenIDProvider(ctx context.Context, req UpdateOpenIDProviderRequest) (*UpdateOpenIDProviderResponse, error)
- func (c *Client) UpdateOrderLedgerType(ctx context.Context, req UpdateOrderLedgerTypeRequest) (*UpdateOrderLedgerTypeResponse, error)
- func (c *Client) UpdateOrganizationUnit(ctx context.Context, req UpdateOrganizationUnitRequest) (*EmptyResponse, error)
- func (c *Client) UpdateRole(ctx context.Context, req UpdateRoleRequest) (*EmptyResponse, error)
- func (c *Client) UpdateUser(ctx context.Context, req UpdateUserRequest) (*EmptyResponse, error)
- type CreateAccountingRecipeRequest
- type CreateAccountingRecipeResponse
- type CreateCustomOrderStatusRequest
- type CreateCustomOrderStatusResponse
- type CreateEmployeeResult
- type CreateEmployeeUserRequest
- type CreateEmployeeUserResponse
- type CreateMessageTemplateRequest
- type CreateMessageTemplateResponse
- type CreateOpenIDProviderRequest
- type CreateOpenIDProviderResponse
- type CreateOrderLedgerTypeRequest
- type CreateOrderLedgerTypeResponse
- type CreateOrganizationUnitRequest
- type CreateOrganizationUnitResponse
- type CreateRoleRequest
- type CreateRoleResponse
- type CustomOrderStatus
- type DeleteAccountingRecipeRequest
- type DeleteCustomOrderStatusRequest
- type DeleteMessageTemplateRequesst
- type DeleteOpenIDProviderRequest
- type DeleteOpenIDProviderResponse
- type DeleteOrderLedgerTypeRequest
- type DeleteOrderLedgerTypeResponse
- type DeleteOrganizationUnitRequest
- type DeleteRoleRequest
- type DeleteUserRequest
- type DetachFunctionalitiesFromRoleRequest
- type EmptyResponse
- type GetAccountingRecipeRequest
- type GetAccountingRecipeResponse
- type GetEmployeeResponse
- type GetMessageTemplateByIDRequest
- type GetMessageTemplateByIDResponse
- type GetOpenIDProviderRequest
- type GetOpenIDProviderResponse
- type GetOrganizationUnitDetailedRequest
- type GetOrganizationUnitDetailedResponse
- type GetRoleRequest
- type GetRoleResponse
- type GetSettingRequest
- type GetSettingResponse
- type GetUserRequest
- type GetUserRoleRequest
- type GetUserRoleResponse
- type ListCustomOrderStatusResponse
- type ListOrderLedgerTypeResponse
- type LoginCredentials
- type LoginResponse
- type OrderLedgerType
- type PaperMargin
- type PaperProperties
- type PaperSize
- type Role
- type RoleFunctionality
- type RoleOrganizationUnitSet
- type SetPrimaryOpenIDProviderRequest
- type SetPrimaryOpenIDProviderResponse
- type SetSettingsRequest
- type SetUserRoleRequest
- type UnsetSettingsRequest
- type UpdateAccountingRecipeRequest
- type UpdateAccountingRecipeResponse
- type UpdateCustomOrderStatusRequest
- type UpdateMessageTemplateRequest
- type UpdateOpenIDProviderRequest
- type UpdateOpenIDProviderResponse
- type UpdateOrderLedgerTypeRequest
- type UpdateOrderLedgerTypeResponse
- type UpdateOrganizationUnitRequest
- type UpdateRoleRequest
- type UpdateUserRequest
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachFunctionalitiesToRoleRequest ¶
type AttachFunctionalitiesToRoleRequest struct { RoleID int64 `json:"RoleID"` ScopedFunctionalities []RoleFunctionality `json:"ScopedFunctionalities,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AttachFunctionalitiesToRole ¶
func (c *Client) AttachFunctionalitiesToRole(ctx context.Context, req AttachFunctionalitiesToRoleRequest) (*EmptyResponse, error)
func (*Client) CreateAccountingRecipe ¶
func (c *Client) CreateAccountingRecipe(ctx context.Context, req CreateAccountingRecipeRequest) (*CreateAccountingRecipeResponse, error)
func (*Client) CreateCustomOrderStatus ¶
func (c *Client) CreateCustomOrderStatus(ctx context.Context, req CreateCustomOrderStatusRequest) (*CreateCustomOrderStatusResponse, error)
func (*Client) CreateEmployee ¶
func (c *Client) CreateEmployee(ctx context.Context, req CreateEmployeeUserRequest) (*CreateEmployeeUserResponse, error)
func (*Client) CreateMessageTemplate ¶
func (c *Client) CreateMessageTemplate(ctx context.Context, req CreateMessageTemplateRequest) (*CreateMessageTemplateResponse, error)
func (*Client) CreateOpenIDProvider ¶
func (c *Client) CreateOpenIDProvider(ctx context.Context, req CreateOpenIDProviderRequest) (*CreateOpenIDProviderResponse, error)
func (*Client) CreateOrderLedgerType ¶
func (c *Client) CreateOrderLedgerType(ctx context.Context, req CreateOrderLedgerTypeRequest) (*CreateOrderLedgerTypeResponse, error)
func (*Client) CreateOrganizationUnit ¶
func (c *Client) CreateOrganizationUnit(ctx context.Context, req CreateOrganizationUnitRequest) (*CreateOrganizationUnitResponse, error)
func (*Client) CreateRole ¶
func (c *Client) CreateRole(ctx context.Context, req CreateRoleRequest) (*CreateRoleResponse, error)
func (*Client) DeleteAccountingRecipe ¶
func (c *Client) DeleteAccountingRecipe(ctx context.Context, req DeleteAccountingRecipeRequest) (*EmptyResponse, error)
func (*Client) DeleteCustomOrderStatus ¶
func (c *Client) DeleteCustomOrderStatus(ctx context.Context, req DeleteCustomOrderStatusRequest) (*EmptyResponse, error)
func (*Client) DeleteMessageTemplate ¶
func (c *Client) DeleteMessageTemplate(ctx context.Context, req DeleteMessageTemplateRequesst) (*EmptyResponse, error)
func (*Client) DeleteOpenIDProvider ¶
func (c *Client) DeleteOpenIDProvider(ctx context.Context, req DeleteOpenIDProviderRequest) (*DeleteOpenIDProviderResponse, error)
func (*Client) DeleteOrderLedgerType ¶
func (c *Client) DeleteOrderLedgerType(ctx context.Context, req DeleteOrderLedgerTypeRequest) (*DeleteOrderLedgerTypeResponse, error)
func (*Client) DeleteOrganizationUnit ¶
func (c *Client) DeleteOrganizationUnit(ctx context.Context, req DeleteOrganizationUnitRequest) (*EmptyResponse, error)
func (*Client) DeleteRole ¶
func (c *Client) DeleteRole(ctx context.Context, req DeleteRoleRequest) (*EmptyResponse, error)
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(ctx context.Context, req DeleteUserRequest) (*EmptyResponse, error)
func (*Client) DetachFunctionalitiesFromRole ¶
func (c *Client) DetachFunctionalitiesFromRole(ctx context.Context, req DetachFunctionalitiesFromRoleRequest) (*EmptyResponse, error)
func (*Client) GetAccountingRecipe ¶
func (c *Client) GetAccountingRecipe(ctx context.Context, req GetAccountingRecipeRequest) (*GetAccountingRecipeResponse, error)
func (*Client) GetMessageTemplateByID ¶
func (c *Client) GetMessageTemplateByID(ctx context.Context, req GetMessageTemplateByIDRequest) (*GetMessageTemplateByIDResponse, error)
func (*Client) GetOpenIDProvider ¶
func (c *Client) GetOpenIDProvider(ctx context.Context, req GetOpenIDProviderRequest) (*GetOpenIDProviderResponse, error)
func (*Client) GetOrganizationUnitDetailed ¶
func (c *Client) GetOrganizationUnitDetailed(ctx context.Context, req GetOrganizationUnitDetailedRequest) (*GetOrganizationUnitDetailedResponse, error)
func (*Client) GetRole ¶
func (c *Client) GetRole(ctx context.Context, req GetRoleRequest) (*GetRoleResponse, error)
func (*Client) GetSetting ¶
func (c *Client) GetSetting(ctx context.Context, req GetSettingRequest) (*GetSettingResponse, error)
func (*Client) GetUser ¶
func (c *Client) GetUser(ctx context.Context, req GetUserRequest) (*GetEmployeeResponse, error)
func (*Client) GetUserRole ¶
func (c *Client) GetUserRole(ctx context.Context, req GetUserRoleRequest) (*GetUserRoleResponse, error)
func (*Client) ListCustomOrderStatus ¶
func (c *Client) ListCustomOrderStatus(ctx context.Context) (*ListCustomOrderStatusResponse, error)
func (*Client) ListOrderLedgerTypes ¶
func (c *Client) ListOrderLedgerTypes(ctx context.Context) (*ListOrderLedgerTypeResponse, error)
func (*Client) SetAuthorizationHeader ¶
func (*Client) SetPrimaryOpenIDProvider ¶
func (c *Client) SetPrimaryOpenIDProvider(ctx context.Context, req SetPrimaryOpenIDProviderRequest) (*SetPrimaryOpenIDProviderResponse, error)
func (*Client) SetSettings ¶
func (c *Client) SetSettings(ctx context.Context, req SetSettingsRequest) (*EmptyResponse, error)
func (*Client) SetUserRole ¶
func (c *Client) SetUserRole(ctx context.Context, req SetUserRoleRequest) (*EmptyResponse, error)
func (*Client) UnsetSettings ¶
func (c *Client) UnsetSettings(ctx context.Context, req UnsetSettingsRequest) (*EmptyResponse, error)
func (*Client) UpdateAccountingRecipe ¶
func (c *Client) UpdateAccountingRecipe(ctx context.Context, req UpdateAccountingRecipeRequest) (*UpdateAccountingRecipeResponse, error)
func (*Client) UpdateCustomOrderStatus ¶
func (c *Client) UpdateCustomOrderStatus(ctx context.Context, req UpdateCustomOrderStatusRequest) (*EmptyResponse, error)
func (*Client) UpdateMessageTemplate ¶
func (c *Client) UpdateMessageTemplate(ctx context.Context, req UpdateMessageTemplateRequest) (*EmptyResponse, error)
func (*Client) UpdateOpenIDProvider ¶
func (c *Client) UpdateOpenIDProvider(ctx context.Context, req UpdateOpenIDProviderRequest) (*UpdateOpenIDProviderResponse, error)
func (*Client) UpdateOrderLedgerType ¶
func (c *Client) UpdateOrderLedgerType(ctx context.Context, req UpdateOrderLedgerTypeRequest) (*UpdateOrderLedgerTypeResponse, error)
func (*Client) UpdateOrganizationUnit ¶
func (c *Client) UpdateOrganizationUnit(ctx context.Context, req UpdateOrganizationUnitRequest) (*EmptyResponse, error)
func (*Client) UpdateRole ¶
func (c *Client) UpdateRole(ctx context.Context, req UpdateRoleRequest) (*EmptyResponse, error)
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, req UpdateUserRequest) (*EmptyResponse, error)
type CreateCustomOrderStatusResponse ¶
type CreateCustomOrderStatusResponse struct {
ID int64
}
type CreateEmployeeResult ¶
type CreateEmployeeResult int
const ( CreatedNewUser CreateEmployeeResult = iota UpgradedExistingUser UpdatedExistingUser )
type CreateEmployeeUserResponse ¶
type CreateEmployeeUserResponse struct { ID int64 `json:"UserID"` Result CreateEmployeeResult `json:"Result"` }
type CreateMessageTemplateRequest ¶
type CreateMessageTemplateRequest struct { Name string `json:"Name"` OrganizationUnitID int64 `json:"OrganizationUnitID,omitempty"` LanguageID string `json:"LanguageID,omitempty"` CountryID string `json:"CountryID,omitempty"` Header string `json:"Header,omitempty"` Template string `json:"Template"` Helpers string `json:"Helpers,omitempty"` Type int64 `json:"Type"` Layout string `json:"Layout,omitempty"` Destination int64 `json:"Destination"` PaperProperties *PaperProperties `json:"PaperProperties,omitempty"` //omitempty doesn't work for struct unless it is a pointer IsDisabled bool `json:"IsDisable,omitempty"` }
type CreateMessageTemplateResponse ¶
type CreateMessageTemplateResponse struct {
ID int64
}
type CreateOpenIDProviderRequest ¶
type CreateOpenIDProviderRequest struct { BaseUrl string `json:"BaseUrl"` ClientID string `json:"ClientID"` CreateUsers bool `json:"CreateUsers"` EmailAddressClaim string `json:"EmailAddressClaim,omitempty"` Enabled bool `json:"Enabled"` FirstNameClaim string `json:"FirstNameClaim,omitempty"` LastNameClaim string `json:"LastNameClaim,omitempty"` Name string `json:"Name,omitempty"` NicknameClaim string `json:"NicknameClaim,omitempty"` UserType int64 `json:"UserType"` }
type CreateOpenIDProviderResponse ¶
type CreateOpenIDProviderResponse struct {
ID int64 `json:"ID"`
}
type CreateOrderLedgerTypeResponse ¶
type CreateOrderLedgerTypeResponse struct {
ID int64
}
type CreateOrganizationUnitRequest ¶
type CreateOrganizationUnitRequest struct { Name string `json:"Name,omitempty"` PhoneNumber string `json:"PhoneNumber,omitempty"` EmailAddress string `json:"EmailAddress,omitempty"` ParentID int64 `json:"ParentID,omitempty"` CurrencyID string `json:"CurrencyID,omitempty"` BackendID string `json:"BackendID,omitempty"` CostPriceCurrencyID string `json:"CostPriceCurrencyID,omitempty"` Type int64 `json:"Type,omitempty"` Latitude float64 `json:"Latitude,omitempty"` Longitude float64 `json:"Longitude,omitempty"` Address *Address `json:"Address,omitempty"` }
type CreateOrganizationUnitResponse ¶
type CreateOrganizationUnitResponse struct {
ID int64 `json:"ID"`
}
type CreateRoleRequest ¶
type CreateRoleResponse ¶
type CreateRoleResponse struct {
ID int64 `json:"ID"`
}
type CustomOrderStatus ¶
type DeleteAccountingRecipeRequest ¶
type DeleteAccountingRecipeRequest struct {
ID int64 `json:"ID"`
}
type DeleteCustomOrderStatusRequest ¶
type DeleteCustomOrderStatusRequest struct {
ID int64 `json:"ID"`
}
type DeleteMessageTemplateRequesst ¶
type DeleteMessageTemplateRequesst struct {
ID int64
}
type DeleteOpenIDProviderRequest ¶
type DeleteOpenIDProviderRequest struct {
ID int64 `json:"ID"`
}
type DeleteOpenIDProviderResponse ¶
type DeleteOpenIDProviderResponse struct{}
type DeleteOrderLedgerTypeRequest ¶
type DeleteOrderLedgerTypeRequest struct {
ID int64 `json:"ID"`
}
type DeleteOrderLedgerTypeResponse ¶
type DeleteOrderLedgerTypeResponse struct { }
type DeleteOrganizationUnitRequest ¶
type DeleteOrganizationUnitRequest struct {
ID int64 `json:"OrganizationUnitID"`
}
type DeleteRoleRequest ¶
type DeleteRoleRequest struct {
ID int64 `json:"ID"`
}
type DeleteUserRequest ¶
type DeleteUserRequest struct {
ID int64 `json:"ID"`
}
type DetachFunctionalitiesFromRoleRequest ¶
type DetachFunctionalitiesFromRoleRequest struct { RoleID int64 `json:"RoleID"` ScopedFunctionalities []RoleFunctionality `json:"ScopedFunctionalities,omitempty"` }
type EmptyResponse ¶
type EmptyResponse struct{}
type GetAccountingRecipeRequest ¶
type GetAccountingRecipeRequest struct {
ID int64 `json:"ID"`
}
type GetAccountingRecipeResponse ¶
type GetAccountingRecipeResponse struct {
Recipe recipe `json:"Recipe"`
}
type GetEmployeeResponse ¶
type GetMessageTemplateByIDRequest ¶
type GetMessageTemplateByIDRequest struct {
ID int64
}
type GetMessageTemplateByIDResponse ¶
type GetMessageTemplateByIDResponse struct { ID int64 `json:"ID"` Name string `json:"Name"` OrganizationUnitID int64 `json:"OrganizationUnitID,omitempty"` LanguageID string `json:"LanguageID"` CountryID string `json:"CountryID"` Header string `json:"Header"` Template string `json:"Template"` Helpers string `json:"Helpers"` Type int64 `json:"Type"` Layout string `json:"Layout"` Destination int64 `json:"Destination"` PaperProperties *PaperProperties `json:"PaperProperties"` IsDisabled bool `json:"IsDisable,omitempty"` }
type GetOpenIDProviderRequest ¶
type GetOpenIDProviderRequest struct {
ID int64 `json:"ID"`
}
type GetOpenIDProviderResponse ¶
type GetOpenIDProviderResponse struct { ID int64 `json:"ID"` BaseUrl string `json:"BaseUrl"` ClientID string `json:"ClientID"` CreateUsers bool `json:"CreateUsers"` EmailAddressClaim string `json:"EmailAddressClaim,omitempty"` Enabled bool `json:"Enabled"` FirstNameClaim string `json:"FirstNameClaim,omitempty"` LastNameClaim string `json:"LastNameClaim,omitempty"` Name string `json:"Name,omitempty"` NicknameClaim string `json:"NicknameClaim,omitempty"` UserType int64 `json:"UserType"` Primary bool `json:"Primary"` }
type GetOrganizationUnitDetailedRequest ¶
type GetOrganizationUnitDetailedRequest struct {
ID int64 `json:"ID"`
}
type GetOrganizationUnitDetailedResponse ¶
type GetOrganizationUnitDetailedResponse struct { ID int64 `json:"ID"` Name string `json:"Name"` PhoneNumber string `json:"PhoneNumber"` EmailAddress string `json:"EmailAddress"` ParentID int64 `json:"ParentID"` CurrencyID string `json:"CurrencyID"` BackendID string `json:"BackendID"` CostPriceCurrencyID string `json:"CostPriceCurrencyID"` Type int64 `json:"Type"` Latitude float64 `json:"Latitude"` Longitude float64 `json:"Longitude"` Address *Address `json:"Address,omitempty"` }
type GetRoleRequest ¶
type GetRoleRequest struct {
ID int64 `json:"ID"`
}
type GetRoleResponse ¶
type GetRoleResponse struct {
Result Role `json:"Result"`
}
type GetSettingRequest ¶
type GetSettingResponse ¶
type GetSettingResponse struct {
Value string `json:"Value"`
}
type GetUserRequest ¶
type GetUserRequest struct {
ID int64 `json:"ID"`
}
type GetUserRoleRequest ¶
type GetUserRoleRequest struct {
UserId int64 `json:"UserID"`
}
type GetUserRoleResponse ¶
type GetUserRoleResponse struct {
Roles []UserRole `json:"Roles"`
}
type ListCustomOrderStatusResponse ¶
type ListCustomOrderStatusResponse struct {
Result []CustomOrderStatus `json:"Result"`
}
type ListOrderLedgerTypeResponse ¶
type ListOrderLedgerTypeResponse struct {
Result []OrderLedgerType `json:"OrderLedgerTypes"`
}
type LoginCredentials ¶
type LoginResponse ¶
type LoginResponse struct {
AuthenticationToken string `json:"AuthenticationToken"`
}
type OrderLedgerType ¶
type PaperMargin ¶
type PaperProperties ¶
type PaperProperties struct { WaitForNetworkIdle bool `json:"WaitForNetworkIdle"` WaitForJS bool `json:"WaitForJS"` Size PaperSize `json:"Size"` Format int64 `json:"Format"` Orientation int64 `json:"Orientation"` Margin PaperMargin `json:"PaperMargin"` ThermalPrinterTemplateType int64 `json:"ThermalPrinterTemplateType"` }
type Role ¶
type Role struct { Name string `json:"Name"` UserType int64 `json:"UserType,omitempty"` Code string `json:"Code,omitempty"` ScopedFunctionalities []RoleFunctionality `json:"ScopedFunctionalities"` }
type RoleFunctionality ¶
type RoleOrganizationUnitSet ¶
type SetPrimaryOpenIDProviderRequest ¶
type SetPrimaryOpenIDProviderRequest struct {
ID int64 `json:"ID"`
}
type SetPrimaryOpenIDProviderResponse ¶
type SetPrimaryOpenIDProviderResponse struct{}
type SetSettingsRequest ¶
type SetUserRoleRequest ¶
type SetUserRoleRequest struct { UserId int64 `json:"UserID"` Roles []RoleOrganizationUnitSet `json:"Roles"` }
type UnsetSettingsRequest ¶
type UpdateAccountingRecipeResponse ¶
type UpdateAccountingRecipeResponse struct {
HasErrors bool `json:"HasErrors"`
}
type UpdateMessageTemplateRequest ¶
type UpdateMessageTemplateRequest struct { ID int64 `json:"ID"` Name string `json:"Name"` OrganizationUnitID int64 `json:"OrganizationUnitID,omitempty"` LanguageID string `json:"LanguageID,omitempty"` CountryID string `json:"CountryID,omitempty"` Header string `json:"Header,omitempty"` Template string `json:"Template"` Helpers string `json:"Helpers,omitempty"` Layout string `json:"Layout,omitempty"` Destination int64 `json:"Destination"` PaperProperties *PaperProperties `json:"PaperProperties,omitempty"` //omitempty doesn't work for struct unless it is a pointer IsDisabled bool `json:"IsDisable,omitempty"` }
type UpdateOpenIDProviderRequest ¶
type UpdateOpenIDProviderRequest struct { ID int64 `json:"ID"` BaseUrl string `json:"BaseUrl,omitempty"` ClientID string `json:"ClientID,omitempty"` CreateUsers bool `json:"CreateUsers,omitempty"` EmailAddressClaim string `json:"EmailAddressClaim,omitempty"` Enabled bool `json:"Enabled,omitempty"` FirstNameClaim string `json:"FirstNameClaim,omitempty"` LastNameClaim string `json:"LastNameClaim,omitempty"` Name string `json:"Name,omitempty"` NicknameClaim string `json:"NicknameClaim,omitempty"` UserType int64 `json:"UserType"` }
type UpdateOpenIDProviderResponse ¶
type UpdateOpenIDProviderResponse struct{}
type UpdateOrderLedgerTypeResponse ¶
type UpdateOrderLedgerTypeResponse struct { }
type UpdateOrganizationUnitRequest ¶
type UpdateOrganizationUnitRequest struct { ID int64 `json:"ID,omitempty"` Name string `json:"Name,omitempty"` PhoneNumber string `json:"PhoneNumber,omitempty"` EmailAddress string `json:"EmailAddress,omitempty"` CostPriceCurrencyID string `json:"CostPriceCurrencyID,omitempty"` Type int64 `json:"Type,omitempty"` Latitude float64 `json:"Latitude,omitempty"` Longitude float64 `json:"Longitude,omitempty"` Address *Address `json:"Address,omitempty"` }
type UpdateRoleRequest ¶
type UpdateUserRequest ¶
Click to show internal directories.
Click to hide internal directories.