Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBL-1556: Add network calls to confirm address and requery the PPO card list #2088

Merged
merged 24 commits into from
Aug 6, 2024
Merged
4 changes: 2 additions & 2 deletions app/src/main/graphql/checkout.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ mutation CompleteOnSessionCheckout($checkoutId: ID!, $paymentIntentClientSecret:
}
}

mutation completeOrder($projectId: ID! $stripePaymentMethodId: String, $paymentSourceId: String, $paymentSourceReusable: Boolean, $paymentMethodTypes: [String!]) {
completeOrder(input:{ projectId: $projectId, stripePaymentMethodId: $stripePaymentMethodId, paymentSourceId: $paymentSourceId, paymentSourceReusable: $paymentSourceReusable, paymentMethodTypes: $paymentMethodTypes }) {
Copy link
Contributor Author

@leighdouglas leighdouglas Aug 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Arkariang @mtgriego im a bit nervous about this change. this change was required after i downloaded the new graphql schema.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would affect the feature branch, but if changes are needed there we can add it back in before merging to master, though to be safe lets hold the merge until we can confirm with Isa tomorrow

mutation completeOrder($projectId: ID!, $stripePaymentMethodId: String, $paymentSourceId: String, $paymentSourceReusable: Boolean, $paymentMethodTypes: [String!]) {
completeOrder(input:{stripePaymentMethodId: $stripePaymentMethodId, paymentSourceId: $paymentSourceId, paymentSourceReusable: $paymentSourceReusable, paymentMethodTypes: $paymentMethodTypes }) {
status
clientSecret
}
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/graphql/fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ fragment ppoCard on Backing {
amount {
...amount
}
deliveryAddress {
id
}
project {
name
id
Expand Down
38 changes: 15 additions & 23 deletions app/src/main/graphql/pledgeProjectsOverview.graphql
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
query PledgedProjectsOverview($first: Int, $after: String, $last: Int, $before: String) {
pledgeProjectsOverview {
categories {
count
slug
title
}
pledges(first : $first, after: $after, last : $last, before: $before) {
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
pledgeProjectsOverview {
pledges(first : $first, after: $after, last : $last, before: $before) {
totalCount
edges {
cursor
cursor
node {
backing {
... ppoCard
}
backing {
...ppoCard
}
tierType
tags
}
}
nodes {
backing {
... ppoCard
}
pageInfo {
hasPreviousPage
hasNextPage
endCursor
startCursor
}
}
}
}
}
}
Loading