Options
All
  • Public
  • Public/Protected
  • All
Menu

@stigg/node-server-sdk - v2.45.0

Index

Enumerations

Classes

Interfaces

Type aliases

Type aliases

Addon: { billingId?: string | null; description: string; displayName: string; entitlements: PackageEntitlement[]; id: string; metadata?: Metadata | null; pricePoints: Price[]; pricingType?: PricingType | null }

Type declaration

  • Optional billingId?: string | null
  • description: string
  • displayName: string
  • entitlements: PackageEntitlement[]
  • id: string
  • Optional metadata?: Metadata | null
  • pricePoints: Price[]
  • Optional pricingType?: PricingType | null
Address: { addressLine1?: string; addressLine2?: string; city?: string; country?: string; phoneNumber?: string; postalCode?: string; state?: string }
param country

optional country of the address - in a valid ISO 3166-1 alpha-2 format

Type declaration

  • Optional addressLine1?: string
  • Optional addressLine2?: string
  • Optional city?: string
  • Optional country?: string
  • Optional phoneNumber?: string
  • Optional postalCode?: string
  • Optional state?: string
ApplySubscription: { addons?: SubscriptionAddon[]; billableFeatures?: BillableFeature[]; billingCountryCode?: string; billingId?: string; billingInformation?: SubscriptionBillingInfo; billingPeriod?: BillingPeriod; customerId: string; metadata?: Metadata | null; paymentMethodId?: string; planId: string; promotionCode?: string; resourceId?: string; skipTrial?: boolean; startDate?: Date; unitQuantity?: number }

Type declaration

  • Optional addons?: SubscriptionAddon[]
  • Optional billableFeatures?: BillableFeature[]
  • Optional billingCountryCode?: string
  • Optional billingId?: string
  • Optional billingInformation?: SubscriptionBillingInfo
  • Optional billingPeriod?: BillingPeriod
  • customerId: string
  • Optional metadata?: Metadata | null
  • Optional paymentMethodId?: string
  • planId: string
  • Optional promotionCode?: string
  • Optional resourceId?: string
  • Optional skipTrial?: boolean
  • Optional startDate?: Date
  • Optional unitQuantity?: number
ApplySubscriptionResults: { subscription?: Subscription }

Type declaration

BaseEntitlement: { accessDeniedReason?: AccessDeniedReason; feature?: EntitlementFeature; hasAccess: boolean; isFallback: boolean }

Type declaration

BasePlan: { displayName: string; id: string }

Type declaration

  • displayName: string
  • id: string
BillableFeature: { featureId: string; quantity: number }

Type declaration

  • featureId: string
  • quantity: number
BillingAddress: { city?: InputMaybe<Scalars["String"]>; country?: InputMaybe<Scalars["String"]>; line1?: InputMaybe<Scalars["String"]>; line2?: InputMaybe<Scalars["String"]>; postalCode?: InputMaybe<Scalars["String"]>; state?: InputMaybe<Scalars["String"]> }

Type declaration

  • Optional city?: InputMaybe<Scalars["String"]>
  • Optional country?: InputMaybe<Scalars["String"]>
  • Optional line1?: InputMaybe<Scalars["String"]>
  • Optional line2?: InputMaybe<Scalars["String"]>
  • Optional postalCode?: InputMaybe<Scalars["String"]>
  • Optional state?: InputMaybe<Scalars["String"]>
BillingInfo: { billingAddress?: Address; currency?: Currency; customerName?: string; invoiceCustomFields?: Record<string, string>; language?: string; metadata?: Metadata | null; paymentMethodId?: string; shippingAddress?: Address; taxIds?: TaxExempt[]; timezone?: string }

Type declaration

  • Optional billingAddress?: Address
  • Optional currency?: Currency
  • Optional customerName?: string
  • Optional invoiceCustomFields?: Record<string, string>
  • Optional language?: string
  • Optional metadata?: Metadata | null
  • Optional paymentMethodId?: string
  • Optional shippingAddress?: Address
  • Optional taxIds?: TaxExempt[]
  • Optional timezone?: string
