BillingDetails.postalCode as String, fetch less billingConfiguration in web/app (#952)

This commit is contained in:
Kamil Kisiela 2023-01-05 15:21:38 +01:00 committed by GitHub
parent 47e3953e06
commit e6e7b42c82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 11 deletions

View file

@ -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
} }

View file

@ -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: {

View file

@ -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
} }