All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
variableexpenseCreateObjectV1 | POST /1/object/variableexpense | Create a new Variableexpense |
variableexpenseEditObjectV1 | PUT /1/object/variableexpense/{pkiVariableexpenseID} | Edit an existing Variableexpense |
variableexpenseGetAutocompleteV2 | GET /2/object/variableexpense/getAutocomplete/{sSelector} | Retrieve Variableexpenses and IDs |
variableexpenseGetListV1 | GET /1/object/variableexpense/getList | Retrieve Variableexpense list |
variableexpenseGetObjectV2 | GET /2/object/variableexpense/{pkiVariableexpenseID} | Retrieve an existing Variableexpense |
open class func variableexpenseCreateObjectV1(variableexpenseCreateObjectV1Request: VariableexpenseCreateObjectV1Request, completion: @escaping (_ data: VariableexpenseCreateObjectV1Response?, _ error: Error?) -> Void)
Create a new Variableexpense
The endpoint allows to create one or many elements at once.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let variableexpenseCreateObjectV1Request = variableexpense-createObject-v1-Request(aObjVariableexpense: [variableexpense-RequestCompound(pkiVariableexpenseID: 123, sVariableexpenseCode: "sVariableexpenseCode_example", objVariableexpenseDescription: Multilingual-VariableexpenseDescription(sVariableexpenseDescription1: "sVariableexpenseDescription1_example", sVariableexpenseDescription2: "sVariableexpenseDescription2_example"), eVariableexpenseTaxable: Field-eVariableexpenseTaxable(), bVariableexpenseIsactive: true)]) // VariableexpenseCreateObjectV1Request |
// Create a new Variableexpense
ObjectVariableexpenseAPI.variableexpenseCreateObjectV1(variableexpenseCreateObjectV1Request: variableexpenseCreateObjectV1Request) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
variableexpenseCreateObjectV1Request | VariableexpenseCreateObjectV1Request |
VariableexpenseCreateObjectV1Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func variableexpenseEditObjectV1(pkiVariableexpenseID: Int, variableexpenseEditObjectV1Request: VariableexpenseEditObjectV1Request, completion: @escaping (_ data: VariableexpenseEditObjectV1Response?, _ error: Error?) -> Void)
Edit an existing Variableexpense
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let pkiVariableexpenseID = 987 // Int |
let variableexpenseEditObjectV1Request = variableexpense-editObject-v1-Request(objVariableexpense: variableexpense-RequestCompound(pkiVariableexpenseID: 123, sVariableexpenseCode: "sVariableexpenseCode_example", objVariableexpenseDescription: Multilingual-VariableexpenseDescription(sVariableexpenseDescription1: "sVariableexpenseDescription1_example", sVariableexpenseDescription2: "sVariableexpenseDescription2_example"), eVariableexpenseTaxable: Field-eVariableexpenseTaxable(), bVariableexpenseIsactive: true)) // VariableexpenseEditObjectV1Request |
// Edit an existing Variableexpense
ObjectVariableexpenseAPI.variableexpenseEditObjectV1(pkiVariableexpenseID: pkiVariableexpenseID, variableexpenseEditObjectV1Request: variableexpenseEditObjectV1Request) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
pkiVariableexpenseID | Int | ||
variableexpenseEditObjectV1Request | VariableexpenseEditObjectV1Request |
VariableexpenseEditObjectV1Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func variableexpenseGetAutocompleteV2(sSelector: SSelector_variableexpenseGetAutocompleteV2, eFilterActive: EFilterActive_variableexpenseGetAutocompleteV2? = nil, sQuery: String? = nil, acceptLanguage: HeaderAcceptLanguage? = nil, completion: @escaping (_ data: VariableexpenseGetAutocompleteV2Response?, _ error: Error?) -> Void)
Retrieve Variableexpenses and IDs
Get the list of Variableexpense to be used in a dropdown or autocomplete control.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let sSelector = "sSelector_example" // String | The type of Variableexpenses to return
let eFilterActive = "eFilterActive_example" // String | Specify which results we want to display. (optional) (default to .active)
let sQuery = "sQuery_example" // String | Allow to filter the returned results (optional)
let acceptLanguage = Header-Accept-Language() // HeaderAcceptLanguage | (optional)
// Retrieve Variableexpenses and IDs
ObjectVariableexpenseAPI.variableexpenseGetAutocompleteV2(sSelector: sSelector, eFilterActive: eFilterActive, sQuery: sQuery, acceptLanguage: acceptLanguage) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
sSelector | String | The type of Variableexpenses to return | |
eFilterActive | String | Specify which results we want to display. | [optional] [default to .active] |
sQuery | String | Allow to filter the returned results | [optional] |
acceptLanguage | HeaderAcceptLanguage | [optional] |
VariableexpenseGetAutocompleteV2Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func variableexpenseGetListV1(eOrderBy: EOrderBy_variableexpenseGetListV1? = nil, iRowMax: Int? = nil, iRowOffset: Int? = nil, acceptLanguage: HeaderAcceptLanguage? = nil, sFilter: String? = nil, completion: @escaping (_ data: VariableexpenseGetListV1Response?, _ error: Error?) -> Void)
Retrieve Variableexpense list
Enum values that can be filtered in query parameter sFilter: | Variable | Valid values | |---|---| | eVariableexpenseTaxable | Yes
No
Included |
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let eOrderBy = "eOrderBy_example" // String | Specify how you want the results to be sorted (optional)
let iRowMax = 987 // Int | (optional)
let iRowOffset = 987 // Int | (optional) (default to 0)
let acceptLanguage = Header-Accept-Language() // HeaderAcceptLanguage | (optional)
let sFilter = "sFilter_example" // String | (optional)
// Retrieve Variableexpense list
ObjectVariableexpenseAPI.variableexpenseGetListV1(eOrderBy: eOrderBy, iRowMax: iRowMax, iRowOffset: iRowOffset, acceptLanguage: acceptLanguage, sFilter: sFilter) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
eOrderBy | String | Specify how you want the results to be sorted | [optional] |
iRowMax | Int | [optional] | |
iRowOffset | Int | [optional] [default to 0] | |
acceptLanguage | HeaderAcceptLanguage | [optional] | |
sFilter | String | [optional] |
VariableexpenseGetListV1Response
- Content-Type: Not defined
- Accept: application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func variableexpenseGetObjectV2(pkiVariableexpenseID: Int, completion: @escaping (_ data: VariableexpenseGetObjectV2Response?, _ error: Error?) -> Void)
Retrieve an existing Variableexpense
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let pkiVariableexpenseID = 987 // Int |
// Retrieve an existing Variableexpense
ObjectVariableexpenseAPI.variableexpenseGetObjectV2(pkiVariableexpenseID: pkiVariableexpenseID) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
pkiVariableexpenseID | Int |
VariableexpenseGetObjectV2Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]