Skip to content

Commit

Permalink
New API definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Application Services committed Sep 7, 2023
1 parent 95f8b7e commit 320ee7f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 118 deletions.
113 changes: 0 additions & 113 deletions api-gql.gql
Original file line number Diff line number Diff line change
Expand Up @@ -2,87 +2,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------

"""Tax amounts used within the Cart"""
type TaxAmount {
title: String!
amount: Float!
}

type Invoice {
"""Total of invoice"""
totalAmount: Float!

"""Tax amounts of the invoice"""
taxAmounts: [TaxAmount!]!
}

"""The Cart associated with a customer Subscription Platform checkout"""
type Cart {
"""Cart unique identifier"""
id: ID!

"""Firefox Account User ID"""
uid: ID

"""State of the cart"""
state: CartState!

"""Error reason ID"""
errorReasonId: String

"""Offering ID configured in the CMS"""
offeringConfigId: String!

"""Interval"""
interval: String!

"""Experiment associated with the cart"""
experiment: String

"""Tax address"""
taxAddress: TaxAddress

"""The previous invoice"""
previousInvoice: Invoice!

"""The next, also known as upcoming, invoice"""
nextInvoice: Invoice!

"""Timestamp when the cart was created"""
createdAt: Float!

"""Timestamp the cart was last updated"""
updatedAt: Float!

"""Applied coupon code"""
couponCode: String

"""Stripe customer ID of cart customer"""
stripeCustomerId: String

"""Email set by customer"""
email: String

"""Amount of plan at checkout"""
amount: Float!
}

enum CartState {
START
PROCESSING
SUCCESS
FAIL
}

"""The Tax Address associated with the Cart"""
type TaxAddress {
"""Country code for tax"""
countryCode: String

"""Postal code for tax"""
postalCode: String!
}

type BasicPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
Expand Down Expand Up @@ -362,7 +281,6 @@ type Query {
session: Session!
sessionStatus: SessionStatus!
getLegalDoc(input: LegalInput!): LegalDoc!
cart: Cart
}

input AccountStatusInput {
Expand Down Expand Up @@ -492,10 +410,6 @@ type Mutation {

"""Verify a OTP code."""
verifyCode(input: SessionVerifyCodeInput!): BasicPayload!
setupCart(input: SetupCartInput!): Cart
restartCart(input: CartIdInput!): Cart
checkoutCart(input: CartIdInput!): Cart
updateCart(input: UpdateCartInput!): Cart
}

input CreatePassword {
Expand Down Expand Up @@ -801,30 +715,3 @@ input SessionVerifyCodeOptionsInput {
scopes: [String!]
newsletters: [String!]
}

input SetupCartInput {
offeringConfigId: String!
interval: String

"""Cart ID"""
id: String

"""FxA UID"""
uid: String
}

input CartIdInput {
"""Cart ID"""
id: String!
}

input UpdateCartInput {
offeringConfigId: String!
interval: String

"""Cart ID"""
id: String!

"""FxA UID"""
uid: String
}
2 changes: 1 addition & 1 deletion api-swagger.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/gql-api/generated.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Use the docs in the sidebar to find out how to use the schema:
- **Allowed operations**: queries and mutations.
- **Schema-defined types**: scalars, objects, enums, interfaces, unions, and input objects.

<small><i>Generated on 8/11/2023, 8:05:32 AM.</i></small>
<small><i>Generated on 9/7/2023, 8:05:45 AM.</i></small>
2 changes: 1 addition & 1 deletion docs/gql-api/scalars/float.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ scalar Float

### Member of

[`Account`](/gql-api/objects/account) <Badge class="secondary" text="object"/><Bullet />[`AccountResetPayload`](/gql-api/objects/account-reset-payload) <Badge class="secondary" text="object"/><Bullet />[`AttachedClient`](/gql-api/objects/attached-client) <Badge class="secondary" text="object"/><Bullet />[`Cart`](/gql-api/objects/cart) <Badge class="secondary" text="object"/><Bullet />[`Invoice`](/gql-api/objects/invoice) <Badge class="secondary" text="object"/><Bullet />[`LinkedAccount`](/gql-api/objects/linked-account) <Badge class="secondary" text="object"/><Bullet />[`MetricsContext`](/gql-api/inputs/metrics-context) <Badge class="secondary" text="input"/><Bullet />[`PasswordChangePayload`](/gql-api/objects/password-change-payload) <Badge class="secondary" text="object"/><Bullet />[`PasswordForgotCodeStatusPayload`](/gql-api/objects/password-forgot-code-status-payload) <Badge class="secondary" text="object"/><Bullet />[`SecurityEvent`](/gql-api/objects/security-event) <Badge class="secondary" text="object"/><Bullet />[`SessionReauthedAccountPayload`](/gql-api/objects/session-reauthed-account-payload) <Badge class="secondary" text="object"/><Bullet />[`SignedInAccountPayload`](/gql-api/objects/signed-in-account-payload) <Badge class="secondary" text="object"/><Bullet />[`SignedUpAccountPayload`](/gql-api/objects/signed-up-account-payload) <Badge class="secondary" text="object"/><Bullet />[`TaxAmount`](/gql-api/objects/tax-amount) <Badge class="secondary" text="object"/>
[`Account`](/gql-api/objects/account) <Badge class="secondary" text="object"/><Bullet />[`AccountResetPayload`](/gql-api/objects/account-reset-payload) <Badge class="secondary" text="object"/><Bullet />[`AttachedClient`](/gql-api/objects/attached-client) <Badge class="secondary" text="object"/><Bullet />[`LinkedAccount`](/gql-api/objects/linked-account) <Badge class="secondary" text="object"/><Bullet />[`MetricsContext`](/gql-api/inputs/metrics-context) <Badge class="secondary" text="input"/><Bullet />[`PasswordChangePayload`](/gql-api/objects/password-change-payload) <Badge class="secondary" text="object"/><Bullet />[`PasswordForgotCodeStatusPayload`](/gql-api/objects/password-forgot-code-status-payload) <Badge class="secondary" text="object"/><Bullet />[`SecurityEvent`](/gql-api/objects/security-event) <Badge class="secondary" text="object"/><Bullet />[`SessionReauthedAccountPayload`](/gql-api/objects/session-reauthed-account-payload) <Badge class="secondary" text="object"/><Bullet />[`SignedInAccountPayload`](/gql-api/objects/signed-in-account-payload) <Badge class="secondary" text="object"/><Bullet />[`SignedUpAccountPayload`](/gql-api/objects/signed-up-account-payload) <Badge class="secondary" text="object"/>

2 changes: 1 addition & 1 deletion docs/gql-api/scalars/id.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ scalar ID

### Member of

[`Account`](/gql-api/objects/account) <Badge class="secondary" text="object"/><Bullet />[`Cart`](/gql-api/objects/cart) <Badge class="secondary" text="object"/>
[`Account`](/gql-api/objects/account) <Badge class="secondary" text="object"/>

Loading

0 comments on commit 320ee7f

Please sign in to comment.