Skip to content

Commit

Permalink
chore: update metaphysics graphql schema (#10964)
Browse files Browse the repository at this point in the history
  • Loading branch information
artsyit authored Oct 14, 2024
1 parent 2661ad2 commit d1caede
Showing 1 changed file with 133 additions and 0 deletions.
133 changes: 133 additions & 0 deletions data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -8095,6 +8095,32 @@ type CreateImagePayload {
image: ARImage!
}

type CreateInvoicePaymentFailure {
mutationError: GravityMutationError
}

input CreateInvoicePaymentInput {
amountMinor: Float!
clientMutationId: String
creditCardToken: String!
invoiceID: String!
invoiceToken: String!
provider: String!
}

type CreateInvoicePaymentPayload {
clientMutationId: String
responseOrError: CreateInvoicePaymentResponseOrError
}

union CreateInvoicePaymentResponseOrError =
CreateInvoicePaymentFailure
| CreateInvoicePaymentSuccess

type CreateInvoicePaymentSuccess {
invoicePayment: InvoicePayment
}

# Autogenerated input type of CreateOfferMutation
input CreateOfferMutationInput {
# A unique identifier for the client performing the mutation.
Expand Down Expand Up @@ -11753,6 +11779,110 @@ union InventoryHoldOrErrorUnion = Error | InventoryHold
# A hold or error object
union InventoryHoldOrErrorsUnion = Errors | InventoryHold

type Invoice {
currency: String!
email: String
externalNote: String

# A globally unique ID.
id: ID!

# A type-specific ID likely used as a database ID.
internalID: ID!
lineItems: [InvoiceLineItem!]!
name: String
number: String!
payments: [InvoicePayment!]!
readyAt(
format: String

# A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone: String
): String

# A formatted price with various currency formatting options.
remaining(
decimal: String = "."
disambiguate: Boolean = false

# Allows control of symbol position (%v = value, %s = symbol)
format: String = "%s%v"
precision: Int = 0
symbol: String
thousand: String = ","
): String
state: InvoiceState!
}

type InvoiceLineItem {
# A formatted price with various currency formatting options.
amount(
decimal: String = "."
disambiguate: Boolean = false

# Allows control of symbol position (%v = value, %s = symbol)
format: String = "%s%v"
precision: Int = 0
symbol: String
thousand: String = ","
): String
description: String!

# A globally unique ID.
id: ID!

# A type-specific ID likely used as a database ID.
internalID: ID!
quantity: Int!

# A formatted price with various currency formatting options.
subtotal(
decimal: String = "."
disambiguate: Boolean = false

# Allows control of symbol position (%v = value, %s = symbol)
format: String = "%s%v"
precision: Int = 0
symbol: String
thousand: String = ","
): String
}

type InvoicePayment {
# A formatted price with various currency formatting options.
amount(
decimal: String = "."
disambiguate: Boolean = false

# Allows control of symbol position (%v = value, %s = symbol)
format: String = "%s%v"
precision: Int = 0
symbol: String
thousand: String = ","
): String
createdAt(
format: String

# A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone: String
): String
creditCard: CreditCard

# A globally unique ID.
id: ID!

# A type-specific ID likely used as a database ID.
internalID: ID!
successful: Boolean!
}

enum InvoiceState {
CANCELED
DRAFT
PAID
READY
}

# Represents untyped JSON
scalar JSON

Expand Down Expand Up @@ -13336,6 +13466,7 @@ type Mutation {
createInquiryOrder(
input: CommerceCreateInquiryOrderWithArtworkInput!
): CommerceCreateInquiryOrderWithArtworkPayload
createInvoicePayment(input: CreateInvoicePaymentInput!): CreateInvoicePaymentPayload

# Creates an ordered set.
createOrderedSet(input: CreateOrderedSetMutationInput!): CreateOrderedSetMutationPayload
Expand Down Expand Up @@ -16455,6 +16586,7 @@ type Query {
size: Int
userId: String
): IdentityVerificationConnection
invoice(token: String!): Invoice
job(id: ID!): Job!
jobs: [Job!]!
markdown(content: String!): MarkdownContent
Expand Down Expand Up @@ -21061,6 +21193,7 @@ type Viewer {
size: Int
userId: String
): IdentityVerificationConnection
invoice(token: String!): Invoice
job(id: ID!): Job!
jobs: [Job!]!
markdown(content: String!): MarkdownContent
Expand Down

0 comments on commit d1caede

Please sign in to comment.