mirror of
https://github.com/graphql-hive/console
synced 2026-05-21 16:18:31 +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
|
||||
line1: String
|
||||
line2: String
|
||||
postalCode: Int
|
||||
postalCode: String
|
||||
state: String
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ export const resolvers: BillingModule.Resolvers = {
|
|||
country: bd => bd.address?.country || null,
|
||||
line1: bd => bd.address?.line1 || 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,
|
||||
},
|
||||
Query: {
|
||||
|
|
|
|||
|
|
@ -419,21 +419,12 @@ fragment OrgBillingInfoFields on Organization {
|
|||
plan
|
||||
...OrgRateLimitFields
|
||||
billingConfiguration {
|
||||
hasActiveSubscription
|
||||
paymentMethod {
|
||||
brand
|
||||
last4
|
||||
expMonth
|
||||
expYear
|
||||
}
|
||||
billingAddress {
|
||||
city
|
||||
country
|
||||
line1
|
||||
line2
|
||||
postalCode
|
||||
state
|
||||
}
|
||||
invoices {
|
||||
...BillingInvoiceFields
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue