common.providerspecific

io.token.proto.common.providerspecific /common/src/main/proto/providerspecific.proto


syntax = "proto3";
package io.token.proto.common.providerspecific;
option java_outer_classname = "ProviderSpecific";
option csharp_namespace = "Tokenio.Proto.Common.ProviderSpecific";

import "extensions/message.proto";
import "provider/cma9.proto";
import "provider/polishapi.proto";
import "provider/nextgenpsd2.proto";
import "provider/stet.proto";

message ProviderAccountDetails {
  oneof details {
    cma9.Cma9AccountDetails cma9_account_details = 1;
    polishapi.PolishApiAccountDetails polish_api_account_details = 2;
    nextgenpsd2.NextGenPsd2AccountDetails next_gen_psd2_account_details = 3;
    stet.StetAccountDetails stet_account_details = 4;
  }
}

message ProviderTransactionDetails {
  oneof details {
    polishapi.PolishApiTransactionDetails polish_api_transaction_details = 1;
    nextgenpsd2.NextGenPsd2TransactionDetails next_gen_psd2_transaction_details = 3;
    stet.StetTransactionDetails stet_transaction_details = 4;
  }
}

message ProviderStandingOrderDetails {
  oneof details {
    cma9.Cma9StandingOrderDetails cma9_standing_order_details = 1;
  }
}

message ProviderTransferDetails {
  string id = 1;
  string status = 2;
}

message ProviderStandingOrderSubmissionDetails {
  string id = 1;
  string status = 2;
}

message ProviderTransferMetadata {
  oneof metadata {
    polishapi.PolishApiTransferMetadata polish_api_transfer_metadata = 1;
    nextgenpsd2.NextGenPsd2TransferMetadata next_gen_psd2_transfer_metadata = 2;
    stet.StetTransferMetadata stet_transfer_metadata = 3;
    cma9.Cma9TransferMetadata cma9_transfer_metadata = 4;
  }
}

message ProviderStandingOrderMetadata {
  oneof metadata {
    cma9.Cma9StandingOrderMetadata cma9_standing_order_metadata = 1;
    polishapi.PolishApiStandingOrderMetadata polishapi_standing_order_metadata = 2;
    nextgenpsd2.NextGenPsd2StandingOrderMetadata next_gen_psd2_standing_order_metadata = 3;
    stet.StetStandingOrderMetadata stet_standing_order_metadata = 4;
  }
}

// Used in embedded auth flows
message CredentialField {
  string id = 1; // ID to be used when passing the value of this credential
  string display_name = 2; // display name of the credential
  repeated string options = 3; // optional; used when there is a selection of options, e.g. SMS message, phone call
  bool password = 4; // whether the credential is a password
  string description = 5;
}

enum ScaStatus {
  INVALID = 0;
  AUTHENTICATED = 1;
  AUTHENTICATION_FAILED = 2;
}