BooleanEntitlementFallback: { hasAccess: boolean }

Type declaration

  • hasAccess: boolean
BooleanEntitlementOptions: { fallback?: BooleanEntitlementFallback; shouldTrack?: boolean }

Type declaration

CancelSubscription: { endDate?: Date; subscriptionCancellationAction?: SubscriptionCancellationAction; subscriptionCancellationTime?: SubscriptionCancellationTime; subscriptionId: string }

Type declaration

CancelSubscriptionScheduledUpdates: { status?: SubscriptionScheduleStatus.Scheduled | SubscriptionScheduleStatus.PendingPayment; subscriptionId: string }

Type declaration

  • Optional status?: SubscriptionScheduleStatus.Scheduled | SubscriptionScheduleStatus.PendingPayment
  • subscriptionId: string
CheckoutOptions: { allowPromoCodes?: boolean; allowTaxIdCollection?: boolean; cancelUrl: string; collectBillingAddress?: boolean; collectPhoneNumber?: boolean; referenceId?: string; successUrl: string }

Type declaration

  • Optional allowPromoCodes?: boolean
  • Optional allowTaxIdCollection?: boolean
  • cancelUrl: string
  • Optional collectBillingAddress?: boolean
  • Optional collectPhoneNumber?: boolean
  • Optional referenceId?: string
  • successUrl: string
ClientConfiguration: { apiKey: string; baseEdgeUri?: string; baseUri?: string; enableEdge?: boolean; entitlementsFallback?: EntitlementsFallback; logConfiguration?: LogConfiguration; memoryCacheMaxSizeBytes?: number; realtimeUpdatesEnabled?: boolean; redis?: StiggRedisOptions; wsUrl?: string }

Type declaration

  • apiKey: string
  • Optional baseEdgeUri?: string
  • Optional baseUri?: string
  • Optional enableEdge?: boolean
  • Optional entitlementsFallback?: EntitlementsFallback
  • Optional logConfiguration?: LogConfiguration
  • Optional memoryCacheMaxSizeBytes?: number
  • Optional realtimeUpdatesEnabled?: boolean
  • Optional redis?: StiggRedisOptions
  • Optional wsUrl?: string
Coupon: { description?: string | null; discountValue: number; id: string; metadata?: Metadata | null; name: string }

Type declaration

  • Optional description?: string | null
  • discountValue: number
  • id: string
  • Optional metadata?: Metadata | null
  • name: string
CreateCustomer: { billingId?: string; billingInfo?: BillingInfo; couponId?: string; customerId?: string; email?: string; excludeFromExperiment?: boolean; metadata?: Metadata | null; name?: string; shouldSyncFree?: boolean }

Type declaration

  • Optional billingId?: string
  • Optional billingInfo?: BillingInfo
  • Optional couponId?: string
  • Optional customerId?: string
  • Optional email?: string
  • Optional excludeFromExperiment?: boolean
  • Optional metadata?: Metadata | null
  • Optional name?: string
  • Optional shouldSyncFree?: boolean
    deprecated

    not in use anymore - will be removed in future release

CreateSubscription: CreateSubscriptionParams & { customerId: string }
CreateSubscriptionParams: { addons?: SubscriptionAddon[]; awaitPaymentConfirmation?: boolean; billableFeatures?: BillableFeature[]; billingInformation?: SubscriptionBillingInfo; billingPeriod?: BillingPeriod; id?: string; metadata?: Metadata | null; planId: string; promotionCode?: string; resourceId?: string; skipTrial?: boolean; startDate?: Date; unitQuantity?: number }

Type declaration

  • Optional addons?: SubscriptionAddon[]
  • Optional awaitPaymentConfirmation?: boolean
  • Optional billableFeatures?: BillableFeature[]
  • Optional billingInformation?: SubscriptionBillingInfo
  • Optional billingPeriod?: BillingPeriod
  • Optional id?: string
  • Optional metadata?: Metadata | null
  • planId: string
  • Optional promotionCode?: string
  • Optional resourceId?: string
  • Optional skipTrial?: boolean
  • Optional startDate?: Date
  • Optional unitQuantity?: number
