analyzes electronic responses to general invoice requests
IGeneralInvoiceResponse::GetAcceptType method | |||
---|---|---|---|
Retrieves detailed information for a response of type Accepted. Call this method if the GetResponse method returns the type enResponseAccepted.
If eHasReimbursement=enYes then this response object includes reimbursement information (cf. Notes about reimbursement). Therefore, further call GetBalance, the type of ESR using GetEsrType and the detailed ESR information including the ESR debitor and ESR creditor by calling the appropriate GetEsr or GetEsrRed or GetEsrQR or GetEsrRedQR method. Alternatively, the IGeneralInvoiceResponseManager::Print method might be called to print a reimbursement invoice. Note that in this case the correct ESR geometry can be included in the print out as well (generationAttribute=enIncludeGeometryInPrint). Calling the iterator pair GetFirstNotification / GetNextNotification is unnecessary as there are no notifications and VARIANT_FALSE would be returned. |
|||
Restful webservice calling syntax | |||
[POST] | /baseURL/IGeneralInvoiceResponse/GetAcceptType | ||
[JSON input data] | pIGeneralInvoiceResponse: | longValue, //interface address |
|
[JSON result data] | pbstrExplanation: peStatusIn: peStatusOut: peHasReimbursement: pbStatus: |
"utf8StringValue", longValue, longValue, longValue, 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 GetAcceptType( | BSTR
StatusType StatusType YesNoType VARIANT_BOOL |
*pbstrExplanation,
*peStatusIn, *peStatusOut, *peHasReimbursement, *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 | *pbstrExplanation | An optional explanation.
The explanation is formulated in the data language returned by the GetResponse method |
|
[out] StatusType | *peStatusIn | The status of the invoice/reminder request (given by the topmost object reference) before this response was generated | |
[out] StatusType | *peStatusOut | The status of the invoice/reminder request (given by the topmost object reference) after this response was generated | |
[out] YesNoType | *peHasReimbursement | Defines if the response includes reimbursement information.
A reimbursement process is initialized by the insurance as a result of a storno to an already paid invoice or reminder. The back paying to the insurance is done with the given reimbursement information. |
|
[out,retval] VARIANT_BOOL | *pbStatus | Return status of the method. If pbStatus is VARIANT_FALSE then an error occurred and GetAbortInfo should be called to retrieve the error string. | |