The generalCreditRequest ATL COM module for
generating electronic and paper based credit requests
generating electronic and paper based credit requests
API browser of generalCreditRequest450 COM module
IGeneralCreditResult::GetFirstService method | |||
---|---|---|---|
Retrieves the first service record from the list of services.
VARIANT_FALSE is returned if the end of the service list is reached. |
|||
Restful webservice calling syntax | |||
[POST] | /baseURL/IGeneralCreditResult/GetFirstService | ||
[JSON input data] | pIGeneralCreditResult: | longValue, //interface address |
|
[JSON result data] | pbstrTariffType: pbstrTariffCode: pbstrTariffRefCode: pbstrTariffText: pdQuantity: pdDateBegin: pdTP: pdTPV: pdExternalFactor: pdAmount: pbstrRemark: pbStatus: |
"utf8StringValue", "utf8StringValue", "utf8StringValue", "utf8StringValue", doubleValue, "stringISODateValue", doubleValue, doubleValue, doubleValue, doubleValue, "utf8StringValue", booleanValue |
|
[HTTP result status] | 200 | Return status 200 signals a successful method call | |
204 | Return status 204 (noContent) signals that the end of an iteration is reached | ||
>= 400 | Return status >= 400 signals an unsuccessful function call. The returned JSON{errorCode: code, errorText:"text"} supplies the error message the same as GetAbortInfo() would do. | ||
C/C++ calling syntax | |||
HRESULT GetFirstService( | BSTR
BSTR BSTR BSTR double DATE double double double double BSTR VARIANT_BOOL |
*pbstrTariffType,
*pbstrTariffCode, *pbstrTariffRefCode, *pbstrTariffText, *pdQuantity, *pdDateBegin, *pdTP, *pdTPV, *pdExternalFactor, *pdAmount, *pbstrRemark, *pbStatus); |
|
[C/C++ return value] | S_OK | This value is returned if the function call was successful. | |
S_FALSE | This value is returned if the end of an iteration is reached | ||
E_name | This value is returned if the function call was unsuccessful and an error exception was generated. Note that if you are using SmartPointers an exception is thrown under these conditions. | ||
Calling argument description | |||
[out] BSTR | *pbstrTariffType | The official tariff type as defined by Forum Datenaustausch | |
[out] BSTR | *pbstrTariffCode | The tariff code as defined by the used tariff | |
[out] BSTR | *pbstrTariffRefCode | The tariff reference code if any such code was defined in the input. | |
[out] BSTR | *pbstrTariffText | The name of the tariff record as defined by the used tariff | |
[out] double | *pdQuantity | The quantity of the current service.
Note, that the quantity is defined as double, spanning zero and positive fractional values!
|
|
[out] DATE | *pdDateBegin | The supposed application date of the service.
Please note, that the service date defines the existence of a service as well as the correct TP and TPV. Therefore, if the service date is unknown, the treatment begin date is applied. |
|
[out] double | *pdTP | The tax points (TP) of the current service. | |
[out] double | *pdTPV | The tax point value (TPV) of the current service. | |
[out] double | *pdExternalFactor | The external scaling factor used to scale the service e.g. to give a discount or surcharge. | |
[out] double | *pdAmount | dAmount is the caused incurred cost given by the tariff record and calculated as follows:
The equation is calculated in full precision and the result rounded to 2 significant decimal places. |
|
[out] BSTR | *pbstrRemark | An optional remark for the given service | |
[out,retval] VARIANT_BOOL | *pbStatus | Return status of the method. If pbStatus is VARIANT_FALSE the end of data is reached | |