CreateUsageMeasurement: { customerId: string; featureId: string; resourceId?: string; updateBehavior?: UsageUpdateBehavior; value: number }

Type declaration

  • customerId: string
  • featureId: string
  • Optional resourceId?: string
  • Optional updateBehavior?: UsageUpdateBehavior
  • value: number
Customer: SlimCustomer
CustomerResource: { id: string }

Type declaration

  • id: string
CustomerState: Omit<FullCustomer, "getActiveSubscriptions" | "getActivePromotionalEntitlements" | "getActiveTrials">
CustomerStatisticsFragment: { __typename?: "Customer"; statistics?: { __typename?: "CustomerStatistics"; activeSubscriptionsByPricingType: { __typename?: "SubscriptionPricingTypeStatistics"; pricingType: PricingType; totalCount: number }[] } | null }

Type declaration

  • Optional __typename?: "Customer"
  • Optional statistics?: { __typename?: "CustomerStatistics"; activeSubscriptionsByPricingType: { __typename?: "SubscriptionPricingTypeStatistics"; pricingType: PricingType; totalCount: number }[] } | null
CustomerStatisticsModel: { statistics: CustomerStatisticsFragment["statistics"] }

Type declaration

DateRange: { end?: Date; start?: Date }

Type declaration

  • Optional end?: Date
  • Optional start?: Date
DefaultTrialConfig: { duration: number; units: TrialPeriodUnits }

Type declaration

EntitlementFeature: { featureType: FeatureType; id: string; isMetered?: boolean; meterType?: Fluctuating | Incremental | None; units?: string; unitsPlural?: string }

Type declaration

EntitlementUsageUpdatedFragment: { __typename?: "UsageUpdated"; entitlement: { __typename?: "Entitlement" } & EntitlementFragment; usage: { __typename?: "UsageMeasurementUpdated" } & UsageUpdatedFragment }

Type declaration

  • Optional __typename?: "UsageUpdated"
  • entitlement: { __typename?: "Entitlement" } & EntitlementFragment
  • usage: { __typename?: "UsageMeasurementUpdated" } & UsageUpdatedFragment
EntitlementsFallback: {}
EntitlementsUpdatedPayloadFragment: { __typename?: "EntitlementsUpdated"; customerId: string; entitlements: ({ __typename?: "Entitlement" } & EntitlementFragment)[]; resourceId?: string | null }

Type declaration

  • Optional __typename?: "EntitlementsUpdated"
  • customerId: string
  • entitlements: ({ __typename?: "Entitlement" } & EntitlementFragment)[]
  • Optional resourceId?: string | null
EstimateSubscription: { addons?: SubscriptionAddon[]; billableFeatures?: BillableFeature[]; billingCountryCode?: string; billingInformation?: SubscriptionBillingInfo; billingPeriod?: BillingPeriod; customerId: string; planId: string; promotionCode?: string; resourceId?: string; skipTrial?: boolean; startDate?: Date; unitQuantity?: number }

Type declaration

  • Optional addons?: SubscriptionAddon[]
  • Optional billableFeatures?: BillableFeature[]
  • Optional billingCountryCode?: string
  • Optional billingInformation?: SubscriptionBillingInfo
  • Optional billingPeriod?: BillingPeriod
  • customerId: string
  • planId: string
  • Optional promotionCode?: string
  • Optional resourceId?: string
  • Optional skipTrial?: boolean
  • Optional startDate?: Date
  • Optional unitQuantity?: number
EstimateSubscriptionUpdate: { addons?: SubscriptionAddon[]; billableFeatures?: BillableFeature[]; promotionCode?: string; subscriptionId: string; unitQuantity?: number }

Type declaration

  • Optional addons?: SubscriptionAddon[]
  • Optional billableFeatures?: BillableFeature[]
  • Optional promotionCode?: string
  • subscriptionId: string
  • Optional unitQuantity?: number
