mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +00:00
BillingDetails.postalCode as String, fetch less billingConfiguration in web/app (#952)
This commit is contained in:
parent
47e3953e06
commit
e6e7b42c82
3 changed files with 2 additions and 11 deletions
|
|
@ -35,7 +35,7 @@ export default gql`
|
||||||
country: String
|
country: String
|
||||||
line1: String
|
line1: String
|
||||||
line2: String
|
line2: String
|
||||||
postalCode: Int
|
postalCode: String
|
||||||
state: String
|
state: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ export const resolvers: BillingModule.Resolvers = {
|
||||||
country: bd => bd.address?.country || null,
|
country: bd => bd.address?.country || null,
|
||||||
line1: bd => bd.address?.line1 || null,
|
line1: bd => bd.address?.line1 || null,
|
||||||
line2: bd => bd.address?.line2 || null,
|
line2: bd => bd.address?.line2 || null,
|
||||||
postalCode: bd => (bd.address?.postal_code ? parseInt(bd.address?.postal_code) : null),
|
postalCode: bd => bd.address?.postal_code ?? null,
|
||||||
state: bd => bd.address?.state || null,
|
state: bd => bd.address?.state || null,
|
||||||
},
|
},
|
||||||
Query: {
|
Query: {
|
||||||
|
|
|
||||||
|
|
@ -419,21 +419,12 @@ fragment OrgBillingInfoFields on Organization {
|
||||||
plan
|
plan
|
||||||
...OrgRateLimitFields
|
...OrgRateLimitFields
|
||||||
billingConfiguration {
|
billingConfiguration {
|
||||||
hasActiveSubscription
|
|
||||||
paymentMethod {
|
paymentMethod {
|
||||||
brand
|
brand
|
||||||
last4
|
last4
|
||||||
expMonth
|
expMonth
|
||||||
expYear
|
expYear
|
||||||
}
|
}
|
||||||
billingAddress {
|
|
||||||
city
|
|
||||||
country
|
|
||||||
line1
|
|
||||||
line2
|
|
||||||
postalCode
|
|
||||||
state
|
|
||||||
}
|
|
||||||
invoices {
|
invoices {
|
||||||
...BillingInvoiceFields
|
...BillingInvoiceFields
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue