diff --git a/src/generated/graphql.tsx b/src/generated/graphql.tsx index baef152c4..6b1376d3c 100644 --- a/src/generated/graphql.tsx +++ b/src/generated/graphql.tsx @@ -61,6 +61,15 @@ export type AddOnDetails = { updatedAt: Scalars['ISO8601DateTime']; }; +/** Autogenerated input type of AddStripePaymentProvider */ +export type AddStripePaymentProviderInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + createCustomers: Scalars['Boolean']; + secretKey: Scalars['String']; + sendZeroAmountInvoice: Scalars['Boolean']; +}; + export enum AggregationTypeEnum { CountAgg = 'count_agg', MaxAgg = 'max_agg', @@ -834,6 +843,8 @@ export enum CurrencyEnum { Eur = 'EUR', /** Pound Sterling */ Gbp = 'GBP', + /** Indonesian Rupiah */ + Idr = 'IDR', /** Norwegian Krone */ Nok = 'NOK', /** Swedish Krona */ @@ -967,6 +978,21 @@ export type DestroyCustomerPayload = { id?: Maybe; }; +/** Autogenerated input type of DestroyPaymentProvider */ +export type DestroyPaymentProviderInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + id: Scalars['ID']; +}; + +/** Autogenerated return type of DestroyPaymentProvider */ +export type DestroyPaymentProviderPayload = { + __typename?: 'DestroyPaymentProviderPayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + id?: Maybe; +}; + /** Autogenerated input type of DestroyPlan */ export type DestroyPlanInput = { /** A unique identifier for the client performing the mutation. */ @@ -1032,6 +1058,7 @@ export type Invoice = { createdAt: Scalars['ISO8601DateTime']; fromDate: Scalars['ISO8601Date']; id: Scalars['ID']; + invoiceType: InvoiceTypeEnum; issuingDate: Scalars['ISO8601Date']; plan?: Maybe; sequentialId: Scalars['ID']; @@ -1044,6 +1071,11 @@ export type Invoice = { vatAmountCurrency: CurrencyEnum; }; +export enum InvoiceTypeEnum { + AddOn = 'add_on', + Subscription = 'subscription' +} + export enum Lago_Api_Error { CouponAlreadyApplied = 'coupon_already_applied', CurrenciesDoesNotMatch = 'currencies_does_not_match', @@ -1085,6 +1117,8 @@ export type Membership = { export type Mutation = { __typename?: 'Mutation'; + /** Add or update Stripe API keys to the organization */ + addStripePaymentProvider?: Maybe; /** Creates a new add-on */ createAddOn?: Maybe; /** Assigns an add-on to a Customer */ @@ -1109,6 +1143,8 @@ export type Mutation = { destroyCoupon?: Maybe; /** Delete a Customer */ destroyCustomer?: Maybe; + /** Destroy a payment provider */ + destroyPaymentProvider?: Maybe; /** Deletes a Plan */ destroyPlan?: Maybe; /** Opens a session for an existing user */ @@ -1138,6 +1174,11 @@ export type Mutation = { }; +export type MutationAddStripePaymentProviderArgs = { + input: AddStripePaymentProviderInput; +}; + + export type MutationCreateAddOnArgs = { input: CreateAddOnInput; }; @@ -1198,6 +1239,11 @@ export type MutationDestroyCustomerArgs = { }; +export type MutationDestroyPaymentProviderArgs = { + input: DestroyPaymentProviderInput; +}; + + export type MutationDestroyPlanArgs = { input: DestroyPlanInput; }; @@ -1268,6 +1314,7 @@ export type Organization = { createdAt: Scalars['ISO8601DateTime']; id: Scalars['ID']; name: Scalars['String']; + stripeProvider?: Maybe; updatedAt: Scalars['ISO8601DateTime']; vatRate: Scalars['Float']; webhookUrl?: Maybe; @@ -1453,6 +1500,14 @@ export enum StatusTypeEnum { Terminated = 'terminated' } +export type StripeProvider = { + __typename?: 'StripeProvider'; + createCustomers: Scalars['Boolean']; + id: Scalars['ID']; + secretKey: Scalars['String']; + sendZeroAmountInvoice: Scalars['Boolean']; +}; + export type Subscription = { __typename?: 'Subscription'; anniversaryDate?: Maybe;