EventDimensionValue: string | number | boolean
ExperimentInfo: { groupName: string; groupType?: ExperimentGroupType | null; id: string; name: string }

Type declaration

FetchUsageHistory: { customerId: string; endDate?: Date; featureId: string; resourceId?: string; startDate: Date }

Type declaration

  • customerId: string
  • Optional endDate?: Date
  • featureId: string
  • Optional resourceId?: string
  • startDate: Date
FullCustomer: SlimCustomer & { alreadyTrialPlans: TrialedPlan[]; coupon?: Coupon; experimentInfo?: ExperimentInfo | null; hasPaymentMethod: boolean; paymentMethodDetails?: PaymentMethodDetails; promotionalEntitlements: PromotionalEntitlement[]; subscriptions: FullSubscription[]; getActivePromotionalEntitlements: any; getActiveSubscriptions: any; getActiveTrials: any }
FullEntitlementFeature: { description?: string; displayName: string; featureType: FeatureType; id: string; isMetered?: boolean; metadata?: Record<string, string>; meterType?: Fluctuating | Incremental | None; units?: string; unitsPlural?: string }

Type declaration

  • Optional description?: string
  • displayName: string
  • featureType: FeatureType
  • id: string
  • Optional isMetered?: boolean
  • Optional metadata?: Record<string, string>
  • Optional meterType?: Fluctuating | Incremental | None
  • Optional units?: string
  • Optional unitsPlural?: string
FullPromotionalEntitlement: { expiresAt?: Date; feature: EntitlementFeature; hasExpirationDate: boolean; hasUnlimitedUsage?: boolean | null; isVisible: boolean; status: PromotionalEntitlementStatus; usageLimit: number }

Type declaration

FullSubscription: { addons: FullSubscriptionAddon[]; billingId?: string; billingLinkUrl?: string; billingSyncError?: string; cancellationDate?: Date; crmId?: string; currentBillingPeriodEnd?: Date; effectiveEndDate?: Date; endDate?: Date; experimentInfo?: ExperimentInfo | null; futureUpdates: SubscriptionFutureUpdateDataFragment[]; id: string; latestInvoice?: SubscriptionInvoiceFragment; metadata?: Metadata | null; paymentCollection: PaymentCollection; plan: Plan; price: SubscriptionPrice | null; prices: Price[]; pricingType: PricingType; resource: CustomerResource | null; startDate: Date; status: SubscriptionStatus; totalPrice: TotalPriceFragment | null | undefined; trialEndDate?: Date }

Type declaration

  • addons: FullSubscriptionAddon[]
  • Optional billingId?: string
  • Optional billingLinkUrl?: string
  • Optional billingSyncError?: string
  • Optional cancellationDate?: Date
  • Optional crmId?: string
  • Optional currentBillingPeriodEnd?: Date
  • Optional effectiveEndDate?: Date

    The calculated end date after which the subscription will be canceled, which takes trial expiration and scheduled cancellations into consideration

  • Optional endDate?: Date
  • Optional experimentInfo?: ExperimentInfo | null
  • futureUpdates: SubscriptionFutureUpdateDataFragment[]

    Future updates can be of 2 types {@link SubscriptionScheduleStatus.Scheduled} or {@link SubscriptionScheduleStatus.PendingPayment}

  • id: string
  • Optional latestInvoice?: SubscriptionInvoiceFragment
  • Optional metadata?: Metadata | null
  • paymentCollection: PaymentCollection
  • plan: Plan
  • price: SubscriptionPrice | null
    deprecated

    use prices instead with totalPrice

  • prices: Price[]
  • pricingType: PricingType
  • resource: CustomerResource | null
  • startDate: Date
  • status: SubscriptionStatus
  • totalPrice: TotalPriceFragment | null | undefined
  • Optional trialEndDate?: Date
FullSubscriptionAddon: { addon: Addon; quantity: number }

Type declaration

  • addon: Addon
  • quantity: number
GetActiveSubscriptions: { customerId: string; resourceId?: string | string[] }

