(EliminarConsentimiento)
- DeleteConsentID - Eliminar consentimiento AIS
- DeleteConsentsConfirmationOfFunds - Eliminar consentimiento FCS
Este servicio permite al TPP eliminar una solicitud de consentimiento
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.EliminarConsentimiento.DeleteConsentID(ctx, operations.DeleteConsentIDRequest{
Digest: "<value>",
Signature: "<value>",
TPPSignatureCertificate: "<value>",
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.DeleteConsentIDRequest | ✔️ | The request object to use for the request. |
*operations.DeleteConsentIDResponse, 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.EliminarConsentimiento.DeleteConsentsConfirmationOfFunds(ctx, operations.DeleteConsentsConfirmationOfFundsRequest{
Digest: "<value>",
Signature: "<value>",
TPPSignatureCertificate: "<value>",
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.DeleteConsentsConfirmationOfFundsRequest | ✔️ | The request object to use for the request. |
*operations.DeleteConsentsConfirmationOfFundsResponse, error
Error Object | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 4xx-5xx | / |