Skip to content

Commit

Permalink
feat(backend): support for returning grantId when querying outgoing p…
Browse files Browse the repository at this point in the history
…ayment

When querying outgoing payment, either single one, or list of them via pagination, etc., it will be
possible to also get a grantId under which the outgoing
  • Loading branch information
golobitch committed Aug 5, 2024
1 parent c61e03e commit ad89dad
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions localenv/mock-account-servicing-entity/generated/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/backend/src/graphql/generated/graphql.schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/backend/src/graphql/generated/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/backend/src/graphql/resolvers/outgoing_payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export function paymentToGraphql(
receiveAmount: payment.receiveAmount,
metadata: payment.metadata,
createdAt: new Date(+payment.createdAt).toISOString(),
quote: quoteToGraphql(payment.quote)
quote: quoteToGraphql(payment.quote),
grantId: payment.grantId
}
}
2 changes: 2 additions & 0 deletions packages/backend/src/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,8 @@ type OutgoingPayment implements BasePayment & Model {
sentAmount: Amount!
"Date-time of creation"
createdAt: String!
"Id of the Grant under which this outgoing payment was created"
grantId: String
}

enum OutgoingPaymentState {
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/app/generated/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/mock-account-service-lib/src/generated/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions test/integration/lib/generated/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad89dad

Please sign in to comment.