@@ -1158,6 +1158,7 @@ export type CreateCreditNoteInput = {
1158
1158
1159
1159
/** Create Customer input arguments */
1160
1160
export type CreateCustomerInput = {
1161
+ accountType?: InputMaybe<CustomerAccountTypeEnum>;
1161
1162
addressLine1?: InputMaybe<Scalars['String']['input']>;
1162
1163
addressLine2?: InputMaybe<Scalars['String']['input']>;
1163
1164
billingConfiguration?: InputMaybe<CustomerBillingConfigurationInput>;
@@ -1906,6 +1907,7 @@ export type CurrentVersion = {
1906
1907
1907
1908
export type Customer = {
1908
1909
__typename?: 'Customer';
1910
+ accountType: CustomerAccountTypeEnum;
1909
1911
/** Number of active subscriptions per customer */
1910
1912
activeSubscriptionsCount: Scalars['Int']['output'];
1911
1913
addressLine1?: Maybe<Scalars['String']['output']>;
@@ -1988,6 +1990,11 @@ export type CustomerSubscriptionsArgs = {
1988
1990
status?: InputMaybe<Array<StatusTypeEnum>>;
1989
1991
};
1990
1992
1993
+ export enum CustomerAccountTypeEnum {
1994
+ Customer = 'customer',
1995
+ Partner = 'partner'
1996
+ }
1997
+
1991
1998
export type CustomerAddress = {
1992
1999
__typename?: 'CustomerAddress';
1993
2000
addressLine1?: Maybe<Scalars['String']['output']>;
@@ -2888,6 +2895,7 @@ export enum IntegrationTypeEnum {
2888
2895
Okta = 'okta',
2889
2896
ProgressiveBilling = 'progressive_billing',
2890
2897
RevenueAnalytics = 'revenue_analytics',
2898
+ RevenueShare = 'revenue_share',
2891
2899
Salesforce = 'salesforce',
2892
2900
Xero = 'xero'
2893
2901
}
@@ -2958,6 +2966,7 @@ export type Invoice = {
2958
2966
prepaidCreditAmountCents: Scalars['BigInt']['output'];
2959
2967
progressiveBillingCreditAmountCents: Scalars['BigInt']['output'];
2960
2968
refundableAmountCents: Scalars['BigInt']['output'];
2969
+ selfBilled: Scalars['Boolean']['output'];
2961
2970
sequentialId: Scalars['ID']['output'];
2962
2971
status: InvoiceStatusTypeEnum;
2963
2972
subTotalExcludingTaxesAmountCents: Scalars['BigInt']['output'];
@@ -4453,6 +4462,7 @@ export enum PremiumIntegrationTypeEnum {
4453
4462
Okta = 'okta',
4454
4463
ProgressiveBilling = 'progressive_billing',
4455
4464
RevenueAnalytics = 'revenue_analytics',
4465
+ RevenueShare = 'revenue_share',
4456
4466
Salesforce = 'salesforce',
4457
4467
Xero = 'xero'
4458
4468
}
@@ -5868,6 +5878,7 @@ export type UpdateCreditNoteInput = {
5868
5878
5869
5879
/** Update Customer input arguments */
5870
5880
export type UpdateCustomerInput = {
5881
+ accountType?: InputMaybe<CustomerAccountTypeEnum>;
5871
5882
addressLine1?: InputMaybe<Scalars['String']['input']>;
5872
5883
addressLine2?: InputMaybe<Scalars['String']['input']>;
5873
5884
applicableInvoiceCustomSectionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
@@ -6934,11 +6945,7 @@ export type GetCustomerSubscriptionForListQueryVariables = Exact<{
6934
6945
}>;
6935
6946
6936
6947
6937
- export type GetCustomerSubscriptionForListQuery = { __typename?: 'Query', customer?: { __typename?: 'Customer', id: string, subscriptions: Array<{ __typename?: 'Subscription', id: string, status?: StatusTypeEnum | null, startedAt?: any | null, nextPendingStartDate?: any | null, name?: string | null, nextName?: string | null, externalId: string, subscriptionAt?: any | null, endingAt?: any | null, plan: { __typename?: 'Plan', id: string, amountCurrency: CurrencyEnum, name: string, interval: PlanInterval, code: string }, nextPlan?: { __typename?: 'Plan', id: string, name: string, code: string } | null, nextSubscription?: { __typename?: 'Subscription', id: string } | null }> } | null };
6938
-
6939
- export type SubscriptionItemFragment = { __typename?: 'Subscription', id: string, status?: StatusTypeEnum | null, startedAt?: any | null, nextPendingStartDate?: any | null, name?: string | null, nextName?: string | null, externalId: string, subscriptionAt?: any | null, endingAt?: any | null, plan: { __typename?: 'Plan', id: string, name: string, code: string }, nextPlan?: { __typename?: 'Plan', id: string, name: string, code: string } | null, nextSubscription?: { __typename?: 'Subscription', id: string } | null };
6940
-
6941
- export type SubscriptionLinePlanFragment = { __typename?: 'Plan', id: string, name: string, code: string };
6948
+ export type GetCustomerSubscriptionForListQuery = { __typename?: 'Query', customer?: { __typename?: 'Customer', id: string, subscriptions: Array<{ __typename?: 'Subscription', id: string, status?: StatusTypeEnum | null, startedAt?: any | null, nextPendingStartDate?: any | null, name?: string | null, nextName?: string | null, externalId: string, subscriptionAt?: any | null, endingAt?: any | null, plan: { __typename?: 'Plan', id: string, amountCurrency: CurrencyEnum, name: string, interval: PlanInterval }, nextPlan?: { __typename?: 'Plan', id: string, name: string, code: string, interval: PlanInterval } | null, nextSubscription?: { __typename?: 'Subscription', id: string } | null }> } | null };
6942
6949
6943
6950
export type TerminateCustomerSubscriptionMutationVariables = Exact<{
6944
6951
input: TerminateSubscriptionInput;
@@ -9741,35 +9748,6 @@ export const CustomerAppliedCouponsFragmentDoc = gql`
9741
9748
}
9742
9749
}
9743
9750
${CustomerCouponFragmentDoc}`;
9744
- export const SubscriptionLinePlanFragmentDoc = gql`
9745
- fragment SubscriptionLinePlan on Plan {
9746
- id
9747
- name
9748
- code
9749
- }
9750
- `;
9751
- export const SubscriptionItemFragmentDoc = gql`
9752
- fragment SubscriptionItem on Subscription {
9753
- id
9754
- status
9755
- startedAt
9756
- nextPendingStartDate
9757
- name
9758
- nextName
9759
- externalId
9760
- subscriptionAt
9761
- endingAt
9762
- plan {
9763
- ...SubscriptionLinePlan
9764
- }
9765
- nextPlan {
9766
- ...SubscriptionLinePlan
9767
- }
9768
- nextSubscription {
9769
- id
9770
- }
9771
- }
9772
- ${SubscriptionLinePlanFragmentDoc}`;
9773
9751
export const CustomerUsageForUsageDetailsFragmentDoc = gql`
9774
9752
fragment CustomerUsageForUsageDetails on CustomerUsage {
9775
9753
fromDatetime
@@ -15062,17 +15040,33 @@ export const GetCustomerSubscriptionForListDocument = gql`
15062
15040
id
15063
15041
subscriptions(status: [active, pending]) {
15064
15042
id
15043
+ status
15044
+ startedAt
15045
+ nextPendingStartDate
15046
+ name
15047
+ nextName
15048
+ externalId
15049
+ subscriptionAt
15050
+ endingAt
15065
15051
plan {
15066
15052
id
15067
15053
amountCurrency
15068
15054
name
15069
15055
interval
15070
15056
}
15071
- ...SubscriptionItem
15057
+ nextPlan {
15058
+ id
15059
+ name
15060
+ code
15061
+ interval
15062
+ }
15063
+ nextSubscription {
15064
+ id
15065
+ }
15072
15066
}
15073
15067
}
15074
15068
}
15075
- ${SubscriptionItemFragmentDoc} `;
15069
+ `;
15076
15070
15077
15071
/**
15078
15072
* __useGetCustomerSubscriptionForListQuery__
0 commit comments