Type declaration

  • customerId: string
  • Optional resourceId?: string | string[]
GetBooleanEntitlement: { customerId: string; featureId: string; options?: BooleanEntitlementOptions; resourceId?: string }

Type declaration

GetMeteredEntitlement: { customerId: string; featureId: string; options?: MeteredEntitlementOptions; resourceId?: string }

Type declaration

GetNumericEntitlement: { customerId: string; featureId: string; options?: NumericEntitlementOptions; resourceId?: string }

Type declaration

GetPaywall: { billingCountryCode?: string; customerId?: string; fetchAllCountriesPrices?: boolean; productId?: string; resourceId?: string }

Type declaration

  • Optional billingCountryCode?: string
  • Optional customerId?: string
  • Optional fetchAllCountriesPrices?: boolean
  • Optional productId?: string
  • Optional resourceId?: string
ImmediateSubscriptionPreviewInvoice: SubscriptionPreviewInvoice & { credits?: SubscriptionPreviewCredits; proration?: SubscriptionPreviewProration }
ImportCustomer: { billingId?: string; customerId?: string; email?: string; metadata?: Metadata | null; name?: string; paymentMethodId?: string }

Type declaration

  • Optional billingId?: string
  • Optional customerId?: string
  • Optional email?: string
  • Optional metadata?: Metadata | null
  • Optional name?: string
  • Optional paymentMethodId?: string
ImportCustomerBulk: { customers: ImportCustomer[] }

Type declaration

ImportSubscription: { billingId?: string; billingPeriod?: BillingPeriod; customerId: string; metadata?: Metadata; planId: string; resourceId?: string; startDate?: Date; unitQuantity?: number }

Type declaration

  • Optional billingId?: string
  • Optional billingPeriod?: BillingPeriod
  • customerId: string
  • Optional metadata?: Metadata
  • planId: string
  • Optional resourceId?: string
  • Optional startDate?: Date
  • Optional unitQuantity?: number
ImportSubscriptionBulk: { subscriptions: ImportSubscription[] }

Type declaration

MeteredEntitlementFallback: { hasAccess: boolean; isUnlimited?: boolean; usageLimit?: number }

Type declaration

  • hasAccess: boolean
  • Optional isUnlimited?: boolean
  • Optional usageLimit?: number
MeteredEntitlementOptions: { fallback?: MeteredEntitlementFallback; requestedUsage?: number; shouldTrack?: boolean }

Type declaration

MigrateSubscriptionToLatest: { subscriptionId: string; subscriptionMigrationTime?: SubscriptionMigrationTime }

Type declaration

Money: { amount: number; currency: string }

Type declaration

  • amount: number
  • currency: string
NumericEntitlementFallback: { hasAccess: boolean; isUnlimited?: boolean; value?: number }

Type declaration

  • hasAccess: boolean
  • Optional isUnlimited?: boolean
  • Optional value?: number
NumericEntitlementOptions: { fallback?: NumericEntitlementFallback; shouldTrack?: boolean }

Type declaration

PackageEntitlement: { displayNameOverride?: PackageEntitlementFragment["displayNameOverride"]; feature: FullEntitlementFeature; hasUnlimitedUsage?: boolean | null; hiddenFromWidgets?: PackageEntitlementFragment["hiddenFromWidgets"]; resetPeriod?: EntitlementResetPeriod | null; usageLimit: number }

Type declaration

  • Optional displayNameOverride?: PackageEntitlementFragment["displayNameOverride"]
  • feature: FullEntitlementFeature
  • Optional hasUnlimitedUsage?: boolean | null
  • Optional hiddenFromWidgets?: PackageEntitlementFragment["hiddenFromWidgets"]
  • Optional resetPeriod?: EntitlementResetPeriod | null
  • usageLimit: number
PaymentMethodDetails: { expirationMonth?: number | null; expirationYear?: number | null; last4Digits?: string | null }

Type declaration

  • Optional expirationMonth?: number | null
  • Optional expirationYear?: number | null
  • Optional last4Digits?: string | null
