diff --git a/crow/src/lib.rs b/crow/src/lib.rs index 3a2ea35..d73c4f0 100644 --- a/crow/src/lib.rs +++ b/crow/src/lib.rs @@ -161,10 +161,12 @@ impl OfferManager { &self, id: String, signed_challenge: String, + source_iban: String, ) -> graphql::Result { let variables = complete_topup_setup::Variables { id, signed_challenge, + source_iban, }; let access_token = self.auth.query_token()?; let client = build_client(Some(&access_token))?; diff --git a/graphql/schemas/operations.graphql b/graphql/schemas/operations.graphql index 2465f99..d7d0c98 100644 --- a/graphql/schemas/operations.graphql +++ b/graphql/schemas/operations.graphql @@ -198,8 +198,8 @@ mutation StartTopupSetup($request: StartTopupSetupRequest!) { } } -mutation CompleteTopupSetup($id: String!, $signedChallenge: String!) { - complete_topup_setup(id: $id, signed_challenge: $signedChallenge) { +mutation CompleteTopupSetup($id: String!, $signedChallenge: String!, $sourceIban: String!) { + complete_topup_setup(id: $id, signed_challenge: $signedChallenge, source_iban: $sourceIban) { id debitor_iban creditor_reference diff --git a/graphql/schemas/schema_wallet_read.graphql b/graphql/schemas/schema_wallet_read.graphql index ee3ec95..81f0da9 100644 --- a/graphql/schemas/schema_wallet_read.graphql +++ b/graphql/schemas/schema_wallet_read.graphql @@ -730,7 +730,7 @@ type mutation_root { accept_terms_conditions_v2(args: AcceptTermsConditionsV2Input): AcceptTermsConditionsV2Response accept_wallet_acl_by_pk(pk_columns: AcceptWalletPkRequestInput!): WalletAcl assign_lightning_address: LightningAddressResponse - complete_topup_setup(id: String!, signed_challenge: String!): CompleteTopupSetupResponse! + complete_topup_setup(id: String!, signed_challenge: String!, source_iban: String!): CompleteTopupSetupResponse! create_backup(encryptedBackup: String!, schemaName: String!, schemaVersion: String!): CreateBackupResponse disable_lightning_addresses(addresses: [String!]!): Void enable_lightning_addresses(addresses: [String!]!): Void