Skip to content

Commit

Permalink
Add source_iban param to complete_topup_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgranhao committed Nov 27, 2024
1 parent e74d4ad commit e5bc4ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions crow/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,12 @@ impl OfferManager {
&self,
id: String,
signed_challenge: String,
source_iban: String,
) -> graphql::Result<FiatTopupSetupInfo> {
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))?;
Expand Down
4 changes: 2 additions & 2 deletions graphql/schemas/operations.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion graphql/schemas/schema_wallet_read.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5bc4ed

Please sign in to comment.