Paywall: { activeSubscriptions: FullSubscription[] | null; configuration?: PaywallConfiguration | null; currency: PaywallCurrency; customer: Customer | null; plans: Plan[]; resource: CustomerResource | null }

Type declaration

PaywallConfiguration: Omit<PaywallConfigurationFragment, "__typename">
PaywallCurrency: Omit<PaywallCurrencyFragment, "__typename">
Plan: { basePlan?: BasePlan; billingId?: string | null; compatibleAddons: Addon[]; defaultTrialConfig?: DefaultTrialConfig | null; description?: string | null; displayName: string; entitlements: PackageEntitlement[]; id: string; inheritedEntitlements: PackageEntitlement[]; metadata?: Metadata | null; order: number; pricePoints: Price[]; pricingType?: PricingType | null; product: Product }

Type declaration

PreviewSubscription: { addons?: SubscriptionAddon[]; billableFeatures?: BillableFeature[]; billingCountryCode?: string; billingInformation?: SubscriptionBillingInfo; billingPeriod?: BillingPeriod; customerId: string; planId: string; promotionCode?: string; resourceId?: string; startDate?: Date; unitQuantity?: number }

Type declaration

  • Optional addons?: SubscriptionAddon[]
  • Optional billableFeatures?: BillableFeature[]
  • Optional billingCountryCode?: string
  • Optional billingInformation?: SubscriptionBillingInfo
  • Optional billingPeriod?: BillingPeriod
  • customerId: string
  • planId: string
  • Optional promotionCode?: string
  • Optional resourceId?: string
  • Optional startDate?: Date
  • Optional unitQuantity?: number
Price: { amount?: number | null; billingCountryCode?: string | null; billingId?: string | null; billingPeriod: BillingPeriod; currency: Currency; feature?: { description?: string | null; displayName: string; featureId: string; unitQuantity?: number | null; units?: string | null; unitsPlural?: string | null } | null; maxUnitQuantity?: number | null; minUnitQuantity?: number | null; pricingModel: BillingModel; tiers?: PriceTierFragment[] | null; tiersMode: TiersMode | null | undefined }

Type declaration

  • Optional amount?: number | null
  • Optional billingCountryCode?: string | null
  • Optional billingId?: string | null
  • billingPeriod: BillingPeriod
  • currency: Currency
  • Optional feature?: { description?: string | null; displayName: string; featureId: string; unitQuantity?: number | null; units?: string | null; unitsPlural?: string | null } | null
  • Optional maxUnitQuantity?: number | null
  • Optional minUnitQuantity?: number | null
  • pricingModel: BillingModel
  • Optional tiers?: PriceTierFragment[] | null
  • tiersMode: TiersMode | null | undefined
PriceTierInput: { unitPrice: MoneyInputDto; upTo: Scalars["Float"] }

Type declaration

  • unitPrice: MoneyInputDto
  • upTo: Scalars["Float"]
Product: { description?: string | null; displayName?: string | null; downgradePlan?: Pick<Plan, "id" | "displayName">; id: string; metadata?: Metadata | null }

Type declaration

  • Optional description?: string | null
  • Optional displayName?: string | null
  • Optional downgradePlan?: Pick<Plan, "id" | "displayName">
  • id: string
  • Optional metadata?: Metadata | null
PromotionalEntitlement: { expiresAt?: Date; feature: FullEntitlementFeature; hasExpirationDate: boolean; hasUnlimitedUsage?: boolean | null; isVisible: boolean; status: PromotionalEntitlementStatus; usageLimit: number }

Type declaration

ProvisionCustomer: CreateCustomer & { subscriptionParams: CreateSubscriptionParams | null }
ProvisionSubscription: { addons?: SubscriptionAddon[]; awaitPaymentConfirmation?: boolean; billableFeatures?: BillableFeature[]; billingCountryCode?: string; billingId?: string; billingInformation?: SubscriptionBillingInfo; billingPeriod?: BillingPeriod; checkoutOptions?: CheckoutOptions; customerId: string; id?: string; metadata?: Metadata | null; planId: string; promotionCode?: string; resourceId?: string; skipTrial?: boolean; startDate?: Date; subscriptionEntitlements?: SubscriptionEntitlement[]; unitQuantity?: number }

