diff --git a/dev/apollo-federation/supergraph.graphql b/dev/apollo-federation/supergraph.graphql index 09c7b3662..ee20520f6 100644 --- a/dev/apollo-federation/supergraph.graphql +++ b/dev/apollo-federation/supergraph.graphql @@ -268,7 +268,7 @@ type BridgeAddExternalAccountPayload @join__type(graph: PUBLIC) { errors: [Error!]! - externalAccount: BridgeExternalAccount + externalAccount: BridgeExternalAccountLink } type BridgeCreateVirtualAccountPayload @@ -287,6 +287,13 @@ type BridgeExternalAccount status: String! } +type BridgeExternalAccountLink + @join__type(graph: PUBLIC) +{ + expiresAt: String! + linkUrl: String! +} + input BridgeInitiateKycInput @join__type(graph: PUBLIC) { diff --git a/dev/config/base-config.yaml b/dev/config/base-config.yaml index fc232cf4c..58cc23919 100644 --- a/dev/config/base-config.yaml +++ b/dev/config/base-config.yaml @@ -43,6 +43,7 @@ bridge: dwIDAQAB -----END PUBLIC KEY----- transfer: "" + external_account: "" timestampSkewMs: 300000 # See Foreign Exchange Rates: https://www.firstglobal-bank.com/ diff --git a/src/graphql/public/schema.graphql b/src/graphql/public/schema.graphql index 30c15eada..e78c343a2 100644 --- a/src/graphql/public/schema.graphql +++ b/src/graphql/public/schema.graphql @@ -243,7 +243,7 @@ input BankAccountInput { type BridgeAddExternalAccountPayload { errors: [Error!]! - externalAccount: BridgeExternalAccount + externalAccount: BridgeExternalAccountLink } type BridgeCreateVirtualAccountPayload { @@ -258,6 +258,11 @@ type BridgeExternalAccount { status: String! } +type BridgeExternalAccountLink { + expiresAt: String! + linkUrl: String! +} + input BridgeInitiateKycInput { email: String full_name: String