Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 2.78 KB

File metadata and controls

59 lines (45 loc) · 2.78 KB

ConsentimientoDeInformacionSobreCuentasDePagoAIS

(ConsentimientoDeInformacionSobreCuentasDePagoAIS)

Available Operations

PostConsents

Con este servicio, un TPP a través del HUB puede solicitar un consentimiento para acceder a las cuentas del PSU. Esta solicitud puede ser sobre unas cuentas indicadas o no.

Example Usage

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.ConsentimientoDeInformacionSobreCuentasDePagoAIS.PostConsents(ctx, operations.PostConsentsRequest{
        Digest: "<value>",
        PSUIPAddress: "<value>",
        RequestBody: []byte("0x99AC4b528c"),
        Signature: "<value>",
        TPPSignatureCertificate: "<value>",
        XRequestID: "<value>",
        Aspsp: "<value>",
    })
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
request operations.PostConsentsRequest ✔️ The request object to use for the request.

Response

*operations.PostConsentsResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 4xx-5xx /