Type declaration

  • Optional addons?: SubscriptionAddon[]
  • Optional awaitPaymentConfirmation?: boolean
  • Optional billableFeatures?: BillableFeature[]
  • Optional billingCountryCode?: string
  • Optional billingId?: string
  • Optional billingInformation?: SubscriptionBillingInfo
  • Optional billingPeriod?: BillingPeriod
  • Optional checkoutOptions?: CheckoutOptions
  • customerId: string
  • Optional id?: string
  • Optional metadata?: Metadata | null
  • planId: string
  • Optional promotionCode?: string
  • Optional resourceId?: string
  • Optional skipTrial?: boolean
  • Optional startDate?: Date
  • Optional subscriptionEntitlements?: SubscriptionEntitlement[]
  • Optional unitQuantity?: number
ProvisionSubscriptionResult: { checkoutUrl?: string | null; provisionStatus: ProvisionSubscriptionStatus; subscription?: Subscription }

Type declaration

ProvisionedCustomer: { customer: Customer; subscription?: Subscription; subscriptionDecisionStrategy: SubscriptionDecisionStrategy }

Type declaration

ReportEvent: { customerId: string; dimensions?: Record<string, EventDimensionValue>; eventName: string; idempotencyKey: string; resourceId?: string; timestamp?: Date }

Type declaration

  • customerId: string
  • Optional dimensions?: Record<string, EventDimensionValue>
  • eventName: string
  • idempotencyKey: string
  • Optional resourceId?: string
  • Optional timestamp?: Date
ReportUsage: { customerId: string; featureId: string; resourceId?: string; updateBehavior?: UsageUpdateBehavior; value: number }

Type declaration

  • customerId: string
  • featureId: string
  • Optional resourceId?: string
  • Optional updateBehavior?: UsageUpdateBehavior
  • value: number
ReportUsageAck: { measurementId: string }

Type declaration

  • measurementId: string
SlimCustomer: { billingId?: string; createdAt: Date; email?: string; id: string; metadata?: Metadata | null; name?: string; updatedAt: Date }

Type declaration

  • Optional billingId?: string
  • createdAt: Date
  • Optional email?: string
  • id: string
  • Optional metadata?: Metadata | null
  • Optional name?: string
  • updatedAt: Date
Subscription: { addonIds: string[]; addons: SubscriptionAddon[]; billingId?: string; billingLinkUrl?: string; billingSyncError?: string; customerId: string; effectiveEndDate?: Date; experimentInfo?: ExperimentInfo | null; id: string; latestInvoice?: SubscriptionInvoiceFragment; metadata?: Metadata | null; paymentCollection: PaymentCollection; planId: string; price: SubscriptionPrice | null; prices: Price[]; pricingType: PricingType; resource: CustomerResource | null; status: SubscriptionStatus; totalPrice: TotalPriceFragment | null | undefined }

Type declaration

SubscriptionAddon: { addonId: string; quantity?: number }

Type declaration

  • addonId: string
  • Optional quantity?: number
SubscriptionBillingInfo: { billingAddress?: BillingAddress; chargeOnBehalfOfAccount?: string; couponId?: string; metadata?: Metadata | null; taxPercentage?: number; taxRateIds?: string[] }

Type declaration

  • Optional billingAddress?: BillingAddress
  • Optional chargeOnBehalfOfAccount?: string
  • Optional couponId?: string
  • Optional metadata?: Metadata | null
  • Optional taxPercentage?: number
  • Optional taxRateIds?: string[]
SubscriptionEntitlement: { featureId: string; hasUnlimitedUsage?: boolean; monthlyResetPeriodConfiguration?: { accordingTo: MonthlyAccordingTo }; resetPeriod?: EntitlementResetPeriod; usageLimit?: number; weeklyResetPeriodConfiguration?: { accordingTo: WeeklyAccordingTo } }

