Skip to content

Commit

Permalink
feat: 🤑 Add IDR currency support
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganeLecurieux committed Jun 16, 2022
1 parent 12814b0 commit 89503bb
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Scalars['String']>;
createCustomers: Scalars['Boolean'];
secretKey: Scalars['String'];
sendZeroAmountInvoice: Scalars['Boolean'];
};

export enum AggregationTypeEnum {
CountAgg = 'count_agg',
MaxAgg = 'max_agg',
Expand Down Expand Up @@ -834,6 +843,8 @@ export enum CurrencyEnum {
Eur = 'EUR',
/** Pound Sterling */
Gbp = 'GBP',
/** Indonesian Rupiah */
Idr = 'IDR',
/** Norwegian Krone */
Nok = 'NOK',
/** Swedish Krona */
Expand Down Expand Up @@ -967,6 +978,21 @@ export type DestroyCustomerPayload = {
id?: Maybe<Scalars['ID']>;
};

/** Autogenerated input type of DestroyPaymentProvider */
export type DestroyPaymentProviderInput = {
/** A unique identifier for the client performing the mutation. */
clientMutationId?: InputMaybe<Scalars['String']>;
id: Scalars['ID'];
};

/** Autogenerated return type of DestroyPaymentProvider */
export type DestroyPaymentProviderPayload = {
__typename?: 'DestroyPaymentProviderPayload';
/** A unique identifier for the client performing the mutation. */
clientMutationId?: Maybe<Scalars['String']>;
id?: Maybe<Scalars['ID']>;
};

/** Autogenerated input type of DestroyPlan */
export type DestroyPlanInput = {
/** A unique identifier for the client performing the mutation. */
Expand Down Expand Up @@ -1032,6 +1058,7 @@ export type Invoice = {
createdAt: Scalars['ISO8601DateTime'];
fromDate: Scalars['ISO8601Date'];
id: Scalars['ID'];
invoiceType: InvoiceTypeEnum;
issuingDate: Scalars['ISO8601Date'];
plan?: Maybe<Plan>;
sequentialId: Scalars['ID'];
Expand All @@ -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',
Expand Down Expand Up @@ -1085,6 +1117,8 @@ export type Membership = {

export type Mutation = {
__typename?: 'Mutation';
/** Add or update Stripe API keys to the organization */
addStripePaymentProvider?: Maybe<StripeProvider>;
/** Creates a new add-on */
createAddOn?: Maybe<AddOn>;
/** Assigns an add-on to a Customer */
Expand All @@ -1109,6 +1143,8 @@ export type Mutation = {
destroyCoupon?: Maybe<DestroyCouponPayload>;
/** Delete a Customer */
destroyCustomer?: Maybe<DestroyCustomerPayload>;
/** Destroy a payment provider */
destroyPaymentProvider?: Maybe<DestroyPaymentProviderPayload>;
/** Deletes a Plan */
destroyPlan?: Maybe<DestroyPlanPayload>;
/** Opens a session for an existing user */
Expand Down Expand Up @@ -1138,6 +1174,11 @@ export type Mutation = {
};


export type MutationAddStripePaymentProviderArgs = {
input: AddStripePaymentProviderInput;
};


export type MutationCreateAddOnArgs = {
input: CreateAddOnInput;
};
Expand Down Expand Up @@ -1198,6 +1239,11 @@ export type MutationDestroyCustomerArgs = {
};


export type MutationDestroyPaymentProviderArgs = {
input: DestroyPaymentProviderInput;
};


export type MutationDestroyPlanArgs = {
input: DestroyPlanInput;
};
Expand Down Expand Up @@ -1268,6 +1314,7 @@ export type Organization = {
createdAt: Scalars['ISO8601DateTime'];
id: Scalars['ID'];
name: Scalars['String'];
stripeProvider?: Maybe<StripeProvider>;
updatedAt: Scalars['ISO8601DateTime'];
vatRate: Scalars['Float'];
webhookUrl?: Maybe<Scalars['String']>;
Expand Down Expand Up @@ -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<Scalars['ISO8601Date']>;
Expand Down

0 comments on commit 89503bb

Please sign in to comment.