(ObtenerEstadoDeConsentimiento)
- GetConsentStatus - Estado de consentimiento AIS
- GetConsentsConfirmationOfFunds - Estado de consentimiento FCS
Este servicio permite al TPP conocer el estado de una solicitud de consentimiento iniciada previamente.
package main
import(
tjsolerpsd2 "github.com/speakeasy-sdks/tjsoler-psd2"
"context"
"github.com/speakeasy-sdks/tjsoler-psd2/pkg/models/operations"
"log"
)
func main() {
s := tjsolerpsd2.New()
ctx := context.Background()
res, err := s.ObtenerEstadoDeConsentimiento.GetConsentStatus(ctx, operations.GetConsentStatusRequest{
Digest: "<value>",
Signature: "<value>",
TPPSignatureCertificate: "TestTPPCertificate",
XRequestID: "<value>",
Aspsp: "<value>",
ConsentID: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
request |
operations.GetConsentStatusRequest | ✔️ | The request object to use for the request. |
*operations.GetConsentStatusResponse, error
Error Object | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 4xx-5xx | / |
Este servicio permite al TPP, a través del Hub, conocer el estado en el que se encuentra un recurso de consentimiento de confirmación de fondos en el ASPSP.
package main
import(
tjsolerpsd2 "github.com/speakeasy-sdks/tjsoler-psd2"
"context"
"github.com/speakeasy-sdks/tjsoler-psd2/pkg/models/operations"
"log"
)
func main() {
s := tjsolerpsd2.New()
ctx := context.Background()
res, err := s.ObtenerEstadoDeConsentimiento.GetConsentsConfirmationOfFunds(ctx, operations.GetConsentsConfirmationOfFundsRequest{
Digest: "<value>",
Signature: "<value>",
TPPSignatureCertificate: "<value>",
XRequestID: "<value>",
Aspsp: "<value>",
ConsentID: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.Body != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
request |
operations.GetConsentsConfirmationOfFundsRequest | ✔️ | The request object to use for the request. |
*operations.GetConsentsConfirmationOfFundsResponse, error
Error Object | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 4xx-5xx | / |