Type declaration

  • featureId: string
  • Optional hasUnlimitedUsage?: boolean
  • Optional monthlyResetPeriodConfiguration?: { accordingTo: MonthlyAccordingTo }
    • accordingTo: MonthlyAccordingTo
  • Optional resetPeriod?: EntitlementResetPeriod
  • Optional usageLimit?: number
  • Optional weeklyResetPeriodConfiguration?: { accordingTo: WeeklyAccordingTo }
    • accordingTo: WeeklyAccordingTo
SubscriptionInvoiceFragment: { __typename?: "SubscriptionInvoice"; billingId: string; createdAt: any; errorMessage?: string | null; paymentSecret?: string | null; paymentUrl?: string | null; requiresAction: boolean; status: SubscriptionInvoiceStatus; updatedAt: any }

Type declaration

  • Optional __typename?: "SubscriptionInvoice"
  • billingId: string
  • createdAt: any
  • Optional errorMessage?: string | null
  • Optional paymentSecret?: string | null
  • Optional paymentUrl?: string | null
  • requiresAction: boolean
  • status: SubscriptionInvoiceStatus
  • updatedAt: any
SubscriptionPreviewCredits: { initial: Money; remaining: Money; used: Money }

Type declaration

SubscriptionPreviewDiscount: { durationInMonths?: number; durationType: DiscountDurationType; type: DiscountType; value: number }

Type declaration

SubscriptionPreviewInvoice: { discount?: Money; discountDetails?: SubscriptionPreviewDiscount; subTotal: Money; tax?: Money; taxDetails?: SubscriptionPreviewTaxDetails; total: Money; totalExcludingTax: Money }

Type declaration

SubscriptionPreviewProration: { credit: Money; debit: Money; hasProrations?: boolean; netAmount: Money; prorationDate: Date }

Type declaration

  • credit: Money
  • debit: Money
  • Optional hasProrations?: boolean
  • netAmount: Money
  • prorationDate: Date
SubscriptionPreviewTaxDetails: { displayName: string; inclusive: boolean; percentage: number }

Type declaration

  • displayName: string
  • inclusive: boolean
  • percentage: number
SubscriptionPrice: Price & { grossAmount: number }
SubscriptionPricePreview: { subTotal: Money; tax: Money; total: Money; totalExcludingTax: Money }

Type declaration

TaxExempt: { type: string; value: string }

Type declaration

  • type: string
  • value: string
TransferSubscriptionInput: { customerId: Scalars["String"]; destinationResourceId: Scalars["String"]; sourceResourceId: Scalars["String"] }

Type declaration

  • customerId: Scalars["String"]
  • destinationResourceId: Scalars["String"]
  • sourceResourceId: Scalars["String"]
TrialedPlan: { planId: string; productId: string }

Type declaration

  • planId: string
  • productId: string
UpdateCustomer: { billingId?: string; billingInfo?: Omit<BillingInfo, "taxIds">; couponId?: string | null; customerId: string; email?: string; metadata?: Metadata | null; name?: string; shouldWaitSync?: boolean }

Type declaration

  • Optional billingId?: string
  • Optional billingInfo?: Omit<BillingInfo, "taxIds">
  • Optional couponId?: string | null
  • customerId: string
  • Optional email?: string
  • Optional metadata?: Metadata | null
  • Optional name?: string
  • Optional shouldWaitSync?: boolean
UpdateSubscription: { addons?: SubscriptionAddon[]; awaitPaymentConfirmation?: boolean; billableFeatures?: BillableFeature[]; billingInformation?: SubscriptionBillingInfo; billingPeriod?: BillingPeriod; metadata?: Metadata | null; subscriptionId: string; unitQuantity?: number }

Type declaration

UsageHistoryPoint: { date: Date; isResetPoint: boolean; value: number }

Type declaration

  • date: Date
  • isResetPoint: boolean
  • value: number

Generated using TypeDoc