Documentation
¶
Overview ¶
Package openmeter provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewAdvanceInvoiceActionRequest(server string, invoiceId string) (*http.Request, error)
- func NewAppCustomInvoicingDraftSynchronizedRequest(server string, invoiceId string, ...) (*http.Request, error)
- func NewAppCustomInvoicingDraftSynchronizedRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAppCustomInvoicingIssuingSynchronizedRequest(server string, invoiceId string, ...) (*http.Request, error)
- func NewAppCustomInvoicingIssuingSynchronizedRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAppCustomInvoicingUpdatePaymentStatusRequest(server string, invoiceId string, ...) (*http.Request, error)
- func NewAppCustomInvoicingUpdatePaymentStatusRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAppStripeWebhookRequest(server string, id string, body AppStripeWebhookJSONRequestBody) (*http.Request, error)
- func NewAppStripeWebhookRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewApproveInvoiceActionRequest(server string, invoiceId string) (*http.Request, error)
- func NewArchiveAddonRequest(server string, addonId string) (*http.Request, error)
- func NewArchivePlanRequest(server string, planId string) (*http.Request, error)
- func NewCancelSubscriptionRequest(server string, subscriptionId string, body CancelSubscriptionJSONRequestBody) (*http.Request, error)
- func NewCancelSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
- func NewChangeSubscriptionRequest(server string, subscriptionId string, body ChangeSubscriptionJSONRequestBody) (*http.Request, error)
- func NewChangeSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAddonRequest(server string, body CreateAddonJSONRequestBody) (*http.Request, error)
- func NewCreateAddonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateBillingProfileRequest(server string, body CreateBillingProfileJSONRequestBody) (*http.Request, error)
- func NewCreateBillingProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCustomerEntitlementGrantV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewCreateCustomerEntitlementGrantV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewCreateCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewCreateCustomerEntitlementV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Request, error)
- func NewCreateCustomerRequest(server string, body CreateCustomerJSONRequestBody) (*http.Request, error)
- func NewCreateCustomerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCustomerStripePortalSessionRequest(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewCreateCustomerStripePortalSessionRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Request, error)
- func NewCreateEntitlementRequest(server string, subjectIdOrKey string, body CreateEntitlementJSONRequestBody) (*http.Request, error)
- func NewCreateEntitlementRequestWithBody(server string, subjectIdOrKey string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateFeatureRequest(server string, body CreateFeatureJSONRequestBody) (*http.Request, error)
- func NewCreateFeatureRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateGrantRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Request, error)
- func NewCreateGrantRequestWithBody(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Request, error)
- func NewCreateMeterRequest(server string, body CreateMeterJSONRequestBody) (*http.Request, error)
- func NewCreateMeterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateNotificationChannelRequest(server string, body CreateNotificationChannelJSONRequestBody) (*http.Request, error)
- func NewCreateNotificationChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateNotificationRuleRequest(server string, body CreateNotificationRuleJSONRequestBody) (*http.Request, error)
- func NewCreateNotificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePendingInvoiceLineRequest(server string, customerId string, body CreatePendingInvoiceLineJSONRequestBody) (*http.Request, error)
- func NewCreatePendingInvoiceLineRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePlanAddonRequest(server string, planId string, body CreatePlanAddonJSONRequestBody) (*http.Request, error)
- func NewCreatePlanAddonRequestWithBody(server string, planId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePlanRequest(server string, body CreatePlanJSONRequestBody) (*http.Request, error)
- func NewCreatePlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePortalTokenRequest(server string, body CreatePortalTokenJSONRequestBody) (*http.Request, error)
- func NewCreatePortalTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateStripeCheckoutSessionRequest(server string, body CreateStripeCheckoutSessionJSONRequestBody) (*http.Request, error)
- func NewCreateStripeCheckoutSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSubscriptionAddonRequest(server string, subscriptionId string, ...) (*http.Request, error)
- func NewCreateSubscriptionAddonRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSubscriptionRequest(server string, body CreateSubscriptionJSONRequestBody) (*http.Request, error)
- func NewCreateSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAddonRequest(server string, addonId string) (*http.Request, error)
- func NewDeleteBillingProfileCustomerOverrideRequest(server string, customerId string) (*http.Request, error)
- func NewDeleteBillingProfileRequest(server string, id string) (*http.Request, error)
- func NewDeleteCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, appId string) (*http.Request, error)
- func NewDeleteCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewDeleteCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error)
- func NewDeleteEntitlementRequest(server string, subjectIdOrKey string, entitlementId string) (*http.Request, error)
- func NewDeleteFeatureRequest(server string, featureId string) (*http.Request, error)
- func NewDeleteInvoiceRequest(server string, invoiceId string) (*http.Request, error)
- func NewDeleteMeterRequest(server string, meterIdOrSlug string) (*http.Request, error)
- func NewDeleteNotificationChannelRequest(server string, channelId string) (*http.Request, error)
- func NewDeleteNotificationRuleRequest(server string, ruleId string) (*http.Request, error)
- func NewDeletePlanAddonRequest(server string, planId string, planAddonId string) (*http.Request, error)
- func NewDeletePlanRequest(server string, planId string) (*http.Request, error)
- func NewDeleteSubjectRequest(server string, subjectIdOrKey string) (*http.Request, error)
- func NewDeleteSubscriptionRequest(server string, subscriptionId string) (*http.Request, error)
- func NewEditSubscriptionRequest(server string, subscriptionId string, body EditSubscriptionJSONRequestBody) (*http.Request, error)
- func NewEditSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAddonRequest(server string, addonId string, params *GetAddonParams) (*http.Request, error)
- func NewGetAppRequest(server string, id string) (*http.Request, error)
- func NewGetBillingProfileCustomerOverrideRequest(server string, customerId string, ...) (*http.Request, error)
- func NewGetBillingProfileRequest(server string, id string, params *GetBillingProfileParams) (*http.Request, error)
- func NewGetCustomerAccessRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error)
- func NewGetCustomerEntitlementHistoryV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewGetCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewGetCustomerEntitlementValueRequest(server string, customerIdOrKey ULIDOrExternalKey, featureKey string, ...) (*http.Request, error)
- func NewGetCustomerEntitlementValueV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewGetCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams) (*http.Request, error)
- func NewGetCustomerStripeAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error)
- func NewGetDebugMetricsRequest(server string) (*http.Request, error)
- func NewGetEntitlementByIdRequest(server string, entitlementId string) (*http.Request, error)
- func NewGetEntitlementByIdV2Request(server string, entitlementId string) (*http.Request, error)
- func NewGetEntitlementHistoryRequest(server string, subjectIdOrKey string, entitlementId string, ...) (*http.Request, error)
- func NewGetEntitlementRequest(server string, subjectIdOrKey string, entitlementId string) (*http.Request, error)
- func NewGetEntitlementValueRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Request, error)
- func NewGetFeatureRequest(server string, featureId string) (*http.Request, error)
- func NewGetInvoiceRequest(server string, invoiceId string, params *GetInvoiceParams) (*http.Request, error)
- func NewGetMarketplaceListingRequest(server string, pType AppType) (*http.Request, error)
- func NewGetMeterRequest(server string, meterIdOrSlug string) (*http.Request, error)
- func NewGetNotificationChannelRequest(server string, channelId string) (*http.Request, error)
- func NewGetNotificationEventRequest(server string, eventId string) (*http.Request, error)
- func NewGetNotificationRuleRequest(server string, ruleId string) (*http.Request, error)
- func NewGetPlanAddonRequest(server string, planId string, planAddonId string) (*http.Request, error)
- func NewGetPlanRequest(server string, planId string, params *GetPlanParams) (*http.Request, error)
- func NewGetProgressRequest(server string, id string) (*http.Request, error)
- func NewGetSubjectRequest(server string, subjectIdOrKey string) (*http.Request, error)
- func NewGetSubscriptionAddonRequest(server string, subscriptionId string, subscriptionAddonId string) (*http.Request, error)
- func NewGetSubscriptionRequest(server string, subscriptionId string, params *GetSubscriptionParams) (*http.Request, error)
- func NewIngestEventsRequest(server string, body IngestEventsJSONRequestBody) (*http.Request, error)
- func NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody(server string, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody) (*http.Request, error)
- func NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody(server string, body IngestEventsApplicationCloudeventsPlusJSONRequestBody) (*http.Request, error)
- func NewIngestEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewInvalidatePortalTokensRequest(server string, body InvalidatePortalTokensJSONRequestBody) (*http.Request, error)
- func NewInvalidatePortalTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewInvoicePendingLinesActionRequest(server string, body InvoicePendingLinesActionJSONRequestBody) (*http.Request, error)
- func NewInvoicePendingLinesActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListAddonsRequest(server string, params *ListAddonsParams) (*http.Request, error)
- func NewListAppsRequest(server string, params *ListAppsParams) (*http.Request, error)
- func NewListBillingProfileCustomerOverridesRequest(server string, params *ListBillingProfileCustomerOverridesParams) (*http.Request, error)
- func NewListBillingProfilesRequest(server string, params *ListBillingProfilesParams) (*http.Request, error)
- func NewListCurrenciesRequest(server string) (*http.Request, error)
- func NewListCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewListCustomerEntitlementGrantsV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewListCustomerEntitlementsV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewListCustomerSubscriptionsRequest(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewListCustomersRequest(server string, params *ListCustomersParams) (*http.Request, error)
- func NewListEntitlementGrantsRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Request, error)
- func NewListEntitlementsRequest(server string, params *ListEntitlementsParams) (*http.Request, error)
- func NewListEntitlementsV2Request(server string, params *ListEntitlementsV2Params) (*http.Request, error)
- func NewListEventsRequest(server string, params *ListEventsParams) (*http.Request, error)
- func NewListEventsV2Request(server string, params *ListEventsV2Params) (*http.Request, error)
- func NewListFeaturesRequest(server string, params *ListFeaturesParams) (*http.Request, error)
- func NewListGrantsRequest(server string, params *ListGrantsParams) (*http.Request, error)
- func NewListGrantsV2Request(server string, params *ListGrantsV2Params) (*http.Request, error)
- func NewListInvoicesRequest(server string, params *ListInvoicesParams) (*http.Request, error)
- func NewListMarketplaceListingsRequest(server string, params *ListMarketplaceListingsParams) (*http.Request, error)
- func NewListMeterGroupByValuesRequest(server string, meterIdOrSlug string, groupByKey string, ...) (*http.Request, error)
- func NewListMeterSubjectsRequest(server string, meterIdOrSlug string, params *ListMeterSubjectsParams) (*http.Request, error)
- func NewListMetersRequest(server string, params *ListMetersParams) (*http.Request, error)
- func NewListNotificationChannelsRequest(server string, params *ListNotificationChannelsParams) (*http.Request, error)
- func NewListNotificationEventsRequest(server string, params *ListNotificationEventsParams) (*http.Request, error)
- func NewListNotificationRulesRequest(server string, params *ListNotificationRulesParams) (*http.Request, error)
- func NewListPlanAddonsRequest(server string, planId string, params *ListPlanAddonsParams) (*http.Request, error)
- func NewListPlansRequest(server string, params *ListPlansParams) (*http.Request, error)
- func NewListPortalTokensRequest(server string, params *ListPortalTokensParams) (*http.Request, error)
- func NewListSubjectEntitlementsRequest(server string, subjectIdOrKey string, params *ListSubjectEntitlementsParams) (*http.Request, error)
- func NewListSubjectsRequest(server string) (*http.Request, error)
- func NewListSubscriptionAddonsRequest(server string, subscriptionId string) (*http.Request, error)
- func NewMarketplaceAppAPIKeyInstallRequest(server string, pType MarketplaceApiKeyInstallRequestType, ...) (*http.Request, error)
- func NewMarketplaceAppAPIKeyInstallRequestWithBody(server string, pType MarketplaceApiKeyInstallRequestType, contentType string, ...) (*http.Request, error)
- func NewMarketplaceAppInstallRequest(server string, pType MarketplaceInstallRequestType, ...) (*http.Request, error)
- func NewMarketplaceAppInstallRequestWithBody(server string, pType MarketplaceInstallRequestType, contentType string, ...) (*http.Request, error)
- func NewMarketplaceOAuth2InstallAuthorizeRequest(server string, pType MarketplaceOAuth2InstallAuthorizeRequestType, ...) (*http.Request, error)
- func NewMarketplaceOAuth2InstallGetURLRequest(server string, pType AppType) (*http.Request, error)
- func NewMigrateSubscriptionRequest(server string, subscriptionId string, body MigrateSubscriptionJSONRequestBody) (*http.Request, error)
- func NewMigrateSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
- func NewNextPlanRequest(server string, planIdOrKey string) (*http.Request, error)
- func NewOverrideCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewOverrideCustomerEntitlementV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewOverrideEntitlementRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Request, error)
- func NewOverrideEntitlementRequestWithBody(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Request, error)
- func NewPublishAddonRequest(server string, addonId string) (*http.Request, error)
- func NewPublishPlanRequest(server string, planId string) (*http.Request, error)
- func NewQueryMeterPostRequest(server string, meterIdOrSlug string, body QueryMeterPostJSONRequestBody) (*http.Request, error)
- func NewQueryMeterPostRequestWithBody(server string, meterIdOrSlug string, contentType string, body io.Reader) (*http.Request, error)
- func NewQueryMeterRequest(server string, meterIdOrSlug string, params *QueryMeterParams) (*http.Request, error)
- func NewQueryPortalMeterRequest(server string, meterSlug string, params *QueryPortalMeterParams) (*http.Request, error)
- func NewRecalculateInvoiceTaxActionRequest(server string, invoiceId string) (*http.Request, error)
- func NewResendNotificationEventRequest(server string, eventId string, body ResendNotificationEventJSONRequestBody) (*http.Request, error)
- func NewResendNotificationEventRequestWithBody(server string, eventId string, contentType string, body io.Reader) (*http.Request, error)
- func NewResetCustomerEntitlementUsageV2Request(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewResetCustomerEntitlementUsageV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewResetEntitlementUsageRequest(server string, subjectIdOrKey string, entitlementId string, ...) (*http.Request, error)
- func NewResetEntitlementUsageRequestWithBody(server string, subjectIdOrKey string, entitlementId string, contentType string, ...) (*http.Request, error)
- func NewRestoreSubscriptionRequest(server string, subscriptionId string) (*http.Request, error)
- func NewRetryInvoiceActionRequest(server string, invoiceId string) (*http.Request, error)
- func NewSimulateInvoiceRequest(server string, customerId string, body SimulateInvoiceJSONRequestBody) (*http.Request, error)
- func NewSimulateInvoiceRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error)
- func NewSnapshotQuantitiesInvoiceActionRequest(server string, invoiceId string) (*http.Request, error)
- func NewTestNotificationRuleRequest(server string, ruleId string) (*http.Request, error)
- func NewUninstallAppRequest(server string, id string) (*http.Request, error)
- func NewUnscheduleCancelationRequest(server string, subscriptionId string) (*http.Request, error)
- func NewUpdateAddonRequest(server string, addonId string, body UpdateAddonJSONRequestBody) (*http.Request, error)
- func NewUpdateAddonRequestWithBody(server string, addonId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateAppRequest(server string, id string, body UpdateAppJSONRequestBody) (*http.Request, error)
- func NewUpdateAppRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateBillingProfileRequest(server string, id string, body UpdateBillingProfileJSONRequestBody) (*http.Request, error)
- func NewUpdateBillingProfileRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewUpdateCustomerRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Request, error)
- func NewUpdateInvoiceRequest(server string, invoiceId string, body UpdateInvoiceJSONRequestBody) (*http.Request, error)
- func NewUpdateInvoiceRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateMeterRequest(server string, meterIdOrSlug string, body UpdateMeterJSONRequestBody) (*http.Request, error)
- func NewUpdateMeterRequestWithBody(server string, meterIdOrSlug string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateNotificationChannelRequest(server string, channelId string, body UpdateNotificationChannelJSONRequestBody) (*http.Request, error)
- func NewUpdateNotificationChannelRequestWithBody(server string, channelId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateNotificationRuleRequest(server string, ruleId string, body UpdateNotificationRuleJSONRequestBody) (*http.Request, error)
- func NewUpdateNotificationRuleRequestWithBody(server string, ruleId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePlanAddonRequest(server string, planId string, planAddonId string, ...) (*http.Request, error)
- func NewUpdatePlanAddonRequestWithBody(server string, planId string, planAddonId string, contentType string, ...) (*http.Request, error)
- func NewUpdatePlanRequest(server string, planId string, body UpdatePlanJSONRequestBody) (*http.Request, error)
- func NewUpdatePlanRequestWithBody(server string, planId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateStripeAPIKeyRequest(server string, id string, body UpdateStripeAPIKeyJSONRequestBody) (*http.Request, error)
- func NewUpdateStripeAPIKeyRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSubscriptionAddonRequest(server string, subscriptionId string, subscriptionAddonId string, ...) (*http.Request, error)
- func NewUpdateSubscriptionAddonRequestWithBody(server string, subscriptionId string, subscriptionAddonId string, ...) (*http.Request, error)
- func NewUpsertBillingProfileCustomerOverrideRequest(server string, customerId string, ...) (*http.Request, error)
- func NewUpsertBillingProfileCustomerOverrideRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpsertCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewUpsertCustomerAppDataRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Request, error)
- func NewUpsertCustomerStripeAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, ...) (*http.Request, error)
- func NewUpsertCustomerStripeAppDataRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Request, error)
- func NewUpsertSubjectRequest(server string, body UpsertSubjectJSONRequestBody) (*http.Request, error)
- func NewUpsertSubjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewVoidGrantRequest(server string, grantId string) (*http.Request, error)
- func NewVoidInvoiceActionRequest(server string, invoiceId string, body VoidInvoiceActionJSONRequestBody) (*http.Request, error)
- func NewVoidInvoiceActionRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type Addon
- type AddonCreate
- type AddonInstanceType
- type AddonOrderBy
- type AddonOrderByOrderingOrder
- type AddonOrderByOrderingOrderBy
- type AddonPaginatedResponse
- type AddonReplaceUpdate
- type AddonStatus
- type Address
- type AdvanceInvoiceActionResponse
- type Alignment
- type Annotations
- type App
- func (t App) AsCustomInvoicingApp() (CustomInvoicingApp, error)
- func (t App) AsSandboxApp() (SandboxApp, error)
- func (t App) AsStripeApp() (StripeApp, error)
- func (t App) Discriminator() (string, error)
- func (t *App) FromCustomInvoicingApp(v CustomInvoicingApp) error
- func (t *App) FromSandboxApp(v SandboxApp) error
- func (t *App) FromStripeApp(v StripeApp) error
- func (t App) MarshalJSON() ([]byte, error)
- func (t *App) MergeCustomInvoicingApp(v CustomInvoicingApp) error
- func (t *App) MergeSandboxApp(v SandboxApp) error
- func (t *App) MergeStripeApp(v StripeApp) error
- func (t *App) UnmarshalJSON(b []byte) error
- func (t App) ValueByDiscriminator() (interface{}, error)
- type AppCapability
- type AppCapabilityType
- type AppCustomInvoicingDraftSynchronizedJSONRequestBody
- type AppCustomInvoicingDraftSynchronizedResponse
- type AppCustomInvoicingIssuingSynchronizedJSONRequestBody
- type AppCustomInvoicingIssuingSynchronizedResponse
- type AppCustomInvoicingUpdatePaymentStatusJSONRequestBody
- type AppCustomInvoicingUpdatePaymentStatusResponse
- type AppPaginatedResponse
- type AppReference
- type AppReplaceUpdate
- func (t AppReplaceUpdate) AsCustomInvoicingAppReplaceUpdate() (CustomInvoicingAppReplaceUpdate, error)
- func (t AppReplaceUpdate) AsSandboxAppReplaceUpdate() (SandboxAppReplaceUpdate, error)
- func (t AppReplaceUpdate) AsStripeAppReplaceUpdate() (StripeAppReplaceUpdate, error)
- func (t AppReplaceUpdate) Discriminator() (string, error)
- func (t *AppReplaceUpdate) FromCustomInvoicingAppReplaceUpdate(v CustomInvoicingAppReplaceUpdate) error
- func (t *AppReplaceUpdate) FromSandboxAppReplaceUpdate(v SandboxAppReplaceUpdate) error
- func (t *AppReplaceUpdate) FromStripeAppReplaceUpdate(v StripeAppReplaceUpdate) error
- func (t AppReplaceUpdate) MarshalJSON() ([]byte, error)
- func (t *AppReplaceUpdate) MergeCustomInvoicingAppReplaceUpdate(v CustomInvoicingAppReplaceUpdate) error
- func (t *AppReplaceUpdate) MergeSandboxAppReplaceUpdate(v SandboxAppReplaceUpdate) error
- func (t *AppReplaceUpdate) MergeStripeAppReplaceUpdate(v StripeAppReplaceUpdate) error
- func (t *AppReplaceUpdate) UnmarshalJSON(b []byte) error
- func (t AppReplaceUpdate) ValueByDiscriminator() (interface{}, error)
- type AppStatus
- type AppStripeWebhookJSONRequestBody
- type AppStripeWebhookResponse
- type AppType
- type ApproveInvoiceActionResponse
- type ArchiveAddonResponse
- type ArchivePlanResponse
- type BadRequestProblemResponse
- type BalanceHistoryWindow
- type BillingCustomerProfile
- type BillingDiscountPercentage
- type BillingDiscountReason
- func (t BillingDiscountReason) AsDiscountReasonMaximumSpend() (DiscountReasonMaximumSpend, error)
- func (t BillingDiscountReason) AsDiscountReasonRatecardPercentage() (DiscountReasonRatecardPercentage, error)
- func (t BillingDiscountReason) AsDiscountReasonRatecardUsage() (DiscountReasonRatecardUsage, error)
- func (t BillingDiscountReason) Discriminator() (string, error)
- func (t *BillingDiscountReason) FromDiscountReasonMaximumSpend(v DiscountReasonMaximumSpend) error
- func (t *BillingDiscountReason) FromDiscountReasonRatecardPercentage(v DiscountReasonRatecardPercentage) error
- func (t *BillingDiscountReason) FromDiscountReasonRatecardUsage(v DiscountReasonRatecardUsage) error
- func (t BillingDiscountReason) MarshalJSON() ([]byte, error)
- func (t *BillingDiscountReason) MergeDiscountReasonMaximumSpend(v DiscountReasonMaximumSpend) error
- func (t *BillingDiscountReason) MergeDiscountReasonRatecardPercentage(v DiscountReasonRatecardPercentage) error
- func (t *BillingDiscountReason) MergeDiscountReasonRatecardUsage(v DiscountReasonRatecardUsage) error
- func (t *BillingDiscountReason) UnmarshalJSON(b []byte) error
- func (t BillingDiscountReason) ValueByDiscriminator() (interface{}, error)
- type BillingDiscountUsage
- type BillingDiscounts
- type BillingInvoiceCustomerExtendedDetails
- type BillingParty
- type BillingPartyReplaceUpdate
- type BillingPartyTaxIdentity
- type BillingProfile
- type BillingProfileAppReferences
- type BillingProfileApps
- type BillingProfileAppsCreate
- type BillingProfileAppsOrReference
- func (t BillingProfileAppsOrReference) AsBillingProfileAppReferences() (BillingProfileAppReferences, error)
- func (t BillingProfileAppsOrReference) AsBillingProfileApps() (BillingProfileApps, error)
- func (t *BillingProfileAppsOrReference) FromBillingProfileAppReferences(v BillingProfileAppReferences) error
- func (t *BillingProfileAppsOrReference) FromBillingProfileApps(v BillingProfileApps) error
- func (t BillingProfileAppsOrReference) MarshalJSON() ([]byte, error)
- func (t *BillingProfileAppsOrReference) MergeBillingProfileAppReferences(v BillingProfileAppReferences) error
- func (t *BillingProfileAppsOrReference) MergeBillingProfileApps(v BillingProfileApps) error
- func (t *BillingProfileAppsOrReference) UnmarshalJSON(b []byte) error
- type BillingProfileCreate
- type BillingProfileCustomerOverride
- type BillingProfileCustomerOverrideCreate
- type BillingProfileCustomerOverrideExpand
- type BillingProfileCustomerOverrideOrderBy
- type BillingProfileCustomerOverrideOrderByOrderingOrder
- type BillingProfileCustomerOverrideOrderByOrderingOrderBy
- type BillingProfileCustomerOverrideWithDetails
- type BillingProfileCustomerOverrideWithDetailsPaginatedResponse
- type BillingProfileExpand
- type BillingProfileListCustomerOverridesParamsBillingProfile
- type BillingProfileListCustomerOverridesParamsCustomerId
- type BillingProfileListCustomerOverridesParamsCustomerKey
- type BillingProfileListCustomerOverridesParamsCustomerName
- type BillingProfileListCustomerOverridesParamsCustomerPrimaryEmail
- type BillingProfileListCustomerOverridesParamsCustomersWithoutPinnedProfile
- type BillingProfileListCustomerOverridesParamsExpand
- type BillingProfileListCustomerOverridesParamsIncludeAllCustomers
- type BillingProfileOrderBy
- type BillingProfileOrderByOrderingOrder
- type BillingProfileOrderByOrderingOrderBy
- type BillingProfilePaginatedResponse
- type BillingProfileReplaceUpdateWithWorkflow
- type BillingTaxIdentificationCode
- type BillingWorkflow
- type BillingWorkflowCollectionAlignment
- func (t BillingWorkflowCollectionAlignment) AsBillingWorkflowCollectionAlignmentAnchored() (BillingWorkflowCollectionAlignmentAnchored, error)
- func (t BillingWorkflowCollectionAlignment) AsBillingWorkflowCollectionAlignmentSubscription() (BillingWorkflowCollectionAlignmentSubscription, error)
- func (t BillingWorkflowCollectionAlignment) Discriminator() (string, error)
- func (t *BillingWorkflowCollectionAlignment) FromBillingWorkflowCollectionAlignmentAnchored(v BillingWorkflowCollectionAlignmentAnchored) error
- func (t *BillingWorkflowCollectionAlignment) FromBillingWorkflowCollectionAlignmentSubscription(v BillingWorkflowCollectionAlignmentSubscription) error
- func (t BillingWorkflowCollectionAlignment) MarshalJSON() ([]byte, error)
- func (t *BillingWorkflowCollectionAlignment) MergeBillingWorkflowCollectionAlignmentAnchored(v BillingWorkflowCollectionAlignmentAnchored) error
- func (t *BillingWorkflowCollectionAlignment) MergeBillingWorkflowCollectionAlignmentSubscription(v BillingWorkflowCollectionAlignmentSubscription) error
- func (t *BillingWorkflowCollectionAlignment) UnmarshalJSON(b []byte) error
- func (t BillingWorkflowCollectionAlignment) ValueByDiscriminator() (interface{}, error)
- type BillingWorkflowCollectionAlignmentAnchored
- type BillingWorkflowCollectionAlignmentAnchoredType
- type BillingWorkflowCollectionAlignmentSubscription
- type BillingWorkflowCollectionAlignmentSubscriptionType
- type BillingWorkflowCollectionSettings
- type BillingWorkflowCreate
- type BillingWorkflowInvoicingSettings
- type BillingWorkflowPaymentSettings
- type BillingWorkflowTaxSettings
- type CancelSubscriptionJSONBody
- type CancelSubscriptionJSONRequestBody
- type CancelSubscriptionResponse
- type ChangeSubscriptionJSONRequestBody
- type ChangeSubscriptionResponse
- type CheckoutSessionCustomTextAfterSubmitParams
- type CheckoutSessionUIMode
- type Client
- func (c *Client) AdvanceInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AppCustomInvoicingDraftSynchronized(ctx context.Context, invoiceId string, ...) (*http.Response, error)
- func (c *Client) AppCustomInvoicingDraftSynchronizedWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AppCustomInvoicingIssuingSynchronized(ctx context.Context, invoiceId string, ...) (*http.Response, error)
- func (c *Client) AppCustomInvoicingIssuingSynchronizedWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AppCustomInvoicingUpdatePaymentStatus(ctx context.Context, invoiceId string, ...) (*http.Response, error)
- func (c *Client) AppCustomInvoicingUpdatePaymentStatusWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AppStripeWebhook(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AppStripeWebhookWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ApproveInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ArchiveAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ArchivePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CancelSubscription(ctx context.Context, subscriptionId string, ...) (*http.Response, error)
- func (c *Client) CancelSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ChangeSubscription(ctx context.Context, subscriptionId string, ...) (*http.Response, error)
- func (c *Client) ChangeSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAddon(ctx context.Context, body CreateAddonJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAddonWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateBillingProfile(ctx context.Context, body CreateBillingProfileJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateBillingProfileWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateCustomer(ctx context.Context, body CreateCustomerJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCustomerEntitlementGrantV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) CreateCustomerEntitlementGrantV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) CreateCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) CreateCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateCustomerStripePortalSession(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) CreateCustomerStripePortalSessionWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateEntitlement(ctx context.Context, subjectIdOrKey string, ...) (*http.Response, error)
- func (c *Client) CreateEntitlementWithBody(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateFeatureWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateGrant(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Response, error)
- func (c *Client) CreateGrantWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Response, error)
- func (c *Client) CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateMeterWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateNotificationChannelWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateNotificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePendingInvoiceLine(ctx context.Context, customerId string, ...) (*http.Response, error)
- func (c *Client) CreatePendingInvoiceLineWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePlan(ctx context.Context, body CreatePlanJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePlanAddon(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePlanAddonWithBody(ctx context.Context, planId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePlanWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateStripeCheckoutSession(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateStripeCheckoutSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSubscription(ctx context.Context, body CreateSubscriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSubscriptionAddon(ctx context.Context, subscriptionId string, ...) (*http.Response, error)
- func (c *Client) CreateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteBillingProfile(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteBillingProfileCustomerOverride(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) DeleteCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, ...) (*http.Response, error)
- func (c *Client) DeleteCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) DeleteEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*http.Response, error)
- func (c *Client) DeleteFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteInvoice(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeletePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeletePlanAddon(ctx context.Context, planId string, planAddonId string, ...) (*http.Response, error)
- func (c *Client) DeleteSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) EditSubscription(ctx context.Context, subscriptionId string, ...) (*http.Response, error)
- func (c *Client) EditSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAddon(ctx context.Context, addonId string, params *GetAddonParams, ...) (*http.Response, error)
- func (c *Client) GetApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBillingProfile(ctx context.Context, id string, params *GetBillingProfileParams, ...) (*http.Response, error)
- func (c *Client) GetBillingProfileCustomerOverride(ctx context.Context, customerId string, ...) (*http.Response, error)
- func (c *Client) GetCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) GetCustomerAccess(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) GetCustomerEntitlementHistoryV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) GetCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) GetCustomerEntitlementValue(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, ...) (*http.Response, error)
- func (c *Client) GetCustomerEntitlementValueV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) GetCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) GetDebugMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*http.Response, error)
- func (c *Client) GetEntitlementById(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEntitlementByIdV2(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEntitlementHistory(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*http.Response, error)
- func (c *Client) GetEntitlementValue(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Response, error)
- func (c *Client) GetFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInvoice(ctx context.Context, invoiceId string, params *GetInvoiceParams, ...) (*http.Response, error)
- func (c *Client) GetMarketplaceListing(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNotificationEvent(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPlan(ctx context.Context, planId string, params *GetPlanParams, ...) (*http.Response, error)
- func (c *Client) GetPlanAddon(ctx context.Context, planId string, planAddonId string, ...) (*http.Response, error)
- func (c *Client) GetProgress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSubscription(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, ...) (*http.Response, error)
- func (c *Client) GetSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, ...) (*http.Response, error)
- func (c *Client) IngestEvent(ctx context.Context, event Event, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IngestEventBatch(ctx context.Context, events []Event, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IngestEvents(ctx context.Context, body IngestEventsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) IngestEventsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) InvalidatePortalTokensWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) InvoicePendingLinesAction(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) InvoicePendingLinesActionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListAddons(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListApps(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListBillingProfileCustomerOverrides(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, ...) (*http.Response, error)
- func (c *Client) ListBillingProfiles(ctx context.Context, params *ListBillingProfilesParams, ...) (*http.Response, error)
- func (c *Client) ListCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) ListCustomerEntitlementGrantsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) ListCustomerEntitlementsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) ListCustomerSubscriptions(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) ListCustomers(ctx context.Context, params *ListCustomersParams, ...) (*http.Response, error)
- func (c *Client) ListEntitlementGrants(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Response, error)
- func (c *Client) ListEntitlements(ctx context.Context, params *ListEntitlementsParams, ...) (*http.Response, error)
- func (c *Client) ListEntitlementsV2(ctx context.Context, params *ListEntitlementsV2Params, ...) (*http.Response, error)
- func (c *Client) ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListEventsV2(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListGrants(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListGrantsV2(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListInvoices(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListMarketplaceListings(ctx context.Context, params *ListMarketplaceListingsParams, ...) (*http.Response, error)
- func (c *Client) ListMeterGroupByValues(ctx context.Context, meterIdOrSlug string, groupByKey string, ...) (*http.Response, error)
- func (c *Client) ListMeterSubjects(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, ...) (*http.Response, error)
- func (c *Client) ListMeters(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListNotificationChannels(ctx context.Context, params *ListNotificationChannelsParams, ...) (*http.Response, error)
- func (c *Client) ListNotificationEvents(ctx context.Context, params *ListNotificationEventsParams, ...) (*http.Response, error)
- func (c *Client) ListNotificationRules(ctx context.Context, params *ListNotificationRulesParams, ...) (*http.Response, error)
- func (c *Client) ListPlanAddons(ctx context.Context, planId string, params *ListPlanAddonsParams, ...) (*http.Response, error)
- func (c *Client) ListPlans(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, ...) (*http.Response, error)
- func (c *Client) ListSubjectEntitlements(ctx context.Context, subjectIdOrKey string, ...) (*http.Response, error)
- func (c *Client) ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSubscriptionAddons(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MarketplaceAppAPIKeyInstall(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, ...) (*http.Response, error)
- func (c *Client) MarketplaceAppAPIKeyInstallWithBody(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, ...) (*http.Response, error)
- func (c *Client) MarketplaceAppInstall(ctx context.Context, pType MarketplaceInstallRequestType, ...) (*http.Response, error)
- func (c *Client) MarketplaceAppInstallWithBody(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, ...) (*http.Response, error)
- func (c *Client) MarketplaceOAuth2InstallAuthorize(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, ...) (*http.Response, error)
- func (c *Client) MarketplaceOAuth2InstallGetURL(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MigrateSubscription(ctx context.Context, subscriptionId string, ...) (*http.Response, error)
- func (c *Client) MigrateSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) NextPlan(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OverrideCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) OverrideCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) OverrideEntitlement(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Response, error)
- func (c *Client) OverrideEntitlementWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*http.Response, error)
- func (c *Client) PublishAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PublishPlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) QueryMeter(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, ...) (*http.Response, error)
- func (c *Client) QueryMeterPost(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QueryMeterPostWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, ...) (*http.Response, error)
- func (c *Client) RecalculateInvoiceTaxAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ResendNotificationEvent(ctx context.Context, eventId string, ...) (*http.Response, error)
- func (c *Client) ResendNotificationEventWithBody(ctx context.Context, eventId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResetCustomerEntitlementUsageV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) ResetCustomerEntitlementUsageV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) ResetEntitlementUsage(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*http.Response, error)
- func (c *Client) ResetEntitlementUsageWithBody(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*http.Response, error)
- func (c *Client) RestoreSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RetryInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SimulateInvoice(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SimulateInvoiceWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SnapshotQuantitiesInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TestNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UninstallApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnscheduleCancelation(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateAddon(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateAddonWithBody(ctx context.Context, addonId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateApp(ctx context.Context, id string, body UpdateAppJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateAppWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateBillingProfile(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateBillingProfileWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) UpdateCustomerWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateInvoice(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateInvoiceWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateMeter(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateMeterWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateNotificationChannel(ctx context.Context, channelId string, ...) (*http.Response, error)
- func (c *Client) UpdateNotificationChannelWithBody(ctx context.Context, channelId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateNotificationRule(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateNotificationRuleWithBody(ctx context.Context, ruleId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePlan(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdatePlanAddon(ctx context.Context, planId string, planAddonId string, ...) (*http.Response, error)
- func (c *Client) UpdatePlanAddonWithBody(ctx context.Context, planId string, planAddonId string, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdatePlanWithBody(ctx context.Context, planId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateStripeAPIKey(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateStripeAPIKeyWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, ...) (*http.Response, error)
- func (c *Client) UpdateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, subscriptionAddonId string, ...) (*http.Response, error)
- func (c *Client) UpsertBillingProfileCustomerOverride(ctx context.Context, customerId string, ...) (*http.Response, error)
- func (c *Client) UpsertBillingProfileCustomerOverrideWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpsertCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) UpsertCustomerAppDataWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Response, error)
- func (c *Client) UpsertCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*http.Response, error)
- func (c *Client) UpsertCustomerStripeAppDataWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*http.Response, error)
- func (c *Client) UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpsertSubjectWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VoidGrant(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) VoidInvoiceAction(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VoidInvoiceActionWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientAppStartResponse
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AdvanceInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*AdvanceInvoiceActionResponse, error)
- func (c *ClientWithResponses) AppCustomInvoicingDraftSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*AppCustomInvoicingDraftSynchronizedResponse, error)
- func (c *ClientWithResponses) AppCustomInvoicingDraftSynchronizedWithResponse(ctx context.Context, invoiceId string, ...) (*AppCustomInvoicingDraftSynchronizedResponse, error)
- func (c *ClientWithResponses) AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*AppCustomInvoicingIssuingSynchronizedResponse, error)
- func (c *ClientWithResponses) AppCustomInvoicingIssuingSynchronizedWithResponse(ctx context.Context, invoiceId string, ...) (*AppCustomInvoicingIssuingSynchronizedResponse, error)
- func (c *ClientWithResponses) AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*AppCustomInvoicingUpdatePaymentStatusResponse, error)
- func (c *ClientWithResponses) AppCustomInvoicingUpdatePaymentStatusWithResponse(ctx context.Context, invoiceId string, ...) (*AppCustomInvoicingUpdatePaymentStatusResponse, error)
- func (c *ClientWithResponses) AppStripeWebhookWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*AppStripeWebhookResponse, error)
- func (c *ClientWithResponses) AppStripeWebhookWithResponse(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, ...) (*AppStripeWebhookResponse, error)
- func (c *ClientWithResponses) ApproveInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*ApproveInvoiceActionResponse, error)
- func (c *ClientWithResponses) ArchiveAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*ArchiveAddonResponse, error)
- func (c *ClientWithResponses) ArchivePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*ArchivePlanResponse, error)
- func (c *ClientWithResponses) CancelSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*CancelSubscriptionResponse, error)
- func (c *ClientWithResponses) CancelSubscriptionWithResponse(ctx context.Context, subscriptionId string, ...) (*CancelSubscriptionResponse, error)
- func (c *ClientWithResponses) ChangeSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*ChangeSubscriptionResponse, error)
- func (c *ClientWithResponses) ChangeSubscriptionWithResponse(ctx context.Context, subscriptionId string, ...) (*ChangeSubscriptionResponse, error)
- func (c *ClientWithResponses) CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAddonResponse, error)
- func (c *ClientWithResponses) CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, ...) (*CreateAddonResponse, error)
- func (c *ClientWithResponses) CreateBillingProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateBillingProfileResponse, error)
- func (c *ClientWithResponses) CreateBillingProfileWithResponse(ctx context.Context, body CreateBillingProfileJSONRequestBody, ...) (*CreateBillingProfileResponse, error)
- func (c *ClientWithResponses) CreateCustomerEntitlementGrantV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*CreateCustomerEntitlementGrantV2Response, error)
- func (c *ClientWithResponses) CreateCustomerEntitlementGrantV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*CreateCustomerEntitlementGrantV2Response, error)
- func (c *ClientWithResponses) CreateCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*CreateCustomerEntitlementV2Response, error)
- func (c *ClientWithResponses) CreateCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*CreateCustomerEntitlementV2Response, error)
- func (c *ClientWithResponses) CreateCustomerStripePortalSessionWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*CreateCustomerStripePortalSessionResponse, error)
- func (c *ClientWithResponses) CreateCustomerStripePortalSessionWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*CreateCustomerStripePortalSessionResponse, error)
- func (c *ClientWithResponses) CreateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateCustomerResponse, error)
- func (c *ClientWithResponses) CreateCustomerWithResponse(ctx context.Context, body CreateCustomerJSONRequestBody, ...) (*CreateCustomerResponse, error)
- func (c *ClientWithResponses) CreateEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, ...) (*CreateEntitlementResponse, error)
- func (c *ClientWithResponses) CreateEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, ...) (*CreateEntitlementResponse, error)
- func (c *ClientWithResponses) CreateFeatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateFeatureResponse, error)
- func (c *ClientWithResponses) CreateFeatureWithResponse(ctx context.Context, body CreateFeatureJSONRequestBody, ...) (*CreateFeatureResponse, error)
- func (c *ClientWithResponses) CreateGrantWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*CreateGrantResponse, error)
- func (c *ClientWithResponses) CreateGrantWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*CreateGrantResponse, error)
- func (c *ClientWithResponses) CreateMeterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateMeterResponse, error)
- func (c *ClientWithResponses) CreateMeterWithResponse(ctx context.Context, body CreateMeterJSONRequestBody, ...) (*CreateMeterResponse, error)
- func (c *ClientWithResponses) CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateNotificationChannelResponse, error)
- func (c *ClientWithResponses) CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, ...) (*CreateNotificationChannelResponse, error)
- func (c *ClientWithResponses) CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateNotificationRuleResponse, error)
- func (c *ClientWithResponses) CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody, ...) (*CreateNotificationRuleResponse, error)
- func (c *ClientWithResponses) CreatePendingInvoiceLineWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, ...) (*CreatePendingInvoiceLineResponse, error)
- func (c *ClientWithResponses) CreatePendingInvoiceLineWithResponse(ctx context.Context, customerId string, ...) (*CreatePendingInvoiceLineResponse, error)
- func (c *ClientWithResponses) CreatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, ...) (*CreatePlanAddonResponse, error)
- func (c *ClientWithResponses) CreatePlanAddonWithResponse(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, ...) (*CreatePlanAddonResponse, error)
- func (c *ClientWithResponses) CreatePlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePlanResponse, error)
- func (c *ClientWithResponses) CreatePlanWithResponse(ctx context.Context, body CreatePlanJSONRequestBody, ...) (*CreatePlanResponse, error)
- func (c *ClientWithResponses) CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePortalTokenResponse, error)
- func (c *ClientWithResponses) CreatePortalTokenWithResponse(ctx context.Context, body CreatePortalTokenJSONRequestBody, ...) (*CreatePortalTokenResponse, error)
- func (c *ClientWithResponses) CreateStripeCheckoutSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateStripeCheckoutSessionResponse, error)
- func (c *ClientWithResponses) CreateStripeCheckoutSessionWithResponse(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, ...) (*CreateStripeCheckoutSessionResponse, error)
- func (c *ClientWithResponses) CreateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*CreateSubscriptionAddonResponse, error)
- func (c *ClientWithResponses) CreateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, ...) (*CreateSubscriptionAddonResponse, error)
- func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSubscriptionResponse, error)
- func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, body CreateSubscriptionJSONRequestBody, ...) (*CreateSubscriptionResponse, error)
- func (c *ClientWithResponses) DeleteAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*DeleteAddonResponse, error)
- func (c *ClientWithResponses) DeleteBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileCustomerOverrideResponse, error)
- func (c *ClientWithResponses) DeleteBillingProfileWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileResponse, error)
- func (c *ClientWithResponses) DeleteCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, ...) (*DeleteCustomerAppDataResponse, error)
- func (c *ClientWithResponses) DeleteCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*DeleteCustomerEntitlementV2Response, error)
- func (c *ClientWithResponses) DeleteCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*DeleteCustomerResponse, error)
- func (c *ClientWithResponses) DeleteEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*DeleteEntitlementResponse, error)
- func (c *ClientWithResponses) DeleteFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error)
- func (c *ClientWithResponses) DeleteInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error)
- func (c *ClientWithResponses) DeleteMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error)
- func (c *ClientWithResponses) DeleteNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelResponse, error)
- func (c *ClientWithResponses) DeleteNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*DeleteNotificationRuleResponse, error)
- func (c *ClientWithResponses) DeletePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, ...) (*DeletePlanAddonResponse, error)
- func (c *ClientWithResponses) DeletePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*DeletePlanResponse, error)
- func (c *ClientWithResponses) DeleteSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*DeleteSubjectResponse, error)
- func (c *ClientWithResponses) DeleteSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error)
- func (c *ClientWithResponses) EditSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*EditSubscriptionResponse, error)
- func (c *ClientWithResponses) EditSubscriptionWithResponse(ctx context.Context, subscriptionId string, ...) (*EditSubscriptionResponse, error)
- func (c *ClientWithResponses) GetAddonWithResponse(ctx context.Context, addonId string, params *GetAddonParams, ...) (*GetAddonResponse, error)
- func (c *ClientWithResponses) GetAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAppResponse, error)
- func (c *ClientWithResponses) GetBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, ...) (*GetBillingProfileCustomerOverrideResponse, error)
- func (c *ClientWithResponses) GetBillingProfileWithResponse(ctx context.Context, id string, params *GetBillingProfileParams, ...) (*GetBillingProfileResponse, error)
- func (c *ClientWithResponses) GetCustomerAccessWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*GetCustomerAccessResponse, error)
- func (c *ClientWithResponses) GetCustomerEntitlementHistoryV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*GetCustomerEntitlementHistoryV2Response, error)
- func (c *ClientWithResponses) GetCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*GetCustomerEntitlementV2Response, error)
- func (c *ClientWithResponses) GetCustomerEntitlementValueV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*GetCustomerEntitlementValueV2Response, error)
- func (c *ClientWithResponses) GetCustomerEntitlementValueWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, ...) (*GetCustomerEntitlementValueResponse, error)
- func (c *ClientWithResponses) GetCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*GetCustomerStripeAppDataResponse, error)
- func (c *ClientWithResponses) GetCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*GetCustomerResponse, error)
- func (c *ClientWithResponses) GetDebugMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDebugMetricsResponse, error)
- func (c *ClientWithResponses) GetEntitlementByIdV2WithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdV2Response, error)
- func (c *ClientWithResponses) GetEntitlementByIdWithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdResponse, error)
- func (c *ClientWithResponses) GetEntitlementHistoryWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*GetEntitlementHistoryResponse, error)
- func (c *ClientWithResponses) GetEntitlementValueWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*GetEntitlementValueResponse, error)
- func (c *ClientWithResponses) GetEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*GetEntitlementResponse, error)
- func (c *ClientWithResponses) GetFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*GetFeatureResponse, error)
- func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, invoiceId string, params *GetInvoiceParams, ...) (*GetInvoiceResponse, error)
- func (c *ClientWithResponses) GetMarketplaceListingWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*GetMarketplaceListingResponse, error)
- func (c *ClientWithResponses) GetMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*GetMeterResponse, error)
- func (c *ClientWithResponses) GetNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*GetNotificationChannelResponse, error)
- func (c *ClientWithResponses) GetNotificationEventWithResponse(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*GetNotificationEventResponse, error)
- func (c *ClientWithResponses) GetNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*GetNotificationRuleResponse, error)
- func (c *ClientWithResponses) GetPlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, ...) (*GetPlanAddonResponse, error)
- func (c *ClientWithResponses) GetPlanWithResponse(ctx context.Context, planId string, params *GetPlanParams, ...) (*GetPlanResponse, error)
- func (c *ClientWithResponses) GetProgressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetProgressResponse, error)
- func (c *ClientWithResponses) GetSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*GetSubjectResponse, error)
- func (c *ClientWithResponses) GetSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, ...) (*GetSubscriptionAddonResponse, error)
- func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, ...) (*GetSubscriptionResponse, error)
- func (c *ClientWithResponses) IngestEventBatchWithResponse(ctx context.Context, events []Event, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventWithResponse(ctx context.Context, event Event, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse(ctx context.Context, ...) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse(ctx context.Context, ...) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) IngestEventsWithResponse(ctx context.Context, body IngestEventsJSONRequestBody, ...) (*IngestEventsResponse, error)
- func (c *ClientWithResponses) InvalidatePortalTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*InvalidatePortalTokensResponse, error)
- func (c *ClientWithResponses) InvalidatePortalTokensWithResponse(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, ...) (*InvalidatePortalTokensResponse, error)
- func (c *ClientWithResponses) InvoicePendingLinesActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*InvoicePendingLinesActionResponse, error)
- func (c *ClientWithResponses) InvoicePendingLinesActionWithResponse(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, ...) (*InvoicePendingLinesActionResponse, error)
- func (c *ClientWithResponses) ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error)
- func (c *ClientWithResponses) ListAppsWithResponse(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*ListAppsResponse, error)
- func (c *ClientWithResponses) ListBillingProfileCustomerOverridesWithResponse(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, ...) (*ListBillingProfileCustomerOverridesResponse, error)
- func (c *ClientWithResponses) ListBillingProfilesWithResponse(ctx context.Context, params *ListBillingProfilesParams, ...) (*ListBillingProfilesResponse, error)
- func (c *ClientWithResponses) ListCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCurrenciesResponse, error)
- func (c *ClientWithResponses) ListCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*ListCustomerAppDataResponse, error)
- func (c *ClientWithResponses) ListCustomerEntitlementGrantsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*ListCustomerEntitlementGrantsV2Response, error)
- func (c *ClientWithResponses) ListCustomerEntitlementsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*ListCustomerEntitlementsV2Response, error)
- func (c *ClientWithResponses) ListCustomerSubscriptionsWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*ListCustomerSubscriptionsResponse, error)
- func (c *ClientWithResponses) ListCustomersWithResponse(ctx context.Context, params *ListCustomersParams, ...) (*ListCustomersResponse, error)
- func (c *ClientWithResponses) ListEntitlementGrantsWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*ListEntitlementGrantsResponse, error)
- func (c *ClientWithResponses) ListEntitlementsV2WithResponse(ctx context.Context, params *ListEntitlementsV2Params, ...) (*ListEntitlementsV2Response, error)
- func (c *ClientWithResponses) ListEntitlementsWithResponse(ctx context.Context, params *ListEntitlementsParams, ...) (*ListEntitlementsResponse, error)
- func (c *ClientWithResponses) ListEventsV2WithResponse(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*ListEventsV2Response, error)
- func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)
- func (c *ClientWithResponses) ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error)
- func (c *ClientWithResponses) ListGrantsV2WithResponse(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*ListGrantsV2Response, error)
- func (c *ClientWithResponses) ListGrantsWithResponse(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*ListGrantsResponse, error)
- func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)
- func (c *ClientWithResponses) ListMarketplaceListingsWithResponse(ctx context.Context, params *ListMarketplaceListingsParams, ...) (*ListMarketplaceListingsResponse, error)
- func (c *ClientWithResponses) ListMeterGroupByValuesWithResponse(ctx context.Context, meterIdOrSlug string, groupByKey string, ...) (*ListMeterGroupByValuesResponse, error)
- func (c *ClientWithResponses) ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, ...) (*ListMeterSubjectsResponse, error)
- func (c *ClientWithResponses) ListMetersWithResponse(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*ListMetersResponse, error)
- func (c *ClientWithResponses) ListNotificationChannelsWithResponse(ctx context.Context, params *ListNotificationChannelsParams, ...) (*ListNotificationChannelsResponse, error)
- func (c *ClientWithResponses) ListNotificationEventsWithResponse(ctx context.Context, params *ListNotificationEventsParams, ...) (*ListNotificationEventsResponse, error)
- func (c *ClientWithResponses) ListNotificationRulesWithResponse(ctx context.Context, params *ListNotificationRulesParams, ...) (*ListNotificationRulesResponse, error)
- func (c *ClientWithResponses) ListPlanAddonsWithResponse(ctx context.Context, planId string, params *ListPlanAddonsParams, ...) (*ListPlanAddonsResponse, error)
- func (c *ClientWithResponses) ListPlansWithResponse(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error)
- func (c *ClientWithResponses) ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, ...) (*ListPortalTokensResponse, error)
- func (c *ClientWithResponses) ListSubjectEntitlementsWithResponse(ctx context.Context, subjectIdOrKey string, ...) (*ListSubjectEntitlementsResponse, error)
- func (c *ClientWithResponses) ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
- func (c *ClientWithResponses) ListSubscriptionAddonsWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*ListSubscriptionAddonsResponse, error)
- func (c *ClientWithResponses) MarketplaceAppAPIKeyInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, ...) (*MarketplaceAppAPIKeyInstallResponse, error)
- func (c *ClientWithResponses) MarketplaceAppAPIKeyInstallWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, ...) (*MarketplaceAppAPIKeyInstallResponse, error)
- func (c *ClientWithResponses) MarketplaceAppInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, ...) (*MarketplaceAppInstallResponse, error)
- func (c *ClientWithResponses) MarketplaceAppInstallWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, ...) (*MarketplaceAppInstallResponse, error)
- func (c *ClientWithResponses) MarketplaceOAuth2InstallAuthorizeWithResponse(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, ...) (*MarketplaceOAuth2InstallAuthorizeResponse, error)
- func (c *ClientWithResponses) MarketplaceOAuth2InstallGetURLWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallGetURLResponse, error)
- func (c *ClientWithResponses) MigrateSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, ...) (*MigrateSubscriptionResponse, error)
- func (c *ClientWithResponses) MigrateSubscriptionWithResponse(ctx context.Context, subscriptionId string, ...) (*MigrateSubscriptionResponse, error)
- func (c *ClientWithResponses) NextPlanWithResponse(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*NextPlanResponse, error)
- func (c *ClientWithResponses) OverrideCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*OverrideCustomerEntitlementV2Response, error)
- func (c *ClientWithResponses) OverrideCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*OverrideCustomerEntitlementV2Response, error)
- func (c *ClientWithResponses) OverrideEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*OverrideEntitlementResponse, error)
- func (c *ClientWithResponses) OverrideEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, ...) (*OverrideEntitlementResponse, error)
- func (c *ClientWithResponses) PublishAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*PublishAddonResponse, error)
- func (c *ClientWithResponses) PublishPlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*PublishPlanResponse, error)
- func (c *ClientWithResponses) QueryMeterPostWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, ...) (*QueryMeterPostResponse, error)
- func (c *ClientWithResponses) QueryMeterPostWithResponse(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, ...) (*QueryMeterPostResponse, error)
- func (c *ClientWithResponses) QueryMeterWithResponse(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, ...) (*QueryMeterResponse, error)
- func (c *ClientWithResponses) QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, ...) (*QueryPortalMeterResponse, error)
- func (c *ClientWithResponses) RecalculateInvoiceTaxActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RecalculateInvoiceTaxActionResponse, error)
- func (c *ClientWithResponses) ResendNotificationEventWithBodyWithResponse(ctx context.Context, eventId string, contentType string, body io.Reader, ...) (*ResendNotificationEventResponse, error)
- func (c *ClientWithResponses) ResendNotificationEventWithResponse(ctx context.Context, eventId string, ...) (*ResendNotificationEventResponse, error)
- func (c *ClientWithResponses) ResetCustomerEntitlementUsageV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*ResetCustomerEntitlementUsageV2Response, error)
- func (c *ClientWithResponses) ResetCustomerEntitlementUsageV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*ResetCustomerEntitlementUsageV2Response, error)
- func (c *ClientWithResponses) ResetEntitlementUsageWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*ResetEntitlementUsageResponse, error)
- func (c *ClientWithResponses) ResetEntitlementUsageWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, ...) (*ResetEntitlementUsageResponse, error)
- func (c *ClientWithResponses) RestoreSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*RestoreSubscriptionResponse, error)
- func (c *ClientWithResponses) RetryInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RetryInvoiceActionResponse, error)
- func (c *ClientWithResponses) SimulateInvoiceWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, ...) (*SimulateInvoiceResponse, error)
- func (c *ClientWithResponses) SimulateInvoiceWithResponse(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, ...) (*SimulateInvoiceResponse, error)
- func (c *ClientWithResponses) SnapshotQuantitiesInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*SnapshotQuantitiesInvoiceActionResponse, error)
- func (c *ClientWithResponses) TestNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*TestNotificationRuleResponse, error)
- func (c *ClientWithResponses) UninstallAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UninstallAppResponse, error)
- func (c *ClientWithResponses) UnscheduleCancelationWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*UnscheduleCancelationResponse, error)
- func (c *ClientWithResponses) UpdateAddonWithBodyWithResponse(ctx context.Context, addonId string, contentType string, body io.Reader, ...) (*UpdateAddonResponse, error)
- func (c *ClientWithResponses) UpdateAddonWithResponse(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, ...) (*UpdateAddonResponse, error)
- func (c *ClientWithResponses) UpdateAppWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateAppResponse, error)
- func (c *ClientWithResponses) UpdateAppWithResponse(ctx context.Context, id string, body UpdateAppJSONRequestBody, ...) (*UpdateAppResponse, error)
- func (c *ClientWithResponses) UpdateBillingProfileWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateBillingProfileResponse, error)
- func (c *ClientWithResponses) UpdateBillingProfileWithResponse(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, ...) (*UpdateBillingProfileResponse, error)
- func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*UpdateCustomerResponse, error)
- func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*UpdateCustomerResponse, error)
- func (c *ClientWithResponses) UpdateInvoiceWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*UpdateInvoiceResponse, error)
- func (c *ClientWithResponses) UpdateInvoiceWithResponse(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, ...) (*UpdateInvoiceResponse, error)
- func (c *ClientWithResponses) UpdateMeterWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, ...) (*UpdateMeterResponse, error)
- func (c *ClientWithResponses) UpdateMeterWithResponse(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, ...) (*UpdateMeterResponse, error)
- func (c *ClientWithResponses) UpdateNotificationChannelWithBodyWithResponse(ctx context.Context, channelId string, contentType string, body io.Reader, ...) (*UpdateNotificationChannelResponse, error)
- func (c *ClientWithResponses) UpdateNotificationChannelWithResponse(ctx context.Context, channelId string, ...) (*UpdateNotificationChannelResponse, error)
- func (c *ClientWithResponses) UpdateNotificationRuleWithBodyWithResponse(ctx context.Context, ruleId string, contentType string, body io.Reader, ...) (*UpdateNotificationRuleResponse, error)
- func (c *ClientWithResponses) UpdateNotificationRuleWithResponse(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, ...) (*UpdateNotificationRuleResponse, error)
- func (c *ClientWithResponses) UpdatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, planAddonId string, contentType string, ...) (*UpdatePlanAddonResponse, error)
- func (c *ClientWithResponses) UpdatePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, ...) (*UpdatePlanAddonResponse, error)
- func (c *ClientWithResponses) UpdatePlanWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, ...) (*UpdatePlanResponse, error)
- func (c *ClientWithResponses) UpdatePlanWithResponse(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, ...) (*UpdatePlanResponse, error)
- func (c *ClientWithResponses) UpdateStripeAPIKeyWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateStripeAPIKeyResponse, error)
- func (c *ClientWithResponses) UpdateStripeAPIKeyWithResponse(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, ...) (*UpdateStripeAPIKeyResponse, error)
- func (c *ClientWithResponses) UpdateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, ...) (*UpdateSubscriptionAddonResponse, error)
- func (c *ClientWithResponses) UpdateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, ...) (*UpdateSubscriptionAddonResponse, error)
- func (c *ClientWithResponses) UpsertBillingProfileCustomerOverrideWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, ...) (*UpsertBillingProfileCustomerOverrideResponse, error)
- func (c *ClientWithResponses) UpsertBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, ...) (*UpsertBillingProfileCustomerOverrideResponse, error)
- func (c *ClientWithResponses) UpsertCustomerAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*UpsertCustomerAppDataResponse, error)
- func (c *ClientWithResponses) UpsertCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*UpsertCustomerAppDataResponse, error)
- func (c *ClientWithResponses) UpsertCustomerStripeAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, ...) (*UpsertCustomerStripeAppDataResponse, error)
- func (c *ClientWithResponses) UpsertCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, ...) (*UpsertCustomerStripeAppDataResponse, error)
- func (c *ClientWithResponses) UpsertSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpsertSubjectResponse, error)
- func (c *ClientWithResponses) UpsertSubjectWithResponse(ctx context.Context, body UpsertSubjectJSONRequestBody, ...) (*UpsertSubjectResponse, error)
- func (c *ClientWithResponses) VoidGrantWithResponse(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*VoidGrantResponse, error)
- func (c *ClientWithResponses) VoidInvoiceActionWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, ...) (*VoidInvoiceActionResponse, error)
- func (c *ClientWithResponses) VoidInvoiceActionWithResponse(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, ...) (*VoidInvoiceActionResponse, error)
- type ClientWithResponsesInterface
- type CollectionMethod
- type ConflictProblemResponse
- type CountryCode
- type CreateAddonJSONRequestBody
- type CreateAddonResponse
- type CreateBillingProfileJSONRequestBody
- type CreateBillingProfileResponse
- type CreateCheckoutSessionTaxIdCollection
- type CreateCheckoutSessionTaxIdCollectionRequired
- type CreateCustomerEntitlementGrantV2JSONRequestBody
- type CreateCustomerEntitlementGrantV2Response
- type CreateCustomerEntitlementV2JSONRequestBody
- type CreateCustomerEntitlementV2Response
- type CreateCustomerJSONRequestBody
- type CreateCustomerResponse
- type CreateCustomerStripePortalSessionJSONRequestBody
- type CreateCustomerStripePortalSessionResponse
- type CreateEntitlementJSONRequestBody
- type CreateEntitlementResponse
- type CreateFeatureJSONRequestBody
- type CreateFeatureResponse
- type CreateGrantJSONRequestBody
- type CreateGrantResponse
- type CreateMeterJSONRequestBody
- type CreateMeterResponse
- type CreateNotificationChannelJSONRequestBody
- type CreateNotificationChannelResponse
- type CreateNotificationRuleJSONRequestBody
- type CreateNotificationRuleResponse
- type CreatePendingInvoiceLineJSONRequestBody
- type CreatePendingInvoiceLineResponse
- type CreatePlanAddonJSONRequestBody
- type CreatePlanAddonResponse
- type CreatePlanJSONRequestBody
- type CreatePlanResponse
- type CreatePortalTokenJSONRequestBody
- type CreatePortalTokenResponse
- type CreateStripeCheckoutSessionBillingAddressCollection
- type CreateStripeCheckoutSessionConsentCollection
- type CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreement
- type CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition
- type CreateStripeCheckoutSessionConsentCollectionPromotions
- type CreateStripeCheckoutSessionConsentCollectionTermsOfService
- type CreateStripeCheckoutSessionCustomerUpdate
- type CreateStripeCheckoutSessionCustomerUpdateBehavior
- type CreateStripeCheckoutSessionJSONRequestBody
- type CreateStripeCheckoutSessionRedirectOnCompletion
- type CreateStripeCheckoutSessionRequest
- type CreateStripeCheckoutSessionRequestOptions
- type CreateStripeCheckoutSessionRequest_Customer
- func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerCreate() (CustomerCreate, error)
- func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerId() (CustomerId, error)
- func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerKey() (CustomerKey, error)
- func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerCreate(v CustomerCreate) error
- func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerId(v CustomerId) error
- func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerKey(v CustomerKey) error
- func (t CreateStripeCheckoutSessionRequest_Customer) MarshalJSON() ([]byte, error)
- func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerCreate(v CustomerCreate) error
- func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerId(v CustomerId) error
- func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerKey(v CustomerKey) error
- func (t *CreateStripeCheckoutSessionRequest_Customer) UnmarshalJSON(b []byte) error
- type CreateStripeCheckoutSessionResponse
- type CreateStripeCheckoutSessionResult
- type CreateStripeCustomerPortalSessionParams
- type CreateSubscriptionAddonJSONRequestBody
- type CreateSubscriptionAddonResponse
- type CreateSubscriptionJSONRequestBody
- type CreateSubscriptionResponse
- type CreditNoteOriginalInvoiceRef
- type Currency
- type CurrencyCode
- type CursorPaginationCursor
- type CursorPaginationLimit
- type CustomInvoicingApp
- type CustomInvoicingAppReplaceUpdate
- type CustomInvoicingAppReplaceUpdateType
- type CustomInvoicingAppType
- type CustomInvoicingCustomerAppData
- type CustomInvoicingCustomerAppDataType
- type CustomInvoicingDraftSynchronizedRequest
- type CustomInvoicingFinalizedInvoicingRequest
- type CustomInvoicingFinalizedPaymentRequest
- type CustomInvoicingFinalizedRequest
- type CustomInvoicingLineDiscountExternalIdMapping
- type CustomInvoicingLineExternalIdMapping
- type CustomInvoicingPaymentTrigger
- type CustomInvoicingSyncResult
- type CustomInvoicingTaxConfig
- type CustomInvoicingUpdatePaymentStatusRequest
- type CustomPlanInput
- type CustomSubscriptionChange
- type CustomSubscriptionCreate
- type Customer
- type CustomerAccess
- type CustomerAppData
- func (t CustomerAppData) AsCustomInvoicingCustomerAppData() (CustomInvoicingCustomerAppData, error)
- func (t CustomerAppData) AsSandboxCustomerAppData() (SandboxCustomerAppData, error)
- func (t CustomerAppData) AsStripeCustomerAppData() (StripeCustomerAppData, error)
- func (t CustomerAppData) Discriminator() (string, error)
- func (t *CustomerAppData) FromCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error
- func (t *CustomerAppData) FromSandboxCustomerAppData(v SandboxCustomerAppData) error
- func (t *CustomerAppData) FromStripeCustomerAppData(v StripeCustomerAppData) error
- func (t CustomerAppData) MarshalJSON() ([]byte, error)
- func (t *CustomerAppData) MergeCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error
- func (t *CustomerAppData) MergeSandboxCustomerAppData(v SandboxCustomerAppData) error
- func (t *CustomerAppData) MergeStripeCustomerAppData(v StripeCustomerAppData) error
- func (t *CustomerAppData) UnmarshalJSON(b []byte) error
- func (t CustomerAppData) ValueByDiscriminator() (interface{}, error)
- type CustomerAppDataCreateOrUpdateItem
- func (t CustomerAppDataCreateOrUpdateItem) AsCustomInvoicingCustomerAppData() (CustomInvoicingCustomerAppData, error)
- func (t CustomerAppDataCreateOrUpdateItem) AsSandboxCustomerAppData() (SandboxCustomerAppData, error)
- func (t CustomerAppDataCreateOrUpdateItem) AsStripeCustomerAppDataCreateOrUpdateItem() (StripeCustomerAppDataCreateOrUpdateItem, error)
- func (t CustomerAppDataCreateOrUpdateItem) Discriminator() (string, error)
- func (t *CustomerAppDataCreateOrUpdateItem) FromCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error
- func (t *CustomerAppDataCreateOrUpdateItem) FromSandboxCustomerAppData(v SandboxCustomerAppData) error
- func (t *CustomerAppDataCreateOrUpdateItem) FromStripeCustomerAppDataCreateOrUpdateItem(v StripeCustomerAppDataCreateOrUpdateItem) error
- func (t CustomerAppDataCreateOrUpdateItem) MarshalJSON() ([]byte, error)
- func (t *CustomerAppDataCreateOrUpdateItem) MergeCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error
- func (t *CustomerAppDataCreateOrUpdateItem) MergeSandboxCustomerAppData(v SandboxCustomerAppData) error
- func (t *CustomerAppDataCreateOrUpdateItem) MergeStripeCustomerAppDataCreateOrUpdateItem(v StripeCustomerAppDataCreateOrUpdateItem) error
- func (t *CustomerAppDataCreateOrUpdateItem) UnmarshalJSON(b []byte) error
- func (t CustomerAppDataCreateOrUpdateItem) ValueByDiscriminator() (interface{}, error)
- type CustomerAppDataPaginatedResponse
- type CustomerCreate
- type CustomerExpand
- type CustomerId
- type CustomerKey
- type CustomerOrderBy
- type CustomerOrderByOrderingOrder
- type CustomerOrderByOrderingOrderBy
- type CustomerPaginatedResponse
- type CustomerReplaceUpdate
- type CustomerSubscriptionOrderBy
- type CustomerSubscriptionOrderByOrderingOrder
- type CustomerSubscriptionOrderByOrderingOrderBy
- type CustomerUsageAttribution
- type DeleteAddonResponse
- type DeleteBillingProfileCustomerOverrideResponse
- type DeleteBillingProfileResponse
- type DeleteCustomerAppDataResponse
- type DeleteCustomerEntitlementV2Response
- type DeleteCustomerResponse
- type DeleteEntitlementResponse
- type DeleteFeatureResponse
- type DeleteInvoiceResponse
- type DeleteMeterResponse
- type DeleteNotificationChannelResponse
- type DeleteNotificationRuleResponse
- type DeletePlanAddonResponse
- type DeletePlanResponse
- type DeleteSubjectResponse
- type DeleteSubscriptionResponse
- type DiscountPercentage
- type DiscountReasonMaximumSpend
- type DiscountReasonMaximumSpendType
- type DiscountReasonRatecardPercentage
- type DiscountReasonRatecardPercentageType
- type DiscountReasonRatecardUsage
- type DiscountReasonRatecardUsageType
- type DiscountUsage
- type Discounts
- type DynamicPriceWithCommitments
- type DynamicPriceWithCommitmentsType
- type EditSubscriptionAddItem
- type EditSubscriptionAddItemOp
- type EditSubscriptionAddPhase
- type EditSubscriptionAddPhaseOp
- type EditSubscriptionJSONRequestBody
- type EditSubscriptionRemoveItem
- type EditSubscriptionRemoveItemOp
- type EditSubscriptionRemovePhase
- type EditSubscriptionRemovePhaseOp
- type EditSubscriptionResponse
- type EditSubscriptionStretchPhase
- type EditSubscriptionStretchPhaseOp
- type EditSubscriptionUnscheduleEdit
- type EditSubscriptionUnscheduleEditOp
- type Entitlement
- func (t Entitlement) AsEntitlementBoolean() (EntitlementBoolean, error)
- func (t Entitlement) AsEntitlementMetered() (EntitlementMetered, error)
- func (t Entitlement) AsEntitlementStatic() (EntitlementStatic, error)
- func (t Entitlement) Discriminator() (string, error)
- func (t *Entitlement) FromEntitlementBoolean(v EntitlementBoolean) error
- func (t *Entitlement) FromEntitlementMetered(v EntitlementMetered) error
- func (t *Entitlement) FromEntitlementStatic(v EntitlementStatic) error
- func (t Entitlement) MarshalJSON() ([]byte, error)
- func (t *Entitlement) MergeEntitlementBoolean(v EntitlementBoolean) error
- func (t *Entitlement) MergeEntitlementMetered(v EntitlementMetered) error
- func (t *Entitlement) MergeEntitlementStatic(v EntitlementStatic) error
- func (t *Entitlement) UnmarshalJSON(b []byte) error
- func (t Entitlement) ValueByDiscriminator() (interface{}, error)
- type EntitlementBoolean
- type EntitlementBooleanCreateInputs
- type EntitlementBooleanCreateInputsType
- type EntitlementBooleanType
- type EntitlementBooleanV2
- type EntitlementBooleanV2Type
- type EntitlementCreateInputs
- func (t EntitlementCreateInputs) AsEntitlementBooleanCreateInputs() (EntitlementBooleanCreateInputs, error)
- func (t EntitlementCreateInputs) AsEntitlementMeteredCreateInputs() (EntitlementMeteredCreateInputs, error)
- func (t EntitlementCreateInputs) AsEntitlementStaticCreateInputs() (EntitlementStaticCreateInputs, error)
- func (t EntitlementCreateInputs) Discriminator() (string, error)
- func (t *EntitlementCreateInputs) FromEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
- func (t *EntitlementCreateInputs) FromEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error
- func (t *EntitlementCreateInputs) FromEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
- func (t EntitlementCreateInputs) MarshalJSON() ([]byte, error)
- func (t *EntitlementCreateInputs) MergeEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
- func (t *EntitlementCreateInputs) MergeEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error
- func (t *EntitlementCreateInputs) MergeEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
- func (t *EntitlementCreateInputs) UnmarshalJSON(b []byte) error
- func (t EntitlementCreateInputs) ValueByDiscriminator() (interface{}, error)
- type EntitlementGrant
- type EntitlementGrantCreateInput
- type EntitlementGrantCreateInputV2
- type EntitlementGrantV2
- type EntitlementMetered
- type EntitlementMeteredCreateInputs
- type EntitlementMeteredCreateInputsType
- type EntitlementMeteredType
- type EntitlementMeteredV2
- type EntitlementMeteredV2CreateInputs
- type EntitlementMeteredV2CreateInputsType
- type EntitlementMeteredV2Type
- type EntitlementOrderBy
- type EntitlementOrderByOrderingOrder
- type EntitlementOrderByOrderingOrderBy
- type EntitlementPaginatedResponse
- type EntitlementStatic
- type EntitlementStaticCreateInputs
- type EntitlementStaticCreateInputsType
- type EntitlementStaticType
- type EntitlementStaticV2
- type EntitlementStaticV2Type
- type EntitlementType
- type EntitlementV2
- func (t EntitlementV2) AsEntitlementBooleanV2() (EntitlementBooleanV2, error)
- func (t EntitlementV2) AsEntitlementMeteredV2() (EntitlementMeteredV2, error)
- func (t EntitlementV2) AsEntitlementStaticV2() (EntitlementStaticV2, error)
- func (t EntitlementV2) Discriminator() (string, error)
- func (t *EntitlementV2) FromEntitlementBooleanV2(v EntitlementBooleanV2) error
- func (t *EntitlementV2) FromEntitlementMeteredV2(v EntitlementMeteredV2) error
- func (t *EntitlementV2) FromEntitlementStaticV2(v EntitlementStaticV2) error
- func (t EntitlementV2) MarshalJSON() ([]byte, error)
- func (t *EntitlementV2) MergeEntitlementBooleanV2(v EntitlementBooleanV2) error
- func (t *EntitlementV2) MergeEntitlementMeteredV2(v EntitlementMeteredV2) error
- func (t *EntitlementV2) MergeEntitlementStaticV2(v EntitlementStaticV2) error
- func (t *EntitlementV2) UnmarshalJSON(b []byte) error
- func (t EntitlementV2) ValueByDiscriminator() (interface{}, error)
- type EntitlementV2CreateInputs
- func (t EntitlementV2CreateInputs) AsEntitlementBooleanCreateInputs() (EntitlementBooleanCreateInputs, error)
- func (t EntitlementV2CreateInputs) AsEntitlementMeteredV2CreateInputs() (EntitlementMeteredV2CreateInputs, error)
- func (t EntitlementV2CreateInputs) AsEntitlementStaticCreateInputs() (EntitlementStaticCreateInputs, error)
- func (t EntitlementV2CreateInputs) Discriminator() (string, error)
- func (t *EntitlementV2CreateInputs) FromEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
- func (t *EntitlementV2CreateInputs) FromEntitlementMeteredV2CreateInputs(v EntitlementMeteredV2CreateInputs) error
- func (t *EntitlementV2CreateInputs) FromEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
- func (t EntitlementV2CreateInputs) MarshalJSON() ([]byte, error)
- func (t *EntitlementV2CreateInputs) MergeEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
- func (t *EntitlementV2CreateInputs) MergeEntitlementMeteredV2CreateInputs(v EntitlementMeteredV2CreateInputs) error
- func (t *EntitlementV2CreateInputs) MergeEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
- func (t *EntitlementV2CreateInputs) UnmarshalJSON(b []byte) error
- func (t EntitlementV2CreateInputs) ValueByDiscriminator() (interface{}, error)
- type EntitlementV2PaginatedResponse
- type EntitlementValue
- type ErrResponse
- type ErrorExtension
- type Event
- type EventDeliveryAttemptResponse
- type ExpirationDuration
- type ExpirationPeriod
- type Feature
- type FeatureCreateInputs
- type FeatureMeta
- type FeatureOrderBy
- type FeatureOrderByOrderingOrder
- type FeatureOrderByOrderingOrderBy
- type FeaturePaginatedResponse
- type FilterIDExact
- type FilterString
- type FilterTime
- type FlatPrice
- type FlatPriceType
- type FlatPriceWithPaymentTerm
- type FlatPriceWithPaymentTermType
- type ForbiddenProblemResponse
- type GetAddonParams
- type GetAddonResponse
- type GetAppResponse
- type GetBillingProfileCustomerOverrideParams
- type GetBillingProfileCustomerOverrideResponse
- type GetBillingProfileParams
- type GetBillingProfileResponse
- type GetCustomerAccessResponse
- type GetCustomerEntitlementHistoryV2Params
- type GetCustomerEntitlementHistoryV2Response
- type GetCustomerEntitlementV2Response
- type GetCustomerEntitlementValueParams
- type GetCustomerEntitlementValueResponse
- type GetCustomerEntitlementValueV2Params
- type GetCustomerEntitlementValueV2Response
- type GetCustomerParams
- type GetCustomerResponse
- type GetCustomerStripeAppDataResponse
- type GetDebugMetricsResponse
- type GetEntitlementByIdResponse
- type GetEntitlementByIdV2Response
- type GetEntitlementHistoryParams
- type GetEntitlementHistoryResponse
- type GetEntitlementResponse
- type GetEntitlementValueParams
- type GetEntitlementValueResponse
- type GetFeatureResponse
- type GetInvoiceParams
- type GetInvoiceResponse
- type GetMarketplaceListingResponse
- type GetMeterResponse
- type GetNotificationChannelResponse
- type GetNotificationEventResponse
- type GetNotificationRuleResponse
- type GetPlanAddonResponse
- type GetPlanParams
- type GetPlanResponse
- type GetProgressResponse
- type GetSubjectResponse
- type GetSubscriptionAddonResponse
- type GetSubscriptionParams
- type GetSubscriptionResponse
- type GrantBurnDownHistorySegment
- type GrantOrderBy
- type GrantOrderByOrderingOrder
- type GrantOrderByOrderingOrderBy
- type GrantPaginatedResponse
- type GrantUsageRecord
- type GrantV2PaginatedResponse
- type HttpRequestDoer
- type IDResource
- type IngestEventsApplicationCloudeventsBatchPlusJSONBody
- type IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody
- type IngestEventsApplicationCloudeventsPlusJSONRequestBody
- type IngestEventsBody
- func (t IngestEventsBody) AsEvent() (Event, error)
- func (t IngestEventsBody) AsIngestEventsBody1() (IngestEventsBody1, error)
- func (t *IngestEventsBody) FromEvent(v Event) error
- func (t *IngestEventsBody) FromIngestEventsBody1(v IngestEventsBody1) error
- func (t IngestEventsBody) MarshalJSON() ([]byte, error)
- func (t *IngestEventsBody) MergeEvent(v Event) error
- func (t *IngestEventsBody) MergeIngestEventsBody1(v IngestEventsBody1) error
- func (t *IngestEventsBody) UnmarshalJSON(b []byte) error
- type IngestEventsBody1
- type IngestEventsJSONRequestBody
- type IngestEventsResponse
- type IngestedEvent
- type IngestedEventCursorPaginatedResponse
- type InstallMethod
- type InternalServerErrorProblemResponse
- type InvalidatePortalTokensJSONBody
- type InvalidatePortalTokensJSONRequestBody
- type InvalidatePortalTokensResponse
- type Invoice
- type InvoiceAppExternalIds
- type InvoiceAvailableActionDetails
- type InvoiceAvailableActionInvoiceDetails
- type InvoiceAvailableActions
- type InvoiceDetailedLine
- type InvoiceDetailedLineCostCategory
- type InvoiceDetailedLineRateCard
- type InvoiceDetailedLineType
- type InvoiceDocumentRef
- type InvoiceDocumentRefType
- type InvoiceExpand
- type InvoiceGenericDocumentRef
- type InvoiceLine
- type InvoiceLineAmountDiscount
- type InvoiceLineAppExternalIds
- type InvoiceLineDiscounts
- type InvoiceLineManagedBy
- type InvoiceLineReplaceUpdate
- type InvoiceLineStatus
- type InvoiceLineSubscriptionReference
- type InvoiceLineTaxBehavior
- type InvoiceLineTaxItem
- type InvoiceLineType
- type InvoiceLineUsageDiscount
- type InvoiceListParamsCreatedAfter
- type InvoiceListParamsCreatedBefore
- type InvoiceListParamsCustomers
- type InvoiceListParamsExpand
- type InvoiceListParamsExtendedStatuses
- type InvoiceListParamsIncludeDeleted
- type InvoiceListParamsIssuedAfter
- type InvoiceListParamsIssuedBefore
- type InvoiceListParamsPeriodStartAfter
- type InvoiceListParamsPeriodStartBefore
- type InvoiceListParamsStatuses
- type InvoiceNumber
- type InvoiceOrderBy
- type InvoiceOrderByOrderingOrder
- type InvoiceOrderByOrderingOrderBy
- type InvoicePaginatedResponse
- type InvoicePaymentTerms
- type InvoicePendingLineCreate
- type InvoicePendingLineCreateInput
- type InvoicePendingLineCreateResponse
- type InvoicePendingLinesActionFiltersInput
- type InvoicePendingLinesActionInput
- type InvoicePendingLinesActionJSONRequestBody
- type InvoicePendingLinesActionResponse
- type InvoiceReference
- type InvoiceReplaceUpdate
- type InvoiceSimulationInput
- type InvoiceSimulationLine
- type InvoiceStatus
- type InvoiceStatusDetails
- type InvoiceTotals
- type InvoiceType
- type InvoiceUsageBasedRateCard
- type InvoiceWorkflowInvoicingSettingsReplaceUpdate
- type InvoiceWorkflowReplaceUpdate
- type InvoiceWorkflowSettings
- type InvoiceWorkflowSettingsReplaceUpdate
- type IssueAfterReset
- type LimitOffsetLimit
- type LimitOffsetOffset
- type ListAddonsParams
- type ListAddonsResponse
- type ListAppsParams
- type ListAppsResponse
- type ListBillingProfileCustomerOverridesParams
- type ListBillingProfileCustomerOverridesResponse
- type ListBillingProfilesParams
- type ListBillingProfilesResponse
- type ListCurrenciesResponse
- type ListCustomerAppDataParams
- type ListCustomerAppDataParamsType
- type ListCustomerAppDataResponse
- type ListCustomerEntitlementGrantsV2Params
- type ListCustomerEntitlementGrantsV2Response
- type ListCustomerEntitlementsV2Params
- type ListCustomerEntitlementsV2Response
- type ListCustomerSubscriptionsParams
- type ListCustomerSubscriptionsResponse
- type ListCustomersParams
- type ListCustomersResponse
- type ListEntitlementGrantsParams
- type ListEntitlementGrantsResponse
- type ListEntitlementsParams
- type ListEntitlementsResponse
- type ListEntitlementsResult
- func (t ListEntitlementsResult) AsEntitlementPaginatedResponse() (EntitlementPaginatedResponse, error)
- func (t ListEntitlementsResult) AsListEntitlementsResult0() (ListEntitlementsResult0, error)
- func (t *ListEntitlementsResult) FromEntitlementPaginatedResponse(v EntitlementPaginatedResponse) error
- func (t *ListEntitlementsResult) FromListEntitlementsResult0(v ListEntitlementsResult0) error
- func (t ListEntitlementsResult) MarshalJSON() ([]byte, error)
- func (t *ListEntitlementsResult) MergeEntitlementPaginatedResponse(v EntitlementPaginatedResponse) error
- func (t *ListEntitlementsResult) MergeListEntitlementsResult0(v ListEntitlementsResult0) error
- func (t *ListEntitlementsResult) UnmarshalJSON(b []byte) error
- type ListEntitlementsResult0
- type ListEntitlementsV2Params
- type ListEntitlementsV2Response
- type ListEventsParams
- type ListEventsResponse
- type ListEventsV2Params
- type ListEventsV2Response
- type ListFeaturesParams
- type ListFeaturesResponse
- type ListFeaturesResult
- func (t ListFeaturesResult) AsFeaturePaginatedResponse() (FeaturePaginatedResponse, error)
- func (t ListFeaturesResult) AsListFeaturesResult0() (ListFeaturesResult0, error)
- func (t *ListFeaturesResult) FromFeaturePaginatedResponse(v FeaturePaginatedResponse) error
- func (t *ListFeaturesResult) FromListFeaturesResult0(v ListFeaturesResult0) error
- func (t ListFeaturesResult) MarshalJSON() ([]byte, error)
- func (t *ListFeaturesResult) MergeFeaturePaginatedResponse(v FeaturePaginatedResponse) error
- func (t *ListFeaturesResult) MergeListFeaturesResult0(v ListFeaturesResult0) error
- func (t *ListFeaturesResult) UnmarshalJSON(b []byte) error
- type ListFeaturesResult0
- type ListGrants2000
- type ListGrantsParams
- type ListGrantsResponse
- type ListGrantsV2Params
- type ListGrantsV2Response
- type ListInvoicesParams
- type ListInvoicesResponse
- type ListMarketplaceListingsParams
- type ListMarketplaceListingsResponse
- type ListMeterGroupByValuesParams
- type ListMeterGroupByValuesResponse
- type ListMeterSubjectsParams
- type ListMeterSubjectsResponse
- type ListMetersParams
- type ListMetersResponse
- type ListNotificationChannelsParams
- type ListNotificationChannelsResponse
- type ListNotificationEventsParams
- type ListNotificationEventsResponse
- type ListNotificationRulesParams
- type ListNotificationRulesResponse
- type ListPlanAddonsParams
- type ListPlanAddonsResponse
- type ListPlansParams
- type ListPlansResponse
- type ListPortalTokensParams
- type ListPortalTokensResponse
- type ListSubjectEntitlementsParams
- type ListSubjectEntitlementsResponse
- type ListSubjectsResponse
- type ListSubscriptionAddonsResponse
- type MarketplaceApiKeyInstallRequestType
- type MarketplaceAppAPIKeyInstallJSONBody
- type MarketplaceAppAPIKeyInstallJSONRequestBody
- type MarketplaceAppAPIKeyInstallResponse
- type MarketplaceAppInstallJSONRequestBody
- type MarketplaceAppInstallResponse
- type MarketplaceInstallRequestPayload
- type MarketplaceInstallRequestType
- type MarketplaceInstallResponse
- type MarketplaceListing
- type MarketplaceListingPaginatedResponse
- type MarketplaceOAuth2InstallAuthorizeParams
- type MarketplaceOAuth2InstallAuthorizeRequestType
- type MarketplaceOAuth2InstallAuthorizeResponse
- type MarketplaceOAuth2InstallGetURLResponse
- type MeasureUsageFrom
- func (t MeasureUsageFrom) AsMeasureUsageFromPreset() (MeasureUsageFromPreset, error)
- func (t MeasureUsageFrom) AsMeasureUsageFromTime() (MeasureUsageFromTime, error)
- func (t *MeasureUsageFrom) FromMeasureUsageFromPreset(v MeasureUsageFromPreset) error
- func (t *MeasureUsageFrom) FromMeasureUsageFromTime(v MeasureUsageFromTime) error
- func (t MeasureUsageFrom) MarshalJSON() ([]byte, error)
- func (t *MeasureUsageFrom) MergeMeasureUsageFromPreset(v MeasureUsageFromPreset) error
- func (t *MeasureUsageFrom) MergeMeasureUsageFromTime(v MeasureUsageFromTime) error
- func (t *MeasureUsageFrom) UnmarshalJSON(b []byte) error
- type MeasureUsageFromPreset
- type MeasureUsageFromTime
- type Metadata
- type Meter
- type MeterAggregation
- type MeterCreate
- type MeterOrderBy
- type MeterOrderByOrderingOrder
- type MeterOrderByOrderingOrderBy
- type MeterQueryAdvancedMeterGroupByFilters
- type MeterQueryClientId
- type MeterQueryFilterCustomerId
- type MeterQueryFilterGroupBy
- type MeterQueryFrom
- type MeterQueryGroupBy
- type MeterQueryRequest
- type MeterQueryResult
- type MeterQueryRow
- type MeterQuerySubject
- type MeterQueryTo
- type MeterQueryWindowSize
- type MeterQueryWindowTimeZone
- type MeterUpdate
- type MigrateSubscriptionJSONBody
- type MigrateSubscriptionJSONRequestBody
- type MigrateSubscriptionResponse
- type NextPlanResponse
- type NotFoundProblemResponse
- type NotificationChannel
- type NotificationChannelCreateRequest
- type NotificationChannelMeta
- type NotificationChannelOrderBy
- type NotificationChannelOrderByOrderingOrder
- type NotificationChannelOrderByOrderingOrderBy
- type NotificationChannelPaginatedResponse
- type NotificationChannelType
- type NotificationChannelWebhook
- type NotificationChannelWebhookCreateRequest
- type NotificationChannelWebhookCreateRequestType
- type NotificationChannelWebhookType
- type NotificationEvent
- type NotificationEventBalanceThresholdPayload
- type NotificationEventBalanceThresholdPayloadData
- type NotificationEventBalanceThresholdPayloadType
- type NotificationEventDeliveryAttempt
- type NotificationEventDeliveryStatus
- type NotificationEventDeliveryStatusState
- type NotificationEventEntitlementValuePayloadBase
- type NotificationEventInvoiceCreatedPayload
- type NotificationEventInvoiceCreatedPayloadType
- type NotificationEventInvoiceUpdatedPayload
- type NotificationEventInvoiceUpdatedPayloadType
- type NotificationEventOrderBy
- type NotificationEventOrderByOrderingOrder
- type NotificationEventOrderByOrderingOrderBy
- type NotificationEventPaginatedResponse
- type NotificationEventPayload
- func (t NotificationEventPayload) AsNotificationEventBalanceThresholdPayload() (NotificationEventBalanceThresholdPayload, error)
- func (t NotificationEventPayload) AsNotificationEventInvoiceCreatedPayload() (NotificationEventInvoiceCreatedPayload, error)
- func (t NotificationEventPayload) AsNotificationEventInvoiceUpdatedPayload() (NotificationEventInvoiceUpdatedPayload, error)
- func (t NotificationEventPayload) AsNotificationEventResetPayload() (NotificationEventResetPayload, error)
- func (t NotificationEventPayload) Discriminator() (string, error)
- func (t *NotificationEventPayload) FromNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error
- func (t *NotificationEventPayload) FromNotificationEventInvoiceCreatedPayload(v NotificationEventInvoiceCreatedPayload) error
- func (t *NotificationEventPayload) FromNotificationEventInvoiceUpdatedPayload(v NotificationEventInvoiceUpdatedPayload) error
- func (t *NotificationEventPayload) FromNotificationEventResetPayload(v NotificationEventResetPayload) error
- func (t NotificationEventPayload) MarshalJSON() ([]byte, error)
- func (t *NotificationEventPayload) MergeNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error
- func (t *NotificationEventPayload) MergeNotificationEventInvoiceCreatedPayload(v NotificationEventInvoiceCreatedPayload) error
- func (t *NotificationEventPayload) MergeNotificationEventInvoiceUpdatedPayload(v NotificationEventInvoiceUpdatedPayload) error
- func (t *NotificationEventPayload) MergeNotificationEventResetPayload(v NotificationEventResetPayload) error
- func (t *NotificationEventPayload) UnmarshalJSON(b []byte) error
- func (t NotificationEventPayload) ValueByDiscriminator() (interface{}, error)
- type NotificationEventResendRequest
- type NotificationEventResetPayload
- type NotificationEventResetPayloadType
- type NotificationEventType
- type NotificationRule
- func (t NotificationRule) AsNotificationRuleBalanceThreshold() (NotificationRuleBalanceThreshold, error)
- func (t NotificationRule) AsNotificationRuleEntitlementReset() (NotificationRuleEntitlementReset, error)
- func (t NotificationRule) AsNotificationRuleInvoiceCreated() (NotificationRuleInvoiceCreated, error)
- func (t NotificationRule) AsNotificationRuleInvoiceUpdated() (NotificationRuleInvoiceUpdated, error)
- func (t NotificationRule) Discriminator() (string, error)
- func (t *NotificationRule) FromNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error
- func (t *NotificationRule) FromNotificationRuleEntitlementReset(v NotificationRuleEntitlementReset) error
- func (t *NotificationRule) FromNotificationRuleInvoiceCreated(v NotificationRuleInvoiceCreated) error
- func (t *NotificationRule) FromNotificationRuleInvoiceUpdated(v NotificationRuleInvoiceUpdated) error
- func (t NotificationRule) MarshalJSON() ([]byte, error)
- func (t *NotificationRule) MergeNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error
- func (t *NotificationRule) MergeNotificationRuleEntitlementReset(v NotificationRuleEntitlementReset) error
- func (t *NotificationRule) MergeNotificationRuleInvoiceCreated(v NotificationRuleInvoiceCreated) error
- func (t *NotificationRule) MergeNotificationRuleInvoiceUpdated(v NotificationRuleInvoiceUpdated) error
- func (t *NotificationRule) UnmarshalJSON(b []byte) error
- func (t NotificationRule) ValueByDiscriminator() (interface{}, error)
- type NotificationRuleBalanceThreshold
- type NotificationRuleBalanceThresholdCreateRequest
- type NotificationRuleBalanceThresholdCreateRequestType
- type NotificationRuleBalanceThresholdType
- type NotificationRuleBalanceThresholdValue
- type NotificationRuleBalanceThresholdValueType
- type NotificationRuleCreateRequest
- func (t NotificationRuleCreateRequest) AsNotificationRuleBalanceThresholdCreateRequest() (NotificationRuleBalanceThresholdCreateRequest, error)
- func (t NotificationRuleCreateRequest) AsNotificationRuleEntitlementResetCreateRequest() (NotificationRuleEntitlementResetCreateRequest, error)
- func (t NotificationRuleCreateRequest) AsNotificationRuleInvoiceCreatedCreateRequest() (NotificationRuleInvoiceCreatedCreateRequest, error)
- func (t NotificationRuleCreateRequest) AsNotificationRuleInvoiceUpdatedCreateRequest() (NotificationRuleInvoiceUpdatedCreateRequest, error)
- func (t NotificationRuleCreateRequest) Discriminator() (string, error)
- func (t *NotificationRuleCreateRequest) FromNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error
- func (t *NotificationRuleCreateRequest) FromNotificationRuleEntitlementResetCreateRequest(v NotificationRuleEntitlementResetCreateRequest) error
- func (t *NotificationRuleCreateRequest) FromNotificationRuleInvoiceCreatedCreateRequest(v NotificationRuleInvoiceCreatedCreateRequest) error
- func (t *NotificationRuleCreateRequest) FromNotificationRuleInvoiceUpdatedCreateRequest(v NotificationRuleInvoiceUpdatedCreateRequest) error
- func (t NotificationRuleCreateRequest) MarshalJSON() ([]byte, error)
- func (t *NotificationRuleCreateRequest) MergeNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error
- func (t *NotificationRuleCreateRequest) MergeNotificationRuleEntitlementResetCreateRequest(v NotificationRuleEntitlementResetCreateRequest) error
- func (t *NotificationRuleCreateRequest) MergeNotificationRuleInvoiceCreatedCreateRequest(v NotificationRuleInvoiceCreatedCreateRequest) error
- func (t *NotificationRuleCreateRequest) MergeNotificationRuleInvoiceUpdatedCreateRequest(v NotificationRuleInvoiceUpdatedCreateRequest) error
- func (t *NotificationRuleCreateRequest) UnmarshalJSON(b []byte) error
- func (t NotificationRuleCreateRequest) ValueByDiscriminator() (interface{}, error)
- type NotificationRuleEntitlementReset
- type NotificationRuleEntitlementResetCreateRequest
- type NotificationRuleEntitlementResetCreateRequestType
- type NotificationRuleEntitlementResetType
- type NotificationRuleInvoiceCreated
- type NotificationRuleInvoiceCreatedCreateRequest
- type NotificationRuleInvoiceCreatedCreateRequestType
- type NotificationRuleInvoiceCreatedType
- type NotificationRuleInvoiceUpdated
- type NotificationRuleInvoiceUpdatedCreateRequest
- type NotificationRuleInvoiceUpdatedCreateRequestType
- type NotificationRuleInvoiceUpdatedType
- type NotificationRuleOrderBy
- type NotificationRuleOrderByOrderingOrder
- type NotificationRuleOrderByOrderingOrderBy
- type NotificationRulePaginatedResponse
- type Numeric
- type OAuth2AuthorizationCodeGrantErrorParamsError
- type OAuth2AuthorizationCodeGrantErrorParamsErrorDescription
- type OAuth2AuthorizationCodeGrantErrorParamsErrorUri
- type OAuth2AuthorizationCodeGrantErrorType
- type OAuth2AuthorizationCodeGrantSuccessParamsCode
- type OAuth2AuthorizationCodeGrantSuccessParamsState
- type OverrideCustomerEntitlementV2JSONRequestBody
- type OverrideCustomerEntitlementV2Response
- type OverrideEntitlementJSONRequestBody
- type OverrideEntitlementResponse
- type PackagePriceWithCommitments
- type PackagePriceWithCommitmentsType
- type PaginationPage
- type PaginationPageSize
- type PaymentDueDate
- type PaymentTermDueDate
- type PaymentTermDueDateType
- type PaymentTermInstant
- type PaymentTermInstantType
- type PaymentTerms
- func (t PaymentTerms) AsPaymentTermDueDate() (PaymentTermDueDate, error)
- func (t PaymentTerms) AsPaymentTermInstant() (PaymentTermInstant, error)
- func (t *PaymentTerms) FromPaymentTermDueDate(v PaymentTermDueDate) error
- func (t *PaymentTerms) FromPaymentTermInstant(v PaymentTermInstant) error
- func (t PaymentTerms) MarshalJSON() ([]byte, error)
- func (t *PaymentTerms) MergePaymentTermDueDate(v PaymentTermDueDate) error
- func (t *PaymentTerms) MergePaymentTermInstant(v PaymentTermInstant) error
- func (t *PaymentTerms) UnmarshalJSON(b []byte) error
- type Percentage
- type Period
- type Plan
- type PlanAddon
- type PlanAddonCreate
- type PlanAddonOrderBy
- type PlanAddonOrderByOrderingOrder
- type PlanAddonOrderByOrderingOrderBy
- type PlanAddonPaginatedResponse
- type PlanAddonReplaceUpdate
- type PlanCreate
- type PlanOrderBy
- type PlanOrderByOrderingOrder
- type PlanOrderByOrderingOrderBy
- type PlanPaginatedResponse
- type PlanPhase
- type PlanReference
- type PlanReferenceInput
- type PlanReplaceUpdate
- type PlanStatus
- type PlanSubscriptionChange
- type PlanSubscriptionCreate
- type PortalToken
- type PreconditionFailedProblemResponse
- type PricePaymentTerm
- type PriceTier
- type ProRatingConfig
- type ProRatingMode
- type Progress
- type PublishAddonResponse
- type PublishPlanResponse
- type QueryCustomerGet
- type QueryCustomerListExpand
- type QueryCustomerListIncludeDeleted
- type QueryCustomerListKey
- type QueryCustomerListName
- type QueryCustomerListPlanKey
- type QueryCustomerListPrimaryEmail
- type QueryCustomerListSubject
- type QueryMeterListIncludeDeleted
- type QueryMeterParams
- type QueryMeterPostJSONRequestBody
- type QueryMeterPostResponse
- type QueryMeterResponse
- type QueryPortalMeterParams
- type QueryPortalMeterResponse
- type RateCard
- func (t RateCard) AsRateCardFlatFee() (RateCardFlatFee, error)
- func (t RateCard) AsRateCardUsageBased() (RateCardUsageBased, error)
- func (t RateCard) Discriminator() (string, error)
- func (t *RateCard) FromRateCardFlatFee(v RateCardFlatFee) error
- func (t *RateCard) FromRateCardUsageBased(v RateCardUsageBased) error
- func (t RateCard) MarshalJSON() ([]byte, error)
- func (t *RateCard) MergeRateCardFlatFee(v RateCardFlatFee) error
- func (t *RateCard) MergeRateCardUsageBased(v RateCardUsageBased) error
- func (t *RateCard) UnmarshalJSON(b []byte) error
- func (t RateCard) ValueByDiscriminator() (interface{}, error)
- type RateCardBooleanEntitlement
- type RateCardBooleanEntitlementType
- type RateCardEntitlement
- func (t RateCardEntitlement) AsRateCardBooleanEntitlement() (RateCardBooleanEntitlement, error)
- func (t RateCardEntitlement) AsRateCardMeteredEntitlement() (RateCardMeteredEntitlement, error)
- func (t RateCardEntitlement) AsRateCardStaticEntitlement() (RateCardStaticEntitlement, error)
- func (t RateCardEntitlement) Discriminator() (string, error)
- func (t *RateCardEntitlement) FromRateCardBooleanEntitlement(v RateCardBooleanEntitlement) error
- func (t *RateCardEntitlement) FromRateCardMeteredEntitlement(v RateCardMeteredEntitlement) error
- func (t *RateCardEntitlement) FromRateCardStaticEntitlement(v RateCardStaticEntitlement) error
- func (t RateCardEntitlement) MarshalJSON() ([]byte, error)
- func (t *RateCardEntitlement) MergeRateCardBooleanEntitlement(v RateCardBooleanEntitlement) error
- func (t *RateCardEntitlement) MergeRateCardMeteredEntitlement(v RateCardMeteredEntitlement) error
- func (t *RateCardEntitlement) MergeRateCardStaticEntitlement(v RateCardStaticEntitlement) error
- func (t *RateCardEntitlement) UnmarshalJSON(b []byte) error
- func (t RateCardEntitlement) ValueByDiscriminator() (interface{}, error)
- type RateCardFlatFee
- type RateCardFlatFeeType
- type RateCardMeteredEntitlement
- type RateCardMeteredEntitlementType
- type RateCardStaticEntitlement
- type RateCardStaticEntitlementType
- type RateCardUsageBased
- type RateCardUsageBasedPrice
- func (t RateCardUsageBasedPrice) AsDynamicPriceWithCommitments() (DynamicPriceWithCommitments, error)
- func (t RateCardUsageBasedPrice) AsFlatPriceWithPaymentTerm() (FlatPriceWithPaymentTerm, error)
- func (t RateCardUsageBasedPrice) AsPackagePriceWithCommitments() (PackagePriceWithCommitments, error)
- func (t RateCardUsageBasedPrice) AsTieredPriceWithCommitments() (TieredPriceWithCommitments, error)
- func (t RateCardUsageBasedPrice) AsUnitPriceWithCommitments() (UnitPriceWithCommitments, error)
- func (t RateCardUsageBasedPrice) Discriminator() (string, error)
- func (t *RateCardUsageBasedPrice) FromDynamicPriceWithCommitments(v DynamicPriceWithCommitments) error
- func (t *RateCardUsageBasedPrice) FromFlatPriceWithPaymentTerm(v FlatPriceWithPaymentTerm) error
- func (t *RateCardUsageBasedPrice) FromPackagePriceWithCommitments(v PackagePriceWithCommitments) error
- func (t *RateCardUsageBasedPrice) FromTieredPriceWithCommitments(v TieredPriceWithCommitments) error
- func (t *RateCardUsageBasedPrice) FromUnitPriceWithCommitments(v UnitPriceWithCommitments) error
- func (t RateCardUsageBasedPrice) MarshalJSON() ([]byte, error)
- func (t *RateCardUsageBasedPrice) MergeDynamicPriceWithCommitments(v DynamicPriceWithCommitments) error
- func (t *RateCardUsageBasedPrice) MergeFlatPriceWithPaymentTerm(v FlatPriceWithPaymentTerm) error
- func (t *RateCardUsageBasedPrice) MergePackagePriceWithCommitments(v PackagePriceWithCommitments) error
- func (t *RateCardUsageBasedPrice) MergeTieredPriceWithCommitments(v TieredPriceWithCommitments) error
- func (t *RateCardUsageBasedPrice) MergeUnitPriceWithCommitments(v UnitPriceWithCommitments) error
- func (t *RateCardUsageBasedPrice) UnmarshalJSON(b []byte) error
- func (t RateCardUsageBasedPrice) ValueByDiscriminator() (interface{}, error)
- type RateCardUsageBasedType
- type RecalculateInvoiceTaxActionResponse
- type RecurringPeriod
- type RecurringPeriodCreateInput
- type RecurringPeriodInterval
- func (t RecurringPeriodInterval) AsRecurringPeriodInterval0() (RecurringPeriodInterval0, error)
- func (t RecurringPeriodInterval) AsRecurringPeriodIntervalEnum() (RecurringPeriodIntervalEnum, error)
- func (t *RecurringPeriodInterval) FromRecurringPeriodInterval0(v RecurringPeriodInterval0) error
- func (t *RecurringPeriodInterval) FromRecurringPeriodIntervalEnum(v RecurringPeriodIntervalEnum) error
- func (t RecurringPeriodInterval) MarshalJSON() ([]byte, error)
- func (t *RecurringPeriodInterval) MergeRecurringPeriodInterval0(v RecurringPeriodInterval0) error
- func (t *RecurringPeriodInterval) MergeRecurringPeriodIntervalEnum(v RecurringPeriodIntervalEnum) error
- func (t *RecurringPeriodInterval) UnmarshalJSON(b []byte) error
- type RecurringPeriodInterval0
- type RecurringPeriodIntervalEnum
- type RecurringPeriodV2
- type RemovePhaseShifting
- type RequestEditorFn
- type ResendNotificationEventJSONRequestBody
- type ResendNotificationEventResponse
- type ResetCustomerEntitlementUsageV2JSONRequestBody
- type ResetCustomerEntitlementUsageV2Response
- type ResetEntitlementUsageInput
- type ResetEntitlementUsageJSONRequestBody
- type ResetEntitlementUsageResponse
- type RestoreSubscriptionResponse
- type RetryInvoiceActionResponse
- type SandboxApp
- type SandboxAppReplaceUpdate
- type SandboxAppReplaceUpdateType
- type SandboxAppType
- type SandboxCustomerAppData
- type SandboxCustomerAppDataType
- type ServiceUnavailableProblemResponse
- type SimulateInvoiceJSONRequestBody
- type SimulateInvoiceResponse
- type SnapshotQuantitiesInvoiceActionResponse
- type SortOrder
- type StripeAPIKeyInput
- type StripeApp
- type StripeAppReplaceUpdate
- type StripeAppReplaceUpdateType
- type StripeAppType
- type StripeCheckoutSessionMode
- type StripeCustomerAppData
- type StripeCustomerAppDataBase
- type StripeCustomerAppDataCreateOrUpdateItem
- type StripeCustomerAppDataCreateOrUpdateItemType
- type StripeCustomerAppDataType
- type StripeCustomerPortalSession
- type StripeTaxConfig
- type StripeWebhookEvent
- type StripeWebhookResponse
- type Subject
- type SubjectUpsert
- type Subscription
- type SubscriptionAddon
- type SubscriptionAddonCreate
- type SubscriptionAddonRateCard
- type SubscriptionAddonTimelineSegment
- type SubscriptionAddonUpdate
- type SubscriptionAlignment
- type SubscriptionBadRequestErrorResponse
- type SubscriptionChange
- func (t SubscriptionChange) AsCustomSubscriptionChange() (CustomSubscriptionChange, error)
- func (t SubscriptionChange) AsPlanSubscriptionChange() (PlanSubscriptionChange, error)
- func (t *SubscriptionChange) FromCustomSubscriptionChange(v CustomSubscriptionChange) error
- func (t *SubscriptionChange) FromPlanSubscriptionChange(v PlanSubscriptionChange) error
- func (t SubscriptionChange) MarshalJSON() ([]byte, error)
- func (t *SubscriptionChange) MergeCustomSubscriptionChange(v CustomSubscriptionChange) error
- func (t *SubscriptionChange) MergePlanSubscriptionChange(v PlanSubscriptionChange) error
- func (t *SubscriptionChange) UnmarshalJSON(b []byte) error
- type SubscriptionChangeResponseBody
- type SubscriptionConflictErrorResponse
- type SubscriptionCreate
- func (t SubscriptionCreate) AsCustomSubscriptionCreate() (CustomSubscriptionCreate, error)
- func (t SubscriptionCreate) AsPlanSubscriptionCreate() (PlanSubscriptionCreate, error)
- func (t *SubscriptionCreate) FromCustomSubscriptionCreate(v CustomSubscriptionCreate) error
- func (t *SubscriptionCreate) FromPlanSubscriptionCreate(v PlanSubscriptionCreate) error
- func (t SubscriptionCreate) MarshalJSON() ([]byte, error)
- func (t *SubscriptionCreate) MergeCustomSubscriptionCreate(v CustomSubscriptionCreate) error
- func (t *SubscriptionCreate) MergePlanSubscriptionCreate(v PlanSubscriptionCreate) error
- func (t *SubscriptionCreate) UnmarshalJSON(b []byte) error
- type SubscriptionEdit
- type SubscriptionEditOperation
- func (t SubscriptionEditOperation) AsEditSubscriptionAddItem() (EditSubscriptionAddItem, error)
- func (t SubscriptionEditOperation) AsEditSubscriptionAddPhase() (EditSubscriptionAddPhase, error)
- func (t SubscriptionEditOperation) AsEditSubscriptionRemoveItem() (EditSubscriptionRemoveItem, error)
- func (t SubscriptionEditOperation) AsEditSubscriptionRemovePhase() (EditSubscriptionRemovePhase, error)
- func (t SubscriptionEditOperation) AsEditSubscriptionStretchPhase() (EditSubscriptionStretchPhase, error)
- func (t SubscriptionEditOperation) AsEditSubscriptionUnscheduleEdit() (EditSubscriptionUnscheduleEdit, error)
- func (t SubscriptionEditOperation) Discriminator() (string, error)
- func (t *SubscriptionEditOperation) FromEditSubscriptionAddItem(v EditSubscriptionAddItem) error
- func (t *SubscriptionEditOperation) FromEditSubscriptionAddPhase(v EditSubscriptionAddPhase) error
- func (t *SubscriptionEditOperation) FromEditSubscriptionRemoveItem(v EditSubscriptionRemoveItem) error
- func (t *SubscriptionEditOperation) FromEditSubscriptionRemovePhase(v EditSubscriptionRemovePhase) error
- func (t *SubscriptionEditOperation) FromEditSubscriptionStretchPhase(v EditSubscriptionStretchPhase) error
- func (t *SubscriptionEditOperation) FromEditSubscriptionUnscheduleEdit(v EditSubscriptionUnscheduleEdit) error
- func (t SubscriptionEditOperation) MarshalJSON() ([]byte, error)
- func (t *SubscriptionEditOperation) MergeEditSubscriptionAddItem(v EditSubscriptionAddItem) error
- func (t *SubscriptionEditOperation) MergeEditSubscriptionAddPhase(v EditSubscriptionAddPhase) error
- func (t *SubscriptionEditOperation) MergeEditSubscriptionRemoveItem(v EditSubscriptionRemoveItem) error
- func (t *SubscriptionEditOperation) MergeEditSubscriptionRemovePhase(v EditSubscriptionRemovePhase) error
- func (t *SubscriptionEditOperation) MergeEditSubscriptionStretchPhase(v EditSubscriptionStretchPhase) error
- func (t *SubscriptionEditOperation) MergeEditSubscriptionUnscheduleEdit(v EditSubscriptionUnscheduleEdit) error
- func (t *SubscriptionEditOperation) UnmarshalJSON(b []byte) error
- func (t SubscriptionEditOperation) ValueByDiscriminator() (interface{}, error)
- type SubscriptionErrorExtensions
- type SubscriptionExpanded
- type SubscriptionItem
- type SubscriptionItemIncluded
- type SubscriptionPaginatedResponse
- type SubscriptionPhaseCreate
- type SubscriptionPhaseExpanded
- type SubscriptionStatus
- type SubscriptionTiming
- func (t SubscriptionTiming) AsSubscriptionTiming1() (SubscriptionTiming1, error)
- func (t SubscriptionTiming) AsSubscriptionTimingEnum() (SubscriptionTimingEnum, error)
- func (t *SubscriptionTiming) FromSubscriptionTiming1(v SubscriptionTiming1) error
- func (t *SubscriptionTiming) FromSubscriptionTimingEnum(v SubscriptionTimingEnum) error
- func (t SubscriptionTiming) MarshalJSON() ([]byte, error)
- func (t *SubscriptionTiming) MergeSubscriptionTiming1(v SubscriptionTiming1) error
- func (t *SubscriptionTiming) MergeSubscriptionTimingEnum(v SubscriptionTimingEnum) error
- func (t *SubscriptionTiming) UnmarshalJSON(b []byte) error
- type SubscriptionTiming1
- type SubscriptionTimingEnum
- type TaxBehavior
- type TaxConfig
- type TestNotificationRuleResponse
- type TieredPriceMode
- type TieredPriceWithCommitments
- type TieredPriceWithCommitmentsType
- type ULIDOrExternalKey
- type UnauthorizedProblemResponse
- type UnexpectedProblemResponse
- type UninstallAppResponse
- type UnitPrice
- type UnitPriceType
- type UnitPriceWithCommitments
- type UnitPriceWithCommitmentsType
- type UnscheduleCancelationResponse
- type UpdateAddonJSONRequestBody
- type UpdateAddonResponse
- type UpdateAppJSONRequestBody
- type UpdateAppResponse
- type UpdateBillingProfileJSONRequestBody
- type UpdateBillingProfileResponse
- type UpdateCustomerJSONRequestBody
- type UpdateCustomerResponse
- type UpdateInvoiceJSONRequestBody
- type UpdateInvoiceResponse
- type UpdateMeterJSONRequestBody
- type UpdateMeterResponse
- type UpdateNotificationChannelJSONRequestBody
- type UpdateNotificationChannelResponse
- type UpdateNotificationRuleJSONRequestBody
- type UpdateNotificationRuleResponse
- type UpdatePlanAddonJSONRequestBody
- type UpdatePlanAddonResponse
- type UpdatePlanJSONRequestBody
- type UpdatePlanResponse
- type UpdateStripeAPIKeyJSONRequestBody
- type UpdateStripeAPIKeyResponse
- type UpdateSubscriptionAddonJSONRequestBody
- type UpdateSubscriptionAddonResponse
- type UpsertBillingProfileCustomerOverrideJSONRequestBody
- type UpsertBillingProfileCustomerOverrideResponse
- type UpsertCustomerAppDataJSONBody
- type UpsertCustomerAppDataJSONRequestBody
- type UpsertCustomerAppDataResponse
- type UpsertCustomerStripeAppDataJSONRequestBody
- type UpsertCustomerStripeAppDataResponse
- type UpsertSubjectJSONBody
- type UpsertSubjectJSONRequestBody
- type UpsertSubjectResponse
- type ValidationError
- type ValidationIssue
- type ValidationIssueSeverity
- type VoidGrantResponse
- type VoidInvoiceActionCreate
- type VoidInvoiceActionCreateItem
- type VoidInvoiceActionInput
- type VoidInvoiceActionJSONRequestBody
- type VoidInvoiceActionLineOverride
- type VoidInvoiceActionResponse
- type VoidInvoiceLineActionCreate
- func (t VoidInvoiceLineActionCreate) AsVoidInvoiceLineDiscardAction() (VoidInvoiceLineDiscardAction, error)
- func (t VoidInvoiceLineActionCreate) AsVoidInvoiceLinePendingActionCreate() (VoidInvoiceLinePendingActionCreate, error)
- func (t VoidInvoiceLineActionCreate) Discriminator() (string, error)
- func (t *VoidInvoiceLineActionCreate) FromVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error
- func (t *VoidInvoiceLineActionCreate) FromVoidInvoiceLinePendingActionCreate(v VoidInvoiceLinePendingActionCreate) error
- func (t VoidInvoiceLineActionCreate) MarshalJSON() ([]byte, error)
- func (t *VoidInvoiceLineActionCreate) MergeVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error
- func (t *VoidInvoiceLineActionCreate) MergeVoidInvoiceLinePendingActionCreate(v VoidInvoiceLinePendingActionCreate) error
- func (t *VoidInvoiceLineActionCreate) UnmarshalJSON(b []byte) error
- func (t VoidInvoiceLineActionCreate) ValueByDiscriminator() (interface{}, error)
- type VoidInvoiceLineActionCreateItem
- func (t VoidInvoiceLineActionCreateItem) AsVoidInvoiceLineDiscardAction() (VoidInvoiceLineDiscardAction, error)
- func (t VoidInvoiceLineActionCreateItem) AsVoidInvoiceLinePendingActionCreateItem() (VoidInvoiceLinePendingActionCreateItem, error)
- func (t VoidInvoiceLineActionCreateItem) Discriminator() (string, error)
- func (t *VoidInvoiceLineActionCreateItem) FromVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error
- func (t *VoidInvoiceLineActionCreateItem) FromVoidInvoiceLinePendingActionCreateItem(v VoidInvoiceLinePendingActionCreateItem) error
- func (t VoidInvoiceLineActionCreateItem) MarshalJSON() ([]byte, error)
- func (t *VoidInvoiceLineActionCreateItem) MergeVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error
- func (t *VoidInvoiceLineActionCreateItem) MergeVoidInvoiceLinePendingActionCreateItem(v VoidInvoiceLinePendingActionCreateItem) error
- func (t *VoidInvoiceLineActionCreateItem) UnmarshalJSON(b []byte) error
- func (t VoidInvoiceLineActionCreateItem) ValueByDiscriminator() (interface{}, error)
- type VoidInvoiceLineDiscardAction
- type VoidInvoiceLineDiscardActionType
- type VoidInvoiceLinePendingActionCreate
- type VoidInvoiceLinePendingActionCreateItem
- type VoidInvoiceLinePendingActionCreateItemType
- type VoidInvoiceLinePendingActionCreateType
- type WindowSize
- type WindowedBalanceHistory
Constants ¶
const ( CloudCookieAuthScopes = "CloudCookieAuth.Scopes" CloudPortalTokenAuthScopes = "CloudPortalTokenAuth.Scopes" CloudTokenAuthScopes = "CloudTokenAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewAdvanceInvoiceActionRequest ¶
NewAdvanceInvoiceActionRequest generates requests for AdvanceInvoiceAction
func NewAppCustomInvoicingDraftSynchronizedRequest ¶
func NewAppCustomInvoicingDraftSynchronizedRequest(server string, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody) (*http.Request, error)
NewAppCustomInvoicingDraftSynchronizedRequest calls the generic AppCustomInvoicingDraftSynchronized builder with application/json body
func NewAppCustomInvoicingDraftSynchronizedRequestWithBody ¶
func NewAppCustomInvoicingDraftSynchronizedRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
NewAppCustomInvoicingDraftSynchronizedRequestWithBody generates requests for AppCustomInvoicingDraftSynchronized with any type of body
func NewAppCustomInvoicingIssuingSynchronizedRequest ¶
func NewAppCustomInvoicingIssuingSynchronizedRequest(server string, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody) (*http.Request, error)
NewAppCustomInvoicingIssuingSynchronizedRequest calls the generic AppCustomInvoicingIssuingSynchronized builder with application/json body
func NewAppCustomInvoicingIssuingSynchronizedRequestWithBody ¶
func NewAppCustomInvoicingIssuingSynchronizedRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
NewAppCustomInvoicingIssuingSynchronizedRequestWithBody generates requests for AppCustomInvoicingIssuingSynchronized with any type of body
func NewAppCustomInvoicingUpdatePaymentStatusRequest ¶
func NewAppCustomInvoicingUpdatePaymentStatusRequest(server string, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody) (*http.Request, error)
NewAppCustomInvoicingUpdatePaymentStatusRequest calls the generic AppCustomInvoicingUpdatePaymentStatus builder with application/json body
func NewAppCustomInvoicingUpdatePaymentStatusRequestWithBody ¶
func NewAppCustomInvoicingUpdatePaymentStatusRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
NewAppCustomInvoicingUpdatePaymentStatusRequestWithBody generates requests for AppCustomInvoicingUpdatePaymentStatus with any type of body
func NewAppStripeWebhookRequest ¶
func NewAppStripeWebhookRequest(server string, id string, body AppStripeWebhookJSONRequestBody) (*http.Request, error)
NewAppStripeWebhookRequest calls the generic AppStripeWebhook builder with application/json body
func NewAppStripeWebhookRequestWithBody ¶
func NewAppStripeWebhookRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewAppStripeWebhookRequestWithBody generates requests for AppStripeWebhook with any type of body
func NewApproveInvoiceActionRequest ¶
NewApproveInvoiceActionRequest generates requests for ApproveInvoiceAction
func NewArchiveAddonRequest ¶
NewArchiveAddonRequest generates requests for ArchiveAddon
func NewArchivePlanRequest ¶
NewArchivePlanRequest generates requests for ArchivePlan
func NewCancelSubscriptionRequest ¶
func NewCancelSubscriptionRequest(server string, subscriptionId string, body CancelSubscriptionJSONRequestBody) (*http.Request, error)
NewCancelSubscriptionRequest calls the generic CancelSubscription builder with application/json body
func NewCancelSubscriptionRequestWithBody ¶
func NewCancelSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
NewCancelSubscriptionRequestWithBody generates requests for CancelSubscription with any type of body
func NewChangeSubscriptionRequest ¶
func NewChangeSubscriptionRequest(server string, subscriptionId string, body ChangeSubscriptionJSONRequestBody) (*http.Request, error)
NewChangeSubscriptionRequest calls the generic ChangeSubscription builder with application/json body
func NewChangeSubscriptionRequestWithBody ¶
func NewChangeSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
NewChangeSubscriptionRequestWithBody generates requests for ChangeSubscription with any type of body
func NewCreateAddonRequest ¶
func NewCreateAddonRequest(server string, body CreateAddonJSONRequestBody) (*http.Request, error)
NewCreateAddonRequest calls the generic CreateAddon builder with application/json body
func NewCreateAddonRequestWithBody ¶
func NewCreateAddonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAddonRequestWithBody generates requests for CreateAddon with any type of body
func NewCreateBillingProfileRequest ¶
func NewCreateBillingProfileRequest(server string, body CreateBillingProfileJSONRequestBody) (*http.Request, error)
NewCreateBillingProfileRequest calls the generic CreateBillingProfile builder with application/json body
func NewCreateBillingProfileRequestWithBody ¶
func NewCreateBillingProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateBillingProfileRequestWithBody generates requests for CreateBillingProfile with any type of body
func NewCreateCustomerEntitlementGrantV2Request ¶
func NewCreateCustomerEntitlementGrantV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody) (*http.Request, error)
NewCreateCustomerEntitlementGrantV2Request calls the generic CreateCustomerEntitlementGrantV2 builder with application/json body
func NewCreateCustomerEntitlementGrantV2RequestWithBody ¶
func NewCreateCustomerEntitlementGrantV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCustomerEntitlementGrantV2RequestWithBody generates requests for CreateCustomerEntitlementGrantV2 with any type of body
func NewCreateCustomerEntitlementV2Request ¶
func NewCreateCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody) (*http.Request, error)
NewCreateCustomerEntitlementV2Request calls the generic CreateCustomerEntitlementV2 builder with application/json body
func NewCreateCustomerEntitlementV2RequestWithBody ¶
func NewCreateCustomerEntitlementV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error)
NewCreateCustomerEntitlementV2RequestWithBody generates requests for CreateCustomerEntitlementV2 with any type of body
func NewCreateCustomerRequest ¶
func NewCreateCustomerRequest(server string, body CreateCustomerJSONRequestBody) (*http.Request, error)
NewCreateCustomerRequest calls the generic CreateCustomer builder with application/json body
func NewCreateCustomerRequestWithBody ¶
func NewCreateCustomerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCustomerRequestWithBody generates requests for CreateCustomer with any type of body
func NewCreateCustomerStripePortalSessionRequest ¶
func NewCreateCustomerStripePortalSessionRequest(server string, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody) (*http.Request, error)
NewCreateCustomerStripePortalSessionRequest calls the generic CreateCustomerStripePortalSession builder with application/json body
func NewCreateCustomerStripePortalSessionRequestWithBody ¶
func NewCreateCustomerStripePortalSessionRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error)
NewCreateCustomerStripePortalSessionRequestWithBody generates requests for CreateCustomerStripePortalSession with any type of body
func NewCreateEntitlementRequest ¶
func NewCreateEntitlementRequest(server string, subjectIdOrKey string, body CreateEntitlementJSONRequestBody) (*http.Request, error)
NewCreateEntitlementRequest calls the generic CreateEntitlement builder with application/json body
func NewCreateEntitlementRequestWithBody ¶
func NewCreateEntitlementRequestWithBody(server string, subjectIdOrKey string, contentType string, body io.Reader) (*http.Request, error)
NewCreateEntitlementRequestWithBody generates requests for CreateEntitlement with any type of body
func NewCreateFeatureRequest ¶
func NewCreateFeatureRequest(server string, body CreateFeatureJSONRequestBody) (*http.Request, error)
NewCreateFeatureRequest calls the generic CreateFeature builder with application/json body
func NewCreateFeatureRequestWithBody ¶
func NewCreateFeatureRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFeatureRequestWithBody generates requests for CreateFeature with any type of body
func NewCreateGrantRequest ¶
func NewCreateGrantRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody) (*http.Request, error)
NewCreateGrantRequest calls the generic CreateGrant builder with application/json body
func NewCreateGrantRequestWithBody ¶
func NewCreateGrantRequestWithBody(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader) (*http.Request, error)
NewCreateGrantRequestWithBody generates requests for CreateGrant with any type of body
func NewCreateMeterRequest ¶
func NewCreateMeterRequest(server string, body CreateMeterJSONRequestBody) (*http.Request, error)
NewCreateMeterRequest calls the generic CreateMeter builder with application/json body
func NewCreateMeterRequestWithBody ¶
func NewCreateMeterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateMeterRequestWithBody generates requests for CreateMeter with any type of body
func NewCreateNotificationChannelRequest ¶
func NewCreateNotificationChannelRequest(server string, body CreateNotificationChannelJSONRequestBody) (*http.Request, error)
NewCreateNotificationChannelRequest calls the generic CreateNotificationChannel builder with application/json body
func NewCreateNotificationChannelRequestWithBody ¶
func NewCreateNotificationChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNotificationChannelRequestWithBody generates requests for CreateNotificationChannel with any type of body
func NewCreateNotificationRuleRequest ¶
func NewCreateNotificationRuleRequest(server string, body CreateNotificationRuleJSONRequestBody) (*http.Request, error)
NewCreateNotificationRuleRequest calls the generic CreateNotificationRule builder with application/json body
func NewCreateNotificationRuleRequestWithBody ¶
func NewCreateNotificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNotificationRuleRequestWithBody generates requests for CreateNotificationRule with any type of body
func NewCreatePendingInvoiceLineRequest ¶
func NewCreatePendingInvoiceLineRequest(server string, customerId string, body CreatePendingInvoiceLineJSONRequestBody) (*http.Request, error)
NewCreatePendingInvoiceLineRequest calls the generic CreatePendingInvoiceLine builder with application/json body
func NewCreatePendingInvoiceLineRequestWithBody ¶
func NewCreatePendingInvoiceLineRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePendingInvoiceLineRequestWithBody generates requests for CreatePendingInvoiceLine with any type of body
func NewCreatePlanAddonRequest ¶
func NewCreatePlanAddonRequest(server string, planId string, body CreatePlanAddonJSONRequestBody) (*http.Request, error)
NewCreatePlanAddonRequest calls the generic CreatePlanAddon builder with application/json body
func NewCreatePlanAddonRequestWithBody ¶
func NewCreatePlanAddonRequestWithBody(server string, planId string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePlanAddonRequestWithBody generates requests for CreatePlanAddon with any type of body
func NewCreatePlanRequest ¶
func NewCreatePlanRequest(server string, body CreatePlanJSONRequestBody) (*http.Request, error)
NewCreatePlanRequest calls the generic CreatePlan builder with application/json body
func NewCreatePlanRequestWithBody ¶
func NewCreatePlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePlanRequestWithBody generates requests for CreatePlan with any type of body
func NewCreatePortalTokenRequest ¶
func NewCreatePortalTokenRequest(server string, body CreatePortalTokenJSONRequestBody) (*http.Request, error)
NewCreatePortalTokenRequest calls the generic CreatePortalToken builder with application/json body
func NewCreatePortalTokenRequestWithBody ¶
func NewCreatePortalTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePortalTokenRequestWithBody generates requests for CreatePortalToken with any type of body
func NewCreateStripeCheckoutSessionRequest ¶
func NewCreateStripeCheckoutSessionRequest(server string, body CreateStripeCheckoutSessionJSONRequestBody) (*http.Request, error)
NewCreateStripeCheckoutSessionRequest calls the generic CreateStripeCheckoutSession builder with application/json body
func NewCreateStripeCheckoutSessionRequestWithBody ¶
func NewCreateStripeCheckoutSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateStripeCheckoutSessionRequestWithBody generates requests for CreateStripeCheckoutSession with any type of body
func NewCreateSubscriptionAddonRequest ¶
func NewCreateSubscriptionAddonRequest(server string, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody) (*http.Request, error)
NewCreateSubscriptionAddonRequest calls the generic CreateSubscriptionAddon builder with application/json body
func NewCreateSubscriptionAddonRequestWithBody ¶
func NewCreateSubscriptionAddonRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSubscriptionAddonRequestWithBody generates requests for CreateSubscriptionAddon with any type of body
func NewCreateSubscriptionRequest ¶
func NewCreateSubscriptionRequest(server string, body CreateSubscriptionJSONRequestBody) (*http.Request, error)
NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body
func NewCreateSubscriptionRequestWithBody ¶
func NewCreateSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body
func NewDeleteAddonRequest ¶
NewDeleteAddonRequest generates requests for DeleteAddon
func NewDeleteBillingProfileCustomerOverrideRequest ¶
func NewDeleteBillingProfileCustomerOverrideRequest(server string, customerId string) (*http.Request, error)
NewDeleteBillingProfileCustomerOverrideRequest generates requests for DeleteBillingProfileCustomerOverride
func NewDeleteBillingProfileRequest ¶
NewDeleteBillingProfileRequest generates requests for DeleteBillingProfile
func NewDeleteCustomerAppDataRequest ¶
func NewDeleteCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, appId string) (*http.Request, error)
NewDeleteCustomerAppDataRequest generates requests for DeleteCustomerAppData
func NewDeleteCustomerEntitlementV2Request ¶
func NewDeleteCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string) (*http.Request, error)
NewDeleteCustomerEntitlementV2Request generates requests for DeleteCustomerEntitlementV2
func NewDeleteCustomerRequest ¶
func NewDeleteCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error)
NewDeleteCustomerRequest generates requests for DeleteCustomer
func NewDeleteEntitlementRequest ¶
func NewDeleteEntitlementRequest(server string, subjectIdOrKey string, entitlementId string) (*http.Request, error)
NewDeleteEntitlementRequest generates requests for DeleteEntitlement
func NewDeleteFeatureRequest ¶
NewDeleteFeatureRequest generates requests for DeleteFeature
func NewDeleteInvoiceRequest ¶
NewDeleteInvoiceRequest generates requests for DeleteInvoice
func NewDeleteMeterRequest ¶
NewDeleteMeterRequest generates requests for DeleteMeter
func NewDeleteNotificationChannelRequest ¶
NewDeleteNotificationChannelRequest generates requests for DeleteNotificationChannel
func NewDeleteNotificationRuleRequest ¶
NewDeleteNotificationRuleRequest generates requests for DeleteNotificationRule
func NewDeletePlanAddonRequest ¶
func NewDeletePlanAddonRequest(server string, planId string, planAddonId string) (*http.Request, error)
NewDeletePlanAddonRequest generates requests for DeletePlanAddon
func NewDeletePlanRequest ¶
NewDeletePlanRequest generates requests for DeletePlan
func NewDeleteSubjectRequest ¶
NewDeleteSubjectRequest generates requests for DeleteSubject
func NewDeleteSubscriptionRequest ¶
NewDeleteSubscriptionRequest generates requests for DeleteSubscription
func NewEditSubscriptionRequest ¶
func NewEditSubscriptionRequest(server string, subscriptionId string, body EditSubscriptionJSONRequestBody) (*http.Request, error)
NewEditSubscriptionRequest calls the generic EditSubscription builder with application/json body
func NewEditSubscriptionRequestWithBody ¶
func NewEditSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
NewEditSubscriptionRequestWithBody generates requests for EditSubscription with any type of body
func NewGetAddonRequest ¶
func NewGetAddonRequest(server string, addonId string, params *GetAddonParams) (*http.Request, error)
NewGetAddonRequest generates requests for GetAddon
func NewGetAppRequest ¶
NewGetAppRequest generates requests for GetApp
func NewGetBillingProfileCustomerOverrideRequest ¶
func NewGetBillingProfileCustomerOverrideRequest(server string, customerId string, params *GetBillingProfileCustomerOverrideParams) (*http.Request, error)
NewGetBillingProfileCustomerOverrideRequest generates requests for GetBillingProfileCustomerOverride
func NewGetBillingProfileRequest ¶
func NewGetBillingProfileRequest(server string, id string, params *GetBillingProfileParams) (*http.Request, error)
NewGetBillingProfileRequest generates requests for GetBillingProfile
func NewGetCustomerAccessRequest ¶
func NewGetCustomerAccessRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error)
NewGetCustomerAccessRequest generates requests for GetCustomerAccess
func NewGetCustomerEntitlementHistoryV2Request ¶
func NewGetCustomerEntitlementHistoryV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params) (*http.Request, error)
NewGetCustomerEntitlementHistoryV2Request generates requests for GetCustomerEntitlementHistoryV2
func NewGetCustomerEntitlementV2Request ¶
func NewGetCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string) (*http.Request, error)
NewGetCustomerEntitlementV2Request generates requests for GetCustomerEntitlementV2
func NewGetCustomerEntitlementValueRequest ¶
func NewGetCustomerEntitlementValueRequest(server string, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams) (*http.Request, error)
NewGetCustomerEntitlementValueRequest generates requests for GetCustomerEntitlementValue
func NewGetCustomerEntitlementValueV2Request ¶
func NewGetCustomerEntitlementValueV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params) (*http.Request, error)
NewGetCustomerEntitlementValueV2Request generates requests for GetCustomerEntitlementValueV2
func NewGetCustomerRequest ¶
func NewGetCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams) (*http.Request, error)
NewGetCustomerRequest generates requests for GetCustomer
func NewGetCustomerStripeAppDataRequest ¶
func NewGetCustomerStripeAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error)
NewGetCustomerStripeAppDataRequest generates requests for GetCustomerStripeAppData
func NewGetDebugMetricsRequest ¶
NewGetDebugMetricsRequest generates requests for GetDebugMetrics
func NewGetEntitlementByIdRequest ¶
NewGetEntitlementByIdRequest generates requests for GetEntitlementById
func NewGetEntitlementByIdV2Request ¶
NewGetEntitlementByIdV2Request generates requests for GetEntitlementByIdV2
func NewGetEntitlementHistoryRequest ¶
func NewGetEntitlementHistoryRequest(server string, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams) (*http.Request, error)
NewGetEntitlementHistoryRequest generates requests for GetEntitlementHistory
func NewGetEntitlementRequest ¶
func NewGetEntitlementRequest(server string, subjectIdOrKey string, entitlementId string) (*http.Request, error)
NewGetEntitlementRequest generates requests for GetEntitlement
func NewGetEntitlementValueRequest ¶
func NewGetEntitlementValueRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams) (*http.Request, error)
NewGetEntitlementValueRequest generates requests for GetEntitlementValue
func NewGetFeatureRequest ¶
NewGetFeatureRequest generates requests for GetFeature
func NewGetInvoiceRequest ¶
func NewGetInvoiceRequest(server string, invoiceId string, params *GetInvoiceParams) (*http.Request, error)
NewGetInvoiceRequest generates requests for GetInvoice
func NewGetMarketplaceListingRequest ¶
NewGetMarketplaceListingRequest generates requests for GetMarketplaceListing
func NewGetMeterRequest ¶
NewGetMeterRequest generates requests for GetMeter
func NewGetNotificationChannelRequest ¶
NewGetNotificationChannelRequest generates requests for GetNotificationChannel
func NewGetNotificationEventRequest ¶
NewGetNotificationEventRequest generates requests for GetNotificationEvent
func NewGetNotificationRuleRequest ¶
NewGetNotificationRuleRequest generates requests for GetNotificationRule
func NewGetPlanAddonRequest ¶
func NewGetPlanAddonRequest(server string, planId string, planAddonId string) (*http.Request, error)
NewGetPlanAddonRequest generates requests for GetPlanAddon
func NewGetPlanRequest ¶
NewGetPlanRequest generates requests for GetPlan
func NewGetProgressRequest ¶
NewGetProgressRequest generates requests for GetProgress
func NewGetSubjectRequest ¶
NewGetSubjectRequest generates requests for GetSubject
func NewGetSubscriptionAddonRequest ¶
func NewGetSubscriptionAddonRequest(server string, subscriptionId string, subscriptionAddonId string) (*http.Request, error)
NewGetSubscriptionAddonRequest generates requests for GetSubscriptionAddon
func NewGetSubscriptionRequest ¶
func NewGetSubscriptionRequest(server string, subscriptionId string, params *GetSubscriptionParams) (*http.Request, error)
NewGetSubscriptionRequest generates requests for GetSubscription
func NewIngestEventsRequest ¶
func NewIngestEventsRequest(server string, body IngestEventsJSONRequestBody) (*http.Request, error)
NewIngestEventsRequest calls the generic IngestEvents builder with application/json body
func NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody ¶
func NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody(server string, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody) (*http.Request, error)
NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody calls the generic IngestEvents builder with application/cloudevents-batch+json body
func NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody ¶
func NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody(server string, body IngestEventsApplicationCloudeventsPlusJSONRequestBody) (*http.Request, error)
NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody calls the generic IngestEvents builder with application/cloudevents+json body
func NewIngestEventsRequestWithBody ¶
func NewIngestEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIngestEventsRequestWithBody generates requests for IngestEvents with any type of body
func NewInvalidatePortalTokensRequest ¶
func NewInvalidatePortalTokensRequest(server string, body InvalidatePortalTokensJSONRequestBody) (*http.Request, error)
NewInvalidatePortalTokensRequest calls the generic InvalidatePortalTokens builder with application/json body
func NewInvalidatePortalTokensRequestWithBody ¶
func NewInvalidatePortalTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewInvalidatePortalTokensRequestWithBody generates requests for InvalidatePortalTokens with any type of body
func NewInvoicePendingLinesActionRequest ¶
func NewInvoicePendingLinesActionRequest(server string, body InvoicePendingLinesActionJSONRequestBody) (*http.Request, error)
NewInvoicePendingLinesActionRequest calls the generic InvoicePendingLinesAction builder with application/json body
func NewInvoicePendingLinesActionRequestWithBody ¶
func NewInvoicePendingLinesActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewInvoicePendingLinesActionRequestWithBody generates requests for InvoicePendingLinesAction with any type of body
func NewListAddonsRequest ¶
func NewListAddonsRequest(server string, params *ListAddonsParams) (*http.Request, error)
NewListAddonsRequest generates requests for ListAddons
func NewListAppsRequest ¶
func NewListAppsRequest(server string, params *ListAppsParams) (*http.Request, error)
NewListAppsRequest generates requests for ListApps
func NewListBillingProfileCustomerOverridesRequest ¶
func NewListBillingProfileCustomerOverridesRequest(server string, params *ListBillingProfileCustomerOverridesParams) (*http.Request, error)
NewListBillingProfileCustomerOverridesRequest generates requests for ListBillingProfileCustomerOverrides
func NewListBillingProfilesRequest ¶
func NewListBillingProfilesRequest(server string, params *ListBillingProfilesParams) (*http.Request, error)
NewListBillingProfilesRequest generates requests for ListBillingProfiles
func NewListCurrenciesRequest ¶
NewListCurrenciesRequest generates requests for ListCurrencies
func NewListCustomerAppDataRequest ¶
func NewListCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams) (*http.Request, error)
NewListCustomerAppDataRequest generates requests for ListCustomerAppData
func NewListCustomerEntitlementGrantsV2Request ¶
func NewListCustomerEntitlementGrantsV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params) (*http.Request, error)
NewListCustomerEntitlementGrantsV2Request generates requests for ListCustomerEntitlementGrantsV2
func NewListCustomerEntitlementsV2Request ¶
func NewListCustomerEntitlementsV2Request(server string, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params) (*http.Request, error)
NewListCustomerEntitlementsV2Request generates requests for ListCustomerEntitlementsV2
func NewListCustomerSubscriptionsRequest ¶
func NewListCustomerSubscriptionsRequest(server string, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams) (*http.Request, error)
NewListCustomerSubscriptionsRequest generates requests for ListCustomerSubscriptions
func NewListCustomersRequest ¶
func NewListCustomersRequest(server string, params *ListCustomersParams) (*http.Request, error)
NewListCustomersRequest generates requests for ListCustomers
func NewListEntitlementGrantsRequest ¶
func NewListEntitlementGrantsRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams) (*http.Request, error)
NewListEntitlementGrantsRequest generates requests for ListEntitlementGrants
func NewListEntitlementsRequest ¶
func NewListEntitlementsRequest(server string, params *ListEntitlementsParams) (*http.Request, error)
NewListEntitlementsRequest generates requests for ListEntitlements
func NewListEntitlementsV2Request ¶
func NewListEntitlementsV2Request(server string, params *ListEntitlementsV2Params) (*http.Request, error)
NewListEntitlementsV2Request generates requests for ListEntitlementsV2
func NewListEventsRequest ¶
func NewListEventsRequest(server string, params *ListEventsParams) (*http.Request, error)
NewListEventsRequest generates requests for ListEvents
func NewListEventsV2Request ¶
func NewListEventsV2Request(server string, params *ListEventsV2Params) (*http.Request, error)
NewListEventsV2Request generates requests for ListEventsV2
func NewListFeaturesRequest ¶
func NewListFeaturesRequest(server string, params *ListFeaturesParams) (*http.Request, error)
NewListFeaturesRequest generates requests for ListFeatures
func NewListGrantsRequest ¶
func NewListGrantsRequest(server string, params *ListGrantsParams) (*http.Request, error)
NewListGrantsRequest generates requests for ListGrants
func NewListGrantsV2Request ¶
func NewListGrantsV2Request(server string, params *ListGrantsV2Params) (*http.Request, error)
NewListGrantsV2Request generates requests for ListGrantsV2
func NewListInvoicesRequest ¶
func NewListInvoicesRequest(server string, params *ListInvoicesParams) (*http.Request, error)
NewListInvoicesRequest generates requests for ListInvoices
func NewListMarketplaceListingsRequest ¶
func NewListMarketplaceListingsRequest(server string, params *ListMarketplaceListingsParams) (*http.Request, error)
NewListMarketplaceListingsRequest generates requests for ListMarketplaceListings
func NewListMeterGroupByValuesRequest ¶
func NewListMeterGroupByValuesRequest(server string, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams) (*http.Request, error)
NewListMeterGroupByValuesRequest generates requests for ListMeterGroupByValues
func NewListMeterSubjectsRequest ¶
func NewListMeterSubjectsRequest(server string, meterIdOrSlug string, params *ListMeterSubjectsParams) (*http.Request, error)
NewListMeterSubjectsRequest generates requests for ListMeterSubjects
func NewListMetersRequest ¶
func NewListMetersRequest(server string, params *ListMetersParams) (*http.Request, error)
NewListMetersRequest generates requests for ListMeters
func NewListNotificationChannelsRequest ¶
func NewListNotificationChannelsRequest(server string, params *ListNotificationChannelsParams) (*http.Request, error)
NewListNotificationChannelsRequest generates requests for ListNotificationChannels
func NewListNotificationEventsRequest ¶
func NewListNotificationEventsRequest(server string, params *ListNotificationEventsParams) (*http.Request, error)
NewListNotificationEventsRequest generates requests for ListNotificationEvents
func NewListNotificationRulesRequest ¶
func NewListNotificationRulesRequest(server string, params *ListNotificationRulesParams) (*http.Request, error)
NewListNotificationRulesRequest generates requests for ListNotificationRules
func NewListPlanAddonsRequest ¶
func NewListPlanAddonsRequest(server string, planId string, params *ListPlanAddonsParams) (*http.Request, error)
NewListPlanAddonsRequest generates requests for ListPlanAddons
func NewListPlansRequest ¶
func NewListPlansRequest(server string, params *ListPlansParams) (*http.Request, error)
NewListPlansRequest generates requests for ListPlans
func NewListPortalTokensRequest ¶
func NewListPortalTokensRequest(server string, params *ListPortalTokensParams) (*http.Request, error)
NewListPortalTokensRequest generates requests for ListPortalTokens
func NewListSubjectEntitlementsRequest ¶
func NewListSubjectEntitlementsRequest(server string, subjectIdOrKey string, params *ListSubjectEntitlementsParams) (*http.Request, error)
NewListSubjectEntitlementsRequest generates requests for ListSubjectEntitlements
func NewListSubjectsRequest ¶
NewListSubjectsRequest generates requests for ListSubjects
func NewListSubscriptionAddonsRequest ¶
NewListSubscriptionAddonsRequest generates requests for ListSubscriptionAddons
func NewMarketplaceAppAPIKeyInstallRequest ¶
func NewMarketplaceAppAPIKeyInstallRequest(server string, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody) (*http.Request, error)
NewMarketplaceAppAPIKeyInstallRequest calls the generic MarketplaceAppAPIKeyInstall builder with application/json body
func NewMarketplaceAppAPIKeyInstallRequestWithBody ¶
func NewMarketplaceAppAPIKeyInstallRequestWithBody(server string, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader) (*http.Request, error)
NewMarketplaceAppAPIKeyInstallRequestWithBody generates requests for MarketplaceAppAPIKeyInstall with any type of body
func NewMarketplaceAppInstallRequest ¶
func NewMarketplaceAppInstallRequest(server string, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody) (*http.Request, error)
NewMarketplaceAppInstallRequest calls the generic MarketplaceAppInstall builder with application/json body
func NewMarketplaceAppInstallRequestWithBody ¶
func NewMarketplaceAppInstallRequestWithBody(server string, pType MarketplaceInstallRequestType, contentType string, body io.Reader) (*http.Request, error)
NewMarketplaceAppInstallRequestWithBody generates requests for MarketplaceAppInstall with any type of body
func NewMarketplaceOAuth2InstallAuthorizeRequest ¶
func NewMarketplaceOAuth2InstallAuthorizeRequest(server string, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams) (*http.Request, error)
NewMarketplaceOAuth2InstallAuthorizeRequest generates requests for MarketplaceOAuth2InstallAuthorize
func NewMarketplaceOAuth2InstallGetURLRequest ¶
NewMarketplaceOAuth2InstallGetURLRequest generates requests for MarketplaceOAuth2InstallGetURL
func NewMigrateSubscriptionRequest ¶
func NewMigrateSubscriptionRequest(server string, subscriptionId string, body MigrateSubscriptionJSONRequestBody) (*http.Request, error)
NewMigrateSubscriptionRequest calls the generic MigrateSubscription builder with application/json body
func NewMigrateSubscriptionRequestWithBody ¶
func NewMigrateSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error)
NewMigrateSubscriptionRequestWithBody generates requests for MigrateSubscription with any type of body
func NewNextPlanRequest ¶
NewNextPlanRequest generates requests for NextPlan
func NewOverrideCustomerEntitlementV2Request ¶
func NewOverrideCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody) (*http.Request, error)
NewOverrideCustomerEntitlementV2Request calls the generic OverrideCustomerEntitlementV2 builder with application/json body
func NewOverrideCustomerEntitlementV2RequestWithBody ¶
func NewOverrideCustomerEntitlementV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error)
NewOverrideCustomerEntitlementV2RequestWithBody generates requests for OverrideCustomerEntitlementV2 with any type of body
func NewOverrideEntitlementRequest ¶
func NewOverrideEntitlementRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody) (*http.Request, error)
NewOverrideEntitlementRequest calls the generic OverrideEntitlement builder with application/json body
func NewOverrideEntitlementRequestWithBody ¶
func NewOverrideEntitlementRequestWithBody(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader) (*http.Request, error)
NewOverrideEntitlementRequestWithBody generates requests for OverrideEntitlement with any type of body
func NewPublishAddonRequest ¶
NewPublishAddonRequest generates requests for PublishAddon
func NewPublishPlanRequest ¶
NewPublishPlanRequest generates requests for PublishPlan
func NewQueryMeterPostRequest ¶
func NewQueryMeterPostRequest(server string, meterIdOrSlug string, body QueryMeterPostJSONRequestBody) (*http.Request, error)
NewQueryMeterPostRequest calls the generic QueryMeterPost builder with application/json body
func NewQueryMeterPostRequestWithBody ¶
func NewQueryMeterPostRequestWithBody(server string, meterIdOrSlug string, contentType string, body io.Reader) (*http.Request, error)
NewQueryMeterPostRequestWithBody generates requests for QueryMeterPost with any type of body
func NewQueryMeterRequest ¶
func NewQueryMeterRequest(server string, meterIdOrSlug string, params *QueryMeterParams) (*http.Request, error)
NewQueryMeterRequest generates requests for QueryMeter
func NewQueryPortalMeterRequest ¶
func NewQueryPortalMeterRequest(server string, meterSlug string, params *QueryPortalMeterParams) (*http.Request, error)
NewQueryPortalMeterRequest generates requests for QueryPortalMeter
func NewRecalculateInvoiceTaxActionRequest ¶
NewRecalculateInvoiceTaxActionRequest generates requests for RecalculateInvoiceTaxAction
func NewResendNotificationEventRequest ¶
func NewResendNotificationEventRequest(server string, eventId string, body ResendNotificationEventJSONRequestBody) (*http.Request, error)
NewResendNotificationEventRequest calls the generic ResendNotificationEvent builder with application/json body
func NewResendNotificationEventRequestWithBody ¶
func NewResendNotificationEventRequestWithBody(server string, eventId string, contentType string, body io.Reader) (*http.Request, error)
NewResendNotificationEventRequestWithBody generates requests for ResendNotificationEvent with any type of body
func NewResetCustomerEntitlementUsageV2Request ¶
func NewResetCustomerEntitlementUsageV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody) (*http.Request, error)
NewResetCustomerEntitlementUsageV2Request calls the generic ResetCustomerEntitlementUsageV2 builder with application/json body
func NewResetCustomerEntitlementUsageV2RequestWithBody ¶
func NewResetCustomerEntitlementUsageV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader) (*http.Request, error)
NewResetCustomerEntitlementUsageV2RequestWithBody generates requests for ResetCustomerEntitlementUsageV2 with any type of body
func NewResetEntitlementUsageRequest ¶
func NewResetEntitlementUsageRequest(server string, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody) (*http.Request, error)
NewResetEntitlementUsageRequest calls the generic ResetEntitlementUsage builder with application/json body
func NewResetEntitlementUsageRequestWithBody ¶
func NewResetEntitlementUsageRequestWithBody(server string, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader) (*http.Request, error)
NewResetEntitlementUsageRequestWithBody generates requests for ResetEntitlementUsage with any type of body
func NewRestoreSubscriptionRequest ¶
NewRestoreSubscriptionRequest generates requests for RestoreSubscription
func NewRetryInvoiceActionRequest ¶
NewRetryInvoiceActionRequest generates requests for RetryInvoiceAction
func NewSimulateInvoiceRequest ¶
func NewSimulateInvoiceRequest(server string, customerId string, body SimulateInvoiceJSONRequestBody) (*http.Request, error)
NewSimulateInvoiceRequest calls the generic SimulateInvoice builder with application/json body
func NewSimulateInvoiceRequestWithBody ¶
func NewSimulateInvoiceRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error)
NewSimulateInvoiceRequestWithBody generates requests for SimulateInvoice with any type of body
func NewSnapshotQuantitiesInvoiceActionRequest ¶
func NewSnapshotQuantitiesInvoiceActionRequest(server string, invoiceId string) (*http.Request, error)
NewSnapshotQuantitiesInvoiceActionRequest generates requests for SnapshotQuantitiesInvoiceAction
func NewTestNotificationRuleRequest ¶
NewTestNotificationRuleRequest generates requests for TestNotificationRule
func NewUninstallAppRequest ¶
NewUninstallAppRequest generates requests for UninstallApp
func NewUnscheduleCancelationRequest ¶
NewUnscheduleCancelationRequest generates requests for UnscheduleCancelation
func NewUpdateAddonRequest ¶
func NewUpdateAddonRequest(server string, addonId string, body UpdateAddonJSONRequestBody) (*http.Request, error)
NewUpdateAddonRequest calls the generic UpdateAddon builder with application/json body
func NewUpdateAddonRequestWithBody ¶
func NewUpdateAddonRequestWithBody(server string, addonId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAddonRequestWithBody generates requests for UpdateAddon with any type of body
func NewUpdateAppRequest ¶
func NewUpdateAppRequest(server string, id string, body UpdateAppJSONRequestBody) (*http.Request, error)
NewUpdateAppRequest calls the generic UpdateApp builder with application/json body
func NewUpdateAppRequestWithBody ¶
func NewUpdateAppRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAppRequestWithBody generates requests for UpdateApp with any type of body
func NewUpdateBillingProfileRequest ¶
func NewUpdateBillingProfileRequest(server string, id string, body UpdateBillingProfileJSONRequestBody) (*http.Request, error)
NewUpdateBillingProfileRequest calls the generic UpdateBillingProfile builder with application/json body
func NewUpdateBillingProfileRequestWithBody ¶
func NewUpdateBillingProfileRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateBillingProfileRequestWithBody generates requests for UpdateBillingProfile with any type of body
func NewUpdateCustomerRequest ¶
func NewUpdateCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody) (*http.Request, error)
NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body
func NewUpdateCustomerRequestWithBody ¶
func NewUpdateCustomerRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCustomerRequestWithBody generates requests for UpdateCustomer with any type of body
func NewUpdateInvoiceRequest ¶
func NewUpdateInvoiceRequest(server string, invoiceId string, body UpdateInvoiceJSONRequestBody) (*http.Request, error)
NewUpdateInvoiceRequest calls the generic UpdateInvoice builder with application/json body
func NewUpdateInvoiceRequestWithBody ¶
func NewUpdateInvoiceRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInvoiceRequestWithBody generates requests for UpdateInvoice with any type of body
func NewUpdateMeterRequest ¶
func NewUpdateMeterRequest(server string, meterIdOrSlug string, body UpdateMeterJSONRequestBody) (*http.Request, error)
NewUpdateMeterRequest calls the generic UpdateMeter builder with application/json body
func NewUpdateMeterRequestWithBody ¶
func NewUpdateMeterRequestWithBody(server string, meterIdOrSlug string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateMeterRequestWithBody generates requests for UpdateMeter with any type of body
func NewUpdateNotificationChannelRequest ¶
func NewUpdateNotificationChannelRequest(server string, channelId string, body UpdateNotificationChannelJSONRequestBody) (*http.Request, error)
NewUpdateNotificationChannelRequest calls the generic UpdateNotificationChannel builder with application/json body
func NewUpdateNotificationChannelRequestWithBody ¶
func NewUpdateNotificationChannelRequestWithBody(server string, channelId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNotificationChannelRequestWithBody generates requests for UpdateNotificationChannel with any type of body
func NewUpdateNotificationRuleRequest ¶
func NewUpdateNotificationRuleRequest(server string, ruleId string, body UpdateNotificationRuleJSONRequestBody) (*http.Request, error)
NewUpdateNotificationRuleRequest calls the generic UpdateNotificationRule builder with application/json body
func NewUpdateNotificationRuleRequestWithBody ¶
func NewUpdateNotificationRuleRequestWithBody(server string, ruleId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNotificationRuleRequestWithBody generates requests for UpdateNotificationRule with any type of body
func NewUpdatePlanAddonRequest ¶
func NewUpdatePlanAddonRequest(server string, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody) (*http.Request, error)
NewUpdatePlanAddonRequest calls the generic UpdatePlanAddon builder with application/json body
func NewUpdatePlanAddonRequestWithBody ¶
func NewUpdatePlanAddonRequestWithBody(server string, planId string, planAddonId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdatePlanAddonRequestWithBody generates requests for UpdatePlanAddon with any type of body
func NewUpdatePlanRequest ¶
func NewUpdatePlanRequest(server string, planId string, body UpdatePlanJSONRequestBody) (*http.Request, error)
NewUpdatePlanRequest calls the generic UpdatePlan builder with application/json body
func NewUpdatePlanRequestWithBody ¶
func NewUpdatePlanRequestWithBody(server string, planId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdatePlanRequestWithBody generates requests for UpdatePlan with any type of body
func NewUpdateStripeAPIKeyRequest ¶
func NewUpdateStripeAPIKeyRequest(server string, id string, body UpdateStripeAPIKeyJSONRequestBody) (*http.Request, error)
NewUpdateStripeAPIKeyRequest calls the generic UpdateStripeAPIKey builder with application/json body
func NewUpdateStripeAPIKeyRequestWithBody ¶
func NewUpdateStripeAPIKeyRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateStripeAPIKeyRequestWithBody generates requests for UpdateStripeAPIKey with any type of body
func NewUpdateSubscriptionAddonRequest ¶
func NewUpdateSubscriptionAddonRequest(server string, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody) (*http.Request, error)
NewUpdateSubscriptionAddonRequest calls the generic UpdateSubscriptionAddon builder with application/json body
func NewUpdateSubscriptionAddonRequestWithBody ¶
func NewUpdateSubscriptionAddonRequestWithBody(server string, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSubscriptionAddonRequestWithBody generates requests for UpdateSubscriptionAddon with any type of body
func NewUpsertBillingProfileCustomerOverrideRequest ¶
func NewUpsertBillingProfileCustomerOverrideRequest(server string, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody) (*http.Request, error)
NewUpsertBillingProfileCustomerOverrideRequest calls the generic UpsertBillingProfileCustomerOverride builder with application/json body
func NewUpsertBillingProfileCustomerOverrideRequestWithBody ¶
func NewUpsertBillingProfileCustomerOverrideRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error)
NewUpsertBillingProfileCustomerOverrideRequestWithBody generates requests for UpsertBillingProfileCustomerOverride with any type of body
func NewUpsertCustomerAppDataRequest ¶
func NewUpsertCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody) (*http.Request, error)
NewUpsertCustomerAppDataRequest calls the generic UpsertCustomerAppData builder with application/json body
func NewUpsertCustomerAppDataRequestWithBody ¶
func NewUpsertCustomerAppDataRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error)
NewUpsertCustomerAppDataRequestWithBody generates requests for UpsertCustomerAppData with any type of body
func NewUpsertCustomerStripeAppDataRequest ¶
func NewUpsertCustomerStripeAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody) (*http.Request, error)
NewUpsertCustomerStripeAppDataRequest calls the generic UpsertCustomerStripeAppData builder with application/json body
func NewUpsertCustomerStripeAppDataRequestWithBody ¶
func NewUpsertCustomerStripeAppDataRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error)
NewUpsertCustomerStripeAppDataRequestWithBody generates requests for UpsertCustomerStripeAppData with any type of body
func NewUpsertSubjectRequest ¶
func NewUpsertSubjectRequest(server string, body UpsertSubjectJSONRequestBody) (*http.Request, error)
NewUpsertSubjectRequest calls the generic UpsertSubject builder with application/json body
func NewUpsertSubjectRequestWithBody ¶
func NewUpsertSubjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpsertSubjectRequestWithBody generates requests for UpsertSubject with any type of body
func NewVoidGrantRequest ¶
NewVoidGrantRequest generates requests for VoidGrant
func NewVoidInvoiceActionRequest ¶
func NewVoidInvoiceActionRequest(server string, invoiceId string, body VoidInvoiceActionJSONRequestBody) (*http.Request, error)
NewVoidInvoiceActionRequest calls the generic VoidInvoiceAction builder with application/json body
Types ¶
type Addon ¶
type Addon struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Currency The currency code of the add-on.
Currency CurrencyCode `json:"currency"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// EffectiveFrom The date and time when the add-on becomes effective. When not specified, the add-on is a draft.
EffectiveFrom *time.Time `json:"effectiveFrom,omitempty"`
// EffectiveTo The date and time when the add-on is no longer effective. When not specified, the add-on is effective indefinitely.
EffectiveTo *time.Time `json:"effectiveTo,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// InstanceType The instanceType of the add-ons. Can be "single" or "multiple".
InstanceType AddonInstanceType `json:"instanceType"`
// Key A semi-unique identifier for the resource.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// RateCards The rate cards of the add-on.
RateCards []RateCard `json:"rateCards"`
// Status The status of the add-on.
// Computed based on the effective start and end dates:
// - draft = no effectiveFrom
// - active = effectiveFrom <= now < effectiveTo
// - archived = effectiveTo <= now
Status AddonStatus `json:"status"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// ValidationErrors List of validation errors.
ValidationErrors *[]ValidationError `json:"validationErrors"`
// Version Version of the add-on. Incremented when the add-on is updated.
Version int `json:"version"`
}
Addon Add-on allows extending subscriptions with compatible plans with additional ratecards.
type AddonCreate ¶
type AddonCreate struct {
// Currency The currency code of the add-on.
Currency CurrencyCode `json:"currency"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// InstanceType The instanceType of the add-ons. Can be "single" or "multiple".
InstanceType AddonInstanceType `json:"instanceType"`
// Key A semi-unique identifier for the resource.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// RateCards The rate cards of the add-on.
RateCards []RateCard `json:"rateCards"`
}
AddonCreate Resource create operation model.
type AddonInstanceType ¶
type AddonInstanceType string
AddonInstanceType The instanceType of the add-on. Single instance add-ons can be added to subscription only once while add-ons with multiple type can be added more then once.
const ( AddonInstanceTypeMultiple AddonInstanceType = "multiple" AddonInstanceTypeSingle AddonInstanceType = "single" )
Defines values for AddonInstanceType.
type AddonOrderBy ¶
type AddonOrderBy string
AddonOrderBy Order by options for add-ons.
const ( AddonOrderByCreatedAt AddonOrderBy = "created_at" AddonOrderById AddonOrderBy = "id" AddonOrderByKey AddonOrderBy = "key" AddonOrderByUpdatedAt AddonOrderBy = "updated_at" AddonOrderByVersion AddonOrderBy = "version" )
Defines values for AddonOrderBy.
type AddonOrderByOrderingOrder ¶
type AddonOrderByOrderingOrder = SortOrder
AddonOrderByOrderingOrder The order direction.
type AddonOrderByOrderingOrderBy ¶
type AddonOrderByOrderingOrderBy = AddonOrderBy
AddonOrderByOrderingOrderBy Order by options for add-ons.
type AddonPaginatedResponse ¶
type AddonPaginatedResponse struct {
// Items The items in the current page.
Items []Addon `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
AddonPaginatedResponse Paginated response
type AddonReplaceUpdate ¶
type AddonReplaceUpdate struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// InstanceType The instanceType of the add-ons. Can be "single" or "multiple".
InstanceType AddonInstanceType `json:"instanceType"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// RateCards The rate cards of the add-on.
RateCards []RateCard `json:"rateCards"`
}
AddonReplaceUpdate Resource update operation model.
type AddonStatus ¶
type AddonStatus string
AddonStatus The status of the add-on defined by the effectiveFrom and effectiveTo properties.
const ( AddonStatusActive AddonStatus = "active" AddonStatusArchived AddonStatus = "archived" AddonStatusDraft AddonStatus = "draft" )
Defines values for AddonStatus.
type Address ¶
type Address struct {
// City City.
City *string `json:"city,omitempty"`
// Country Country code in [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) alpha-2 format.
Country *CountryCode `json:"country,omitempty"`
// Line1 First line of the address.
Line1 *string `json:"line1,omitempty"`
// Line2 Second line of the address.
Line2 *string `json:"line2,omitempty"`
// PhoneNumber Phone number.
PhoneNumber *string `json:"phoneNumber,omitempty"`
// PostalCode Postal code.
PostalCode *string `json:"postalCode,omitempty"`
// State State or province.
State *string `json:"state,omitempty"`
}
Address Address
type AdvanceInvoiceActionResponse ¶
type AdvanceInvoiceActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseAdvanceInvoiceActionResponse ¶
func ParseAdvanceInvoiceActionResponse(rsp *http.Response) (*AdvanceInvoiceActionResponse, error)
ParseAdvanceInvoiceActionResponse parses an HTTP response from a AdvanceInvoiceActionWithResponse call
func (AdvanceInvoiceActionResponse) Status ¶
func (r AdvanceInvoiceActionResponse) Status() string
Status returns HTTPResponse.Status
func (AdvanceInvoiceActionResponse) StatusCode ¶
func (r AdvanceInvoiceActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Alignment ¶
type Alignment struct {
// BillablesMustAlign Whether all Billable items and RateCards must align.
// Alignment means the Price's BillingCadence must align for both duration and anchor time.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BillablesMustAlign *bool `json:"billablesMustAlign,omitempty"`
}
Alignment Alignment configuration for a plan or subscription.
type Annotations ¶
type Annotations map[string]interface{}
Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
type App ¶
type App struct {
// contains filtered or unexported fields
}
App App. One of: stripe
func (App) AsCustomInvoicingApp ¶
func (t App) AsCustomInvoicingApp() (CustomInvoicingApp, error)
AsCustomInvoicingApp returns the union data inside the App as a CustomInvoicingApp
func (App) AsSandboxApp ¶
func (t App) AsSandboxApp() (SandboxApp, error)
AsSandboxApp returns the union data inside the App as a SandboxApp
func (App) AsStripeApp ¶
AsStripeApp returns the union data inside the App as a StripeApp
func (App) Discriminator ¶
func (*App) FromCustomInvoicingApp ¶
func (t *App) FromCustomInvoicingApp(v CustomInvoicingApp) error
FromCustomInvoicingApp overwrites any union data inside the App as the provided CustomInvoicingApp
func (*App) FromSandboxApp ¶
func (t *App) FromSandboxApp(v SandboxApp) error
FromSandboxApp overwrites any union data inside the App as the provided SandboxApp
func (*App) FromStripeApp ¶
FromStripeApp overwrites any union data inside the App as the provided StripeApp
func (App) MarshalJSON ¶
func (*App) MergeCustomInvoicingApp ¶
func (t *App) MergeCustomInvoicingApp(v CustomInvoicingApp) error
MergeCustomInvoicingApp performs a merge with any union data inside the App, using the provided CustomInvoicingApp
func (*App) MergeSandboxApp ¶
func (t *App) MergeSandboxApp(v SandboxApp) error
MergeSandboxApp performs a merge with any union data inside the App, using the provided SandboxApp
func (*App) MergeStripeApp ¶
MergeStripeApp performs a merge with any union data inside the App, using the provided StripeApp
func (*App) UnmarshalJSON ¶
func (App) ValueByDiscriminator ¶
type AppCapability ¶
type AppCapability struct {
// Description The capability description.
Description string `json:"description"`
// Key Key
Key string `json:"key"`
// Name The capability name.
Name string `json:"name"`
// Type The capability type.
Type AppCapabilityType `json:"type"`
}
AppCapability App capability.
Capabilities only exist in config so they don't extend the Resource model.
type AppCapabilityType ¶
type AppCapabilityType string
AppCapabilityType App capability type.
const ( AppCapabilityTypeCalculateTax AppCapabilityType = "calculateTax" AppCapabilityTypeCollectPayments AppCapabilityType = "collectPayments" AppCapabilityTypeInvoiceCustomers AppCapabilityType = "invoiceCustomers" AppCapabilityTypeReportEvents AppCapabilityType = "reportEvents" AppCapabilityTypeReportUsage AppCapabilityType = "reportUsage" )
Defines values for AppCapabilityType.
type AppCustomInvoicingDraftSynchronizedJSONRequestBody ¶
type AppCustomInvoicingDraftSynchronizedJSONRequestBody = CustomInvoicingDraftSynchronizedRequest
AppCustomInvoicingDraftSynchronizedJSONRequestBody defines body for AppCustomInvoicingDraftSynchronized for application/json ContentType.
type AppCustomInvoicingDraftSynchronizedResponse ¶
type AppCustomInvoicingDraftSynchronizedResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseAppCustomInvoicingDraftSynchronizedResponse ¶
func ParseAppCustomInvoicingDraftSynchronizedResponse(rsp *http.Response) (*AppCustomInvoicingDraftSynchronizedResponse, error)
ParseAppCustomInvoicingDraftSynchronizedResponse parses an HTTP response from a AppCustomInvoicingDraftSynchronizedWithResponse call
func (AppCustomInvoicingDraftSynchronizedResponse) Status ¶
func (r AppCustomInvoicingDraftSynchronizedResponse) Status() string
Status returns HTTPResponse.Status
func (AppCustomInvoicingDraftSynchronizedResponse) StatusCode ¶
func (r AppCustomInvoicingDraftSynchronizedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AppCustomInvoicingIssuingSynchronizedJSONRequestBody ¶
type AppCustomInvoicingIssuingSynchronizedJSONRequestBody = CustomInvoicingFinalizedRequest
AppCustomInvoicingIssuingSynchronizedJSONRequestBody defines body for AppCustomInvoicingIssuingSynchronized for application/json ContentType.
type AppCustomInvoicingIssuingSynchronizedResponse ¶
type AppCustomInvoicingIssuingSynchronizedResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseAppCustomInvoicingIssuingSynchronizedResponse ¶
func ParseAppCustomInvoicingIssuingSynchronizedResponse(rsp *http.Response) (*AppCustomInvoicingIssuingSynchronizedResponse, error)
ParseAppCustomInvoicingIssuingSynchronizedResponse parses an HTTP response from a AppCustomInvoicingIssuingSynchronizedWithResponse call
func (AppCustomInvoicingIssuingSynchronizedResponse) Status ¶
func (r AppCustomInvoicingIssuingSynchronizedResponse) Status() string
Status returns HTTPResponse.Status
func (AppCustomInvoicingIssuingSynchronizedResponse) StatusCode ¶
func (r AppCustomInvoicingIssuingSynchronizedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AppCustomInvoicingUpdatePaymentStatusJSONRequestBody ¶
type AppCustomInvoicingUpdatePaymentStatusJSONRequestBody = CustomInvoicingUpdatePaymentStatusRequest
AppCustomInvoicingUpdatePaymentStatusJSONRequestBody defines body for AppCustomInvoicingUpdatePaymentStatus for application/json ContentType.
type AppCustomInvoicingUpdatePaymentStatusResponse ¶
type AppCustomInvoicingUpdatePaymentStatusResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseAppCustomInvoicingUpdatePaymentStatusResponse ¶
func ParseAppCustomInvoicingUpdatePaymentStatusResponse(rsp *http.Response) (*AppCustomInvoicingUpdatePaymentStatusResponse, error)
ParseAppCustomInvoicingUpdatePaymentStatusResponse parses an HTTP response from a AppCustomInvoicingUpdatePaymentStatusWithResponse call
func (AppCustomInvoicingUpdatePaymentStatusResponse) Status ¶
func (r AppCustomInvoicingUpdatePaymentStatusResponse) Status() string
Status returns HTTPResponse.Status
func (AppCustomInvoicingUpdatePaymentStatusResponse) StatusCode ¶
func (r AppCustomInvoicingUpdatePaymentStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AppPaginatedResponse ¶
type AppPaginatedResponse struct {
// Items The items in the current page.
Items []App `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
AppPaginatedResponse Paginated response
type AppReference ¶
type AppReference struct {
// Id The ID of the app.
Id string `json:"id"`
}
AppReference App reference
Can be used as a short reference to an app if the full app object is not needed.
type AppReplaceUpdate ¶
type AppReplaceUpdate struct {
// contains filtered or unexported fields
}
AppReplaceUpdate App ReplaceUpdate Model
func (AppReplaceUpdate) AsCustomInvoicingAppReplaceUpdate ¶
func (t AppReplaceUpdate) AsCustomInvoicingAppReplaceUpdate() (CustomInvoicingAppReplaceUpdate, error)
AsCustomInvoicingAppReplaceUpdate returns the union data inside the AppReplaceUpdate as a CustomInvoicingAppReplaceUpdate
func (AppReplaceUpdate) AsSandboxAppReplaceUpdate ¶
func (t AppReplaceUpdate) AsSandboxAppReplaceUpdate() (SandboxAppReplaceUpdate, error)
AsSandboxAppReplaceUpdate returns the union data inside the AppReplaceUpdate as a SandboxAppReplaceUpdate
func (AppReplaceUpdate) AsStripeAppReplaceUpdate ¶
func (t AppReplaceUpdate) AsStripeAppReplaceUpdate() (StripeAppReplaceUpdate, error)
AsStripeAppReplaceUpdate returns the union data inside the AppReplaceUpdate as a StripeAppReplaceUpdate
func (AppReplaceUpdate) Discriminator ¶
func (t AppReplaceUpdate) Discriminator() (string, error)
func (*AppReplaceUpdate) FromCustomInvoicingAppReplaceUpdate ¶
func (t *AppReplaceUpdate) FromCustomInvoicingAppReplaceUpdate(v CustomInvoicingAppReplaceUpdate) error
FromCustomInvoicingAppReplaceUpdate overwrites any union data inside the AppReplaceUpdate as the provided CustomInvoicingAppReplaceUpdate
func (*AppReplaceUpdate) FromSandboxAppReplaceUpdate ¶
func (t *AppReplaceUpdate) FromSandboxAppReplaceUpdate(v SandboxAppReplaceUpdate) error
FromSandboxAppReplaceUpdate overwrites any union data inside the AppReplaceUpdate as the provided SandboxAppReplaceUpdate
func (*AppReplaceUpdate) FromStripeAppReplaceUpdate ¶
func (t *AppReplaceUpdate) FromStripeAppReplaceUpdate(v StripeAppReplaceUpdate) error
FromStripeAppReplaceUpdate overwrites any union data inside the AppReplaceUpdate as the provided StripeAppReplaceUpdate
func (AppReplaceUpdate) MarshalJSON ¶
func (t AppReplaceUpdate) MarshalJSON() ([]byte, error)
func (*AppReplaceUpdate) MergeCustomInvoicingAppReplaceUpdate ¶
func (t *AppReplaceUpdate) MergeCustomInvoicingAppReplaceUpdate(v CustomInvoicingAppReplaceUpdate) error
MergeCustomInvoicingAppReplaceUpdate performs a merge with any union data inside the AppReplaceUpdate, using the provided CustomInvoicingAppReplaceUpdate
func (*AppReplaceUpdate) MergeSandboxAppReplaceUpdate ¶
func (t *AppReplaceUpdate) MergeSandboxAppReplaceUpdate(v SandboxAppReplaceUpdate) error
MergeSandboxAppReplaceUpdate performs a merge with any union data inside the AppReplaceUpdate, using the provided SandboxAppReplaceUpdate
func (*AppReplaceUpdate) MergeStripeAppReplaceUpdate ¶
func (t *AppReplaceUpdate) MergeStripeAppReplaceUpdate(v StripeAppReplaceUpdate) error
MergeStripeAppReplaceUpdate performs a merge with any union data inside the AppReplaceUpdate, using the provided StripeAppReplaceUpdate
func (*AppReplaceUpdate) UnmarshalJSON ¶
func (t *AppReplaceUpdate) UnmarshalJSON(b []byte) error
func (AppReplaceUpdate) ValueByDiscriminator ¶
func (t AppReplaceUpdate) ValueByDiscriminator() (interface{}, error)
type AppStatus ¶
type AppStatus string
AppStatus App installed status.
const ( AppStatusReady AppStatus = "ready" )
Defines values for AppStatus.
type AppStripeWebhookJSONRequestBody ¶
type AppStripeWebhookJSONRequestBody = StripeWebhookEvent
AppStripeWebhookJSONRequestBody defines body for AppStripeWebhook for application/json ContentType.
type AppStripeWebhookResponse ¶
type AppStripeWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *StripeWebhookResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseAppStripeWebhookResponse ¶
func ParseAppStripeWebhookResponse(rsp *http.Response) (*AppStripeWebhookResponse, error)
ParseAppStripeWebhookResponse parses an HTTP response from a AppStripeWebhookWithResponse call
func (AppStripeWebhookResponse) Status ¶
func (r AppStripeWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (AppStripeWebhookResponse) StatusCode ¶
func (r AppStripeWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApproveInvoiceActionResponse ¶
type ApproveInvoiceActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseApproveInvoiceActionResponse ¶
func ParseApproveInvoiceActionResponse(rsp *http.Response) (*ApproveInvoiceActionResponse, error)
ParseApproveInvoiceActionResponse parses an HTTP response from a ApproveInvoiceActionWithResponse call
func (ApproveInvoiceActionResponse) Status ¶
func (r ApproveInvoiceActionResponse) Status() string
Status returns HTTPResponse.Status
func (ApproveInvoiceActionResponse) StatusCode ¶
func (r ApproveInvoiceActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ArchiveAddonResponse ¶
type ArchiveAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Addon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseArchiveAddonResponse ¶
func ParseArchiveAddonResponse(rsp *http.Response) (*ArchiveAddonResponse, error)
ParseArchiveAddonResponse parses an HTTP response from a ArchiveAddonWithResponse call
func (ArchiveAddonResponse) Status ¶
func (r ArchiveAddonResponse) Status() string
Status returns HTTPResponse.Status
func (ArchiveAddonResponse) StatusCode ¶
func (r ArchiveAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ArchivePlanResponse ¶
type ArchivePlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Plan
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseArchivePlanResponse ¶
func ParseArchivePlanResponse(rsp *http.Response) (*ArchivePlanResponse, error)
ParseArchivePlanResponse parses an HTTP response from a ArchivePlanWithResponse call
func (ArchivePlanResponse) Status ¶
func (r ArchivePlanResponse) Status() string
Status returns HTTPResponse.Status
func (ArchivePlanResponse) StatusCode ¶
func (r ArchivePlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BadRequestProblemResponse ¶
type BadRequestProblemResponse = UnexpectedProblemResponse
BadRequestProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type BalanceHistoryWindow ¶
type BalanceHistoryWindow struct {
// BalanceAtStart The entitlement balance at the start of the period.
BalanceAtStart float64 `json:"balanceAtStart"`
// Period A period with a start and end time.
Period Period `json:"period"`
// Usage The total usage of the feature in the period.
Usage float64 `json:"usage"`
}
BalanceHistoryWindow The balance history window.
type BillingCustomerProfile ¶
type BillingCustomerProfile struct {
// Apps The applications used by this billing profile.
//
// Expand settings govern if this includes the whole app object or just the ID references.
Apps BillingProfileAppsOrReference `json:"apps"`
// Supplier The name and contact information for the supplier this billing profile represents
Supplier BillingParty `json:"supplier"`
// Workflow The billing workflow settings for this profile
Workflow BillingWorkflow `json:"workflow"`
}
BillingCustomerProfile Customer specific merged profile.
This profile is calculated from the customer override and the billing profile it references or the default.
Thus this does not have any kind of resource fields, only the calculated values.
type BillingDiscountPercentage ¶
type BillingDiscountPercentage struct {
// CorrelationId Correlation ID for the discount.
//
// This is used to link discounts across different invoices (progressive billing use case).
//
// If not provided, the invoicing engine will auto-generate one. When editing an invoice line,
// please make sure to keep the same correlation ID of the discount or in progressive billing
// setups the discount amounts might be incorrect.
CorrelationId *string `json:"correlationId,omitempty"`
// Percentage The percentage of the discount.
Percentage Percentage `json:"percentage"`
}
BillingDiscountPercentage A percentage discount.
type BillingDiscountReason ¶
type BillingDiscountReason struct {
// contains filtered or unexported fields
}
BillingDiscountReason The reason for the discount.
func (BillingDiscountReason) AsDiscountReasonMaximumSpend ¶
func (t BillingDiscountReason) AsDiscountReasonMaximumSpend() (DiscountReasonMaximumSpend, error)
AsDiscountReasonMaximumSpend returns the union data inside the BillingDiscountReason as a DiscountReasonMaximumSpend
func (BillingDiscountReason) AsDiscountReasonRatecardPercentage ¶
func (t BillingDiscountReason) AsDiscountReasonRatecardPercentage() (DiscountReasonRatecardPercentage, error)
AsDiscountReasonRatecardPercentage returns the union data inside the BillingDiscountReason as a DiscountReasonRatecardPercentage
func (BillingDiscountReason) AsDiscountReasonRatecardUsage ¶
func (t BillingDiscountReason) AsDiscountReasonRatecardUsage() (DiscountReasonRatecardUsage, error)
AsDiscountReasonRatecardUsage returns the union data inside the BillingDiscountReason as a DiscountReasonRatecardUsage
func (BillingDiscountReason) Discriminator ¶
func (t BillingDiscountReason) Discriminator() (string, error)
func (*BillingDiscountReason) FromDiscountReasonMaximumSpend ¶
func (t *BillingDiscountReason) FromDiscountReasonMaximumSpend(v DiscountReasonMaximumSpend) error
FromDiscountReasonMaximumSpend overwrites any union data inside the BillingDiscountReason as the provided DiscountReasonMaximumSpend
func (*BillingDiscountReason) FromDiscountReasonRatecardPercentage ¶
func (t *BillingDiscountReason) FromDiscountReasonRatecardPercentage(v DiscountReasonRatecardPercentage) error
FromDiscountReasonRatecardPercentage overwrites any union data inside the BillingDiscountReason as the provided DiscountReasonRatecardPercentage
func (*BillingDiscountReason) FromDiscountReasonRatecardUsage ¶
func (t *BillingDiscountReason) FromDiscountReasonRatecardUsage(v DiscountReasonRatecardUsage) error
FromDiscountReasonRatecardUsage overwrites any union data inside the BillingDiscountReason as the provided DiscountReasonRatecardUsage
func (BillingDiscountReason) MarshalJSON ¶
func (t BillingDiscountReason) MarshalJSON() ([]byte, error)
func (*BillingDiscountReason) MergeDiscountReasonMaximumSpend ¶
func (t *BillingDiscountReason) MergeDiscountReasonMaximumSpend(v DiscountReasonMaximumSpend) error
MergeDiscountReasonMaximumSpend performs a merge with any union data inside the BillingDiscountReason, using the provided DiscountReasonMaximumSpend
func (*BillingDiscountReason) MergeDiscountReasonRatecardPercentage ¶
func (t *BillingDiscountReason) MergeDiscountReasonRatecardPercentage(v DiscountReasonRatecardPercentage) error
MergeDiscountReasonRatecardPercentage performs a merge with any union data inside the BillingDiscountReason, using the provided DiscountReasonRatecardPercentage
func (*BillingDiscountReason) MergeDiscountReasonRatecardUsage ¶
func (t *BillingDiscountReason) MergeDiscountReasonRatecardUsage(v DiscountReasonRatecardUsage) error
MergeDiscountReasonRatecardUsage performs a merge with any union data inside the BillingDiscountReason, using the provided DiscountReasonRatecardUsage
func (*BillingDiscountReason) UnmarshalJSON ¶
func (t *BillingDiscountReason) UnmarshalJSON(b []byte) error
func (BillingDiscountReason) ValueByDiscriminator ¶
func (t BillingDiscountReason) ValueByDiscriminator() (interface{}, error)
type BillingDiscountUsage ¶
type BillingDiscountUsage struct {
// CorrelationId Correlation ID for the discount.
//
// This is used to link discounts across different invoices (progressive billing use case).
//
// If not provided, the invoicing engine will auto-generate one. When editing an invoice line,
// please make sure to keep the same correlation ID of the discount or in progressive billing
// setups the discount amounts might be incorrect.
CorrelationId *string `json:"correlationId,omitempty"`
// Quantity The quantity of the usage discount.
//
// Must be positive.
Quantity Numeric `json:"quantity"`
}
BillingDiscountUsage A usage discount.
type BillingDiscounts ¶
type BillingDiscounts struct {
// Percentage The percentage discount.
Percentage *BillingDiscountPercentage `json:"percentage,omitempty"`
// Usage The usage discount.
Usage *BillingDiscountUsage `json:"usage,omitempty"`
}
BillingDiscounts A discount by type.
type BillingInvoiceCustomerExtendedDetails ¶
type BillingInvoiceCustomerExtendedDetails struct {
// Addresses Regular post addresses for where information should be sent if needed.
Addresses *[]Address `json:"addresses,omitempty"`
// Id Unique identifier for the party (if available)
Id *string `json:"id,omitempty"`
// Key An optional unique key of the party (if available)
Key *string `json:"key,omitempty"`
// Name Legal name or representation of the organization.
Name *string `json:"name,omitempty"`
// TaxId The entity's legal ID code used for tax purposes. They may have
// other numbers, but we're only interested in those valid for tax purposes.
TaxId *BillingPartyTaxIdentity `json:"taxId,omitempty"`
// UsageAttribution Mapping to attribute metered usage to the customer
UsageAttribution CustomerUsageAttribution `json:"usageAttribution"`
}
BillingInvoiceCustomerExtendedDetails BillingInvoiceCustomerExtendedDetails is a collection of fields that are used to extend the billing party details for invoices.
These fields contain the OpenMeter specific details for the customer, that are not strictly required for the invoice itself.
type BillingParty ¶
type BillingParty struct {
// Addresses Regular post addresses for where information should be sent if needed.
Addresses *[]Address `json:"addresses,omitempty"`
// Id Unique identifier for the party (if available)
Id *string `json:"id,omitempty"`
// Key An optional unique key of the party (if available)
Key *string `json:"key,omitempty"`
// Name Legal name or representation of the organization.
Name *string `json:"name,omitempty"`
// TaxId The entity's legal ID code used for tax purposes. They may have
// other numbers, but we're only interested in those valid for tax purposes.
TaxId *BillingPartyTaxIdentity `json:"taxId,omitempty"`
}
BillingParty Party represents a person or business entity.
type BillingPartyReplaceUpdate ¶
type BillingPartyReplaceUpdate struct {
// Addresses Regular post addresses for where information should be sent if needed.
Addresses *[]Address `json:"addresses,omitempty"`
// Key An optional unique key of the party (if available)
Key *string `json:"key,omitempty"`
// Name Legal name or representation of the organization.
Name *string `json:"name,omitempty"`
// TaxId The entity's legal ID code used for tax purposes. They may have
// other numbers, but we're only interested in those valid for tax purposes.
TaxId *BillingPartyTaxIdentity `json:"taxId,omitempty"`
}
BillingPartyReplaceUpdate Resource update operation model.
type BillingPartyTaxIdentity ¶
type BillingPartyTaxIdentity struct {
// Code Normalized tax code shown on the original identity document.
Code *BillingTaxIdentificationCode `json:"code,omitempty"`
}
BillingPartyTaxIdentity Identity stores the details required to identify an entity for tax purposes in a specific country.
type BillingProfile ¶
type BillingProfile struct {
// Apps The applications used by this billing profile.
//
// Expand settings govern if this includes the whole app object or just the ID references.
Apps BillingProfileAppsOrReference `json:"apps"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Default Is this the default profile?
Default bool `json:"default"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Supplier The name and contact information for the supplier this billing profile represents
Supplier BillingParty `json:"supplier"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// Workflow The billing workflow settings for this profile
Workflow BillingWorkflow `json:"workflow"`
}
BillingProfile BillingProfile represents a billing profile
type BillingProfileAppReferences ¶
type BillingProfileAppReferences struct {
// Invoicing The invoicing app used for this workflow
Invoicing AppReference `json:"invoicing"`
// Payment The payment app used for this workflow
Payment AppReference `json:"payment"`
// Tax The tax app used for this workflow
Tax AppReference `json:"tax"`
}
BillingProfileAppReferences BillingProfileAppReferences represents the references (id, type) to the apps used by a billing profile
type BillingProfileApps ¶
type BillingProfileApps struct {
// Invoicing The invoicing app used for this workflow
Invoicing App `json:"invoicing"`
// Payment The payment app used for this workflow
Payment App `json:"payment"`
// Tax The tax app used for this workflow
Tax App `json:"tax"`
}
BillingProfileApps BillingProfileApps represents the applications used by a billing profile
type BillingProfileAppsCreate ¶
type BillingProfileAppsCreate struct {
// Invoicing The invoicing app used for this workflow
Invoicing string `json:"invoicing"`
// Payment The payment app used for this workflow
Payment string `json:"payment"`
// Tax The tax app used for this workflow
Tax string `json:"tax"`
}
BillingProfileAppsCreate BillingProfileAppsCreate represents the input for creating a billing profile's apps
type BillingProfileAppsOrReference ¶
type BillingProfileAppsOrReference struct {
// contains filtered or unexported fields
}
BillingProfileAppsOrReference ProfileAppsOrReference represents the union of ProfileApps and ProfileAppReferences for a billing profile.
func (BillingProfileAppsOrReference) AsBillingProfileAppReferences ¶
func (t BillingProfileAppsOrReference) AsBillingProfileAppReferences() (BillingProfileAppReferences, error)
AsBillingProfileAppReferences returns the union data inside the BillingProfileAppsOrReference as a BillingProfileAppReferences
func (BillingProfileAppsOrReference) AsBillingProfileApps ¶
func (t BillingProfileAppsOrReference) AsBillingProfileApps() (BillingProfileApps, error)
AsBillingProfileApps returns the union data inside the BillingProfileAppsOrReference as a BillingProfileApps
func (*BillingProfileAppsOrReference) FromBillingProfileAppReferences ¶
func (t *BillingProfileAppsOrReference) FromBillingProfileAppReferences(v BillingProfileAppReferences) error
FromBillingProfileAppReferences overwrites any union data inside the BillingProfileAppsOrReference as the provided BillingProfileAppReferences
func (*BillingProfileAppsOrReference) FromBillingProfileApps ¶
func (t *BillingProfileAppsOrReference) FromBillingProfileApps(v BillingProfileApps) error
FromBillingProfileApps overwrites any union data inside the BillingProfileAppsOrReference as the provided BillingProfileApps
func (BillingProfileAppsOrReference) MarshalJSON ¶
func (t BillingProfileAppsOrReference) MarshalJSON() ([]byte, error)
func (*BillingProfileAppsOrReference) MergeBillingProfileAppReferences ¶
func (t *BillingProfileAppsOrReference) MergeBillingProfileAppReferences(v BillingProfileAppReferences) error
MergeBillingProfileAppReferences performs a merge with any union data inside the BillingProfileAppsOrReference, using the provided BillingProfileAppReferences
func (*BillingProfileAppsOrReference) MergeBillingProfileApps ¶
func (t *BillingProfileAppsOrReference) MergeBillingProfileApps(v BillingProfileApps) error
MergeBillingProfileApps performs a merge with any union data inside the BillingProfileAppsOrReference, using the provided BillingProfileApps
func (*BillingProfileAppsOrReference) UnmarshalJSON ¶
func (t *BillingProfileAppsOrReference) UnmarshalJSON(b []byte) error
type BillingProfileCreate ¶
type BillingProfileCreate struct {
// Apps The apps used by this billing profile.
Apps BillingProfileAppsCreate `json:"apps"`
// Default Is this the default profile?
Default bool `json:"default"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Supplier The name and contact information for the supplier this billing profile represents
Supplier BillingParty `json:"supplier"`
// Workflow The billing workflow settings for this profile.
Workflow BillingWorkflowCreate `json:"workflow"`
}
BillingProfileCreate BillingProfileCreate represents the input for creating a billing profile
type BillingProfileCustomerOverride ¶
type BillingProfileCustomerOverride struct {
// BillingProfileId The billing profile this override is associated with.
//
// If empty the default profile is looked up dynamically.
BillingProfileId *string `json:"billingProfileId,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CustomerId The customer id this override is associated with.
CustomerId string `json:"customerId"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
BillingProfileCustomerOverride Customer override values.
type BillingProfileCustomerOverrideCreate ¶
type BillingProfileCustomerOverrideCreate struct {
// BillingProfileId The billing profile this override is associated with.
//
// If not provided, the default billing profile is chosen if available.
BillingProfileId *string `json:"billingProfileId,omitempty"`
}
BillingProfileCustomerOverrideCreate Payload for creating a new or updating an existing customer override.
type BillingProfileCustomerOverrideExpand ¶
type BillingProfileCustomerOverrideExpand string
BillingProfileCustomerOverrideExpand CustomerOverrideExpand specifies the parts of the profile to expand.
const ( BillingProfileCustomerOverrideExpandApps BillingProfileCustomerOverrideExpand = "apps" BillingProfileCustomerOverrideExpandCustomer BillingProfileCustomerOverrideExpand = "customer" )
Defines values for BillingProfileCustomerOverrideExpand.
type BillingProfileCustomerOverrideOrderBy ¶
type BillingProfileCustomerOverrideOrderBy string
BillingProfileCustomerOverrideOrderBy Order by options for customers.
const ( BillingProfileCustomerOverrideOrderByCustomerCreatedAt BillingProfileCustomerOverrideOrderBy = "customerCreatedAt" BillingProfileCustomerOverrideOrderByCustomerId BillingProfileCustomerOverrideOrderBy = "customerId" BillingProfileCustomerOverrideOrderByCustomerKey BillingProfileCustomerOverrideOrderBy = "customerKey" BillingProfileCustomerOverrideOrderByCustomerName BillingProfileCustomerOverrideOrderBy = "customerName" BillingProfileCustomerOverrideOrderByCustomerPrimaryEmail BillingProfileCustomerOverrideOrderBy = "customerPrimaryEmail" )
Defines values for BillingProfileCustomerOverrideOrderBy.
type BillingProfileCustomerOverrideOrderByOrderingOrder ¶
type BillingProfileCustomerOverrideOrderByOrderingOrder = SortOrder
BillingProfileCustomerOverrideOrderByOrderingOrder The order direction.
type BillingProfileCustomerOverrideOrderByOrderingOrderBy ¶
type BillingProfileCustomerOverrideOrderByOrderingOrderBy = BillingProfileCustomerOverrideOrderBy
BillingProfileCustomerOverrideOrderByOrderingOrderBy Order by options for customers.
type BillingProfileCustomerOverrideWithDetails ¶
type BillingProfileCustomerOverrideWithDetails struct {
// BaseBillingProfileId The billing profile the customerProfile is associated with at the time of query.
//
// customerOverride contains the explicit mapping set in the customer override object. If that is
// empty, then the baseBillingProfileId is the default profile.
BaseBillingProfileId string `json:"baseBillingProfileId"`
// Customer The customer this override belongs to.
Customer *Customer `json:"customer,omitempty"`
// CustomerOverride The customer override values.
//
// If empty the merged values are calculated based on the default profile.
CustomerOverride *BillingProfileCustomerOverride `json:"customerOverride,omitempty"`
// CustomerProfile Merged billing profile with the customer specific overrides.
CustomerProfile *BillingCustomerProfile `json:"customerProfile,omitempty"`
}
BillingProfileCustomerOverrideWithDetails Customer specific workflow overrides.
type BillingProfileCustomerOverrideWithDetailsPaginatedResponse ¶
type BillingProfileCustomerOverrideWithDetailsPaginatedResponse struct {
// Items The items in the current page.
Items []BillingProfileCustomerOverrideWithDetails `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
BillingProfileCustomerOverrideWithDetailsPaginatedResponse Paginated response
type BillingProfileExpand ¶
type BillingProfileExpand string
BillingProfileExpand BillingProfileExpand details what profile fields to expand
const (
BillingProfileExpandApps BillingProfileExpand = "apps"
)
Defines values for BillingProfileExpand.
type BillingProfileListCustomerOverridesParamsBillingProfile ¶
type BillingProfileListCustomerOverridesParamsBillingProfile = []string
BillingProfileListCustomerOverridesParamsBillingProfile defines model for BillingProfileListCustomerOverridesParams.billingProfile.
type BillingProfileListCustomerOverridesParamsCustomerId ¶
type BillingProfileListCustomerOverridesParamsCustomerId = []string
BillingProfileListCustomerOverridesParamsCustomerId defines model for BillingProfileListCustomerOverridesParams.customerId.
type BillingProfileListCustomerOverridesParamsCustomerKey ¶
type BillingProfileListCustomerOverridesParamsCustomerKey = string
BillingProfileListCustomerOverridesParamsCustomerKey defines model for BillingProfileListCustomerOverridesParams.customerKey.
type BillingProfileListCustomerOverridesParamsCustomerName ¶
type BillingProfileListCustomerOverridesParamsCustomerName = string
BillingProfileListCustomerOverridesParamsCustomerName defines model for BillingProfileListCustomerOverridesParams.customerName.
type BillingProfileListCustomerOverridesParamsCustomerPrimaryEmail ¶
type BillingProfileListCustomerOverridesParamsCustomerPrimaryEmail = string
BillingProfileListCustomerOverridesParamsCustomerPrimaryEmail defines model for BillingProfileListCustomerOverridesParams.customerPrimaryEmail.
type BillingProfileListCustomerOverridesParamsCustomersWithoutPinnedProfile ¶
type BillingProfileListCustomerOverridesParamsCustomersWithoutPinnedProfile = bool
BillingProfileListCustomerOverridesParamsCustomersWithoutPinnedProfile defines model for BillingProfileListCustomerOverridesParams.customersWithoutPinnedProfile.
type BillingProfileListCustomerOverridesParamsExpand ¶
type BillingProfileListCustomerOverridesParamsExpand = []BillingProfileCustomerOverrideExpand
BillingProfileListCustomerOverridesParamsExpand defines model for BillingProfileListCustomerOverridesParams.expand.
type BillingProfileListCustomerOverridesParamsIncludeAllCustomers ¶
type BillingProfileListCustomerOverridesParamsIncludeAllCustomers = bool
BillingProfileListCustomerOverridesParamsIncludeAllCustomers defines model for BillingProfileListCustomerOverridesParams.includeAllCustomers.
type BillingProfileOrderBy ¶
type BillingProfileOrderBy string
BillingProfileOrderBy BillingProfileOrderBy specifies the ordering options for profiles
const ( BillingProfileOrderByCreatedAt BillingProfileOrderBy = "createdAt" BillingProfileOrderByDefault BillingProfileOrderBy = "default" BillingProfileOrderByName BillingProfileOrderBy = "name" BillingProfileOrderByUpdatedAt BillingProfileOrderBy = "updatedAt" )
Defines values for BillingProfileOrderBy.
type BillingProfileOrderByOrderingOrder ¶
type BillingProfileOrderByOrderingOrder = SortOrder
BillingProfileOrderByOrderingOrder The order direction.
type BillingProfileOrderByOrderingOrderBy ¶
type BillingProfileOrderByOrderingOrderBy = BillingProfileOrderBy
BillingProfileOrderByOrderingOrderBy BillingProfileOrderBy specifies the ordering options for profiles
type BillingProfilePaginatedResponse ¶
type BillingProfilePaginatedResponse struct {
// Items The items in the current page.
Items []BillingProfile `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
BillingProfilePaginatedResponse Paginated response
type BillingProfileReplaceUpdateWithWorkflow ¶
type BillingProfileReplaceUpdateWithWorkflow struct {
// Default Is this the default profile?
Default bool `json:"default"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Supplier The name and contact information for the supplier this billing profile represents
Supplier BillingParty `json:"supplier"`
// Workflow The billing workflow settings for this profile.
Workflow BillingWorkflow `json:"workflow"`
}
BillingProfileReplaceUpdateWithWorkflow BillingProfileReplaceUpdate represents the input for updating a billing profile
The apps field cannot be updated directly, if an app change is desired a new profile should be created.
type BillingTaxIdentificationCode ¶
type BillingTaxIdentificationCode = string
BillingTaxIdentificationCode TaxIdentificationCode is a normalized tax code shown on the original identity document.
type BillingWorkflow ¶
type BillingWorkflow struct {
// Collection The collection settings for this workflow
Collection *BillingWorkflowCollectionSettings `json:"collection,omitempty"`
// Invoicing The invoicing settings for this workflow
Invoicing *BillingWorkflowInvoicingSettings `json:"invoicing,omitempty"`
// Payment The payment settings for this workflow
Payment *BillingWorkflowPaymentSettings `json:"payment,omitempty"`
// Tax The tax settings for this workflow
Tax *BillingWorkflowTaxSettings `json:"tax,omitempty"`
}
BillingWorkflow BillingWorkflow represents the settings for a billing workflow.
type BillingWorkflowCollectionAlignment ¶
type BillingWorkflowCollectionAlignment struct {
// contains filtered or unexported fields
}
BillingWorkflowCollectionAlignment The alignment for collecting the pending line items into an invoice.
Defaults to subscription, which means that we are to create a new invoice every time the a subscription period starts (for in advance items) or ends (for in arrears items).
func (BillingWorkflowCollectionAlignment) AsBillingWorkflowCollectionAlignmentAnchored ¶
func (t BillingWorkflowCollectionAlignment) AsBillingWorkflowCollectionAlignmentAnchored() (BillingWorkflowCollectionAlignmentAnchored, error)
AsBillingWorkflowCollectionAlignmentAnchored returns the union data inside the BillingWorkflowCollectionAlignment as a BillingWorkflowCollectionAlignmentAnchored
func (BillingWorkflowCollectionAlignment) AsBillingWorkflowCollectionAlignmentSubscription ¶
func (t BillingWorkflowCollectionAlignment) AsBillingWorkflowCollectionAlignmentSubscription() (BillingWorkflowCollectionAlignmentSubscription, error)
AsBillingWorkflowCollectionAlignmentSubscription returns the union data inside the BillingWorkflowCollectionAlignment as a BillingWorkflowCollectionAlignmentSubscription
func (BillingWorkflowCollectionAlignment) Discriminator ¶
func (t BillingWorkflowCollectionAlignment) Discriminator() (string, error)
func (*BillingWorkflowCollectionAlignment) FromBillingWorkflowCollectionAlignmentAnchored ¶
func (t *BillingWorkflowCollectionAlignment) FromBillingWorkflowCollectionAlignmentAnchored(v BillingWorkflowCollectionAlignmentAnchored) error
FromBillingWorkflowCollectionAlignmentAnchored overwrites any union data inside the BillingWorkflowCollectionAlignment as the provided BillingWorkflowCollectionAlignmentAnchored
func (*BillingWorkflowCollectionAlignment) FromBillingWorkflowCollectionAlignmentSubscription ¶
func (t *BillingWorkflowCollectionAlignment) FromBillingWorkflowCollectionAlignmentSubscription(v BillingWorkflowCollectionAlignmentSubscription) error
FromBillingWorkflowCollectionAlignmentSubscription overwrites any union data inside the BillingWorkflowCollectionAlignment as the provided BillingWorkflowCollectionAlignmentSubscription
func (BillingWorkflowCollectionAlignment) MarshalJSON ¶
func (t BillingWorkflowCollectionAlignment) MarshalJSON() ([]byte, error)
func (*BillingWorkflowCollectionAlignment) MergeBillingWorkflowCollectionAlignmentAnchored ¶
func (t *BillingWorkflowCollectionAlignment) MergeBillingWorkflowCollectionAlignmentAnchored(v BillingWorkflowCollectionAlignmentAnchored) error
MergeBillingWorkflowCollectionAlignmentAnchored performs a merge with any union data inside the BillingWorkflowCollectionAlignment, using the provided BillingWorkflowCollectionAlignmentAnchored
func (*BillingWorkflowCollectionAlignment) MergeBillingWorkflowCollectionAlignmentSubscription ¶
func (t *BillingWorkflowCollectionAlignment) MergeBillingWorkflowCollectionAlignmentSubscription(v BillingWorkflowCollectionAlignmentSubscription) error
MergeBillingWorkflowCollectionAlignmentSubscription performs a merge with any union data inside the BillingWorkflowCollectionAlignment, using the provided BillingWorkflowCollectionAlignmentSubscription
func (*BillingWorkflowCollectionAlignment) UnmarshalJSON ¶
func (t *BillingWorkflowCollectionAlignment) UnmarshalJSON(b []byte) error
func (BillingWorkflowCollectionAlignment) ValueByDiscriminator ¶
func (t BillingWorkflowCollectionAlignment) ValueByDiscriminator() (interface{}, error)
type BillingWorkflowCollectionAlignmentAnchored ¶
type BillingWorkflowCollectionAlignmentAnchored struct {
// RecurringPeriod The recurring period for the alignment.
RecurringPeriod RecurringPeriodV2 `json:"recurringPeriod"`
// Type The type of alignment.
Type BillingWorkflowCollectionAlignmentAnchoredType `json:"type"`
}
BillingWorkflowCollectionAlignmentAnchored BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items into an invoice.
type BillingWorkflowCollectionAlignmentAnchoredType ¶
type BillingWorkflowCollectionAlignmentAnchoredType string
BillingWorkflowCollectionAlignmentAnchoredType The type of alignment.
const (
BillingWorkflowCollectionAlignmentAnchoredTypeAnchored BillingWorkflowCollectionAlignmentAnchoredType = "anchored"
)
Defines values for BillingWorkflowCollectionAlignmentAnchoredType.
type BillingWorkflowCollectionAlignmentSubscription ¶
type BillingWorkflowCollectionAlignmentSubscription struct {
// Type The type of alignment.
Type BillingWorkflowCollectionAlignmentSubscriptionType `json:"type"`
}
BillingWorkflowCollectionAlignmentSubscription BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items into an invoice.
type BillingWorkflowCollectionAlignmentSubscriptionType ¶
type BillingWorkflowCollectionAlignmentSubscriptionType string
BillingWorkflowCollectionAlignmentSubscriptionType The type of alignment.
const (
BillingWorkflowCollectionAlignmentSubscriptionTypeSubscription BillingWorkflowCollectionAlignmentSubscriptionType = "subscription"
)
Defines values for BillingWorkflowCollectionAlignmentSubscriptionType.
type BillingWorkflowCollectionSettings ¶
type BillingWorkflowCollectionSettings struct {
// Alignment The alignment for collecting the pending line items into an invoice.
Alignment *BillingWorkflowCollectionAlignment `json:"alignment,omitempty"`
// Interval This grace period can be used to delay the collection of the pending line items specified in
// alignment.
//
// This is useful, in case of multiple subscriptions having slightly different billing periods.
Interval *string `json:"interval,omitempty"`
}
BillingWorkflowCollectionSettings Workflow collection specifies how to collect the pending line items for an invoice
type BillingWorkflowCreate ¶
type BillingWorkflowCreate struct {
// Collection The collection settings for this workflow
Collection *BillingWorkflowCollectionSettings `json:"collection,omitempty"`
// Invoicing The invoicing settings for this workflow
Invoicing *BillingWorkflowInvoicingSettings `json:"invoicing,omitempty"`
// Payment The payment settings for this workflow
Payment *BillingWorkflowPaymentSettings `json:"payment,omitempty"`
// Tax The tax settings for this workflow
Tax *BillingWorkflowTaxSettings `json:"tax,omitempty"`
}
BillingWorkflowCreate Resource create operation model.
type BillingWorkflowInvoicingSettings ¶
type BillingWorkflowInvoicingSettings struct {
// AutoAdvance Whether to automatically issue the invoice after the draftPeriod has passed.
AutoAdvance *bool `json:"autoAdvance,omitempty"`
// DefaultTaxConfig Default tax configuration to apply to the invoices.
DefaultTaxConfig *TaxConfig `json:"defaultTaxConfig,omitempty"`
// DraftPeriod The period for the invoice to be kept in draft status for manual reviews.
DraftPeriod *string `json:"draftPeriod,omitempty"`
// DueAfter The period after which the invoice is due.
// With some payment solutions it's only applicable for manual collection method.
DueAfter *string `json:"dueAfter,omitempty"`
// ProgressiveBilling Should progressive billing be allowed for this workflow?
ProgressiveBilling *bool `json:"progressiveBilling,omitempty"`
}
BillingWorkflowInvoicingSettings BillingWorkflowInvoicingSettings represents the invoice settings for a billing workflow
type BillingWorkflowPaymentSettings ¶
type BillingWorkflowPaymentSettings struct {
// CollectionMethod The payment method for the invoice.
CollectionMethod *CollectionMethod `json:"collectionMethod,omitempty"`
}
BillingWorkflowPaymentSettings BillingWorkflowPaymentSettings represents the payment settings for a billing workflow
type BillingWorkflowTaxSettings ¶
type BillingWorkflowTaxSettings struct {
// Enabled Enable automatic tax calculation when tax is supported by the app.
// For example, with Stripe Invoicing when enabled, tax is calculated via Stripe Tax.
Enabled *bool `json:"enabled,omitempty"`
// Enforced Enforce tax calculation when tax is supported by the app.
// When enabled, OpenMeter will not allow to create an invoice without tax calculation.
// Enforcement is different per apps, for example, Stripe app requires customer
// to have a tax location when starting a paid subscription.
Enforced *bool `json:"enforced,omitempty"`
}
BillingWorkflowTaxSettings BillingWorkflowTaxSettings represents the tax settings for a billing workflow
type CancelSubscriptionJSONBody ¶
type CancelSubscriptionJSONBody struct {
// Timing If not provided the subscription is canceled immediately.
Timing *SubscriptionTiming `json:"timing,omitempty"`
}
CancelSubscriptionJSONBody defines parameters for CancelSubscription.
type CancelSubscriptionJSONRequestBody ¶
type CancelSubscriptionJSONRequestBody CancelSubscriptionJSONBody
CancelSubscriptionJSONRequestBody defines body for CancelSubscription for application/json ContentType.
type CancelSubscriptionResponse ¶
type CancelSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Subscription
ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *SubscriptionConflictErrorResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCancelSubscriptionResponse ¶
func ParseCancelSubscriptionResponse(rsp *http.Response) (*CancelSubscriptionResponse, error)
ParseCancelSubscriptionResponse parses an HTTP response from a CancelSubscriptionWithResponse call
func (CancelSubscriptionResponse) Status ¶
func (r CancelSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (CancelSubscriptionResponse) StatusCode ¶
func (r CancelSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ChangeSubscriptionJSONRequestBody ¶
type ChangeSubscriptionJSONRequestBody = SubscriptionChange
ChangeSubscriptionJSONRequestBody defines body for ChangeSubscription for application/json ContentType.
type ChangeSubscriptionResponse ¶
type ChangeSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SubscriptionChangeResponseBody
ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *SubscriptionConflictErrorResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseChangeSubscriptionResponse ¶
func ParseChangeSubscriptionResponse(rsp *http.Response) (*ChangeSubscriptionResponse, error)
ParseChangeSubscriptionResponse parses an HTTP response from a ChangeSubscriptionWithResponse call
func (ChangeSubscriptionResponse) Status ¶
func (r ChangeSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (ChangeSubscriptionResponse) StatusCode ¶
func (r ChangeSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CheckoutSessionCustomTextAfterSubmitParams ¶
type CheckoutSessionCustomTextAfterSubmitParams struct {
// AfterSubmit Custom text that should be displayed after the payment confirmation button.
AfterSubmit *struct {
Message *string `json:"message,omitempty"`
} `json:"afterSubmit,omitempty"`
// ShippingAddress Custom text that should be displayed alongside shipping address collection.
ShippingAddress *struct {
Message *string `json:"message,omitempty"`
} `json:"shippingAddress,omitempty"`
// Submit Custom text that should be displayed alongside the payment confirmation button.
Submit *struct {
Message *string `json:"message,omitempty"`
} `json:"submit,omitempty"`
// TermsOfServiceAcceptance Custom text that should be displayed in place of the default terms of service agreement text.
TermsOfServiceAcceptance *struct {
Message *string `json:"message,omitempty"`
} `json:"termsOfServiceAcceptance,omitempty"`
}
CheckoutSessionCustomTextAfterSubmitParams Stripe CheckoutSession.custom_text
type CheckoutSessionUIMode ¶
type CheckoutSessionUIMode string
CheckoutSessionUIMode Stripe CheckoutSession.ui_mode
const ( CheckoutSessionUIModeEmbedded CheckoutSessionUIMode = "embedded" CheckoutSessionUIModeHosted CheckoutSessionUIMode = "hosted" )
Defines values for CheckoutSessionUIMode.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewAuthClient ¶
func NewAuthClient(server string, apiSecret string, opts ...ClientOption) (*Client, error)
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AdvanceInvoiceAction ¶
func (*Client) AppCustomInvoicingDraftSynchronized ¶
func (c *Client) AppCustomInvoicingDraftSynchronized(ctx context.Context, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AppCustomInvoicingDraftSynchronizedWithBody ¶
func (*Client) AppCustomInvoicingIssuingSynchronized ¶
func (c *Client) AppCustomInvoicingIssuingSynchronized(ctx context.Context, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AppCustomInvoicingIssuingSynchronizedWithBody ¶
func (*Client) AppCustomInvoicingUpdatePaymentStatus ¶
func (c *Client) AppCustomInvoicingUpdatePaymentStatus(ctx context.Context, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AppCustomInvoicingUpdatePaymentStatusWithBody ¶
func (*Client) AppStripeWebhook ¶
func (c *Client) AppStripeWebhook(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AppStripeWebhookWithBody ¶
func (*Client) ApproveInvoiceAction ¶
func (*Client) ArchiveAddon ¶
func (*Client) ArchivePlan ¶
func (*Client) CancelSubscription ¶
func (c *Client) CancelSubscription(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CancelSubscriptionWithBody ¶
func (*Client) ChangeSubscription ¶
func (c *Client) ChangeSubscription(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ChangeSubscriptionWithBody ¶
func (*Client) CreateAddon ¶
func (c *Client) CreateAddon(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAddonWithBody ¶
func (*Client) CreateBillingProfile ¶
func (c *Client) CreateBillingProfile(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateBillingProfileWithBody ¶
func (*Client) CreateCustomer ¶
func (c *Client) CreateCustomer(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCustomerEntitlementGrantV2 ¶
func (c *Client) CreateCustomerEntitlementGrantV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCustomerEntitlementGrantV2WithBody ¶
func (*Client) CreateCustomerEntitlementV2 ¶
func (c *Client) CreateCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCustomerEntitlementV2WithBody ¶
func (*Client) CreateCustomerStripePortalSession ¶
func (c *Client) CreateCustomerStripePortalSession(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCustomerStripePortalSessionWithBody ¶
func (*Client) CreateCustomerWithBody ¶
func (*Client) CreateEntitlement ¶
func (c *Client) CreateEntitlement(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEntitlementWithBody ¶
func (*Client) CreateFeature ¶
func (c *Client) CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFeatureWithBody ¶
func (*Client) CreateGrant ¶
func (c *Client) CreateGrant(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateGrantWithBody ¶
func (*Client) CreateMeter ¶
func (c *Client) CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateMeterWithBody ¶
func (*Client) CreateNotificationChannel ¶
func (c *Client) CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateNotificationChannelWithBody ¶
func (*Client) CreateNotificationRule ¶
func (c *Client) CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateNotificationRuleWithBody ¶
func (*Client) CreatePendingInvoiceLine ¶
func (c *Client) CreatePendingInvoiceLine(ctx context.Context, customerId string, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePendingInvoiceLineWithBody ¶
func (*Client) CreatePlan ¶
func (c *Client) CreatePlan(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePlanAddon ¶
func (c *Client) CreatePlanAddon(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePlanAddonWithBody ¶
func (*Client) CreatePlanWithBody ¶
func (*Client) CreatePortalToken ¶
func (c *Client) CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePortalTokenWithBody ¶
func (*Client) CreateStripeCheckoutSession ¶
func (c *Client) CreateStripeCheckoutSession(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateStripeCheckoutSessionWithBody ¶
func (*Client) CreateSubscription ¶
func (c *Client) CreateSubscription(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSubscriptionAddon ¶
func (c *Client) CreateSubscriptionAddon(ctx context.Context, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSubscriptionAddonWithBody ¶
func (*Client) CreateSubscriptionWithBody ¶
func (*Client) DeleteAddon ¶
func (*Client) DeleteBillingProfile ¶
func (*Client) DeleteBillingProfileCustomerOverride ¶
func (*Client) DeleteCustomer ¶
func (c *Client) DeleteCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteCustomerAppData ¶
func (c *Client) DeleteCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteCustomerEntitlementV2 ¶
func (c *Client) DeleteCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteEntitlement ¶
func (*Client) DeleteFeature ¶
func (*Client) DeleteInvoice ¶
func (*Client) DeleteMeter ¶
func (*Client) DeleteNotificationChannel ¶
func (*Client) DeleteNotificationRule ¶
func (*Client) DeletePlan ¶
func (*Client) DeletePlanAddon ¶
func (*Client) DeleteSubject ¶
func (*Client) DeleteSubscription ¶
func (*Client) EditSubscription ¶
func (c *Client) EditSubscription(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditSubscriptionWithBody ¶
func (*Client) GetAddon ¶
func (c *Client) GetAddon(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBillingProfile ¶
func (c *Client) GetBillingProfile(ctx context.Context, id string, params *GetBillingProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBillingProfileCustomerOverride ¶
func (c *Client) GetBillingProfileCustomerOverride(ctx context.Context, customerId string, params *GetBillingProfileCustomerOverrideParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomer ¶
func (c *Client) GetCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomerAccess ¶
func (c *Client) GetCustomerAccess(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomerEntitlementHistoryV2 ¶
func (c *Client) GetCustomerEntitlementHistoryV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomerEntitlementV2 ¶
func (c *Client) GetCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomerEntitlementValue ¶
func (c *Client) GetCustomerEntitlementValue(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomerEntitlementValueV2 ¶
func (c *Client) GetCustomerEntitlementValueV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomerStripeAppData ¶
func (c *Client) GetCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDebugMetrics ¶
func (*Client) GetEntitlement ¶
func (*Client) GetEntitlementById ¶
func (*Client) GetEntitlementByIdV2 ¶
func (*Client) GetEntitlementHistory ¶
func (c *Client) GetEntitlementHistory(ctx context.Context, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEntitlementValue ¶
func (c *Client) GetEntitlementValue(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFeature ¶
func (*Client) GetInvoice ¶
func (c *Client) GetInvoice(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetMarketplaceListing ¶
func (*Client) GetNotificationChannel ¶
func (*Client) GetNotificationEvent ¶
func (*Client) GetNotificationRule ¶
func (*Client) GetPlan ¶
func (c *Client) GetPlan(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPlanAddon ¶
func (*Client) GetProgress ¶
func (*Client) GetSubject ¶
func (*Client) GetSubscription ¶
func (c *Client) GetSubscription(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSubscriptionAddon ¶
func (*Client) IngestEvent ¶
func (c *Client) IngestEvent(ctx context.Context, event Event, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEvents is a wrapper around generated client's IngestEventsWithApplicationCloudeventsPlusJSONBody
func (*Client) IngestEventBatch ¶
func (c *Client) IngestEventBatch(ctx context.Context, events []Event, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEvents is a wrapper around generated client's IngestEventsWithApplicationCloudeventsBatchPlusJSONBody
func (*Client) IngestEvents ¶
func (c *Client) IngestEvents(ctx context.Context, body IngestEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestEventsWithApplicationCloudeventsBatchPlusJSONBody ¶
func (c *Client) IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestEventsWithApplicationCloudeventsPlusJSONBody ¶
func (c *Client) IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestEventsWithBody ¶
func (*Client) InvalidatePortalTokens ¶
func (c *Client) InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InvalidatePortalTokensWithBody ¶
func (*Client) InvoicePendingLinesAction ¶
func (c *Client) InvoicePendingLinesAction(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InvoicePendingLinesActionWithBody ¶
func (*Client) ListAddons ¶
func (c *Client) ListAddons(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApps ¶
func (c *Client) ListApps(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListBillingProfileCustomerOverrides ¶
func (c *Client) ListBillingProfileCustomerOverrides(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListBillingProfiles ¶
func (c *Client) ListBillingProfiles(ctx context.Context, params *ListBillingProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCurrencies ¶
func (*Client) ListCustomerAppData ¶
func (c *Client) ListCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCustomerEntitlementGrantsV2 ¶
func (c *Client) ListCustomerEntitlementGrantsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCustomerEntitlementsV2 ¶
func (c *Client) ListCustomerEntitlementsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCustomerSubscriptions ¶
func (c *Client) ListCustomerSubscriptions(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCustomers ¶
func (c *Client) ListCustomers(ctx context.Context, params *ListCustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEntitlementGrants ¶
func (c *Client) ListEntitlementGrants(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEntitlements ¶
func (c *Client) ListEntitlements(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEntitlementsV2 ¶
func (c *Client) ListEntitlementsV2(ctx context.Context, params *ListEntitlementsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEvents ¶
func (c *Client) ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEventsV2 ¶
func (c *Client) ListEventsV2(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListFeatures ¶
func (c *Client) ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListGrants ¶
func (c *Client) ListGrants(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListGrantsV2 ¶
func (c *Client) ListGrantsV2(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInvoices ¶
func (c *Client) ListInvoices(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMarketplaceListings ¶
func (c *Client) ListMarketplaceListings(ctx context.Context, params *ListMarketplaceListingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMeterGroupByValues ¶
func (c *Client) ListMeterGroupByValues(ctx context.Context, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMeterSubjects ¶
func (c *Client) ListMeterSubjects(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMeters ¶
func (c *Client) ListMeters(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListNotificationChannels ¶
func (c *Client) ListNotificationChannels(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListNotificationEvents ¶
func (c *Client) ListNotificationEvents(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListNotificationRules ¶
func (c *Client) ListNotificationRules(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPlanAddons ¶
func (c *Client) ListPlanAddons(ctx context.Context, planId string, params *ListPlanAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPlans ¶
func (c *Client) ListPlans(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPortalTokens ¶
func (c *Client) ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSubjectEntitlements ¶
func (c *Client) ListSubjectEntitlements(ctx context.Context, subjectIdOrKey string, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSubjects ¶
func (*Client) ListSubscriptionAddons ¶
func (*Client) MarketplaceAppAPIKeyInstall ¶
func (c *Client) MarketplaceAppAPIKeyInstall(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarketplaceAppAPIKeyInstallWithBody ¶
func (*Client) MarketplaceAppInstall ¶
func (c *Client) MarketplaceAppInstall(ctx context.Context, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarketplaceAppInstallWithBody ¶
func (*Client) MarketplaceOAuth2InstallAuthorize ¶
func (c *Client) MarketplaceOAuth2InstallAuthorize(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarketplaceOAuth2InstallGetURL ¶
func (*Client) MigrateSubscription ¶
func (c *Client) MigrateSubscription(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MigrateSubscriptionWithBody ¶
func (*Client) OverrideCustomerEntitlementV2 ¶
func (c *Client) OverrideCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OverrideCustomerEntitlementV2WithBody ¶
func (c *Client) OverrideCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OverrideEntitlement ¶
func (c *Client) OverrideEntitlement(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OverrideEntitlementWithBody ¶
func (*Client) PublishAddon ¶
func (*Client) PublishPlan ¶
func (*Client) QueryMeter ¶
func (c *Client) QueryMeter(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryMeterPost ¶
func (c *Client) QueryMeterPost(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryMeterPostWithBody ¶
func (*Client) QueryPortalMeter ¶
func (c *Client) QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RecalculateInvoiceTaxAction ¶
func (*Client) ResendNotificationEvent ¶
func (c *Client) ResendNotificationEvent(ctx context.Context, eventId string, body ResendNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResendNotificationEventWithBody ¶
func (*Client) ResetCustomerEntitlementUsageV2 ¶
func (c *Client) ResetCustomerEntitlementUsageV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResetCustomerEntitlementUsageV2WithBody ¶
func (*Client) ResetEntitlementUsage ¶
func (c *Client) ResetEntitlementUsage(ctx context.Context, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResetEntitlementUsageWithBody ¶
func (*Client) RestoreSubscription ¶
func (*Client) RetryInvoiceAction ¶
func (*Client) SimulateInvoice ¶
func (c *Client) SimulateInvoice(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SimulateInvoiceWithBody ¶
func (*Client) SnapshotQuantitiesInvoiceAction ¶
func (*Client) TestNotificationRule ¶
func (*Client) UninstallApp ¶
func (*Client) UnscheduleCancelation ¶
func (*Client) UpdateAddon ¶
func (c *Client) UpdateAddon(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAddonWithBody ¶
func (*Client) UpdateApp ¶
func (c *Client) UpdateApp(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAppWithBody ¶
func (*Client) UpdateBillingProfile ¶
func (c *Client) UpdateBillingProfile(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateBillingProfileWithBody ¶
func (*Client) UpdateCustomer ¶
func (c *Client) UpdateCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCustomerWithBody ¶
func (*Client) UpdateInvoice ¶
func (c *Client) UpdateInvoice(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInvoiceWithBody ¶
func (*Client) UpdateMeter ¶
func (c *Client) UpdateMeter(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateMeterWithBody ¶
func (*Client) UpdateNotificationChannel ¶
func (c *Client) UpdateNotificationChannel(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateNotificationChannelWithBody ¶
func (*Client) UpdateNotificationRule ¶
func (c *Client) UpdateNotificationRule(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateNotificationRuleWithBody ¶
func (*Client) UpdatePlan ¶
func (c *Client) UpdatePlan(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePlanAddon ¶
func (c *Client) UpdatePlanAddon(ctx context.Context, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePlanAddonWithBody ¶
func (*Client) UpdatePlanWithBody ¶
func (*Client) UpdateStripeAPIKey ¶
func (c *Client) UpdateStripeAPIKey(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateStripeAPIKeyWithBody ¶
func (*Client) UpdateSubscriptionAddon ¶
func (c *Client) UpdateSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSubscriptionAddonWithBody ¶
func (*Client) UpsertBillingProfileCustomerOverride ¶
func (c *Client) UpsertBillingProfileCustomerOverride(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpsertBillingProfileCustomerOverrideWithBody ¶
func (*Client) UpsertCustomerAppData ¶
func (c *Client) UpsertCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpsertCustomerAppDataWithBody ¶
func (*Client) UpsertCustomerStripeAppData ¶
func (c *Client) UpsertCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpsertCustomerStripeAppDataWithBody ¶
func (*Client) UpsertSubject ¶
func (c *Client) UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpsertSubjectWithBody ¶
func (*Client) VoidInvoiceAction ¶
func (c *Client) VoidInvoiceAction(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientAppStartResponse ¶
type ClientAppStartResponse struct {
// Url The URL to start the OAuth2 authorization code grant flow.
Url string `json:"url"`
}
ClientAppStartResponse Response from the client app (OpenMeter backend) to start the OAuth2 flow.
type ClientInterface ¶
type ClientInterface interface {
// ListAddons request
ListAddons(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAddonWithBody request with any body
CreateAddonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAddon(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAddon request
DeleteAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAddon request
GetAddon(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAddonWithBody request with any body
UpdateAddonWithBody(ctx context.Context, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAddon(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ArchiveAddon request
ArchiveAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PublishAddon request
PublishAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApps request
ListApps(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AppCustomInvoicingDraftSynchronizedWithBody request with any body
AppCustomInvoicingDraftSynchronizedWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AppCustomInvoicingDraftSynchronized(ctx context.Context, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AppCustomInvoicingIssuingSynchronizedWithBody request with any body
AppCustomInvoicingIssuingSynchronizedWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AppCustomInvoicingIssuingSynchronized(ctx context.Context, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AppCustomInvoicingUpdatePaymentStatusWithBody request with any body
AppCustomInvoicingUpdatePaymentStatusWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AppCustomInvoicingUpdatePaymentStatus(ctx context.Context, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UninstallApp request
UninstallApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApp request
GetApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAppWithBody request with any body
UpdateAppWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateApp(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateStripeAPIKeyWithBody request with any body
UpdateStripeAPIKeyWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateStripeAPIKey(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AppStripeWebhookWithBody request with any body
AppStripeWebhookWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AppStripeWebhook(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBillingProfileCustomerOverrides request
ListBillingProfileCustomerOverrides(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteBillingProfileCustomerOverride request
DeleteBillingProfileCustomerOverride(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBillingProfileCustomerOverride request
GetBillingProfileCustomerOverride(ctx context.Context, customerId string, params *GetBillingProfileCustomerOverrideParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpsertBillingProfileCustomerOverrideWithBody request with any body
UpsertBillingProfileCustomerOverrideWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpsertBillingProfileCustomerOverride(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePendingInvoiceLineWithBody request with any body
CreatePendingInvoiceLineWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePendingInvoiceLine(ctx context.Context, customerId string, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SimulateInvoiceWithBody request with any body
SimulateInvoiceWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SimulateInvoice(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInvoices request
ListInvoices(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// InvoicePendingLinesActionWithBody request with any body
InvoicePendingLinesActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
InvoicePendingLinesAction(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteInvoice request
DeleteInvoice(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInvoice request
GetInvoice(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInvoiceWithBody request with any body
UpdateInvoiceWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInvoice(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdvanceInvoiceAction request
AdvanceInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApproveInvoiceAction request
ApproveInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetryInvoiceAction request
RetryInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// SnapshotQuantitiesInvoiceAction request
SnapshotQuantitiesInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RecalculateInvoiceTaxAction request
RecalculateInvoiceTaxAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// VoidInvoiceActionWithBody request with any body
VoidInvoiceActionWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VoidInvoiceAction(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBillingProfiles request
ListBillingProfiles(ctx context.Context, params *ListBillingProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateBillingProfileWithBody request with any body
CreateBillingProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateBillingProfile(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteBillingProfile request
DeleteBillingProfile(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBillingProfile request
GetBillingProfile(ctx context.Context, id string, params *GetBillingProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateBillingProfileWithBody request with any body
UpdateBillingProfileWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateBillingProfile(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCustomers request
ListCustomers(ctx context.Context, params *ListCustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCustomerWithBody request with any body
CreateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCustomer(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCustomer request
DeleteCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCustomer request
GetCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateCustomerWithBody request with any body
UpdateCustomerWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCustomerAccess request
GetCustomerAccess(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCustomerAppData request
ListCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpsertCustomerAppDataWithBody request with any body
UpsertCustomerAppDataWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpsertCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCustomerAppData request
DeleteCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCustomerEntitlementValue request
GetCustomerEntitlementValue(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCustomerStripeAppData request
GetCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpsertCustomerStripeAppDataWithBody request with any body
UpsertCustomerStripeAppDataWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpsertCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCustomerStripePortalSessionWithBody request with any body
CreateCustomerStripePortalSessionWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCustomerStripePortalSession(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCustomerSubscriptions request
ListCustomerSubscriptions(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDebugMetrics request
GetDebugMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEntitlements request
ListEntitlements(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlementById request
GetEntitlementById(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEvents request
ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// IngestEventsWithBody request with any body
IngestEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestEvents(ctx context.Context, body IngestEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListFeatures request
ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFeatureWithBody request with any body
CreateFeatureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFeature request
DeleteFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFeature request
GetFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGrants request
ListGrants(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// VoidGrant request
VoidGrant(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCurrencies request
ListCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProgress request
GetProgress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMarketplaceListings request
ListMarketplaceListings(ctx context.Context, params *ListMarketplaceListingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMarketplaceListing request
GetMarketplaceListing(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarketplaceAppInstallWithBody request with any body
MarketplaceAppInstallWithBody(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarketplaceAppInstall(ctx context.Context, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarketplaceAppAPIKeyInstallWithBody request with any body
MarketplaceAppAPIKeyInstallWithBody(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarketplaceAppAPIKeyInstall(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarketplaceOAuth2InstallGetURL request
MarketplaceOAuth2InstallGetURL(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarketplaceOAuth2InstallAuthorize request
MarketplaceOAuth2InstallAuthorize(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMeters request
ListMeters(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateMeterWithBody request with any body
CreateMeterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMeter request
DeleteMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMeter request
GetMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateMeterWithBody request with any body
UpdateMeterWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateMeter(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMeterGroupByValues request
ListMeterGroupByValues(ctx context.Context, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryMeter request
QueryMeter(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryMeterPostWithBody request with any body
QueryMeterPostWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryMeterPost(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMeterSubjects request
ListMeterSubjects(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNotificationChannels request
ListNotificationChannels(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNotificationChannelWithBody request with any body
CreateNotificationChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteNotificationChannel request
DeleteNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNotificationChannel request
GetNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateNotificationChannelWithBody request with any body
UpdateNotificationChannelWithBody(ctx context.Context, channelId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateNotificationChannel(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNotificationEvents request
ListNotificationEvents(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNotificationEvent request
GetNotificationEvent(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResendNotificationEventWithBody request with any body
ResendNotificationEventWithBody(ctx context.Context, eventId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResendNotificationEvent(ctx context.Context, eventId string, body ResendNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNotificationRules request
ListNotificationRules(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNotificationRuleWithBody request with any body
CreateNotificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteNotificationRule request
DeleteNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNotificationRule request
GetNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateNotificationRuleWithBody request with any body
UpdateNotificationRuleWithBody(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateNotificationRule(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TestNotificationRule request
TestNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPlans request
ListPlans(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePlanWithBody request with any body
CreatePlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePlan(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// NextPlan request
NextPlan(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeletePlan request
DeletePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPlan request
GetPlan(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePlanWithBody request with any body
UpdatePlanWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePlan(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPlanAddons request
ListPlanAddons(ctx context.Context, planId string, params *ListPlanAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePlanAddonWithBody request with any body
CreatePlanAddonWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePlanAddon(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeletePlanAddon request
DeletePlanAddon(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPlanAddon request
GetPlanAddon(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePlanAddonWithBody request with any body
UpdatePlanAddonWithBody(ctx context.Context, planId string, planAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePlanAddon(ctx context.Context, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ArchivePlan request
ArchivePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PublishPlan request
PublishPlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryPortalMeter request
QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPortalTokens request
ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePortalTokenWithBody request with any body
CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// InvalidatePortalTokensWithBody request with any body
InvalidatePortalTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateStripeCheckoutSessionWithBody request with any body
CreateStripeCheckoutSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateStripeCheckoutSession(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSubjects request
ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpsertSubjectWithBody request with any body
UpsertSubjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSubject request
DeleteSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSubject request
GetSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSubjectEntitlements request
ListSubjectEntitlements(ctx context.Context, subjectIdOrKey string, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEntitlementWithBody request with any body
CreateEntitlementWithBody(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEntitlement(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEntitlementGrants request
ListEntitlementGrants(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGrantWithBody request with any body
CreateGrantWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGrant(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// OverrideEntitlementWithBody request with any body
OverrideEntitlementWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
OverrideEntitlement(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlementValue request
GetEntitlementValue(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteEntitlement request
DeleteEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlement request
GetEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlementHistory request
GetEntitlementHistory(ctx context.Context, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResetEntitlementUsageWithBody request with any body
ResetEntitlementUsageWithBody(ctx context.Context, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResetEntitlementUsage(ctx context.Context, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSubscriptionWithBody request with any body
CreateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSubscription(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSubscription request
DeleteSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSubscription request
GetSubscription(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditSubscriptionWithBody request with any body
EditSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditSubscription(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSubscriptionAddons request
ListSubscriptionAddons(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSubscriptionAddonWithBody request with any body
CreateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSubscriptionAddon(ctx context.Context, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSubscriptionAddon request
GetSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSubscriptionAddonWithBody request with any body
UpdateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelSubscriptionWithBody request with any body
CancelSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelSubscription(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChangeSubscriptionWithBody request with any body
ChangeSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ChangeSubscription(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MigrateSubscriptionWithBody request with any body
MigrateSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MigrateSubscription(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RestoreSubscription request
RestoreSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnscheduleCancelation request
UnscheduleCancelation(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCustomerEntitlementsV2 request
ListCustomerEntitlementsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCustomerEntitlementV2WithBody request with any body
CreateCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCustomerEntitlementV2 request
DeleteCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCustomerEntitlementV2 request
GetCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCustomerEntitlementGrantsV2 request
ListCustomerEntitlementGrantsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCustomerEntitlementGrantV2WithBody request with any body
CreateCustomerEntitlementGrantV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCustomerEntitlementGrantV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCustomerEntitlementHistoryV2 request
GetCustomerEntitlementHistoryV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
// OverrideCustomerEntitlementV2WithBody request with any body
OverrideCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
OverrideCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResetCustomerEntitlementUsageV2WithBody request with any body
ResetCustomerEntitlementUsageV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResetCustomerEntitlementUsageV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCustomerEntitlementValueV2 request
GetCustomerEntitlementValueV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEntitlementsV2 request
ListEntitlementsV2(ctx context.Context, params *ListEntitlementsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitlementByIdV2 request
GetEntitlementByIdV2(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEventsV2 request
ListEventsV2(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGrantsV2 request
ListGrantsV2(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewAuthClientWithResponses ¶
func NewAuthClientWithResponses(server string, apiSecret string, opts ...ClientOption) (*ClientWithResponses, error)
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AdvanceInvoiceActionWithResponse ¶
func (c *ClientWithResponses) AdvanceInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*AdvanceInvoiceActionResponse, error)
AdvanceInvoiceActionWithResponse request returning *AdvanceInvoiceActionResponse
func (*ClientWithResponses) AppCustomInvoicingDraftSynchronizedWithBodyWithResponse ¶
func (c *ClientWithResponses) AppCustomInvoicingDraftSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingDraftSynchronizedResponse, error)
AppCustomInvoicingDraftSynchronizedWithBodyWithResponse request with arbitrary body returning *AppCustomInvoicingDraftSynchronizedResponse
func (*ClientWithResponses) AppCustomInvoicingDraftSynchronizedWithResponse ¶
func (c *ClientWithResponses) AppCustomInvoicingDraftSynchronizedWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingDraftSynchronizedResponse, error)
func (*ClientWithResponses) AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse ¶
func (c *ClientWithResponses) AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingIssuingSynchronizedResponse, error)
AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse request with arbitrary body returning *AppCustomInvoicingIssuingSynchronizedResponse
func (*ClientWithResponses) AppCustomInvoicingIssuingSynchronizedWithResponse ¶
func (c *ClientWithResponses) AppCustomInvoicingIssuingSynchronizedWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingIssuingSynchronizedResponse, error)
func (*ClientWithResponses) AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingUpdatePaymentStatusResponse, error)
AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse request with arbitrary body returning *AppCustomInvoicingUpdatePaymentStatusResponse
func (*ClientWithResponses) AppCustomInvoicingUpdatePaymentStatusWithResponse ¶
func (c *ClientWithResponses) AppCustomInvoicingUpdatePaymentStatusWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingUpdatePaymentStatusResponse, error)
func (*ClientWithResponses) AppStripeWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) AppStripeWebhookWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppStripeWebhookResponse, error)
AppStripeWebhookWithBodyWithResponse request with arbitrary body returning *AppStripeWebhookResponse
func (*ClientWithResponses) AppStripeWebhookWithResponse ¶
func (c *ClientWithResponses) AppStripeWebhookWithResponse(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*AppStripeWebhookResponse, error)
func (*ClientWithResponses) ApproveInvoiceActionWithResponse ¶
func (c *ClientWithResponses) ApproveInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*ApproveInvoiceActionResponse, error)
ApproveInvoiceActionWithResponse request returning *ApproveInvoiceActionResponse
func (*ClientWithResponses) ArchiveAddonWithResponse ¶
func (c *ClientWithResponses) ArchiveAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*ArchiveAddonResponse, error)
ArchiveAddonWithResponse request returning *ArchiveAddonResponse
func (*ClientWithResponses) ArchivePlanWithResponse ¶
func (c *ClientWithResponses) ArchivePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*ArchivePlanResponse, error)
ArchivePlanWithResponse request returning *ArchivePlanResponse
func (*ClientWithResponses) CancelSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) CancelSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error)
CancelSubscriptionWithBodyWithResponse request with arbitrary body returning *CancelSubscriptionResponse
func (*ClientWithResponses) CancelSubscriptionWithResponse ¶
func (c *ClientWithResponses) CancelSubscriptionWithResponse(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error)
func (*ClientWithResponses) ChangeSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) ChangeSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeSubscriptionResponse, error)
ChangeSubscriptionWithBodyWithResponse request with arbitrary body returning *ChangeSubscriptionResponse
func (*ClientWithResponses) ChangeSubscriptionWithResponse ¶
func (c *ClientWithResponses) ChangeSubscriptionWithResponse(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeSubscriptionResponse, error)
func (*ClientWithResponses) CreateAddonWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error)
CreateAddonWithBodyWithResponse request with arbitrary body returning *CreateAddonResponse
func (*ClientWithResponses) CreateAddonWithResponse ¶
func (c *ClientWithResponses) CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error)
func (*ClientWithResponses) CreateBillingProfileWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateBillingProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBillingProfileResponse, error)
CreateBillingProfileWithBodyWithResponse request with arbitrary body returning *CreateBillingProfileResponse
func (*ClientWithResponses) CreateBillingProfileWithResponse ¶
func (c *ClientWithResponses) CreateBillingProfileWithResponse(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBillingProfileResponse, error)
func (*ClientWithResponses) CreateCustomerEntitlementGrantV2WithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCustomerEntitlementGrantV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementGrantV2Response, error)
CreateCustomerEntitlementGrantV2WithBodyWithResponse request with arbitrary body returning *CreateCustomerEntitlementGrantV2Response
func (*ClientWithResponses) CreateCustomerEntitlementGrantV2WithResponse ¶
func (c *ClientWithResponses) CreateCustomerEntitlementGrantV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementGrantV2Response, error)
func (*ClientWithResponses) CreateCustomerEntitlementV2WithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementV2Response, error)
CreateCustomerEntitlementV2WithBodyWithResponse request with arbitrary body returning *CreateCustomerEntitlementV2Response
func (*ClientWithResponses) CreateCustomerEntitlementV2WithResponse ¶
func (c *ClientWithResponses) CreateCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementV2Response, error)
func (*ClientWithResponses) CreateCustomerStripePortalSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCustomerStripePortalSessionWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerStripePortalSessionResponse, error)
CreateCustomerStripePortalSessionWithBodyWithResponse request with arbitrary body returning *CreateCustomerStripePortalSessionResponse
func (*ClientWithResponses) CreateCustomerStripePortalSessionWithResponse ¶
func (c *ClientWithResponses) CreateCustomerStripePortalSessionWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerStripePortalSessionResponse, error)
func (*ClientWithResponses) CreateCustomerWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)
CreateCustomerWithBodyWithResponse request with arbitrary body returning *CreateCustomerResponse
func (*ClientWithResponses) CreateCustomerWithResponse ¶
func (c *ClientWithResponses) CreateCustomerWithResponse(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)
func (*ClientWithResponses) CreateEntitlementWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error)
CreateEntitlementWithBodyWithResponse request with arbitrary body returning *CreateEntitlementResponse
func (*ClientWithResponses) CreateEntitlementWithResponse ¶
func (c *ClientWithResponses) CreateEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error)
func (*ClientWithResponses) CreateFeatureWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFeatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error)
CreateFeatureWithBodyWithResponse request with arbitrary body returning *CreateFeatureResponse
func (*ClientWithResponses) CreateFeatureWithResponse ¶
func (c *ClientWithResponses) CreateFeatureWithResponse(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error)
func (*ClientWithResponses) CreateGrantWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateGrantWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error)
CreateGrantWithBodyWithResponse request with arbitrary body returning *CreateGrantResponse
func (*ClientWithResponses) CreateGrantWithResponse ¶
func (c *ClientWithResponses) CreateGrantWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error)
func (*ClientWithResponses) CreateMeterWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateMeterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error)
CreateMeterWithBodyWithResponse request with arbitrary body returning *CreateMeterResponse
func (*ClientWithResponses) CreateMeterWithResponse ¶
func (c *ClientWithResponses) CreateMeterWithResponse(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error)
func (*ClientWithResponses) CreateNotificationChannelWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error)
CreateNotificationChannelWithBodyWithResponse request with arbitrary body returning *CreateNotificationChannelResponse
func (*ClientWithResponses) CreateNotificationChannelWithResponse ¶
func (c *ClientWithResponses) CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error)
func (*ClientWithResponses) CreateNotificationRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error)
CreateNotificationRuleWithBodyWithResponse request with arbitrary body returning *CreateNotificationRuleResponse
func (*ClientWithResponses) CreateNotificationRuleWithResponse ¶
func (c *ClientWithResponses) CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error)
func (*ClientWithResponses) CreatePendingInvoiceLineWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePendingInvoiceLineWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error)
CreatePendingInvoiceLineWithBodyWithResponse request with arbitrary body returning *CreatePendingInvoiceLineResponse
func (*ClientWithResponses) CreatePendingInvoiceLineWithResponse ¶
func (c *ClientWithResponses) CreatePendingInvoiceLineWithResponse(ctx context.Context, customerId string, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error)
func (*ClientWithResponses) CreatePlanAddonWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePlanAddonResponse, error)
CreatePlanAddonWithBodyWithResponse request with arbitrary body returning *CreatePlanAddonResponse
func (*ClientWithResponses) CreatePlanAddonWithResponse ¶
func (c *ClientWithResponses) CreatePlanAddonWithResponse(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePlanAddonResponse, error)
func (*ClientWithResponses) CreatePlanWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePlanResponse, error)
CreatePlanWithBodyWithResponse request with arbitrary body returning *CreatePlanResponse
func (*ClientWithResponses) CreatePlanWithResponse ¶
func (c *ClientWithResponses) CreatePlanWithResponse(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePlanResponse, error)
func (*ClientWithResponses) CreatePortalTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error)
CreatePortalTokenWithBodyWithResponse request with arbitrary body returning *CreatePortalTokenResponse
func (*ClientWithResponses) CreatePortalTokenWithResponse ¶
func (c *ClientWithResponses) CreatePortalTokenWithResponse(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error)
func (*ClientWithResponses) CreateStripeCheckoutSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateStripeCheckoutSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStripeCheckoutSessionResponse, error)
CreateStripeCheckoutSessionWithBodyWithResponse request with arbitrary body returning *CreateStripeCheckoutSessionResponse
func (*ClientWithResponses) CreateStripeCheckoutSessionWithResponse ¶
func (c *ClientWithResponses) CreateStripeCheckoutSessionWithResponse(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStripeCheckoutSessionResponse, error)
func (*ClientWithResponses) CreateSubscriptionAddonWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionAddonResponse, error)
CreateSubscriptionAddonWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionAddonResponse
func (*ClientWithResponses) CreateSubscriptionAddonWithResponse ¶
func (c *ClientWithResponses) CreateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionAddonResponse, error)
func (*ClientWithResponses) CreateSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error)
CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse
func (*ClientWithResponses) CreateSubscriptionWithResponse ¶
func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error)
func (*ClientWithResponses) DeleteAddonWithResponse ¶
func (c *ClientWithResponses) DeleteAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*DeleteAddonResponse, error)
DeleteAddonWithResponse request returning *DeleteAddonResponse
func (*ClientWithResponses) DeleteBillingProfileCustomerOverrideWithResponse ¶
func (c *ClientWithResponses) DeleteBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileCustomerOverrideResponse, error)
DeleteBillingProfileCustomerOverrideWithResponse request returning *DeleteBillingProfileCustomerOverrideResponse
func (*ClientWithResponses) DeleteBillingProfileWithResponse ¶
func (c *ClientWithResponses) DeleteBillingProfileWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileResponse, error)
DeleteBillingProfileWithResponse request returning *DeleteBillingProfileResponse
func (*ClientWithResponses) DeleteCustomerAppDataWithResponse ¶
func (c *ClientWithResponses) DeleteCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, reqEditors ...RequestEditorFn) (*DeleteCustomerAppDataResponse, error)
DeleteCustomerAppDataWithResponse request returning *DeleteCustomerAppDataResponse
func (*ClientWithResponses) DeleteCustomerEntitlementV2WithResponse ¶
func (c *ClientWithResponses) DeleteCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*DeleteCustomerEntitlementV2Response, error)
DeleteCustomerEntitlementV2WithResponse request returning *DeleteCustomerEntitlementV2Response
func (*ClientWithResponses) DeleteCustomerWithResponse ¶
func (c *ClientWithResponses) DeleteCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*DeleteCustomerResponse, error)
DeleteCustomerWithResponse request returning *DeleteCustomerResponse
func (*ClientWithResponses) DeleteEntitlementWithResponse ¶
func (c *ClientWithResponses) DeleteEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*DeleteEntitlementResponse, error)
DeleteEntitlementWithResponse request returning *DeleteEntitlementResponse
func (*ClientWithResponses) DeleteFeatureWithResponse ¶
func (c *ClientWithResponses) DeleteFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error)
DeleteFeatureWithResponse request returning *DeleteFeatureResponse
func (*ClientWithResponses) DeleteInvoiceWithResponse ¶
func (c *ClientWithResponses) DeleteInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error)
DeleteInvoiceWithResponse request returning *DeleteInvoiceResponse
func (*ClientWithResponses) DeleteMeterWithResponse ¶
func (c *ClientWithResponses) DeleteMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error)
DeleteMeterWithResponse request returning *DeleteMeterResponse
func (*ClientWithResponses) DeleteNotificationChannelWithResponse ¶
func (c *ClientWithResponses) DeleteNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelResponse, error)
DeleteNotificationChannelWithResponse request returning *DeleteNotificationChannelResponse
func (*ClientWithResponses) DeleteNotificationRuleWithResponse ¶
func (c *ClientWithResponses) DeleteNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*DeleteNotificationRuleResponse, error)
DeleteNotificationRuleWithResponse request returning *DeleteNotificationRuleResponse
func (*ClientWithResponses) DeletePlanAddonWithResponse ¶
func (c *ClientWithResponses) DeletePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*DeletePlanAddonResponse, error)
DeletePlanAddonWithResponse request returning *DeletePlanAddonResponse
func (*ClientWithResponses) DeletePlanWithResponse ¶
func (c *ClientWithResponses) DeletePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*DeletePlanResponse, error)
DeletePlanWithResponse request returning *DeletePlanResponse
func (*ClientWithResponses) DeleteSubjectWithResponse ¶
func (c *ClientWithResponses) DeleteSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*DeleteSubjectResponse, error)
DeleteSubjectWithResponse request returning *DeleteSubjectResponse
func (*ClientWithResponses) DeleteSubscriptionWithResponse ¶
func (c *ClientWithResponses) DeleteSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error)
DeleteSubscriptionWithResponse request returning *DeleteSubscriptionResponse
func (*ClientWithResponses) EditSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) EditSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSubscriptionResponse, error)
EditSubscriptionWithBodyWithResponse request with arbitrary body returning *EditSubscriptionResponse
func (*ClientWithResponses) EditSubscriptionWithResponse ¶
func (c *ClientWithResponses) EditSubscriptionWithResponse(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSubscriptionResponse, error)
func (*ClientWithResponses) GetAddonWithResponse ¶
func (c *ClientWithResponses) GetAddonWithResponse(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*GetAddonResponse, error)
GetAddonWithResponse request returning *GetAddonResponse
func (*ClientWithResponses) GetAppWithResponse ¶
func (c *ClientWithResponses) GetAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAppResponse, error)
GetAppWithResponse request returning *GetAppResponse
func (*ClientWithResponses) GetBillingProfileCustomerOverrideWithResponse ¶
func (c *ClientWithResponses) GetBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, params *GetBillingProfileCustomerOverrideParams, reqEditors ...RequestEditorFn) (*GetBillingProfileCustomerOverrideResponse, error)
GetBillingProfileCustomerOverrideWithResponse request returning *GetBillingProfileCustomerOverrideResponse
func (*ClientWithResponses) GetBillingProfileWithResponse ¶
func (c *ClientWithResponses) GetBillingProfileWithResponse(ctx context.Context, id string, params *GetBillingProfileParams, reqEditors ...RequestEditorFn) (*GetBillingProfileResponse, error)
GetBillingProfileWithResponse request returning *GetBillingProfileResponse
func (*ClientWithResponses) GetCustomerAccessWithResponse ¶
func (c *ClientWithResponses) GetCustomerAccessWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*GetCustomerAccessResponse, error)
GetCustomerAccessWithResponse request returning *GetCustomerAccessResponse
func (*ClientWithResponses) GetCustomerEntitlementHistoryV2WithResponse ¶
func (c *ClientWithResponses) GetCustomerEntitlementHistoryV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementHistoryV2Response, error)
GetCustomerEntitlementHistoryV2WithResponse request returning *GetCustomerEntitlementHistoryV2Response
func (*ClientWithResponses) GetCustomerEntitlementV2WithResponse ¶
func (c *ClientWithResponses) GetCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementV2Response, error)
GetCustomerEntitlementV2WithResponse request returning *GetCustomerEntitlementV2Response
func (*ClientWithResponses) GetCustomerEntitlementValueV2WithResponse ¶
func (c *ClientWithResponses) GetCustomerEntitlementValueV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueV2Response, error)
GetCustomerEntitlementValueV2WithResponse request returning *GetCustomerEntitlementValueV2Response
func (*ClientWithResponses) GetCustomerEntitlementValueWithResponse ¶
func (c *ClientWithResponses) GetCustomerEntitlementValueWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueResponse, error)
GetCustomerEntitlementValueWithResponse request returning *GetCustomerEntitlementValueResponse
func (*ClientWithResponses) GetCustomerStripeAppDataWithResponse ¶
func (c *ClientWithResponses) GetCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*GetCustomerStripeAppDataResponse, error)
GetCustomerStripeAppDataWithResponse request returning *GetCustomerStripeAppDataResponse
func (*ClientWithResponses) GetCustomerWithResponse ¶
func (c *ClientWithResponses) GetCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error)
GetCustomerWithResponse request returning *GetCustomerResponse
func (*ClientWithResponses) GetDebugMetricsWithResponse ¶
func (c *ClientWithResponses) GetDebugMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDebugMetricsResponse, error)
GetDebugMetricsWithResponse request returning *GetDebugMetricsResponse
func (*ClientWithResponses) GetEntitlementByIdV2WithResponse ¶
func (c *ClientWithResponses) GetEntitlementByIdV2WithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdV2Response, error)
GetEntitlementByIdV2WithResponse request returning *GetEntitlementByIdV2Response
func (*ClientWithResponses) GetEntitlementByIdWithResponse ¶
func (c *ClientWithResponses) GetEntitlementByIdWithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdResponse, error)
GetEntitlementByIdWithResponse request returning *GetEntitlementByIdResponse
func (*ClientWithResponses) GetEntitlementHistoryWithResponse ¶
func (c *ClientWithResponses) GetEntitlementHistoryWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*GetEntitlementHistoryResponse, error)
GetEntitlementHistoryWithResponse request returning *GetEntitlementHistoryResponse
func (*ClientWithResponses) GetEntitlementValueWithResponse ¶
func (c *ClientWithResponses) GetEntitlementValueWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetEntitlementValueResponse, error)
GetEntitlementValueWithResponse request returning *GetEntitlementValueResponse
func (*ClientWithResponses) GetEntitlementWithResponse ¶
func (c *ClientWithResponses) GetEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementResponse, error)
GetEntitlementWithResponse request returning *GetEntitlementResponse
func (*ClientWithResponses) GetFeatureWithResponse ¶
func (c *ClientWithResponses) GetFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*GetFeatureResponse, error)
GetFeatureWithResponse request returning *GetFeatureResponse
func (*ClientWithResponses) GetInvoiceWithResponse ¶
func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)
GetInvoiceWithResponse request returning *GetInvoiceResponse
func (*ClientWithResponses) GetMarketplaceListingWithResponse ¶
func (c *ClientWithResponses) GetMarketplaceListingWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*GetMarketplaceListingResponse, error)
GetMarketplaceListingWithResponse request returning *GetMarketplaceListingResponse
func (*ClientWithResponses) GetMeterWithResponse ¶
func (c *ClientWithResponses) GetMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*GetMeterResponse, error)
GetMeterWithResponse request returning *GetMeterResponse
func (*ClientWithResponses) GetNotificationChannelWithResponse ¶
func (c *ClientWithResponses) GetNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*GetNotificationChannelResponse, error)
GetNotificationChannelWithResponse request returning *GetNotificationChannelResponse
func (*ClientWithResponses) GetNotificationEventWithResponse ¶
func (c *ClientWithResponses) GetNotificationEventWithResponse(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*GetNotificationEventResponse, error)
GetNotificationEventWithResponse request returning *GetNotificationEventResponse
func (*ClientWithResponses) GetNotificationRuleWithResponse ¶
func (c *ClientWithResponses) GetNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*GetNotificationRuleResponse, error)
GetNotificationRuleWithResponse request returning *GetNotificationRuleResponse
func (*ClientWithResponses) GetPlanAddonWithResponse ¶
func (c *ClientWithResponses) GetPlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*GetPlanAddonResponse, error)
GetPlanAddonWithResponse request returning *GetPlanAddonResponse
func (*ClientWithResponses) GetPlanWithResponse ¶
func (c *ClientWithResponses) GetPlanWithResponse(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*GetPlanResponse, error)
GetPlanWithResponse request returning *GetPlanResponse
func (*ClientWithResponses) GetProgressWithResponse ¶
func (c *ClientWithResponses) GetProgressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetProgressResponse, error)
GetProgressWithResponse request returning *GetProgressResponse
func (*ClientWithResponses) GetSubjectWithResponse ¶
func (c *ClientWithResponses) GetSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*GetSubjectResponse, error)
GetSubjectWithResponse request returning *GetSubjectResponse
func (*ClientWithResponses) GetSubscriptionAddonWithResponse ¶
func (c *ClientWithResponses) GetSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, reqEditors ...RequestEditorFn) (*GetSubscriptionAddonResponse, error)
GetSubscriptionAddonWithResponse request returning *GetSubscriptionAddonResponse
func (*ClientWithResponses) GetSubscriptionWithResponse ¶
func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error)
GetSubscriptionWithResponse request returning *GetSubscriptionResponse
func (*ClientWithResponses) IngestEventBatchWithResponse ¶
func (c *ClientWithResponses) IngestEventBatchWithResponse(ctx context.Context, events []Event, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithResponse is a wrapper around generated client's IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse
func (*ClientWithResponses) IngestEventWithResponse ¶
func (c *ClientWithResponses) IngestEventWithResponse(ctx context.Context, event Event, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithResponse is a wrapper around generated client's IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse
func (*ClientWithResponses) IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
func (*ClientWithResponses) IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
func (*ClientWithResponses) IngestEventsWithBodyWithResponse ¶
func (c *ClientWithResponses) IngestEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithBodyWithResponse request with arbitrary body returning *IngestEventsResponse
func (*ClientWithResponses) IngestEventsWithResponse ¶
func (c *ClientWithResponses) IngestEventsWithResponse(ctx context.Context, body IngestEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
func (*ClientWithResponses) InvalidatePortalTokensWithBodyWithResponse ¶
func (c *ClientWithResponses) InvalidatePortalTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error)
InvalidatePortalTokensWithBodyWithResponse request with arbitrary body returning *InvalidatePortalTokensResponse
func (*ClientWithResponses) InvalidatePortalTokensWithResponse ¶
func (c *ClientWithResponses) InvalidatePortalTokensWithResponse(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error)
func (*ClientWithResponses) InvoicePendingLinesActionWithBodyWithResponse ¶
func (c *ClientWithResponses) InvoicePendingLinesActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvoicePendingLinesActionResponse, error)
InvoicePendingLinesActionWithBodyWithResponse request with arbitrary body returning *InvoicePendingLinesActionResponse
func (*ClientWithResponses) InvoicePendingLinesActionWithResponse ¶
func (c *ClientWithResponses) InvoicePendingLinesActionWithResponse(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvoicePendingLinesActionResponse, error)
func (*ClientWithResponses) ListAddonsWithResponse ¶
func (c *ClientWithResponses) ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error)
ListAddonsWithResponse request returning *ListAddonsResponse
func (*ClientWithResponses) ListAppsWithResponse ¶
func (c *ClientWithResponses) ListAppsWithResponse(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*ListAppsResponse, error)
ListAppsWithResponse request returning *ListAppsResponse
func (*ClientWithResponses) ListBillingProfileCustomerOverridesWithResponse ¶
func (c *ClientWithResponses) ListBillingProfileCustomerOverridesWithResponse(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, reqEditors ...RequestEditorFn) (*ListBillingProfileCustomerOverridesResponse, error)
ListBillingProfileCustomerOverridesWithResponse request returning *ListBillingProfileCustomerOverridesResponse
func (*ClientWithResponses) ListBillingProfilesWithResponse ¶
func (c *ClientWithResponses) ListBillingProfilesWithResponse(ctx context.Context, params *ListBillingProfilesParams, reqEditors ...RequestEditorFn) (*ListBillingProfilesResponse, error)
ListBillingProfilesWithResponse request returning *ListBillingProfilesResponse
func (*ClientWithResponses) ListCurrenciesWithResponse ¶
func (c *ClientWithResponses) ListCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCurrenciesResponse, error)
ListCurrenciesWithResponse request returning *ListCurrenciesResponse
func (*ClientWithResponses) ListCustomerAppDataWithResponse ¶
func (c *ClientWithResponses) ListCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*ListCustomerAppDataResponse, error)
ListCustomerAppDataWithResponse request returning *ListCustomerAppDataResponse
func (*ClientWithResponses) ListCustomerEntitlementGrantsV2WithResponse ¶
func (c *ClientWithResponses) ListCustomerEntitlementGrantsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params, reqEditors ...RequestEditorFn) (*ListCustomerEntitlementGrantsV2Response, error)
ListCustomerEntitlementGrantsV2WithResponse request returning *ListCustomerEntitlementGrantsV2Response
func (*ClientWithResponses) ListCustomerEntitlementsV2WithResponse ¶
func (c *ClientWithResponses) ListCustomerEntitlementsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params, reqEditors ...RequestEditorFn) (*ListCustomerEntitlementsV2Response, error)
ListCustomerEntitlementsV2WithResponse request returning *ListCustomerEntitlementsV2Response
func (*ClientWithResponses) ListCustomerSubscriptionsWithResponse ¶
func (c *ClientWithResponses) ListCustomerSubscriptionsWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListCustomerSubscriptionsResponse, error)
ListCustomerSubscriptionsWithResponse request returning *ListCustomerSubscriptionsResponse
func (*ClientWithResponses) ListCustomersWithResponse ¶
func (c *ClientWithResponses) ListCustomersWithResponse(ctx context.Context, params *ListCustomersParams, reqEditors ...RequestEditorFn) (*ListCustomersResponse, error)
ListCustomersWithResponse request returning *ListCustomersResponse
func (*ClientWithResponses) ListEntitlementGrantsWithResponse ¶
func (c *ClientWithResponses) ListEntitlementGrantsWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*ListEntitlementGrantsResponse, error)
ListEntitlementGrantsWithResponse request returning *ListEntitlementGrantsResponse
func (*ClientWithResponses) ListEntitlementsV2WithResponse ¶
func (c *ClientWithResponses) ListEntitlementsV2WithResponse(ctx context.Context, params *ListEntitlementsV2Params, reqEditors ...RequestEditorFn) (*ListEntitlementsV2Response, error)
ListEntitlementsV2WithResponse request returning *ListEntitlementsV2Response
func (*ClientWithResponses) ListEntitlementsWithResponse ¶
func (c *ClientWithResponses) ListEntitlementsWithResponse(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*ListEntitlementsResponse, error)
ListEntitlementsWithResponse request returning *ListEntitlementsResponse
func (*ClientWithResponses) ListEventsV2WithResponse ¶
func (c *ClientWithResponses) ListEventsV2WithResponse(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*ListEventsV2Response, error)
ListEventsV2WithResponse request returning *ListEventsV2Response
func (*ClientWithResponses) ListEventsWithResponse ¶
func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)
ListEventsWithResponse request returning *ListEventsResponse
func (*ClientWithResponses) ListFeaturesWithResponse ¶
func (c *ClientWithResponses) ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error)
ListFeaturesWithResponse request returning *ListFeaturesResponse
func (*ClientWithResponses) ListGrantsV2WithResponse ¶
func (c *ClientWithResponses) ListGrantsV2WithResponse(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*ListGrantsV2Response, error)
ListGrantsV2WithResponse request returning *ListGrantsV2Response
func (*ClientWithResponses) ListGrantsWithResponse ¶
func (c *ClientWithResponses) ListGrantsWithResponse(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*ListGrantsResponse, error)
ListGrantsWithResponse request returning *ListGrantsResponse
func (*ClientWithResponses) ListInvoicesWithResponse ¶
func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)
ListInvoicesWithResponse request returning *ListInvoicesResponse
func (*ClientWithResponses) ListMarketplaceListingsWithResponse ¶
func (c *ClientWithResponses) ListMarketplaceListingsWithResponse(ctx context.Context, params *ListMarketplaceListingsParams, reqEditors ...RequestEditorFn) (*ListMarketplaceListingsResponse, error)
ListMarketplaceListingsWithResponse request returning *ListMarketplaceListingsResponse
func (*ClientWithResponses) ListMeterGroupByValuesWithResponse ¶
func (c *ClientWithResponses) ListMeterGroupByValuesWithResponse(ctx context.Context, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams, reqEditors ...RequestEditorFn) (*ListMeterGroupByValuesResponse, error)
ListMeterGroupByValuesWithResponse request returning *ListMeterGroupByValuesResponse
func (*ClientWithResponses) ListMeterSubjectsWithResponse ¶
func (c *ClientWithResponses) ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, reqEditors ...RequestEditorFn) (*ListMeterSubjectsResponse, error)
ListMeterSubjectsWithResponse request returning *ListMeterSubjectsResponse
func (*ClientWithResponses) ListMetersWithResponse ¶
func (c *ClientWithResponses) ListMetersWithResponse(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*ListMetersResponse, error)
ListMetersWithResponse request returning *ListMetersResponse
func (*ClientWithResponses) ListNotificationChannelsWithResponse ¶
func (c *ClientWithResponses) ListNotificationChannelsWithResponse(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListNotificationChannelsResponse, error)
ListNotificationChannelsWithResponse request returning *ListNotificationChannelsResponse
func (*ClientWithResponses) ListNotificationEventsWithResponse ¶
func (c *ClientWithResponses) ListNotificationEventsWithResponse(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*ListNotificationEventsResponse, error)
ListNotificationEventsWithResponse request returning *ListNotificationEventsResponse
func (*ClientWithResponses) ListNotificationRulesWithResponse ¶
func (c *ClientWithResponses) ListNotificationRulesWithResponse(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*ListNotificationRulesResponse, error)
ListNotificationRulesWithResponse request returning *ListNotificationRulesResponse
func (*ClientWithResponses) ListPlanAddonsWithResponse ¶
func (c *ClientWithResponses) ListPlanAddonsWithResponse(ctx context.Context, planId string, params *ListPlanAddonsParams, reqEditors ...RequestEditorFn) (*ListPlanAddonsResponse, error)
ListPlanAddonsWithResponse request returning *ListPlanAddonsResponse
func (*ClientWithResponses) ListPlansWithResponse ¶
func (c *ClientWithResponses) ListPlansWithResponse(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error)
ListPlansWithResponse request returning *ListPlansResponse
func (*ClientWithResponses) ListPortalTokensWithResponse ¶
func (c *ClientWithResponses) ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*ListPortalTokensResponse, error)
ListPortalTokensWithResponse request returning *ListPortalTokensResponse
func (*ClientWithResponses) ListSubjectEntitlementsWithResponse ¶
func (c *ClientWithResponses) ListSubjectEntitlementsWithResponse(ctx context.Context, subjectIdOrKey string, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*ListSubjectEntitlementsResponse, error)
ListSubjectEntitlementsWithResponse request returning *ListSubjectEntitlementsResponse
func (*ClientWithResponses) ListSubjectsWithResponse ¶
func (c *ClientWithResponses) ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
ListSubjectsWithResponse request returning *ListSubjectsResponse
func (*ClientWithResponses) ListSubscriptionAddonsWithResponse ¶
func (c *ClientWithResponses) ListSubscriptionAddonsWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*ListSubscriptionAddonsResponse, error)
ListSubscriptionAddonsWithResponse request returning *ListSubscriptionAddonsResponse
func (*ClientWithResponses) MarketplaceAppAPIKeyInstallWithBodyWithResponse ¶
func (c *ClientWithResponses) MarketplaceAppAPIKeyInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceAppAPIKeyInstallResponse, error)
MarketplaceAppAPIKeyInstallWithBodyWithResponse request with arbitrary body returning *MarketplaceAppAPIKeyInstallResponse
func (*ClientWithResponses) MarketplaceAppAPIKeyInstallWithResponse ¶
func (c *ClientWithResponses) MarketplaceAppAPIKeyInstallWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceAppAPIKeyInstallResponse, error)
func (*ClientWithResponses) MarketplaceAppInstallWithBodyWithResponse ¶
func (c *ClientWithResponses) MarketplaceAppInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceAppInstallResponse, error)
MarketplaceAppInstallWithBodyWithResponse request with arbitrary body returning *MarketplaceAppInstallResponse
func (*ClientWithResponses) MarketplaceAppInstallWithResponse ¶
func (c *ClientWithResponses) MarketplaceAppInstallWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceAppInstallResponse, error)
func (*ClientWithResponses) MarketplaceOAuth2InstallAuthorizeWithResponse ¶
func (c *ClientWithResponses) MarketplaceOAuth2InstallAuthorizeWithResponse(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallAuthorizeResponse, error)
MarketplaceOAuth2InstallAuthorizeWithResponse request returning *MarketplaceOAuth2InstallAuthorizeResponse
func (*ClientWithResponses) MarketplaceOAuth2InstallGetURLWithResponse ¶
func (c *ClientWithResponses) MarketplaceOAuth2InstallGetURLWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallGetURLResponse, error)
MarketplaceOAuth2InstallGetURLWithResponse request returning *MarketplaceOAuth2InstallGetURLResponse
func (*ClientWithResponses) MigrateSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) MigrateSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MigrateSubscriptionResponse, error)
MigrateSubscriptionWithBodyWithResponse request with arbitrary body returning *MigrateSubscriptionResponse
func (*ClientWithResponses) MigrateSubscriptionWithResponse ¶
func (c *ClientWithResponses) MigrateSubscriptionWithResponse(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*MigrateSubscriptionResponse, error)
func (*ClientWithResponses) NextPlanWithResponse ¶
func (c *ClientWithResponses) NextPlanWithResponse(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*NextPlanResponse, error)
NextPlanWithResponse request returning *NextPlanResponse
func (*ClientWithResponses) OverrideCustomerEntitlementV2WithBodyWithResponse ¶
func (c *ClientWithResponses) OverrideCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideCustomerEntitlementV2Response, error)
OverrideCustomerEntitlementV2WithBodyWithResponse request with arbitrary body returning *OverrideCustomerEntitlementV2Response
func (*ClientWithResponses) OverrideCustomerEntitlementV2WithResponse ¶
func (c *ClientWithResponses) OverrideCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideCustomerEntitlementV2Response, error)
func (*ClientWithResponses) OverrideEntitlementWithBodyWithResponse ¶
func (c *ClientWithResponses) OverrideEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideEntitlementResponse, error)
OverrideEntitlementWithBodyWithResponse request with arbitrary body returning *OverrideEntitlementResponse
func (*ClientWithResponses) OverrideEntitlementWithResponse ¶
func (c *ClientWithResponses) OverrideEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideEntitlementResponse, error)
func (*ClientWithResponses) PublishAddonWithResponse ¶
func (c *ClientWithResponses) PublishAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*PublishAddonResponse, error)
PublishAddonWithResponse request returning *PublishAddonResponse
func (*ClientWithResponses) PublishPlanWithResponse ¶
func (c *ClientWithResponses) PublishPlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*PublishPlanResponse, error)
PublishPlanWithResponse request returning *PublishPlanResponse
func (*ClientWithResponses) QueryMeterPostWithBodyWithResponse ¶
func (c *ClientWithResponses) QueryMeterPostWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryMeterPostResponse, error)
QueryMeterPostWithBodyWithResponse request with arbitrary body returning *QueryMeterPostResponse
func (*ClientWithResponses) QueryMeterPostWithResponse ¶
func (c *ClientWithResponses) QueryMeterPostWithResponse(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryMeterPostResponse, error)
func (*ClientWithResponses) QueryMeterWithResponse ¶
func (c *ClientWithResponses) QueryMeterWithResponse(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*QueryMeterResponse, error)
QueryMeterWithResponse request returning *QueryMeterResponse
func (*ClientWithResponses) QueryPortalMeterWithResponse ¶
func (c *ClientWithResponses) QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*QueryPortalMeterResponse, error)
QueryPortalMeterWithResponse request returning *QueryPortalMeterResponse
func (*ClientWithResponses) RecalculateInvoiceTaxActionWithResponse ¶
func (c *ClientWithResponses) RecalculateInvoiceTaxActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RecalculateInvoiceTaxActionResponse, error)
RecalculateInvoiceTaxActionWithResponse request returning *RecalculateInvoiceTaxActionResponse
func (*ClientWithResponses) ResendNotificationEventWithBodyWithResponse ¶
func (c *ClientWithResponses) ResendNotificationEventWithBodyWithResponse(ctx context.Context, eventId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResendNotificationEventResponse, error)
ResendNotificationEventWithBodyWithResponse request with arbitrary body returning *ResendNotificationEventResponse
func (*ClientWithResponses) ResendNotificationEventWithResponse ¶
func (c *ClientWithResponses) ResendNotificationEventWithResponse(ctx context.Context, eventId string, body ResendNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*ResendNotificationEventResponse, error)
func (*ClientWithResponses) ResetCustomerEntitlementUsageV2WithBodyWithResponse ¶
func (c *ClientWithResponses) ResetCustomerEntitlementUsageV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetCustomerEntitlementUsageV2Response, error)
ResetCustomerEntitlementUsageV2WithBodyWithResponse request with arbitrary body returning *ResetCustomerEntitlementUsageV2Response
func (*ClientWithResponses) ResetCustomerEntitlementUsageV2WithResponse ¶
func (c *ClientWithResponses) ResetCustomerEntitlementUsageV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody, reqEditors ...RequestEditorFn) (*ResetCustomerEntitlementUsageV2Response, error)
func (*ClientWithResponses) ResetEntitlementUsageWithBodyWithResponse ¶
func (c *ClientWithResponses) ResetEntitlementUsageWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error)
ResetEntitlementUsageWithBodyWithResponse request with arbitrary body returning *ResetEntitlementUsageResponse
func (*ClientWithResponses) ResetEntitlementUsageWithResponse ¶
func (c *ClientWithResponses) ResetEntitlementUsageWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error)
func (*ClientWithResponses) RestoreSubscriptionWithResponse ¶
func (c *ClientWithResponses) RestoreSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*RestoreSubscriptionResponse, error)
RestoreSubscriptionWithResponse request returning *RestoreSubscriptionResponse
func (*ClientWithResponses) RetryInvoiceActionWithResponse ¶
func (c *ClientWithResponses) RetryInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RetryInvoiceActionResponse, error)
RetryInvoiceActionWithResponse request returning *RetryInvoiceActionResponse
func (*ClientWithResponses) SimulateInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) SimulateInvoiceWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SimulateInvoiceResponse, error)
SimulateInvoiceWithBodyWithResponse request with arbitrary body returning *SimulateInvoiceResponse
func (*ClientWithResponses) SimulateInvoiceWithResponse ¶
func (c *ClientWithResponses) SimulateInvoiceWithResponse(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SimulateInvoiceResponse, error)
func (*ClientWithResponses) SnapshotQuantitiesInvoiceActionWithResponse ¶
func (c *ClientWithResponses) SnapshotQuantitiesInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*SnapshotQuantitiesInvoiceActionResponse, error)
SnapshotQuantitiesInvoiceActionWithResponse request returning *SnapshotQuantitiesInvoiceActionResponse
func (*ClientWithResponses) TestNotificationRuleWithResponse ¶
func (c *ClientWithResponses) TestNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*TestNotificationRuleResponse, error)
TestNotificationRuleWithResponse request returning *TestNotificationRuleResponse
func (*ClientWithResponses) UninstallAppWithResponse ¶
func (c *ClientWithResponses) UninstallAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UninstallAppResponse, error)
UninstallAppWithResponse request returning *UninstallAppResponse
func (*ClientWithResponses) UnscheduleCancelationWithResponse ¶
func (c *ClientWithResponses) UnscheduleCancelationWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*UnscheduleCancelationResponse, error)
UnscheduleCancelationWithResponse request returning *UnscheduleCancelationResponse
func (*ClientWithResponses) UpdateAddonWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAddonWithBodyWithResponse(ctx context.Context, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error)
UpdateAddonWithBodyWithResponse request with arbitrary body returning *UpdateAddonResponse
func (*ClientWithResponses) UpdateAddonWithResponse ¶
func (c *ClientWithResponses) UpdateAddonWithResponse(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error)
func (*ClientWithResponses) UpdateAppWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAppWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error)
UpdateAppWithBodyWithResponse request with arbitrary body returning *UpdateAppResponse
func (*ClientWithResponses) UpdateAppWithResponse ¶
func (c *ClientWithResponses) UpdateAppWithResponse(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error)
func (*ClientWithResponses) UpdateBillingProfileWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateBillingProfileWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillingProfileResponse, error)
UpdateBillingProfileWithBodyWithResponse request with arbitrary body returning *UpdateBillingProfileResponse
func (*ClientWithResponses) UpdateBillingProfileWithResponse ¶
func (c *ClientWithResponses) UpdateBillingProfileWithResponse(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillingProfileResponse, error)
func (*ClientWithResponses) UpdateCustomerWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)
UpdateCustomerWithBodyWithResponse request with arbitrary body returning *UpdateCustomerResponse
func (*ClientWithResponses) UpdateCustomerWithResponse ¶
func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)
func (*ClientWithResponses) UpdateInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateInvoiceWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
UpdateInvoiceWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceResponse
func (*ClientWithResponses) UpdateInvoiceWithResponse ¶
func (c *ClientWithResponses) UpdateInvoiceWithResponse(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
func (*ClientWithResponses) UpdateMeterWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateMeterWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeterResponse, error)
UpdateMeterWithBodyWithResponse request with arbitrary body returning *UpdateMeterResponse
func (*ClientWithResponses) UpdateMeterWithResponse ¶
func (c *ClientWithResponses) UpdateMeterWithResponse(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeterResponse, error)
func (*ClientWithResponses) UpdateNotificationChannelWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNotificationChannelWithBodyWithResponse(ctx context.Context, channelId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error)
UpdateNotificationChannelWithBodyWithResponse request with arbitrary body returning *UpdateNotificationChannelResponse
func (*ClientWithResponses) UpdateNotificationChannelWithResponse ¶
func (c *ClientWithResponses) UpdateNotificationChannelWithResponse(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error)
func (*ClientWithResponses) UpdateNotificationRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNotificationRuleWithBodyWithResponse(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error)
UpdateNotificationRuleWithBodyWithResponse request with arbitrary body returning *UpdateNotificationRuleResponse
func (*ClientWithResponses) UpdateNotificationRuleWithResponse ¶
func (c *ClientWithResponses) UpdateNotificationRuleWithResponse(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error)
func (*ClientWithResponses) UpdatePlanAddonWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, planAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlanAddonResponse, error)
UpdatePlanAddonWithBodyWithResponse request with arbitrary body returning *UpdatePlanAddonResponse
func (*ClientWithResponses) UpdatePlanAddonWithResponse ¶
func (c *ClientWithResponses) UpdatePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePlanAddonResponse, error)
func (*ClientWithResponses) UpdatePlanWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdatePlanWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlanResponse, error)
UpdatePlanWithBodyWithResponse request with arbitrary body returning *UpdatePlanResponse
func (*ClientWithResponses) UpdatePlanWithResponse ¶
func (c *ClientWithResponses) UpdatePlanWithResponse(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePlanResponse, error)
func (*ClientWithResponses) UpdateStripeAPIKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateStripeAPIKeyWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStripeAPIKeyResponse, error)
UpdateStripeAPIKeyWithBodyWithResponse request with arbitrary body returning *UpdateStripeAPIKeyResponse
func (*ClientWithResponses) UpdateStripeAPIKeyWithResponse ¶
func (c *ClientWithResponses) UpdateStripeAPIKeyWithResponse(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStripeAPIKeyResponse, error)
func (*ClientWithResponses) UpdateSubscriptionAddonWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionAddonResponse, error)
UpdateSubscriptionAddonWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionAddonResponse
func (*ClientWithResponses) UpdateSubscriptionAddonWithResponse ¶
func (c *ClientWithResponses) UpdateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionAddonResponse, error)
func (*ClientWithResponses) UpsertBillingProfileCustomerOverrideWithBodyWithResponse ¶
func (c *ClientWithResponses) UpsertBillingProfileCustomerOverrideWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertBillingProfileCustomerOverrideResponse, error)
UpsertBillingProfileCustomerOverrideWithBodyWithResponse request with arbitrary body returning *UpsertBillingProfileCustomerOverrideResponse
func (*ClientWithResponses) UpsertBillingProfileCustomerOverrideWithResponse ¶
func (c *ClientWithResponses) UpsertBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertBillingProfileCustomerOverrideResponse, error)
func (*ClientWithResponses) UpsertCustomerAppDataWithBodyWithResponse ¶
func (c *ClientWithResponses) UpsertCustomerAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error)
UpsertCustomerAppDataWithBodyWithResponse request with arbitrary body returning *UpsertCustomerAppDataResponse
func (*ClientWithResponses) UpsertCustomerAppDataWithResponse ¶
func (c *ClientWithResponses) UpsertCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error)
func (*ClientWithResponses) UpsertCustomerStripeAppDataWithBodyWithResponse ¶
func (c *ClientWithResponses) UpsertCustomerStripeAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerStripeAppDataResponse, error)
UpsertCustomerStripeAppDataWithBodyWithResponse request with arbitrary body returning *UpsertCustomerStripeAppDataResponse
func (*ClientWithResponses) UpsertCustomerStripeAppDataWithResponse ¶
func (c *ClientWithResponses) UpsertCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerStripeAppDataResponse, error)
func (*ClientWithResponses) UpsertSubjectWithBodyWithResponse ¶
func (c *ClientWithResponses) UpsertSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error)
UpsertSubjectWithBodyWithResponse request with arbitrary body returning *UpsertSubjectResponse
func (*ClientWithResponses) UpsertSubjectWithResponse ¶
func (c *ClientWithResponses) UpsertSubjectWithResponse(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error)
func (*ClientWithResponses) VoidGrantWithResponse ¶
func (c *ClientWithResponses) VoidGrantWithResponse(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*VoidGrantResponse, error)
VoidGrantWithResponse request returning *VoidGrantResponse
func (*ClientWithResponses) VoidInvoiceActionWithBodyWithResponse ¶
func (c *ClientWithResponses) VoidInvoiceActionWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VoidInvoiceActionResponse, error)
VoidInvoiceActionWithBodyWithResponse request with arbitrary body returning *VoidInvoiceActionResponse
func (*ClientWithResponses) VoidInvoiceActionWithResponse ¶
func (c *ClientWithResponses) VoidInvoiceActionWithResponse(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*VoidInvoiceActionResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAddonsWithResponse request
ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error)
// CreateAddonWithBodyWithResponse request with any body
CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error)
CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error)
// DeleteAddonWithResponse request
DeleteAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*DeleteAddonResponse, error)
// GetAddonWithResponse request
GetAddonWithResponse(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*GetAddonResponse, error)
// UpdateAddonWithBodyWithResponse request with any body
UpdateAddonWithBodyWithResponse(ctx context.Context, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error)
UpdateAddonWithResponse(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error)
// ArchiveAddonWithResponse request
ArchiveAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*ArchiveAddonResponse, error)
// PublishAddonWithResponse request
PublishAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*PublishAddonResponse, error)
// ListAppsWithResponse request
ListAppsWithResponse(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*ListAppsResponse, error)
// AppCustomInvoicingDraftSynchronizedWithBodyWithResponse request with any body
AppCustomInvoicingDraftSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingDraftSynchronizedResponse, error)
AppCustomInvoicingDraftSynchronizedWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingDraftSynchronizedResponse, error)
// AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse request with any body
AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingIssuingSynchronizedResponse, error)
AppCustomInvoicingIssuingSynchronizedWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingIssuingSynchronizedResponse, error)
// AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse request with any body
AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingUpdatePaymentStatusResponse, error)
AppCustomInvoicingUpdatePaymentStatusWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingUpdatePaymentStatusResponse, error)
// UninstallAppWithResponse request
UninstallAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UninstallAppResponse, error)
// GetAppWithResponse request
GetAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAppResponse, error)
// UpdateAppWithBodyWithResponse request with any body
UpdateAppWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error)
UpdateAppWithResponse(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error)
// UpdateStripeAPIKeyWithBodyWithResponse request with any body
UpdateStripeAPIKeyWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStripeAPIKeyResponse, error)
UpdateStripeAPIKeyWithResponse(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStripeAPIKeyResponse, error)
// AppStripeWebhookWithBodyWithResponse request with any body
AppStripeWebhookWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppStripeWebhookResponse, error)
AppStripeWebhookWithResponse(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*AppStripeWebhookResponse, error)
// ListBillingProfileCustomerOverridesWithResponse request
ListBillingProfileCustomerOverridesWithResponse(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, reqEditors ...RequestEditorFn) (*ListBillingProfileCustomerOverridesResponse, error)
// DeleteBillingProfileCustomerOverrideWithResponse request
DeleteBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileCustomerOverrideResponse, error)
// GetBillingProfileCustomerOverrideWithResponse request
GetBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, params *GetBillingProfileCustomerOverrideParams, reqEditors ...RequestEditorFn) (*GetBillingProfileCustomerOverrideResponse, error)
// UpsertBillingProfileCustomerOverrideWithBodyWithResponse request with any body
UpsertBillingProfileCustomerOverrideWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertBillingProfileCustomerOverrideResponse, error)
UpsertBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertBillingProfileCustomerOverrideResponse, error)
// CreatePendingInvoiceLineWithBodyWithResponse request with any body
CreatePendingInvoiceLineWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error)
CreatePendingInvoiceLineWithResponse(ctx context.Context, customerId string, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error)
// SimulateInvoiceWithBodyWithResponse request with any body
SimulateInvoiceWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SimulateInvoiceResponse, error)
SimulateInvoiceWithResponse(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SimulateInvoiceResponse, error)
// ListInvoicesWithResponse request
ListInvoicesWithResponse(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)
// InvoicePendingLinesActionWithBodyWithResponse request with any body
InvoicePendingLinesActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvoicePendingLinesActionResponse, error)
InvoicePendingLinesActionWithResponse(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvoicePendingLinesActionResponse, error)
// DeleteInvoiceWithResponse request
DeleteInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error)
// GetInvoiceWithResponse request
GetInvoiceWithResponse(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)
// UpdateInvoiceWithBodyWithResponse request with any body
UpdateInvoiceWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
UpdateInvoiceWithResponse(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
// AdvanceInvoiceActionWithResponse request
AdvanceInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*AdvanceInvoiceActionResponse, error)
// ApproveInvoiceActionWithResponse request
ApproveInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*ApproveInvoiceActionResponse, error)
// RetryInvoiceActionWithResponse request
RetryInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RetryInvoiceActionResponse, error)
// SnapshotQuantitiesInvoiceActionWithResponse request
SnapshotQuantitiesInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*SnapshotQuantitiesInvoiceActionResponse, error)
// RecalculateInvoiceTaxActionWithResponse request
RecalculateInvoiceTaxActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RecalculateInvoiceTaxActionResponse, error)
// VoidInvoiceActionWithBodyWithResponse request with any body
VoidInvoiceActionWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VoidInvoiceActionResponse, error)
VoidInvoiceActionWithResponse(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*VoidInvoiceActionResponse, error)
// ListBillingProfilesWithResponse request
ListBillingProfilesWithResponse(ctx context.Context, params *ListBillingProfilesParams, reqEditors ...RequestEditorFn) (*ListBillingProfilesResponse, error)
// CreateBillingProfileWithBodyWithResponse request with any body
CreateBillingProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBillingProfileResponse, error)
CreateBillingProfileWithResponse(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBillingProfileResponse, error)
// DeleteBillingProfileWithResponse request
DeleteBillingProfileWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileResponse, error)
// GetBillingProfileWithResponse request
GetBillingProfileWithResponse(ctx context.Context, id string, params *GetBillingProfileParams, reqEditors ...RequestEditorFn) (*GetBillingProfileResponse, error)
// UpdateBillingProfileWithBodyWithResponse request with any body
UpdateBillingProfileWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillingProfileResponse, error)
UpdateBillingProfileWithResponse(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillingProfileResponse, error)
// ListCustomersWithResponse request
ListCustomersWithResponse(ctx context.Context, params *ListCustomersParams, reqEditors ...RequestEditorFn) (*ListCustomersResponse, error)
// CreateCustomerWithBodyWithResponse request with any body
CreateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)
CreateCustomerWithResponse(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)
// DeleteCustomerWithResponse request
DeleteCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*DeleteCustomerResponse, error)
// GetCustomerWithResponse request
GetCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error)
// UpdateCustomerWithBodyWithResponse request with any body
UpdateCustomerWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)
UpdateCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)
// GetCustomerAccessWithResponse request
GetCustomerAccessWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*GetCustomerAccessResponse, error)
// ListCustomerAppDataWithResponse request
ListCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*ListCustomerAppDataResponse, error)
// UpsertCustomerAppDataWithBodyWithResponse request with any body
UpsertCustomerAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error)
UpsertCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error)
// DeleteCustomerAppDataWithResponse request
DeleteCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, reqEditors ...RequestEditorFn) (*DeleteCustomerAppDataResponse, error)
// GetCustomerEntitlementValueWithResponse request
GetCustomerEntitlementValueWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueResponse, error)
// GetCustomerStripeAppDataWithResponse request
GetCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*GetCustomerStripeAppDataResponse, error)
// UpsertCustomerStripeAppDataWithBodyWithResponse request with any body
UpsertCustomerStripeAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerStripeAppDataResponse, error)
UpsertCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerStripeAppDataResponse, error)
// CreateCustomerStripePortalSessionWithBodyWithResponse request with any body
CreateCustomerStripePortalSessionWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerStripePortalSessionResponse, error)
CreateCustomerStripePortalSessionWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerStripePortalSessionResponse, error)
// ListCustomerSubscriptionsWithResponse request
ListCustomerSubscriptionsWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListCustomerSubscriptionsResponse, error)
// GetDebugMetricsWithResponse request
GetDebugMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDebugMetricsResponse, error)
// ListEntitlementsWithResponse request
ListEntitlementsWithResponse(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*ListEntitlementsResponse, error)
// GetEntitlementByIdWithResponse request
GetEntitlementByIdWithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdResponse, error)
// ListEventsWithResponse request
ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)
// IngestEventsWithBodyWithResponse request with any body
IngestEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
IngestEventsWithResponse(ctx context.Context, body IngestEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error)
// ListFeaturesWithResponse request
ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error)
// CreateFeatureWithBodyWithResponse request with any body
CreateFeatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error)
CreateFeatureWithResponse(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error)
// DeleteFeatureWithResponse request
DeleteFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error)
// GetFeatureWithResponse request
GetFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*GetFeatureResponse, error)
// ListGrantsWithResponse request
ListGrantsWithResponse(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*ListGrantsResponse, error)
// VoidGrantWithResponse request
VoidGrantWithResponse(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*VoidGrantResponse, error)
// ListCurrenciesWithResponse request
ListCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCurrenciesResponse, error)
// GetProgressWithResponse request
GetProgressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetProgressResponse, error)
// ListMarketplaceListingsWithResponse request
ListMarketplaceListingsWithResponse(ctx context.Context, params *ListMarketplaceListingsParams, reqEditors ...RequestEditorFn) (*ListMarketplaceListingsResponse, error)
// GetMarketplaceListingWithResponse request
GetMarketplaceListingWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*GetMarketplaceListingResponse, error)
// MarketplaceAppInstallWithBodyWithResponse request with any body
MarketplaceAppInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceAppInstallResponse, error)
MarketplaceAppInstallWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceAppInstallResponse, error)
// MarketplaceAppAPIKeyInstallWithBodyWithResponse request with any body
MarketplaceAppAPIKeyInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceAppAPIKeyInstallResponse, error)
MarketplaceAppAPIKeyInstallWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceAppAPIKeyInstallResponse, error)
// MarketplaceOAuth2InstallGetURLWithResponse request
MarketplaceOAuth2InstallGetURLWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallGetURLResponse, error)
// MarketplaceOAuth2InstallAuthorizeWithResponse request
MarketplaceOAuth2InstallAuthorizeWithResponse(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallAuthorizeResponse, error)
// ListMetersWithResponse request
ListMetersWithResponse(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*ListMetersResponse, error)
// CreateMeterWithBodyWithResponse request with any body
CreateMeterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error)
CreateMeterWithResponse(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error)
// DeleteMeterWithResponse request
DeleteMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error)
// GetMeterWithResponse request
GetMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*GetMeterResponse, error)
// UpdateMeterWithBodyWithResponse request with any body
UpdateMeterWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeterResponse, error)
UpdateMeterWithResponse(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeterResponse, error)
// ListMeterGroupByValuesWithResponse request
ListMeterGroupByValuesWithResponse(ctx context.Context, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams, reqEditors ...RequestEditorFn) (*ListMeterGroupByValuesResponse, error)
// QueryMeterWithResponse request
QueryMeterWithResponse(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*QueryMeterResponse, error)
// QueryMeterPostWithBodyWithResponse request with any body
QueryMeterPostWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryMeterPostResponse, error)
QueryMeterPostWithResponse(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryMeterPostResponse, error)
// ListMeterSubjectsWithResponse request
ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, reqEditors ...RequestEditorFn) (*ListMeterSubjectsResponse, error)
// ListNotificationChannelsWithResponse request
ListNotificationChannelsWithResponse(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListNotificationChannelsResponse, error)
// CreateNotificationChannelWithBodyWithResponse request with any body
CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error)
CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error)
// DeleteNotificationChannelWithResponse request
DeleteNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelResponse, error)
// GetNotificationChannelWithResponse request
GetNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*GetNotificationChannelResponse, error)
// UpdateNotificationChannelWithBodyWithResponse request with any body
UpdateNotificationChannelWithBodyWithResponse(ctx context.Context, channelId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error)
UpdateNotificationChannelWithResponse(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error)
// ListNotificationEventsWithResponse request
ListNotificationEventsWithResponse(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*ListNotificationEventsResponse, error)
// GetNotificationEventWithResponse request
GetNotificationEventWithResponse(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*GetNotificationEventResponse, error)
// ResendNotificationEventWithBodyWithResponse request with any body
ResendNotificationEventWithBodyWithResponse(ctx context.Context, eventId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResendNotificationEventResponse, error)
ResendNotificationEventWithResponse(ctx context.Context, eventId string, body ResendNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*ResendNotificationEventResponse, error)
// ListNotificationRulesWithResponse request
ListNotificationRulesWithResponse(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*ListNotificationRulesResponse, error)
// CreateNotificationRuleWithBodyWithResponse request with any body
CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error)
CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error)
// DeleteNotificationRuleWithResponse request
DeleteNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*DeleteNotificationRuleResponse, error)
// GetNotificationRuleWithResponse request
GetNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*GetNotificationRuleResponse, error)
// UpdateNotificationRuleWithBodyWithResponse request with any body
UpdateNotificationRuleWithBodyWithResponse(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error)
UpdateNotificationRuleWithResponse(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error)
// TestNotificationRuleWithResponse request
TestNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*TestNotificationRuleResponse, error)
// ListPlansWithResponse request
ListPlansWithResponse(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error)
// CreatePlanWithBodyWithResponse request with any body
CreatePlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePlanResponse, error)
CreatePlanWithResponse(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePlanResponse, error)
// NextPlanWithResponse request
NextPlanWithResponse(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*NextPlanResponse, error)
// DeletePlanWithResponse request
DeletePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*DeletePlanResponse, error)
// GetPlanWithResponse request
GetPlanWithResponse(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*GetPlanResponse, error)
// UpdatePlanWithBodyWithResponse request with any body
UpdatePlanWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlanResponse, error)
UpdatePlanWithResponse(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePlanResponse, error)
// ListPlanAddonsWithResponse request
ListPlanAddonsWithResponse(ctx context.Context, planId string, params *ListPlanAddonsParams, reqEditors ...RequestEditorFn) (*ListPlanAddonsResponse, error)
// CreatePlanAddonWithBodyWithResponse request with any body
CreatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePlanAddonResponse, error)
CreatePlanAddonWithResponse(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePlanAddonResponse, error)
// DeletePlanAddonWithResponse request
DeletePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*DeletePlanAddonResponse, error)
// GetPlanAddonWithResponse request
GetPlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*GetPlanAddonResponse, error)
// UpdatePlanAddonWithBodyWithResponse request with any body
UpdatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, planAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlanAddonResponse, error)
UpdatePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePlanAddonResponse, error)
// ArchivePlanWithResponse request
ArchivePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*ArchivePlanResponse, error)
// PublishPlanWithResponse request
PublishPlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*PublishPlanResponse, error)
// QueryPortalMeterWithResponse request
QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*QueryPortalMeterResponse, error)
// ListPortalTokensWithResponse request
ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*ListPortalTokensResponse, error)
// CreatePortalTokenWithBodyWithResponse request with any body
CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error)
CreatePortalTokenWithResponse(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error)
// InvalidatePortalTokensWithBodyWithResponse request with any body
InvalidatePortalTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error)
InvalidatePortalTokensWithResponse(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error)
// CreateStripeCheckoutSessionWithBodyWithResponse request with any body
CreateStripeCheckoutSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStripeCheckoutSessionResponse, error)
CreateStripeCheckoutSessionWithResponse(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStripeCheckoutSessionResponse, error)
// ListSubjectsWithResponse request
ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
// UpsertSubjectWithBodyWithResponse request with any body
UpsertSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error)
UpsertSubjectWithResponse(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error)
// DeleteSubjectWithResponse request
DeleteSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*DeleteSubjectResponse, error)
// GetSubjectWithResponse request
GetSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*GetSubjectResponse, error)
// ListSubjectEntitlementsWithResponse request
ListSubjectEntitlementsWithResponse(ctx context.Context, subjectIdOrKey string, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*ListSubjectEntitlementsResponse, error)
// CreateEntitlementWithBodyWithResponse request with any body
CreateEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error)
CreateEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error)
// ListEntitlementGrantsWithResponse request
ListEntitlementGrantsWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*ListEntitlementGrantsResponse, error)
// CreateGrantWithBodyWithResponse request with any body
CreateGrantWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error)
CreateGrantWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error)
// OverrideEntitlementWithBodyWithResponse request with any body
OverrideEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideEntitlementResponse, error)
OverrideEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideEntitlementResponse, error)
// GetEntitlementValueWithResponse request
GetEntitlementValueWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetEntitlementValueResponse, error)
// DeleteEntitlementWithResponse request
DeleteEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*DeleteEntitlementResponse, error)
// GetEntitlementWithResponse request
GetEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementResponse, error)
// GetEntitlementHistoryWithResponse request
GetEntitlementHistoryWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*GetEntitlementHistoryResponse, error)
// ResetEntitlementUsageWithBodyWithResponse request with any body
ResetEntitlementUsageWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error)
ResetEntitlementUsageWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error)
// CreateSubscriptionWithBodyWithResponse request with any body
CreateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error)
CreateSubscriptionWithResponse(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error)
// DeleteSubscriptionWithResponse request
DeleteSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error)
// GetSubscriptionWithResponse request
GetSubscriptionWithResponse(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error)
// EditSubscriptionWithBodyWithResponse request with any body
EditSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSubscriptionResponse, error)
EditSubscriptionWithResponse(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSubscriptionResponse, error)
// ListSubscriptionAddonsWithResponse request
ListSubscriptionAddonsWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*ListSubscriptionAddonsResponse, error)
// CreateSubscriptionAddonWithBodyWithResponse request with any body
CreateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionAddonResponse, error)
CreateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionAddonResponse, error)
// GetSubscriptionAddonWithResponse request
GetSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, reqEditors ...RequestEditorFn) (*GetSubscriptionAddonResponse, error)
// UpdateSubscriptionAddonWithBodyWithResponse request with any body
UpdateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionAddonResponse, error)
UpdateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionAddonResponse, error)
// CancelSubscriptionWithBodyWithResponse request with any body
CancelSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error)
CancelSubscriptionWithResponse(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error)
// ChangeSubscriptionWithBodyWithResponse request with any body
ChangeSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeSubscriptionResponse, error)
ChangeSubscriptionWithResponse(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeSubscriptionResponse, error)
// MigrateSubscriptionWithBodyWithResponse request with any body
MigrateSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MigrateSubscriptionResponse, error)
MigrateSubscriptionWithResponse(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*MigrateSubscriptionResponse, error)
// RestoreSubscriptionWithResponse request
RestoreSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*RestoreSubscriptionResponse, error)
// UnscheduleCancelationWithResponse request
UnscheduleCancelationWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*UnscheduleCancelationResponse, error)
// ListCustomerEntitlementsV2WithResponse request
ListCustomerEntitlementsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params, reqEditors ...RequestEditorFn) (*ListCustomerEntitlementsV2Response, error)
// CreateCustomerEntitlementV2WithBodyWithResponse request with any body
CreateCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementV2Response, error)
CreateCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementV2Response, error)
// DeleteCustomerEntitlementV2WithResponse request
DeleteCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*DeleteCustomerEntitlementV2Response, error)
// GetCustomerEntitlementV2WithResponse request
GetCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementV2Response, error)
// ListCustomerEntitlementGrantsV2WithResponse request
ListCustomerEntitlementGrantsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params, reqEditors ...RequestEditorFn) (*ListCustomerEntitlementGrantsV2Response, error)
// CreateCustomerEntitlementGrantV2WithBodyWithResponse request with any body
CreateCustomerEntitlementGrantV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementGrantV2Response, error)
CreateCustomerEntitlementGrantV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementGrantV2Response, error)
// GetCustomerEntitlementHistoryV2WithResponse request
GetCustomerEntitlementHistoryV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementHistoryV2Response, error)
// OverrideCustomerEntitlementV2WithBodyWithResponse request with any body
OverrideCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideCustomerEntitlementV2Response, error)
OverrideCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideCustomerEntitlementV2Response, error)
// ResetCustomerEntitlementUsageV2WithBodyWithResponse request with any body
ResetCustomerEntitlementUsageV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetCustomerEntitlementUsageV2Response, error)
ResetCustomerEntitlementUsageV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody, reqEditors ...RequestEditorFn) (*ResetCustomerEntitlementUsageV2Response, error)
// GetCustomerEntitlementValueV2WithResponse request
GetCustomerEntitlementValueV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueV2Response, error)
// ListEntitlementsV2WithResponse request
ListEntitlementsV2WithResponse(ctx context.Context, params *ListEntitlementsV2Params, reqEditors ...RequestEditorFn) (*ListEntitlementsV2Response, error)
// GetEntitlementByIdV2WithResponse request
GetEntitlementByIdV2WithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdV2Response, error)
// ListEventsV2WithResponse request
ListEventsV2WithResponse(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*ListEventsV2Response, error)
// ListGrantsV2WithResponse request
ListGrantsV2WithResponse(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*ListGrantsV2Response, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CollectionMethod ¶
type CollectionMethod string
CollectionMethod CollectionMethod specifies how the invoice should be collected (automatic vs manual)
const ( CollectionMethodChargeAutomatically CollectionMethod = "charge_automatically" CollectionMethodSendInvoice CollectionMethod = "send_invoice" )
Defines values for CollectionMethod.
type ConflictProblemResponse ¶
type ConflictProblemResponse = UnexpectedProblemResponse
ConflictProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type CountryCode ¶
type CountryCode = string
CountryCode [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) alpha-2 country code. Custom two-letter country codes are also supported for convenience.
type CreateAddonJSONRequestBody ¶
type CreateAddonJSONRequestBody = AddonCreate
CreateAddonJSONRequestBody defines body for CreateAddon for application/json ContentType.
type CreateAddonResponse ¶
type CreateAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Addon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateAddonResponse ¶
func ParseCreateAddonResponse(rsp *http.Response) (*CreateAddonResponse, error)
ParseCreateAddonResponse parses an HTTP response from a CreateAddonWithResponse call
func (CreateAddonResponse) Status ¶
func (r CreateAddonResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAddonResponse) StatusCode ¶
func (r CreateAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateBillingProfileJSONRequestBody ¶
type CreateBillingProfileJSONRequestBody = BillingProfileCreate
CreateBillingProfileJSONRequestBody defines body for CreateBillingProfile for application/json ContentType.
type CreateBillingProfileResponse ¶
type CreateBillingProfileResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *BillingProfile
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateBillingProfileResponse ¶
func ParseCreateBillingProfileResponse(rsp *http.Response) (*CreateBillingProfileResponse, error)
ParseCreateBillingProfileResponse parses an HTTP response from a CreateBillingProfileWithResponse call
func (CreateBillingProfileResponse) Status ¶
func (r CreateBillingProfileResponse) Status() string
Status returns HTTPResponse.Status
func (CreateBillingProfileResponse) StatusCode ¶
func (r CreateBillingProfileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCheckoutSessionTaxIdCollection ¶
type CreateCheckoutSessionTaxIdCollection struct {
// Enabled Enable tax ID collection during checkout. Defaults to false.
Enabled bool `json:"enabled"`
// Required Describes whether a tax ID is required during checkout. Defaults to never.
Required *CreateCheckoutSessionTaxIdCollectionRequired `json:"required,omitempty"`
}
CreateCheckoutSessionTaxIdCollection Create Stripe checkout session tax ID collection.
type CreateCheckoutSessionTaxIdCollectionRequired ¶
type CreateCheckoutSessionTaxIdCollectionRequired string
CreateCheckoutSessionTaxIdCollectionRequired Create Stripe checkout session tax ID collection required.
const ( CreateCheckoutSessionTaxIdCollectionRequiredIfSupported CreateCheckoutSessionTaxIdCollectionRequired = "if_supported" CreateCheckoutSessionTaxIdCollectionRequiredNever CreateCheckoutSessionTaxIdCollectionRequired = "never" )
Defines values for CreateCheckoutSessionTaxIdCollectionRequired.
type CreateCustomerEntitlementGrantV2JSONRequestBody ¶
type CreateCustomerEntitlementGrantV2JSONRequestBody = EntitlementGrantCreateInputV2
CreateCustomerEntitlementGrantV2JSONRequestBody defines body for CreateCustomerEntitlementGrantV2 for application/json ContentType.
type CreateCustomerEntitlementGrantV2Response ¶
type CreateCustomerEntitlementGrantV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON201 *EntitlementGrantV2
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateCustomerEntitlementGrantV2Response ¶
func ParseCreateCustomerEntitlementGrantV2Response(rsp *http.Response) (*CreateCustomerEntitlementGrantV2Response, error)
ParseCreateCustomerEntitlementGrantV2Response parses an HTTP response from a CreateCustomerEntitlementGrantV2WithResponse call
func (CreateCustomerEntitlementGrantV2Response) Status ¶
func (r CreateCustomerEntitlementGrantV2Response) Status() string
Status returns HTTPResponse.Status
func (CreateCustomerEntitlementGrantV2Response) StatusCode ¶
func (r CreateCustomerEntitlementGrantV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCustomerEntitlementV2JSONRequestBody ¶
type CreateCustomerEntitlementV2JSONRequestBody = EntitlementV2CreateInputs
CreateCustomerEntitlementV2JSONRequestBody defines body for CreateCustomerEntitlementV2 for application/json ContentType.
type CreateCustomerEntitlementV2Response ¶
type CreateCustomerEntitlementV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON201 *EntitlementV2
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateCustomerEntitlementV2Response ¶
func ParseCreateCustomerEntitlementV2Response(rsp *http.Response) (*CreateCustomerEntitlementV2Response, error)
ParseCreateCustomerEntitlementV2Response parses an HTTP response from a CreateCustomerEntitlementV2WithResponse call
func (CreateCustomerEntitlementV2Response) Status ¶
func (r CreateCustomerEntitlementV2Response) Status() string
Status returns HTTPResponse.Status
func (CreateCustomerEntitlementV2Response) StatusCode ¶
func (r CreateCustomerEntitlementV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCustomerJSONRequestBody ¶
type CreateCustomerJSONRequestBody = CustomerCreate
CreateCustomerJSONRequestBody defines body for CreateCustomer for application/json ContentType.
type CreateCustomerResponse ¶
type CreateCustomerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Customer
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateCustomerResponse ¶
func ParseCreateCustomerResponse(rsp *http.Response) (*CreateCustomerResponse, error)
ParseCreateCustomerResponse parses an HTTP response from a CreateCustomerWithResponse call
func (CreateCustomerResponse) Status ¶
func (r CreateCustomerResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCustomerResponse) StatusCode ¶
func (r CreateCustomerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCustomerStripePortalSessionJSONRequestBody ¶
type CreateCustomerStripePortalSessionJSONRequestBody = CreateStripeCustomerPortalSessionParams
CreateCustomerStripePortalSessionJSONRequestBody defines body for CreateCustomerStripePortalSession for application/json ContentType.
type CreateCustomerStripePortalSessionResponse ¶
type CreateCustomerStripePortalSessionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *StripeCustomerPortalSession
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateCustomerStripePortalSessionResponse ¶
func ParseCreateCustomerStripePortalSessionResponse(rsp *http.Response) (*CreateCustomerStripePortalSessionResponse, error)
ParseCreateCustomerStripePortalSessionResponse parses an HTTP response from a CreateCustomerStripePortalSessionWithResponse call
func (CreateCustomerStripePortalSessionResponse) Status ¶
func (r CreateCustomerStripePortalSessionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCustomerStripePortalSessionResponse) StatusCode ¶
func (r CreateCustomerStripePortalSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateEntitlementJSONRequestBody ¶
type CreateEntitlementJSONRequestBody = EntitlementCreateInputs
CreateEntitlementJSONRequestBody defines body for CreateEntitlement for application/json ContentType.
type CreateEntitlementResponse ¶
type CreateEntitlementResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Entitlement
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateEntitlementResponse ¶
func ParseCreateEntitlementResponse(rsp *http.Response) (*CreateEntitlementResponse, error)
ParseCreateEntitlementResponse parses an HTTP response from a CreateEntitlementWithResponse call
func (CreateEntitlementResponse) Status ¶
func (r CreateEntitlementResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEntitlementResponse) StatusCode ¶
func (r CreateEntitlementResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFeatureJSONRequestBody ¶
type CreateFeatureJSONRequestBody = FeatureCreateInputs
CreateFeatureJSONRequestBody defines body for CreateFeature for application/json ContentType.
type CreateFeatureResponse ¶
type CreateFeatureResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Feature
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateFeatureResponse ¶
func ParseCreateFeatureResponse(rsp *http.Response) (*CreateFeatureResponse, error)
ParseCreateFeatureResponse parses an HTTP response from a CreateFeatureWithResponse call
func (CreateFeatureResponse) Status ¶
func (r CreateFeatureResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFeatureResponse) StatusCode ¶
func (r CreateFeatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateGrantJSONRequestBody ¶
type CreateGrantJSONRequestBody = EntitlementGrantCreateInput
CreateGrantJSONRequestBody defines body for CreateGrant for application/json ContentType.
type CreateGrantResponse ¶
type CreateGrantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *EntitlementGrant
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateGrantResponse ¶
func ParseCreateGrantResponse(rsp *http.Response) (*CreateGrantResponse, error)
ParseCreateGrantResponse parses an HTTP response from a CreateGrantWithResponse call
func (CreateGrantResponse) Status ¶
func (r CreateGrantResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGrantResponse) StatusCode ¶
func (r CreateGrantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateMeterJSONRequestBody ¶
type CreateMeterJSONRequestBody = MeterCreate
CreateMeterJSONRequestBody defines body for CreateMeter for application/json ContentType.
type CreateMeterResponse ¶
type CreateMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Meter
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateMeterResponse ¶
func ParseCreateMeterResponse(rsp *http.Response) (*CreateMeterResponse, error)
ParseCreateMeterResponse parses an HTTP response from a CreateMeterWithResponse call
func (CreateMeterResponse) Status ¶
func (r CreateMeterResponse) Status() string
Status returns HTTPResponse.Status
func (CreateMeterResponse) StatusCode ¶
func (r CreateMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNotificationChannelJSONRequestBody ¶
type CreateNotificationChannelJSONRequestBody = NotificationChannelCreateRequest
CreateNotificationChannelJSONRequestBody defines body for CreateNotificationChannel for application/json ContentType.
type CreateNotificationChannelResponse ¶
type CreateNotificationChannelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *NotificationChannel
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateNotificationChannelResponse ¶
func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotificationChannelResponse, error)
ParseCreateNotificationChannelResponse parses an HTTP response from a CreateNotificationChannelWithResponse call
func (CreateNotificationChannelResponse) Status ¶
func (r CreateNotificationChannelResponse) Status() string
Status returns HTTPResponse.Status
func (CreateNotificationChannelResponse) StatusCode ¶
func (r CreateNotificationChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNotificationRuleJSONRequestBody ¶
type CreateNotificationRuleJSONRequestBody = NotificationRuleCreateRequest
CreateNotificationRuleJSONRequestBody defines body for CreateNotificationRule for application/json ContentType.
type CreateNotificationRuleResponse ¶
type CreateNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *NotificationRule
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateNotificationRuleResponse ¶
func ParseCreateNotificationRuleResponse(rsp *http.Response) (*CreateNotificationRuleResponse, error)
ParseCreateNotificationRuleResponse parses an HTTP response from a CreateNotificationRuleWithResponse call
func (CreateNotificationRuleResponse) Status ¶
func (r CreateNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (CreateNotificationRuleResponse) StatusCode ¶
func (r CreateNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePendingInvoiceLineJSONRequestBody ¶
type CreatePendingInvoiceLineJSONRequestBody = InvoicePendingLineCreateInput
CreatePendingInvoiceLineJSONRequestBody defines body for CreatePendingInvoiceLine for application/json ContentType.
type CreatePendingInvoiceLineResponse ¶
type CreatePendingInvoiceLineResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *InvoicePendingLineCreateResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreatePendingInvoiceLineResponse ¶
func ParseCreatePendingInvoiceLineResponse(rsp *http.Response) (*CreatePendingInvoiceLineResponse, error)
ParseCreatePendingInvoiceLineResponse parses an HTTP response from a CreatePendingInvoiceLineWithResponse call
func (CreatePendingInvoiceLineResponse) Status ¶
func (r CreatePendingInvoiceLineResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePendingInvoiceLineResponse) StatusCode ¶
func (r CreatePendingInvoiceLineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePlanAddonJSONRequestBody ¶
type CreatePlanAddonJSONRequestBody = PlanAddonCreate
CreatePlanAddonJSONRequestBody defines body for CreatePlanAddon for application/json ContentType.
type CreatePlanAddonResponse ¶
type CreatePlanAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *PlanAddon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreatePlanAddonResponse ¶
func ParseCreatePlanAddonResponse(rsp *http.Response) (*CreatePlanAddonResponse, error)
ParseCreatePlanAddonResponse parses an HTTP response from a CreatePlanAddonWithResponse call
func (CreatePlanAddonResponse) Status ¶
func (r CreatePlanAddonResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePlanAddonResponse) StatusCode ¶
func (r CreatePlanAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePlanJSONRequestBody ¶
type CreatePlanJSONRequestBody = PlanCreate
CreatePlanJSONRequestBody defines body for CreatePlan for application/json ContentType.
type CreatePlanResponse ¶
type CreatePlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Plan
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreatePlanResponse ¶
func ParseCreatePlanResponse(rsp *http.Response) (*CreatePlanResponse, error)
ParseCreatePlanResponse parses an HTTP response from a CreatePlanWithResponse call
func (CreatePlanResponse) Status ¶
func (r CreatePlanResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePlanResponse) StatusCode ¶
func (r CreatePlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePortalTokenJSONRequestBody ¶
type CreatePortalTokenJSONRequestBody = PortalToken
CreatePortalTokenJSONRequestBody defines body for CreatePortalToken for application/json ContentType.
type CreatePortalTokenResponse ¶
type CreatePortalTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PortalToken
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreatePortalTokenResponse ¶
func ParseCreatePortalTokenResponse(rsp *http.Response) (*CreatePortalTokenResponse, error)
ParseCreatePortalTokenResponse parses an HTTP response from a CreatePortalTokenWithResponse call
func (CreatePortalTokenResponse) Status ¶
func (r CreatePortalTokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePortalTokenResponse) StatusCode ¶
func (r CreatePortalTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateStripeCheckoutSessionBillingAddressCollection ¶
type CreateStripeCheckoutSessionBillingAddressCollection string
CreateStripeCheckoutSessionBillingAddressCollection Specify whether Checkout should collect the customer’s billing address.
const ( CreateStripeCheckoutSessionBillingAddressCollectionAuto CreateStripeCheckoutSessionBillingAddressCollection = "auto" CreateStripeCheckoutSessionBillingAddressCollectionRequired CreateStripeCheckoutSessionBillingAddressCollection = "required" )
Defines values for CreateStripeCheckoutSessionBillingAddressCollection.
type CreateStripeCheckoutSessionConsentCollection ¶
type CreateStripeCheckoutSessionConsentCollection struct {
// PaymentMethodReuseAgreement Determines the position and visibility of the payment method reuse agreement in the UI.
// When set to auto, Stripe’s defaults will be used. When set to hidden, the payment method reuse agreement text will always be hidden in the UI.
PaymentMethodReuseAgreement *CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreement `json:"paymentMethodReuseAgreement,omitempty"`
// Promotions If set to auto, enables the collection of customer consent for promotional communications.
// The Checkout Session will determine whether to display an option to opt into promotional
// communication from the merchant depending on the customer’s locale. Only available to US merchants.
Promotions *CreateStripeCheckoutSessionConsentCollectionPromotions `json:"promotions,omitempty"`
// TermsOfService If set to required, it requires customers to check a terms of service checkbox before being able to pay.
// There must be a valid terms of service URL set in your Stripe Dashboard settings.
// https://dashboard.stripe.com/settings/public
TermsOfService *CreateStripeCheckoutSessionConsentCollectionTermsOfService `json:"termsOfService,omitempty"`
}
CreateStripeCheckoutSessionConsentCollection Configure fields for the Checkout Session to gather active consent from customers.
type CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreement ¶
type CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreement struct {
// Position Create Stripe checkout session consent collection agreement position.
Position *CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition `json:"position,omitempty"`
}
CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreement Create Stripe checkout session payment method reuse agreement.
type CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition ¶
type CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition string
CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition Create Stripe checkout session consent collection agreement position.
const ( CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPositionAuto CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition = "auto" CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPositionHidden CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition = "hidden" )
Defines values for CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition.
type CreateStripeCheckoutSessionConsentCollectionPromotions ¶
type CreateStripeCheckoutSessionConsentCollectionPromotions string
CreateStripeCheckoutSessionConsentCollectionPromotions Create Stripe checkout session consent collection promotions.
const ( CreateStripeCheckoutSessionConsentCollectionPromotionsAuto CreateStripeCheckoutSessionConsentCollectionPromotions = "auto" CreateStripeCheckoutSessionConsentCollectionPromotionsNone CreateStripeCheckoutSessionConsentCollectionPromotions = "none" )
Defines values for CreateStripeCheckoutSessionConsentCollectionPromotions.
type CreateStripeCheckoutSessionConsentCollectionTermsOfService ¶
type CreateStripeCheckoutSessionConsentCollectionTermsOfService string
CreateStripeCheckoutSessionConsentCollectionTermsOfService Create Stripe checkout session consent collection terms of service.
const ( CreateStripeCheckoutSessionConsentCollectionTermsOfServiceNone CreateStripeCheckoutSessionConsentCollectionTermsOfService = "none" CreateStripeCheckoutSessionConsentCollectionTermsOfServiceRequired CreateStripeCheckoutSessionConsentCollectionTermsOfService = "required" )
Defines values for CreateStripeCheckoutSessionConsentCollectionTermsOfService.
type CreateStripeCheckoutSessionCustomerUpdate ¶
type CreateStripeCheckoutSessionCustomerUpdate struct {
// Address Describes whether Checkout saves the billing address onto customer.address.
// To always collect a full billing address, use billing_address_collection.
// Defaults to never.
Address *CreateStripeCheckoutSessionCustomerUpdateBehavior `json:"address,omitempty"`
// Name Describes whether Checkout saves the name onto customer.name.
// Defaults to never.
Name *CreateStripeCheckoutSessionCustomerUpdateBehavior `json:"name,omitempty"`
// Shipping Describes whether Checkout saves shipping information onto customer.shipping.
// To collect shipping information, use shipping_address_collection.
// Defaults to never.
Shipping *CreateStripeCheckoutSessionCustomerUpdateBehavior `json:"shipping,omitempty"`
}
CreateStripeCheckoutSessionCustomerUpdate Controls what fields on Customer can be updated by the Checkout Session.
type CreateStripeCheckoutSessionCustomerUpdateBehavior ¶
type CreateStripeCheckoutSessionCustomerUpdateBehavior string
CreateStripeCheckoutSessionCustomerUpdateBehavior Create Stripe checkout session customer update behavior.
const ( CreateStripeCheckoutSessionCustomerUpdateBehaviorAuto CreateStripeCheckoutSessionCustomerUpdateBehavior = "auto" CreateStripeCheckoutSessionCustomerUpdateBehaviorNever CreateStripeCheckoutSessionCustomerUpdateBehavior = "never" )
Defines values for CreateStripeCheckoutSessionCustomerUpdateBehavior.
type CreateStripeCheckoutSessionJSONRequestBody ¶
type CreateStripeCheckoutSessionJSONRequestBody = CreateStripeCheckoutSessionRequest
CreateStripeCheckoutSessionJSONRequestBody defines body for CreateStripeCheckoutSession for application/json ContentType.
type CreateStripeCheckoutSessionRedirectOnCompletion ¶
type CreateStripeCheckoutSessionRedirectOnCompletion string
CreateStripeCheckoutSessionRedirectOnCompletion Create Stripe checkout session redirect on completion.
const ( CreateStripeCheckoutSessionRedirectOnCompletionAlways CreateStripeCheckoutSessionRedirectOnCompletion = "always" CreateStripeCheckoutSessionRedirectOnCompletionIfRequired CreateStripeCheckoutSessionRedirectOnCompletion = "if_required" CreateStripeCheckoutSessionRedirectOnCompletionNever CreateStripeCheckoutSessionRedirectOnCompletion = "never" )
Defines values for CreateStripeCheckoutSessionRedirectOnCompletion.
type CreateStripeCheckoutSessionRequest ¶
type CreateStripeCheckoutSessionRequest struct {
// AppId If not provided, the default Stripe app is used if any.
AppId *string `json:"appId,omitempty"`
// Customer Provide a customer ID or key to use an existing OpenMeter customer.
// or provide a customer object to create a new customer.
Customer CreateStripeCheckoutSessionRequest_Customer `json:"customer"`
// Options Options passed to Stripe when creating the checkout session.
Options CreateStripeCheckoutSessionRequestOptions `json:"options"`
// StripeCustomerId Stripe customer ID.
// If not provided OpenMeter creates a new Stripe customer or
// uses the OpenMeter customer's default Stripe customer ID.
StripeCustomerId *string `json:"stripeCustomerId,omitempty"`
}
CreateStripeCheckoutSessionRequest Create Stripe checkout session request.
type CreateStripeCheckoutSessionRequestOptions ¶
type CreateStripeCheckoutSessionRequestOptions struct {
// BillingAddressCollection Specify whether Checkout should collect the customer’s billing address. Defaults to auto.
BillingAddressCollection *CreateStripeCheckoutSessionBillingAddressCollection `json:"billingAddressCollection,omitempty"`
// CancelURL If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
// This parameter is not allowed if ui_mode is embedded.
CancelURL *string `json:"cancelURL,omitempty"`
// ClientReferenceID A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the session with your internal systems.
ClientReferenceID *string `json:"clientReferenceID,omitempty"`
// ConsentCollection Configure fields for the Checkout Session to gather active consent from customers.
ConsentCollection *CreateStripeCheckoutSessionConsentCollection `json:"consentCollection,omitempty"`
// Currency Three-letter ISO currency code, in lowercase.
Currency *CurrencyCode `json:"currency,omitempty"`
// CustomText Display additional text for your customers using custom text.
CustomText *CheckoutSessionCustomTextAfterSubmitParams `json:"customText,omitempty"`
// CustomerUpdate Controls what fields on Customer can be updated by the Checkout Session.
CustomerUpdate *CreateStripeCheckoutSessionCustomerUpdate `json:"customerUpdate,omitempty"`
// ExpiresAt The Epoch time in seconds at which the Checkout Session will expire.
// It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.
ExpiresAt *int64 `json:"expiresAt,omitempty"`
Locale *string `json:"locale,omitempty"`
// Metadata Set of key-value pairs that you can attach to an object.
// This can be useful for storing additional information about the object in a structured format.
// Individual keys can be unset by posting an empty value to them.
// All keys can be unset by posting an empty value to metadata.
Metadata *map[string]string `json:"metadata,omitempty"`
// PaymentMethodTypes A list of the types of payment methods (e.g., card) this Checkout Session can accept.
PaymentMethodTypes *[]string `json:"paymentMethodTypes,omitempty"`
// RedirectOnCompletion This parameter applies to ui_mode: embedded. Defaults to always.
// Learn more about the redirect behavior of embedded sessions at
// https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form
RedirectOnCompletion *CreateStripeCheckoutSessionRedirectOnCompletion `json:"redirectOnCompletion,omitempty"`
// ReturnURL The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method’s app or site.
// This parameter is required if ui_mode is embedded and redirect-based payment methods are enabled on the session.
ReturnURL *string `json:"returnURL,omitempty"`
// SuccessURL The URL to which Stripe should send customers when payment or setup is complete.
// This parameter is not allowed if ui_mode is embedded.
// If you’d like to use information from the successful Checkout Session on your page, read the guide on customizing your success page:
// https://docs.stripe.com/payments/checkout/custom-success-page
SuccessURL *string `json:"successURL,omitempty"`
// TaxIdCollection Controls tax ID collection during checkout.
TaxIdCollection *CreateCheckoutSessionTaxIdCollection `json:"taxIdCollection,omitempty"`
// UiMode The UI mode of the Session. Defaults to hosted.
UiMode *CheckoutSessionUIMode `json:"uiMode,omitempty"`
}
CreateStripeCheckoutSessionRequestOptions Create Stripe checkout session options See https://docs.stripe.com/api/checkout/sessions/create
type CreateStripeCheckoutSessionRequest_Customer ¶
type CreateStripeCheckoutSessionRequest_Customer struct {
// contains filtered or unexported fields
}
CreateStripeCheckoutSessionRequest_Customer Provide a customer ID or key to use an existing OpenMeter customer. or provide a customer object to create a new customer.
func (CreateStripeCheckoutSessionRequest_Customer) AsCustomerCreate ¶
func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerCreate() (CustomerCreate, error)
AsCustomerCreate returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerCreate
func (CreateStripeCheckoutSessionRequest_Customer) AsCustomerId ¶
func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerId() (CustomerId, error)
AsCustomerId returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerId
func (CreateStripeCheckoutSessionRequest_Customer) AsCustomerKey ¶
func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerKey() (CustomerKey, error)
AsCustomerKey returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerKey
func (*CreateStripeCheckoutSessionRequest_Customer) FromCustomerCreate ¶
func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerCreate(v CustomerCreate) error
FromCustomerCreate overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerCreate
func (*CreateStripeCheckoutSessionRequest_Customer) FromCustomerId ¶
func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerId(v CustomerId) error
FromCustomerId overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerId
func (*CreateStripeCheckoutSessionRequest_Customer) FromCustomerKey ¶
func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerKey(v CustomerKey) error
FromCustomerKey overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerKey
func (CreateStripeCheckoutSessionRequest_Customer) MarshalJSON ¶
func (t CreateStripeCheckoutSessionRequest_Customer) MarshalJSON() ([]byte, error)
func (*CreateStripeCheckoutSessionRequest_Customer) MergeCustomerCreate ¶
func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerCreate(v CustomerCreate) error
MergeCustomerCreate performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerCreate
func (*CreateStripeCheckoutSessionRequest_Customer) MergeCustomerId ¶
func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerId(v CustomerId) error
MergeCustomerId performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerId
func (*CreateStripeCheckoutSessionRequest_Customer) MergeCustomerKey ¶
func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerKey(v CustomerKey) error
MergeCustomerKey performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerKey
func (*CreateStripeCheckoutSessionRequest_Customer) UnmarshalJSON ¶
func (t *CreateStripeCheckoutSessionRequest_Customer) UnmarshalJSON(b []byte) error
type CreateStripeCheckoutSessionResponse ¶
type CreateStripeCheckoutSessionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateStripeCheckoutSessionResult
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateStripeCheckoutSessionResponse ¶
func ParseCreateStripeCheckoutSessionResponse(rsp *http.Response) (*CreateStripeCheckoutSessionResponse, error)
ParseCreateStripeCheckoutSessionResponse parses an HTTP response from a CreateStripeCheckoutSessionWithResponse call
func (CreateStripeCheckoutSessionResponse) Status ¶
func (r CreateStripeCheckoutSessionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateStripeCheckoutSessionResponse) StatusCode ¶
func (r CreateStripeCheckoutSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateStripeCheckoutSessionResult ¶
type CreateStripeCheckoutSessionResult struct {
// CancelURL Cancel URL.
CancelURL *string `json:"cancelURL,omitempty"`
// ClientReferenceId A unique string to reference the Checkout Session.
// This can be a customer ID, a cart ID, or similar, and can be used to reconcile the session with your internal systems.
ClientReferenceId *string `json:"clientReferenceId,omitempty"`
// ClientSecret The client secret of the checkout session.
// This can be used to initialize Stripe.js for your client-side implementation.
ClientSecret *string `json:"clientSecret,omitempty"`
// CreatedAt Timestamp at which the checkout session was created.
CreatedAt time.Time `json:"createdAt"`
// Currency Three-letter ISO currency code, in lowercase.
Currency *CurrencyCode `json:"currency,omitempty"`
// CustomerEmail Customer's email address provided to Stripe.
CustomerEmail *string `json:"customerEmail,omitempty"`
// CustomerId The OpenMeter customer ID.
CustomerId string `json:"customerId"`
// ExpiresAt Timestamp at which the checkout session will expire.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// Metadata Set of key-value pairs attached to the checkout session.
Metadata *map[string]string `json:"metadata,omitempty"`
// Mode Mode
// Always `setup` for now.
Mode StripeCheckoutSessionMode `json:"mode"`
// ReturnURL Return URL.
ReturnURL *string `json:"returnURL,omitempty"`
// SessionId The checkout session ID.
SessionId string `json:"sessionId"`
// SetupIntentId The checkout session setup intent ID.
SetupIntentId string `json:"setupIntentId"`
// Status The status of the checkout session.
Status *string `json:"status,omitempty"`
// StripeCustomerId The Stripe customer ID.
StripeCustomerId string `json:"stripeCustomerId"`
// SuccessURL Success URL.
SuccessURL *string `json:"successURL,omitempty"`
// Url URL to show the checkout session.
Url *string `json:"url,omitempty"`
}
CreateStripeCheckoutSessionResult Create Stripe Checkout Session response.
type CreateStripeCustomerPortalSessionParams ¶
type CreateStripeCustomerPortalSessionParams struct {
// ConfigurationId The ID of an existing configuration to use for this session,
// describing its functionality and features.
// If not specified, the session uses the default configuration.
//
// See https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-configuration
ConfigurationId *string `json:"configurationId,omitempty"`
// Locale The IETF language tag of the locale customer portal is displayed in.
// If blank or auto, the customer’s preferred_locales or browser’s locale is used.
//
// See: https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-locale
Locale *string `json:"locale,omitempty"`
// ReturnUrl The URL to redirect the customer to after they have completed
// their requested actions.
//
// See: https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url
ReturnUrl *string `json:"returnUrl,omitempty"`
}
CreateStripeCustomerPortalSessionParams Stripe customer portal request params.
type CreateSubscriptionAddonJSONRequestBody ¶
type CreateSubscriptionAddonJSONRequestBody = SubscriptionAddonCreate
CreateSubscriptionAddonJSONRequestBody defines body for CreateSubscriptionAddon for application/json ContentType.
type CreateSubscriptionAddonResponse ¶
type CreateSubscriptionAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SubscriptionAddon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateSubscriptionAddonResponse ¶
func ParseCreateSubscriptionAddonResponse(rsp *http.Response) (*CreateSubscriptionAddonResponse, error)
ParseCreateSubscriptionAddonResponse parses an HTTP response from a CreateSubscriptionAddonWithResponse call
func (CreateSubscriptionAddonResponse) Status ¶
func (r CreateSubscriptionAddonResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSubscriptionAddonResponse) StatusCode ¶
func (r CreateSubscriptionAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSubscriptionJSONRequestBody ¶
type CreateSubscriptionJSONRequestBody = SubscriptionCreate
CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType.
type CreateSubscriptionResponse ¶
type CreateSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Subscription
ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON409 *SubscriptionConflictErrorResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseCreateSubscriptionResponse ¶
func ParseCreateSubscriptionResponse(rsp *http.Response) (*CreateSubscriptionResponse, error)
ParseCreateSubscriptionResponse parses an HTTP response from a CreateSubscriptionWithResponse call
func (CreateSubscriptionResponse) Status ¶
func (r CreateSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSubscriptionResponse) StatusCode ¶
func (r CreateSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreditNoteOriginalInvoiceRef ¶
type CreditNoteOriginalInvoiceRef = InvoiceGenericDocumentRef
CreditNoteOriginalInvoiceRef Omitted fields: period: Tax period in which the referred document had an effect required by some tax regimes and formats. stamps: Seals of approval from other organisations that may need to be listed. ext: Extensions for additional codes that may be required.
type Currency ¶
type Currency struct {
// Code The currency ISO code.
Code CurrencyCode `json:"code"`
// Name The currency name.
Name string `json:"name"`
// Subunits Subunit of the currency.
Subunits uint32 `json:"subunits"`
// Symbol The currency symbol.
Symbol string `json:"symbol"`
}
Currency Currency describes a currency supported by OpenMeter.
type CurrencyCode ¶
type CurrencyCode = string
CurrencyCode Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code. Custom three-letter currency codes are also supported for convenience.
type CursorPaginationCursor ¶
type CursorPaginationCursor = string
CursorPaginationCursor defines model for CursorPagination.cursor.
type CursorPaginationLimit ¶
type CursorPaginationLimit = int
CursorPaginationLimit defines model for CursorPagination.limit.
type CustomInvoicingApp ¶
type CustomInvoicingApp struct {
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// EnableDraftSyncHook Enable draft.sync hook.
//
// If the hook is not enabled, the invoice will be progressed to the next state automatically.
EnableDraftSyncHook bool `json:"enableDraftSyncHook"`
// EnableIssuingSyncHook Enable issuing.sync hook.
//
// If the hook is not enabled, the invoice will be progressed to the next state automatically.
EnableIssuingSyncHook bool `json:"enableIssuingSyncHook"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Listing The marketplace listing that this installed app is based on.
Listing MarketplaceListing `json:"listing"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Status Status of the app connection.
Status AppStatus `json:"status"`
// Type The app's type is CustomInvoicing.
Type CustomInvoicingAppType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
CustomInvoicingApp Custom Invoicing app can be used for interface with any invoicing or payment system.
This app provides ways to manipulate invoices and payments, however the integration must rely on Notifications API to get notified about invoice changes.
type CustomInvoicingAppReplaceUpdate ¶
type CustomInvoicingAppReplaceUpdate struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// EnableDraftSyncHook Enable draft.sync hook.
//
// If the hook is not enabled, the invoice will be progressed to the next state automatically.
EnableDraftSyncHook bool `json:"enableDraftSyncHook"`
// EnableIssuingSyncHook Enable issuing.sync hook.
//
// If the hook is not enabled, the invoice will be progressed to the next state automatically.
EnableIssuingSyncHook bool `json:"enableIssuingSyncHook"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Type The app's type is CustomInvoicing.
Type CustomInvoicingAppReplaceUpdateType `json:"type"`
}
CustomInvoicingAppReplaceUpdate Resource update operation model.
type CustomInvoicingAppReplaceUpdateType ¶
type CustomInvoicingAppReplaceUpdateType string
CustomInvoicingAppReplaceUpdateType The app's type is CustomInvoicing.
const (
CustomInvoicingAppReplaceUpdateTypeCustomInvoicing CustomInvoicingAppReplaceUpdateType = "custom_invoicing"
)
Defines values for CustomInvoicingAppReplaceUpdateType.
type CustomInvoicingAppType ¶
type CustomInvoicingAppType string
CustomInvoicingAppType The app's type is CustomInvoicing.
const (
CustomInvoicingAppTypeCustomInvoicing CustomInvoicingAppType = "custom_invoicing"
)
Defines values for CustomInvoicingAppType.
type CustomInvoicingCustomerAppData ¶
type CustomInvoicingCustomerAppData struct {
// App The installed custom invoicing app this data belongs to.
App *CustomInvoicingApp `json:"app,omitempty"`
// Id The app ID.
// If not provided, it will use the global default for the app type.
Id *string `json:"id,omitempty"`
// Metadata Metadata to be used by the custom invoicing provider.
Metadata *Metadata `json:"metadata,omitempty"`
// Type The app name.
Type CustomInvoicingCustomerAppDataType `json:"type"`
}
CustomInvoicingCustomerAppData Custom Invoicing Customer App Data.
type CustomInvoicingCustomerAppDataType ¶
type CustomInvoicingCustomerAppDataType string
CustomInvoicingCustomerAppDataType The app name.
const (
CustomInvoicingCustomerAppDataTypeCustomInvoicing CustomInvoicingCustomerAppDataType = "custom_invoicing"
)
Defines values for CustomInvoicingCustomerAppDataType.
type CustomInvoicingDraftSynchronizedRequest ¶
type CustomInvoicingDraftSynchronizedRequest struct {
// Invoicing The result of the synchronization.
Invoicing *CustomInvoicingSyncResult `json:"invoicing,omitempty"`
}
CustomInvoicingDraftSynchronizedRequest Information to finalize the draft details of an invoice.
type CustomInvoicingFinalizedInvoicingRequest ¶
type CustomInvoicingFinalizedInvoicingRequest struct {
// InvoiceNumber If set the invoice's number will be set to this value.
InvoiceNumber *InvoiceNumber `json:"invoiceNumber,omitempty"`
// SentToCustomerAt If set the invoice's sent to customer at will be set to this value.
SentToCustomerAt *time.Time `json:"sentToCustomerAt,omitempty"`
}
CustomInvoicingFinalizedInvoicingRequest Information to finalize the invoicing details of an invoice.
type CustomInvoicingFinalizedPaymentRequest ¶
type CustomInvoicingFinalizedPaymentRequest struct {
// ExternalId If set the invoice's payment external ID will be set to this value.
ExternalId *string `json:"externalId,omitempty"`
}
CustomInvoicingFinalizedPaymentRequest Information to finalize the payment details of an invoice.
type CustomInvoicingFinalizedRequest ¶
type CustomInvoicingFinalizedRequest struct {
// Invoicing The result of the synchronization.
Invoicing *CustomInvoicingFinalizedInvoicingRequest `json:"invoicing,omitempty"`
// Payment The result of the payment synchronization.
Payment *CustomInvoicingFinalizedPaymentRequest `json:"payment,omitempty"`
}
CustomInvoicingFinalizedRequest Information to finalize the invoice.
If invoicing.invoiceNumber is not set, then a new invoice number will be generated (INV- prefix).
type CustomInvoicingLineDiscountExternalIdMapping ¶
type CustomInvoicingLineDiscountExternalIdMapping struct {
// ExternalId The external ID (e.g. custom invoicing system's ID).
ExternalId string `json:"externalId"`
// LineDiscountId The line discount ID.
LineDiscountId string `json:"lineDiscountId"`
}
CustomInvoicingLineDiscountExternalIdMapping Mapping between line discounts and external IDs.
type CustomInvoicingLineExternalIdMapping ¶
type CustomInvoicingLineExternalIdMapping struct {
// ExternalId The external ID (e.g. custom invoicing system's ID).
ExternalId string `json:"externalId"`
// LineId The line ID.
LineId string `json:"lineId"`
}
CustomInvoicingLineExternalIdMapping Mapping between lines and external IDs.
type CustomInvoicingPaymentTrigger ¶
type CustomInvoicingPaymentTrigger string
CustomInvoicingPaymentTrigger Payment trigger to execute on a finalized invoice.
const ( CustomInvoicingPaymentTriggerActionRequired CustomInvoicingPaymentTrigger = "action_required" CustomInvoicingPaymentTriggerPaid CustomInvoicingPaymentTrigger = "paid" CustomInvoicingPaymentTriggerPaymentFailed CustomInvoicingPaymentTrigger = "payment_failed" CustomInvoicingPaymentTriggerPaymentOverdue CustomInvoicingPaymentTrigger = "payment_overdue" CustomInvoicingPaymentTriggerPaymentUncollectible CustomInvoicingPaymentTrigger = "payment_uncollectible" CustomInvoicingPaymentTriggerVoid CustomInvoicingPaymentTrigger = "void" )
Defines values for CustomInvoicingPaymentTrigger.
type CustomInvoicingSyncResult ¶
type CustomInvoicingSyncResult struct {
// ExternalId If set the invoice's invoicing external ID will be set to this value.
ExternalId *string `json:"externalId,omitempty"`
// InvoiceNumber If set the invoice's number will be set to this value.
InvoiceNumber *InvoiceNumber `json:"invoiceNumber,omitempty"`
// LineDiscountExternalIds If set the invoice's line discount external IDs will be set to this value.
//
// This can be used to reference the external system's entities in the
// invoice.
LineDiscountExternalIds *[]CustomInvoicingLineDiscountExternalIdMapping `json:"lineDiscountExternalIds,omitempty"`
// LineExternalIds If set the invoice's line external IDs will be set to this value.
//
// This can be used to reference the external system's entities in the
// invoice.
LineExternalIds *[]CustomInvoicingLineExternalIdMapping `json:"lineExternalIds,omitempty"`
}
CustomInvoicingSyncResult Information to synchronize the invoice.
Can be used to store external app's IDs on the invoice or lines.
type CustomInvoicingTaxConfig ¶
type CustomInvoicingTaxConfig struct {
// Code Tax code.
//
// The tax code should be interpreted by the custom invoicing provider.
Code string `json:"code"`
}
CustomInvoicingTaxConfig Custom invoicing tax config.
type CustomInvoicingUpdatePaymentStatusRequest ¶
type CustomInvoicingUpdatePaymentStatusRequest struct {
// Trigger The trigger to be executed on the invoice.
Trigger CustomInvoicingPaymentTrigger `json:"trigger"`
}
CustomInvoicingUpdatePaymentStatusRequest Update payment status request.
Can be used to manipulate invoice's payment status (when custominvoicing app is being used).
type CustomPlanInput ¶
type CustomPlanInput struct {
// Alignment Alignment configuration for the plan.
Alignment *Alignment `json:"alignment,omitempty"`
// BillingCadence The default billing cadence for subscriptions using this plan.
// Defines how often customers are billed using ISO8601 duration format.
// Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
BillingCadence string `json:"billingCadence"`
// Currency The currency code of the plan.
Currency CurrencyCode `json:"currency"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Phases The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
// A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices.
Phases []PlanPhase `json:"phases"`
// ProRatingConfig Default pro-rating configuration for subscriptions using this plan.
ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"`
}
CustomPlanInput The template for omitting properties.
type CustomSubscriptionChange ¶
type CustomSubscriptionChange struct {
// BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the previous subscription billing anchor will be used.
BillingAnchor *time.Time `json:"billingAnchor,omitempty"`
// CustomPlan The custom plan description which defines the Subscription.
CustomPlan CustomPlanInput `json:"customPlan"`
// Timing Timing configuration for the change, when the change should take effect.
// For changing a subscription, the accepted values depend on the subscription configuration.
Timing SubscriptionTiming `json:"timing"`
}
CustomSubscriptionChange Change a custom subscription.
type CustomSubscriptionCreate ¶
type CustomSubscriptionCreate struct {
// BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the subscription start time will be used.
BillingAnchor *time.Time `json:"billingAnchor,omitempty"`
// CustomPlan The custom plan description which defines the Subscription.
CustomPlan CustomPlanInput `json:"customPlan"`
// CustomerId The ID of the customer. Provide either the key or ID. Has presedence over the key.
CustomerId *string `json:"customerId,omitempty"`
// CustomerKey The key of the customer. Provide either the key or ID.
CustomerKey *string `json:"customerKey,omitempty"`
// Timing Timing configuration for the change, when the change should take effect.
// The default is immediate.
Timing *SubscriptionTiming `json:"timing,omitempty"`
}
CustomSubscriptionCreate Create a custom subscription.
type Customer ¶
type Customer struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// BillingAddress The billing address of the customer.
// Used for tax and invoicing.
BillingAddress *Address `json:"billingAddress,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Currency Currency of the customer.
// Used for billing, tax and invoicing.
Currency *CurrencyCode `json:"currency,omitempty"`
// CurrentSubscriptionId The ID of the Subscription if the customer has one.
CurrentSubscriptionId *string `json:"currentSubscriptionId,omitempty"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Key An optional unique key of the customer.
// Useful to reference the customer in external systems.
// For example, your database ID.
Key *string `json:"key,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// PrimaryEmail The primary email address of the customer.
PrimaryEmail *string `json:"primaryEmail,omitempty"`
// Subscriptions The subscriptions of the customer.
// Only with the `subscriptions` expand option.
Subscriptions *[]Subscription `json:"subscriptions,omitempty"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// UsageAttribution Mapping to attribute metered usage to the customer
UsageAttribution CustomerUsageAttribution `json:"usageAttribution"`
}
Customer A customer object.
type CustomerAccess ¶
type CustomerAccess struct {
// Entitlements Map of entitlements the customer has access to.
// The key is the feature key, the value is the entitlement value + the entitlement ID.
Entitlements map[string]EntitlementValue `json:"entitlements"`
}
CustomerAccess CustomerAccess describes what features the customer has access to.
type CustomerAppData ¶
type CustomerAppData struct {
// contains filtered or unexported fields
}
CustomerAppData CustomerAppData Stores the app specific data for the customer. One of: stripe, sandbox, custom_invoicing
func (CustomerAppData) AsCustomInvoicingCustomerAppData ¶
func (t CustomerAppData) AsCustomInvoicingCustomerAppData() (CustomInvoicingCustomerAppData, error)
AsCustomInvoicingCustomerAppData returns the union data inside the CustomerAppData as a CustomInvoicingCustomerAppData
func (CustomerAppData) AsSandboxCustomerAppData ¶
func (t CustomerAppData) AsSandboxCustomerAppData() (SandboxCustomerAppData, error)
AsSandboxCustomerAppData returns the union data inside the CustomerAppData as a SandboxCustomerAppData
func (CustomerAppData) AsStripeCustomerAppData ¶
func (t CustomerAppData) AsStripeCustomerAppData() (StripeCustomerAppData, error)
AsStripeCustomerAppData returns the union data inside the CustomerAppData as a StripeCustomerAppData
func (CustomerAppData) Discriminator ¶
func (t CustomerAppData) Discriminator() (string, error)
func (*CustomerAppData) FromCustomInvoicingCustomerAppData ¶
func (t *CustomerAppData) FromCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error
FromCustomInvoicingCustomerAppData overwrites any union data inside the CustomerAppData as the provided CustomInvoicingCustomerAppData
func (*CustomerAppData) FromSandboxCustomerAppData ¶
func (t *CustomerAppData) FromSandboxCustomerAppData(v SandboxCustomerAppData) error
FromSandboxCustomerAppData overwrites any union data inside the CustomerAppData as the provided SandboxCustomerAppData
func (*CustomerAppData) FromStripeCustomerAppData ¶
func (t *CustomerAppData) FromStripeCustomerAppData(v StripeCustomerAppData) error
FromStripeCustomerAppData overwrites any union data inside the CustomerAppData as the provided StripeCustomerAppData
func (CustomerAppData) MarshalJSON ¶
func (t CustomerAppData) MarshalJSON() ([]byte, error)
func (*CustomerAppData) MergeCustomInvoicingCustomerAppData ¶
func (t *CustomerAppData) MergeCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error
MergeCustomInvoicingCustomerAppData performs a merge with any union data inside the CustomerAppData, using the provided CustomInvoicingCustomerAppData
func (*CustomerAppData) MergeSandboxCustomerAppData ¶
func (t *CustomerAppData) MergeSandboxCustomerAppData(v SandboxCustomerAppData) error
MergeSandboxCustomerAppData performs a merge with any union data inside the CustomerAppData, using the provided SandboxCustomerAppData
func (*CustomerAppData) MergeStripeCustomerAppData ¶
func (t *CustomerAppData) MergeStripeCustomerAppData(v StripeCustomerAppData) error
MergeStripeCustomerAppData performs a merge with any union data inside the CustomerAppData, using the provided StripeCustomerAppData
func (*CustomerAppData) UnmarshalJSON ¶
func (t *CustomerAppData) UnmarshalJSON(b []byte) error
func (CustomerAppData) ValueByDiscriminator ¶
func (t CustomerAppData) ValueByDiscriminator() (interface{}, error)
type CustomerAppDataCreateOrUpdateItem ¶
type CustomerAppDataCreateOrUpdateItem struct {
// contains filtered or unexported fields
}
CustomerAppDataCreateOrUpdateItem CustomerAppData Stores the app specific data for the customer. One of: stripe, sandbox, custom_invoicing
func (CustomerAppDataCreateOrUpdateItem) AsCustomInvoicingCustomerAppData ¶
func (t CustomerAppDataCreateOrUpdateItem) AsCustomInvoicingCustomerAppData() (CustomInvoicingCustomerAppData, error)
AsCustomInvoicingCustomerAppData returns the union data inside the CustomerAppDataCreateOrUpdateItem as a CustomInvoicingCustomerAppData
func (CustomerAppDataCreateOrUpdateItem) AsSandboxCustomerAppData ¶
func (t CustomerAppDataCreateOrUpdateItem) AsSandboxCustomerAppData() (SandboxCustomerAppData, error)
AsSandboxCustomerAppData returns the union data inside the CustomerAppDataCreateOrUpdateItem as a SandboxCustomerAppData
func (CustomerAppDataCreateOrUpdateItem) AsStripeCustomerAppDataCreateOrUpdateItem ¶
func (t CustomerAppDataCreateOrUpdateItem) AsStripeCustomerAppDataCreateOrUpdateItem() (StripeCustomerAppDataCreateOrUpdateItem, error)
AsStripeCustomerAppDataCreateOrUpdateItem returns the union data inside the CustomerAppDataCreateOrUpdateItem as a StripeCustomerAppDataCreateOrUpdateItem
func (CustomerAppDataCreateOrUpdateItem) Discriminator ¶
func (t CustomerAppDataCreateOrUpdateItem) Discriminator() (string, error)
func (*CustomerAppDataCreateOrUpdateItem) FromCustomInvoicingCustomerAppData ¶
func (t *CustomerAppDataCreateOrUpdateItem) FromCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error
FromCustomInvoicingCustomerAppData overwrites any union data inside the CustomerAppDataCreateOrUpdateItem as the provided CustomInvoicingCustomerAppData
func (*CustomerAppDataCreateOrUpdateItem) FromSandboxCustomerAppData ¶
func (t *CustomerAppDataCreateOrUpdateItem) FromSandboxCustomerAppData(v SandboxCustomerAppData) error
FromSandboxCustomerAppData overwrites any union data inside the CustomerAppDataCreateOrUpdateItem as the provided SandboxCustomerAppData
func (*CustomerAppDataCreateOrUpdateItem) FromStripeCustomerAppDataCreateOrUpdateItem ¶
func (t *CustomerAppDataCreateOrUpdateItem) FromStripeCustomerAppDataCreateOrUpdateItem(v StripeCustomerAppDataCreateOrUpdateItem) error
FromStripeCustomerAppDataCreateOrUpdateItem overwrites any union data inside the CustomerAppDataCreateOrUpdateItem as the provided StripeCustomerAppDataCreateOrUpdateItem
func (CustomerAppDataCreateOrUpdateItem) MarshalJSON ¶
func (t CustomerAppDataCreateOrUpdateItem) MarshalJSON() ([]byte, error)
func (*CustomerAppDataCreateOrUpdateItem) MergeCustomInvoicingCustomerAppData ¶
func (t *CustomerAppDataCreateOrUpdateItem) MergeCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error
MergeCustomInvoicingCustomerAppData performs a merge with any union data inside the CustomerAppDataCreateOrUpdateItem, using the provided CustomInvoicingCustomerAppData
func (*CustomerAppDataCreateOrUpdateItem) MergeSandboxCustomerAppData ¶
func (t *CustomerAppDataCreateOrUpdateItem) MergeSandboxCustomerAppData(v SandboxCustomerAppData) error
MergeSandboxCustomerAppData performs a merge with any union data inside the CustomerAppDataCreateOrUpdateItem, using the provided SandboxCustomerAppData
func (*CustomerAppDataCreateOrUpdateItem) MergeStripeCustomerAppDataCreateOrUpdateItem ¶
func (t *CustomerAppDataCreateOrUpdateItem) MergeStripeCustomerAppDataCreateOrUpdateItem(v StripeCustomerAppDataCreateOrUpdateItem) error
MergeStripeCustomerAppDataCreateOrUpdateItem performs a merge with any union data inside the CustomerAppDataCreateOrUpdateItem, using the provided StripeCustomerAppDataCreateOrUpdateItem
func (*CustomerAppDataCreateOrUpdateItem) UnmarshalJSON ¶
func (t *CustomerAppDataCreateOrUpdateItem) UnmarshalJSON(b []byte) error
func (CustomerAppDataCreateOrUpdateItem) ValueByDiscriminator ¶
func (t CustomerAppDataCreateOrUpdateItem) ValueByDiscriminator() (interface{}, error)
type CustomerAppDataPaginatedResponse ¶
type CustomerAppDataPaginatedResponse struct {
// Items The items in the current page.
Items []CustomerAppData `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
CustomerAppDataPaginatedResponse Paginated response
type CustomerCreate ¶
type CustomerCreate struct {
// BillingAddress The billing address of the customer.
// Used for tax and invoicing.
BillingAddress *Address `json:"billingAddress,omitempty"`
// Currency Currency of the customer.
// Used for billing, tax and invoicing.
Currency *CurrencyCode `json:"currency,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Key An optional unique key of the customer.
// Useful to reference the customer in external systems.
// For example, your database ID.
Key *string `json:"key,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// PrimaryEmail The primary email address of the customer.
PrimaryEmail *string `json:"primaryEmail,omitempty"`
// UsageAttribution Mapping to attribute metered usage to the customer
UsageAttribution CustomerUsageAttribution `json:"usageAttribution"`
}
CustomerCreate Resource create operation model.
type CustomerExpand ¶
type CustomerExpand string
CustomerExpand CustomerExpand specifies the parts of the customer to expand in the list output.
const (
CustomerExpandSubscriptions CustomerExpand = "subscriptions"
)
Defines values for CustomerExpand.
type CustomerId ¶
type CustomerId struct {
// Id ULID (Universally Unique Lexicographically Sortable Identifier).
Id string `json:"id"`
}
CustomerId Create Stripe checkout session with customer ID.
type CustomerKey ¶
type CustomerKey struct {
Key string `json:"key"`
}
CustomerKey Create Stripe checkout session with customer key.
type CustomerOrderBy ¶
type CustomerOrderBy string
CustomerOrderBy Order by options for customers.
const ( CustomerOrderByCreatedAt CustomerOrderBy = "createdAt" CustomerOrderById CustomerOrderBy = "id" CustomerOrderByName CustomerOrderBy = "name" )
Defines values for CustomerOrderBy.
type CustomerOrderByOrderingOrder ¶
type CustomerOrderByOrderingOrder = SortOrder
CustomerOrderByOrderingOrder The order direction.
type CustomerOrderByOrderingOrderBy ¶
type CustomerOrderByOrderingOrderBy = CustomerOrderBy
CustomerOrderByOrderingOrderBy Order by options for customers.
type CustomerPaginatedResponse ¶
type CustomerPaginatedResponse struct {
// Items The items in the current page.
Items []Customer `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
CustomerPaginatedResponse Paginated response
type CustomerReplaceUpdate ¶
type CustomerReplaceUpdate struct {
// BillingAddress The billing address of the customer.
// Used for tax and invoicing.
BillingAddress *Address `json:"billingAddress,omitempty"`
// Currency Currency of the customer.
// Used for billing, tax and invoicing.
Currency *CurrencyCode `json:"currency,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Key An optional unique key of the customer.
// Useful to reference the customer in external systems.
// For example, your database ID.
Key *string `json:"key,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// PrimaryEmail The primary email address of the customer.
PrimaryEmail *string `json:"primaryEmail,omitempty"`
// UsageAttribution Mapping to attribute metered usage to the customer
UsageAttribution CustomerUsageAttribution `json:"usageAttribution"`
}
CustomerReplaceUpdate Resource update operation model.
type CustomerSubscriptionOrderBy ¶
type CustomerSubscriptionOrderBy string
CustomerSubscriptionOrderBy Order by options for customer subscriptions.
const ( CustomerSubscriptionOrderByActiveFrom CustomerSubscriptionOrderBy = "activeFrom" CustomerSubscriptionOrderByActiveTo CustomerSubscriptionOrderBy = "activeTo" )
Defines values for CustomerSubscriptionOrderBy.
type CustomerSubscriptionOrderByOrderingOrder ¶
type CustomerSubscriptionOrderByOrderingOrder = SortOrder
CustomerSubscriptionOrderByOrderingOrder The order direction.
type CustomerSubscriptionOrderByOrderingOrderBy ¶
type CustomerSubscriptionOrderByOrderingOrderBy = CustomerSubscriptionOrderBy
CustomerSubscriptionOrderByOrderingOrderBy Order by options for customer subscriptions.
type CustomerUsageAttribution ¶
type CustomerUsageAttribution struct {
// SubjectKeys The subjects that are attributed to the customer.
SubjectKeys []string `json:"subjectKeys"`
}
CustomerUsageAttribution Mapping to attribute metered usage to the customer. One customer can have multiple subjects, but one subject can only belong to one customer.
type DeleteAddonResponse ¶
type DeleteAddonResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteAddonResponse ¶
func ParseDeleteAddonResponse(rsp *http.Response) (*DeleteAddonResponse, error)
ParseDeleteAddonResponse parses an HTTP response from a DeleteAddonWithResponse call
func (DeleteAddonResponse) Status ¶
func (r DeleteAddonResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAddonResponse) StatusCode ¶
func (r DeleteAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteBillingProfileCustomerOverrideResponse ¶
type DeleteBillingProfileCustomerOverrideResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteBillingProfileCustomerOverrideResponse ¶
func ParseDeleteBillingProfileCustomerOverrideResponse(rsp *http.Response) (*DeleteBillingProfileCustomerOverrideResponse, error)
ParseDeleteBillingProfileCustomerOverrideResponse parses an HTTP response from a DeleteBillingProfileCustomerOverrideWithResponse call
func (DeleteBillingProfileCustomerOverrideResponse) Status ¶
func (r DeleteBillingProfileCustomerOverrideResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteBillingProfileCustomerOverrideResponse) StatusCode ¶
func (r DeleteBillingProfileCustomerOverrideResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteBillingProfileResponse ¶
type DeleteBillingProfileResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteBillingProfileResponse ¶
func ParseDeleteBillingProfileResponse(rsp *http.Response) (*DeleteBillingProfileResponse, error)
ParseDeleteBillingProfileResponse parses an HTTP response from a DeleteBillingProfileWithResponse call
func (DeleteBillingProfileResponse) Status ¶
func (r DeleteBillingProfileResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteBillingProfileResponse) StatusCode ¶
func (r DeleteBillingProfileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCustomerAppDataResponse ¶
type DeleteCustomerAppDataResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteCustomerAppDataResponse ¶
func ParseDeleteCustomerAppDataResponse(rsp *http.Response) (*DeleteCustomerAppDataResponse, error)
ParseDeleteCustomerAppDataResponse parses an HTTP response from a DeleteCustomerAppDataWithResponse call
func (DeleteCustomerAppDataResponse) Status ¶
func (r DeleteCustomerAppDataResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCustomerAppDataResponse) StatusCode ¶
func (r DeleteCustomerAppDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCustomerEntitlementV2Response ¶
type DeleteCustomerEntitlementV2Response struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteCustomerEntitlementV2Response ¶
func ParseDeleteCustomerEntitlementV2Response(rsp *http.Response) (*DeleteCustomerEntitlementV2Response, error)
ParseDeleteCustomerEntitlementV2Response parses an HTTP response from a DeleteCustomerEntitlementV2WithResponse call
func (DeleteCustomerEntitlementV2Response) Status ¶
func (r DeleteCustomerEntitlementV2Response) Status() string
Status returns HTTPResponse.Status
func (DeleteCustomerEntitlementV2Response) StatusCode ¶
func (r DeleteCustomerEntitlementV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCustomerResponse ¶
type DeleteCustomerResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteCustomerResponse ¶
func ParseDeleteCustomerResponse(rsp *http.Response) (*DeleteCustomerResponse, error)
ParseDeleteCustomerResponse parses an HTTP response from a DeleteCustomerWithResponse call
func (DeleteCustomerResponse) Status ¶
func (r DeleteCustomerResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCustomerResponse) StatusCode ¶
func (r DeleteCustomerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEntitlementResponse ¶
type DeleteEntitlementResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteEntitlementResponse ¶
func ParseDeleteEntitlementResponse(rsp *http.Response) (*DeleteEntitlementResponse, error)
ParseDeleteEntitlementResponse parses an HTTP response from a DeleteEntitlementWithResponse call
func (DeleteEntitlementResponse) Status ¶
func (r DeleteEntitlementResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEntitlementResponse) StatusCode ¶
func (r DeleteEntitlementResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteFeatureResponse ¶
type DeleteFeatureResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteFeatureResponse ¶
func ParseDeleteFeatureResponse(rsp *http.Response) (*DeleteFeatureResponse, error)
ParseDeleteFeatureResponse parses an HTTP response from a DeleteFeatureWithResponse call
func (DeleteFeatureResponse) Status ¶
func (r DeleteFeatureResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFeatureResponse) StatusCode ¶
func (r DeleteFeatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteInvoiceResponse ¶
type DeleteInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteInvoiceResponse ¶
func ParseDeleteInvoiceResponse(rsp *http.Response) (*DeleteInvoiceResponse, error)
ParseDeleteInvoiceResponse parses an HTTP response from a DeleteInvoiceWithResponse call
func (DeleteInvoiceResponse) Status ¶
func (r DeleteInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteInvoiceResponse) StatusCode ¶
func (r DeleteInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMeterResponse ¶
type DeleteMeterResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteMeterResponse ¶
func ParseDeleteMeterResponse(rsp *http.Response) (*DeleteMeterResponse, error)
ParseDeleteMeterResponse parses an HTTP response from a DeleteMeterWithResponse call
func (DeleteMeterResponse) Status ¶
func (r DeleteMeterResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMeterResponse) StatusCode ¶
func (r DeleteMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteNotificationChannelResponse ¶
type DeleteNotificationChannelResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteNotificationChannelResponse ¶
func ParseDeleteNotificationChannelResponse(rsp *http.Response) (*DeleteNotificationChannelResponse, error)
ParseDeleteNotificationChannelResponse parses an HTTP response from a DeleteNotificationChannelWithResponse call
func (DeleteNotificationChannelResponse) Status ¶
func (r DeleteNotificationChannelResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteNotificationChannelResponse) StatusCode ¶
func (r DeleteNotificationChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteNotificationRuleResponse ¶
type DeleteNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteNotificationRuleResponse ¶
func ParseDeleteNotificationRuleResponse(rsp *http.Response) (*DeleteNotificationRuleResponse, error)
ParseDeleteNotificationRuleResponse parses an HTTP response from a DeleteNotificationRuleWithResponse call
func (DeleteNotificationRuleResponse) Status ¶
func (r DeleteNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteNotificationRuleResponse) StatusCode ¶
func (r DeleteNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeletePlanAddonResponse ¶
type DeletePlanAddonResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeletePlanAddonResponse ¶
func ParseDeletePlanAddonResponse(rsp *http.Response) (*DeletePlanAddonResponse, error)
ParseDeletePlanAddonResponse parses an HTTP response from a DeletePlanAddonWithResponse call
func (DeletePlanAddonResponse) Status ¶
func (r DeletePlanAddonResponse) Status() string
Status returns HTTPResponse.Status
func (DeletePlanAddonResponse) StatusCode ¶
func (r DeletePlanAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeletePlanResponse ¶
type DeletePlanResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeletePlanResponse ¶
func ParseDeletePlanResponse(rsp *http.Response) (*DeletePlanResponse, error)
ParseDeletePlanResponse parses an HTTP response from a DeletePlanWithResponse call
func (DeletePlanResponse) Status ¶
func (r DeletePlanResponse) Status() string
Status returns HTTPResponse.Status
func (DeletePlanResponse) StatusCode ¶
func (r DeletePlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSubjectResponse ¶
type DeleteSubjectResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteSubjectResponse ¶
func ParseDeleteSubjectResponse(rsp *http.Response) (*DeleteSubjectResponse, error)
ParseDeleteSubjectResponse parses an HTTP response from a DeleteSubjectWithResponse call
func (DeleteSubjectResponse) Status ¶
func (r DeleteSubjectResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSubjectResponse) StatusCode ¶
func (r DeleteSubjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSubscriptionResponse ¶
type DeleteSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *SubscriptionConflictErrorResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseDeleteSubscriptionResponse ¶
func ParseDeleteSubscriptionResponse(rsp *http.Response) (*DeleteSubscriptionResponse, error)
ParseDeleteSubscriptionResponse parses an HTTP response from a DeleteSubscriptionWithResponse call
func (DeleteSubscriptionResponse) Status ¶
func (r DeleteSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSubscriptionResponse) StatusCode ¶
func (r DeleteSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DiscountPercentage ¶
type DiscountPercentage struct {
// Percentage The percentage of the discount.
Percentage Percentage `json:"percentage"`
}
DiscountPercentage Percentage discount.
type DiscountReasonMaximumSpend ¶
type DiscountReasonMaximumSpend struct {
Type DiscountReasonMaximumSpendType `json:"type"`
}
DiscountReasonMaximumSpend The reason for the discount is a maximum spend.
type DiscountReasonMaximumSpendType ¶
type DiscountReasonMaximumSpendType string
DiscountReasonMaximumSpendType defines model for DiscountReasonMaximumSpend.Type.
const (
DiscountReasonMaximumSpendTypeMaximumSpend DiscountReasonMaximumSpendType = "maximum_spend"
)
Defines values for DiscountReasonMaximumSpendType.
type DiscountReasonRatecardPercentage ¶
type DiscountReasonRatecardPercentage struct {
// CorrelationId Correlation ID for the discount.
//
// This is used to link discounts across different invoices (progressive billing use case).
//
// If not provided, the invoicing engine will auto-generate one. When editing an invoice line,
// please make sure to keep the same correlation ID of the discount or in progressive billing
// setups the discount amounts might be incorrect.
CorrelationId *string `json:"correlationId,omitempty"`
// Percentage The percentage of the discount.
Percentage Percentage `json:"percentage"`
Type DiscountReasonRatecardPercentageType `json:"type"`
}
DiscountReasonRatecardPercentage The reason for the discount is a ratecard percentage.
type DiscountReasonRatecardPercentageType ¶
type DiscountReasonRatecardPercentageType string
DiscountReasonRatecardPercentageType defines model for DiscountReasonRatecardPercentage.Type.
const (
DiscountReasonRatecardPercentageTypeRatecardPercentage DiscountReasonRatecardPercentageType = "ratecard_percentage"
)
Defines values for DiscountReasonRatecardPercentageType.
type DiscountReasonRatecardUsage ¶
type DiscountReasonRatecardUsage struct {
// CorrelationId Correlation ID for the discount.
//
// This is used to link discounts across different invoices (progressive billing use case).
//
// If not provided, the invoicing engine will auto-generate one. When editing an invoice line,
// please make sure to keep the same correlation ID of the discount or in progressive billing
// setups the discount amounts might be incorrect.
CorrelationId *string `json:"correlationId,omitempty"`
// Quantity The quantity of the usage discount.
//
// Must be positive.
Quantity Numeric `json:"quantity"`
Type DiscountReasonRatecardUsageType `json:"type"`
}
DiscountReasonRatecardUsage The reason for the discount is a ratecard usage.
type DiscountReasonRatecardUsageType ¶
type DiscountReasonRatecardUsageType string
DiscountReasonRatecardUsageType defines model for DiscountReasonRatecardUsage.Type.
const (
DiscountReasonRatecardUsageTypeRatecardUsage DiscountReasonRatecardUsageType = "ratecard_usage"
)
Defines values for DiscountReasonRatecardUsageType.
type DiscountUsage ¶
type DiscountUsage struct {
// Quantity The quantity of the usage discount.
//
// Must be positive.
Quantity Numeric `json:"quantity"`
}
DiscountUsage Usage discount.
Usage discount means that the first N items are free. From billing perspective this means that any usage on a specific feature is considered 0 until this discount is exhausted.
type Discounts ¶
type Discounts struct {
// Percentage The percentage discount.
Percentage *DiscountPercentage `json:"percentage,omitempty"`
// Usage The usage discount.
Usage *DiscountUsage `json:"usage,omitempty"`
}
Discounts Discount by type on a price
type DynamicPriceWithCommitments ¶
type DynamicPriceWithCommitments struct {
// MaximumAmount The customer is limited to spend at most the amount.
MaximumAmount *Numeric `json:"maximumAmount,omitempty"`
// MinimumAmount The customer is committed to spend at least the amount.
MinimumAmount *Numeric `json:"minimumAmount,omitempty"`
// Multiplier The multiplier to apply to the base price to get the dynamic price.
//
// Examples:
// - 0.0: the price is zero
// - 0.5: the price is 50% of the base price
// - 1.0: the price is the same as the base price
// - 1.5: the price is 150% of the base price
Multiplier *Numeric `json:"multiplier,omitempty"`
// Type The type of the price.
Type DynamicPriceWithCommitmentsType `json:"type"`
}
DynamicPriceWithCommitments Dynamic price with spend commitments.
type DynamicPriceWithCommitmentsType ¶
type DynamicPriceWithCommitmentsType string
DynamicPriceWithCommitmentsType The type of the price.
const (
DynamicPriceWithCommitmentsTypeDynamic DynamicPriceWithCommitmentsType = "dynamic"
)
Defines values for DynamicPriceWithCommitmentsType.
type EditSubscriptionAddItem ¶
type EditSubscriptionAddItem struct {
Op EditSubscriptionAddItemOp `json:"op"`
PhaseKey string `json:"phaseKey"`
// RateCard A rate card defines the pricing and entitlement of a feature or service.
RateCard RateCard `json:"rateCard"`
}
EditSubscriptionAddItem Add a new item to a phase.
type EditSubscriptionAddItemOp ¶
type EditSubscriptionAddItemOp string
EditSubscriptionAddItemOp defines model for EditSubscriptionAddItem.Op.
const (
EditSubscriptionAddItemOpAddItem EditSubscriptionAddItemOp = "add_item"
)
Defines values for EditSubscriptionAddItemOp.
type EditSubscriptionAddPhase ¶
type EditSubscriptionAddPhase struct {
Op EditSubscriptionAddPhaseOp `json:"op"`
// Phase Subscription phase create input.
Phase SubscriptionPhaseCreate `json:"phase"`
}
EditSubscriptionAddPhase Add a new phase
type EditSubscriptionAddPhaseOp ¶
type EditSubscriptionAddPhaseOp string
EditSubscriptionAddPhaseOp defines model for EditSubscriptionAddPhase.Op.
const (
EditSubscriptionAddPhaseOpAddPhase EditSubscriptionAddPhaseOp = "add_phase"
)
Defines values for EditSubscriptionAddPhaseOp.
type EditSubscriptionJSONRequestBody ¶
type EditSubscriptionJSONRequestBody = SubscriptionEdit
EditSubscriptionJSONRequestBody defines body for EditSubscription for application/json ContentType.
type EditSubscriptionRemoveItem ¶
type EditSubscriptionRemoveItem struct {
ItemKey string `json:"itemKey"`
Op EditSubscriptionRemoveItemOp `json:"op"`
PhaseKey string `json:"phaseKey"`
}
EditSubscriptionRemoveItem Remove an item from a phase.
type EditSubscriptionRemoveItemOp ¶
type EditSubscriptionRemoveItemOp string
EditSubscriptionRemoveItemOp defines model for EditSubscriptionRemoveItem.Op.
const (
EditSubscriptionRemoveItemOpRemoveItem EditSubscriptionRemoveItemOp = "remove_item"
)
Defines values for EditSubscriptionRemoveItemOp.
type EditSubscriptionRemovePhase ¶
type EditSubscriptionRemovePhase struct {
Op EditSubscriptionRemovePhaseOp `json:"op"`
PhaseKey string `json:"phaseKey"`
// Shift The direction of the phase shift when a phase is removed.
Shift RemovePhaseShifting `json:"shift"`
}
EditSubscriptionRemovePhase Remove a phase
type EditSubscriptionRemovePhaseOp ¶
type EditSubscriptionRemovePhaseOp string
EditSubscriptionRemovePhaseOp defines model for EditSubscriptionRemovePhase.Op.
const (
EditSubscriptionRemovePhaseOpRemovePhase EditSubscriptionRemovePhaseOp = "remove_phase"
)
Defines values for EditSubscriptionRemovePhaseOp.
type EditSubscriptionResponse ¶
type EditSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Subscription
ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *SubscriptionConflictErrorResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseEditSubscriptionResponse ¶
func ParseEditSubscriptionResponse(rsp *http.Response) (*EditSubscriptionResponse, error)
ParseEditSubscriptionResponse parses an HTTP response from a EditSubscriptionWithResponse call
func (EditSubscriptionResponse) Status ¶
func (r EditSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (EditSubscriptionResponse) StatusCode ¶
func (r EditSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditSubscriptionStretchPhase ¶
type EditSubscriptionStretchPhase struct {
ExtendBy string `json:"extendBy"`
Op EditSubscriptionStretchPhaseOp `json:"op"`
PhaseKey string `json:"phaseKey"`
}
EditSubscriptionStretchPhase Stretch a phase
type EditSubscriptionStretchPhaseOp ¶
type EditSubscriptionStretchPhaseOp string
EditSubscriptionStretchPhaseOp defines model for EditSubscriptionStretchPhase.Op.
const (
EditSubscriptionStretchPhaseOpStretchPhase EditSubscriptionStretchPhaseOp = "stretch_phase"
)
Defines values for EditSubscriptionStretchPhaseOp.
type EditSubscriptionUnscheduleEdit ¶
type EditSubscriptionUnscheduleEdit struct {
Op EditSubscriptionUnscheduleEditOp `json:"op"`
}
EditSubscriptionUnscheduleEdit Unschedules any edits from the current phase.
type EditSubscriptionUnscheduleEditOp ¶
type EditSubscriptionUnscheduleEditOp string
EditSubscriptionUnscheduleEditOp defines model for EditSubscriptionUnscheduleEdit.Op.
const (
EditSubscriptionUnscheduleEditOpUnscheduleEdit EditSubscriptionUnscheduleEditOp = "unschedule_edit"
)
Defines values for EditSubscriptionUnscheduleEditOp.
type Entitlement ¶
type Entitlement struct {
// contains filtered or unexported fields
}
Entitlement Entitlement templates are used to define the entitlements of a plan. Features are omitted from the entitlement template, as they are defined in the rate card.
func (Entitlement) AsEntitlementBoolean ¶
func (t Entitlement) AsEntitlementBoolean() (EntitlementBoolean, error)
AsEntitlementBoolean returns the union data inside the Entitlement as a EntitlementBoolean
func (Entitlement) AsEntitlementMetered ¶
func (t Entitlement) AsEntitlementMetered() (EntitlementMetered, error)
AsEntitlementMetered returns the union data inside the Entitlement as a EntitlementMetered
func (Entitlement) AsEntitlementStatic ¶
func (t Entitlement) AsEntitlementStatic() (EntitlementStatic, error)
AsEntitlementStatic returns the union data inside the Entitlement as a EntitlementStatic
func (Entitlement) Discriminator ¶
func (t Entitlement) Discriminator() (string, error)
func (*Entitlement) FromEntitlementBoolean ¶
func (t *Entitlement) FromEntitlementBoolean(v EntitlementBoolean) error
FromEntitlementBoolean overwrites any union data inside the Entitlement as the provided EntitlementBoolean
func (*Entitlement) FromEntitlementMetered ¶
func (t *Entitlement) FromEntitlementMetered(v EntitlementMetered) error
FromEntitlementMetered overwrites any union data inside the Entitlement as the provided EntitlementMetered
func (*Entitlement) FromEntitlementStatic ¶
func (t *Entitlement) FromEntitlementStatic(v EntitlementStatic) error
FromEntitlementStatic overwrites any union data inside the Entitlement as the provided EntitlementStatic
func (Entitlement) MarshalJSON ¶
func (t Entitlement) MarshalJSON() ([]byte, error)
func (*Entitlement) MergeEntitlementBoolean ¶
func (t *Entitlement) MergeEntitlementBoolean(v EntitlementBoolean) error
MergeEntitlementBoolean performs a merge with any union data inside the Entitlement, using the provided EntitlementBoolean
func (*Entitlement) MergeEntitlementMetered ¶
func (t *Entitlement) MergeEntitlementMetered(v EntitlementMetered) error
MergeEntitlementMetered performs a merge with any union data inside the Entitlement, using the provided EntitlementMetered
func (*Entitlement) MergeEntitlementStatic ¶
func (t *Entitlement) MergeEntitlementStatic(v EntitlementStatic) error
MergeEntitlementStatic performs a merge with any union data inside the Entitlement, using the provided EntitlementStatic
func (*Entitlement) UnmarshalJSON ¶
func (t *Entitlement) UnmarshalJSON(b []byte) error
func (Entitlement) ValueByDiscriminator ¶
func (t Entitlement) ValueByDiscriminator() (interface{}, error)
type EntitlementBoolean ¶
type EntitlementBoolean struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Annotations The annotations of the entitlement.
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CurrentUsagePeriod The current usage period.
CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
// SubjectKey The identifier key unique to the subject.
// NOTE: Subjects are being deprecated, please use the new customer APIs.
SubjectKey string `json:"subjectKey"`
Type EntitlementBooleanType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// UsagePeriod The defined usage period of the entitlement
UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"`
}
EntitlementBoolean Entitlement template of a boolean entitlement.
type EntitlementBooleanCreateInputs ¶
type EntitlementBooleanCreateInputs struct {
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId *string `json:"featureId,omitempty"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey *string `json:"featureKey,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
Type EntitlementBooleanCreateInputsType `json:"type"`
// UsagePeriod The usage period associated with the entitlement.
UsagePeriod *RecurringPeriodCreateInput `json:"usagePeriod,omitempty"`
}
EntitlementBooleanCreateInputs Create inputs for boolean entitlement
type EntitlementBooleanCreateInputsType ¶
type EntitlementBooleanCreateInputsType string
EntitlementBooleanCreateInputsType defines model for EntitlementBooleanCreateInputs.Type.
const (
EntitlementBooleanCreateInputsTypeBoolean EntitlementBooleanCreateInputsType = "boolean"
)
Defines values for EntitlementBooleanCreateInputsType.
type EntitlementBooleanType ¶
type EntitlementBooleanType string
EntitlementBooleanType defines model for EntitlementBoolean.Type.
const (
EntitlementBooleanTypeBoolean EntitlementBooleanType = "boolean"
)
Defines values for EntitlementBooleanType.
type EntitlementBooleanV2 ¶
type EntitlementBooleanV2 struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Annotations The annotations of the entitlement.
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CurrentUsagePeriod The current usage period.
CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"`
// CustomerId The identifier unique to the customer
CustomerId string `json:"customerId"`
// CustomerKey The identifier key unique to the customer
CustomerKey *string `json:"customerKey,omitempty"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
Type EntitlementBooleanV2Type `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// UsagePeriod The defined usage period of the entitlement
UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"`
}
EntitlementBooleanV2 Entitlement template of a boolean entitlement.
type EntitlementBooleanV2Type ¶
type EntitlementBooleanV2Type string
EntitlementBooleanV2Type defines model for EntitlementBooleanV2.Type.
const (
EntitlementBooleanV2TypeBoolean EntitlementBooleanV2Type = "boolean"
)
Defines values for EntitlementBooleanV2Type.
type EntitlementCreateInputs ¶
type EntitlementCreateInputs struct {
// contains filtered or unexported fields
}
EntitlementCreateInputs Create inputs for entitlement
func (EntitlementCreateInputs) AsEntitlementBooleanCreateInputs ¶
func (t EntitlementCreateInputs) AsEntitlementBooleanCreateInputs() (EntitlementBooleanCreateInputs, error)
AsEntitlementBooleanCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementBooleanCreateInputs
func (EntitlementCreateInputs) AsEntitlementMeteredCreateInputs ¶
func (t EntitlementCreateInputs) AsEntitlementMeteredCreateInputs() (EntitlementMeteredCreateInputs, error)
AsEntitlementMeteredCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementMeteredCreateInputs
func (EntitlementCreateInputs) AsEntitlementStaticCreateInputs ¶
func (t EntitlementCreateInputs) AsEntitlementStaticCreateInputs() (EntitlementStaticCreateInputs, error)
AsEntitlementStaticCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementStaticCreateInputs
func (EntitlementCreateInputs) Discriminator ¶
func (t EntitlementCreateInputs) Discriminator() (string, error)
func (*EntitlementCreateInputs) FromEntitlementBooleanCreateInputs ¶
func (t *EntitlementCreateInputs) FromEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
FromEntitlementBooleanCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementBooleanCreateInputs
func (*EntitlementCreateInputs) FromEntitlementMeteredCreateInputs ¶
func (t *EntitlementCreateInputs) FromEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error
FromEntitlementMeteredCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementMeteredCreateInputs
func (*EntitlementCreateInputs) FromEntitlementStaticCreateInputs ¶
func (t *EntitlementCreateInputs) FromEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
FromEntitlementStaticCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementStaticCreateInputs
func (EntitlementCreateInputs) MarshalJSON ¶
func (t EntitlementCreateInputs) MarshalJSON() ([]byte, error)
func (*EntitlementCreateInputs) MergeEntitlementBooleanCreateInputs ¶
func (t *EntitlementCreateInputs) MergeEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
MergeEntitlementBooleanCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementBooleanCreateInputs
func (*EntitlementCreateInputs) MergeEntitlementMeteredCreateInputs ¶
func (t *EntitlementCreateInputs) MergeEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error
MergeEntitlementMeteredCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementMeteredCreateInputs
func (*EntitlementCreateInputs) MergeEntitlementStaticCreateInputs ¶
func (t *EntitlementCreateInputs) MergeEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
MergeEntitlementStaticCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementStaticCreateInputs
func (*EntitlementCreateInputs) UnmarshalJSON ¶
func (t *EntitlementCreateInputs) UnmarshalJSON(b []byte) error
func (EntitlementCreateInputs) ValueByDiscriminator ¶
func (t EntitlementCreateInputs) ValueByDiscriminator() (interface{}, error)
type EntitlementGrant ¶
type EntitlementGrant struct {
// Amount The amount to grant. Should be a positive number.
Amount float64 `json:"amount"`
// Annotations Grant annotations
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).
EffectiveAt time.Time `json:"effectiveAt"`
// EntitlementId The unique entitlement ULID that the grant is associated with.
EntitlementId string `json:"entitlementId"`
// Expiration The grant expiration definition
Expiration ExpirationPeriod `json:"expiration"`
// ExpiresAt The time the grant expires.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
// Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"`
// Metadata The grant metadata.
Metadata *Metadata `json:"metadata,omitempty"`
// MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
// Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"`
// NextRecurrence The next time the grant will recurr.
NextRecurrence *time.Time `json:"nextRecurrence,omitempty"`
// Priority The priority of the grant. Grants with higher priority are applied first.
// Priority is a positive decimal numbers. With lower numbers indicating higher importance.
// For example, a priority of 1 is more urgent than a priority of 2.
// When there are several grants available for the same subject, the system selects the grant with the highest priority.
// In cases where grants share the same priority level, the grant closest to its expiration will be used first.
// In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.
Priority *uint8 `json:"priority,omitempty"`
// Recurrence The recurrence period of the grant.
Recurrence *RecurringPeriod `json:"recurrence,omitempty"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// VoidedAt The time the grant was voided.
VoidedAt *time.Time `json:"voidedAt,omitempty"`
}
EntitlementGrant The grant.
type EntitlementGrantCreateInput ¶
type EntitlementGrantCreateInput struct {
// Amount The amount to grant. Should be a positive number.
Amount float64 `json:"amount"`
// EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).
EffectiveAt time.Time `json:"effectiveAt"`
// Expiration The grant expiration definition
Expiration ExpirationPeriod `json:"expiration"`
// MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
// Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"`
// Metadata The grant metadata.
Metadata *Metadata `json:"metadata,omitempty"`
// MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
// Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"`
// Priority The priority of the grant. Grants with higher priority are applied first.
// Priority is a positive decimal numbers. With lower numbers indicating higher importance.
// For example, a priority of 1 is more urgent than a priority of 2.
// When there are several grants available for the same subject, the system selects the grant with the highest priority.
// In cases where grants share the same priority level, the grant closest to its expiration will be used first.
// In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.
Priority *uint8 `json:"priority,omitempty"`
// Recurrence The subject of the grant.
Recurrence *RecurringPeriodCreateInput `json:"recurrence,omitempty"`
}
EntitlementGrantCreateInput The grant creation input.
type EntitlementGrantCreateInputV2 ¶
type EntitlementGrantCreateInputV2 struct {
// Amount The amount to grant. Should be a positive number.
Amount float64 `json:"amount"`
// Annotations Grant annotations
Annotations *Annotations `json:"annotations,omitempty"`
// EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).
EffectiveAt time.Time `json:"effectiveAt"`
// Expiration The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.
Expiration *ExpirationPeriod `json:"expiration,omitempty"`
// MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.
// Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"`
// Metadata The grant metadata.
Metadata *Metadata `json:"metadata,omitempty"`
// MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
// Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"`
// Priority The priority of the grant. Grants with higher priority are applied first.
// Priority is a positive decimal numbers. With lower numbers indicating higher importance.
// For example, a priority of 1 is more urgent than a priority of 2.
// When there are several grants available for the same subject, the system selects the grant with the highest priority.
// In cases where grants share the same priority level, the grant closest to its expiration will be used first.
// In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.
Priority *uint8 `json:"priority,omitempty"`
// Recurrence The subject of the grant.
Recurrence *RecurringPeriodCreateInput `json:"recurrence,omitempty"`
}
EntitlementGrantCreateInputV2 The grant creation input.
type EntitlementGrantV2 ¶
type EntitlementGrantV2 struct {
// Amount The amount to grant. Should be a positive number.
Amount float64 `json:"amount"`
// Annotations Grant annotations
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).
EffectiveAt time.Time `json:"effectiveAt"`
// EntitlementId The unique entitlement ULID that the grant is associated with.
EntitlementId string `json:"entitlementId"`
// Expiration The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.
Expiration *ExpirationPeriod `json:"expiration,omitempty"`
// ExpiresAt The time the grant expires.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.
// Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"`
// Metadata The grant metadata.
Metadata *Metadata `json:"metadata,omitempty"`
// MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.
// Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"`
// NextRecurrence The next time the grant will recurr.
NextRecurrence *time.Time `json:"nextRecurrence,omitempty"`
// Priority The priority of the grant. Grants with higher priority are applied first.
// Priority is a positive decimal numbers. With lower numbers indicating higher importance.
// For example, a priority of 1 is more urgent than a priority of 2.
// When there are several grants available for the same subject, the system selects the grant with the highest priority.
// In cases where grants share the same priority level, the grant closest to its expiration will be used first.
// In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.
Priority *uint8 `json:"priority,omitempty"`
// Recurrence The recurrence period of the grant.
Recurrence *RecurringPeriod `json:"recurrence,omitempty"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// VoidedAt The time the grant was voided.
VoidedAt *time.Time `json:"voidedAt,omitempty"`
}
EntitlementGrantV2 The grant.
type EntitlementMetered ¶
type EntitlementMetered struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Annotations The annotations of the entitlement.
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CurrentUsagePeriod The current usage period.
CurrentUsagePeriod Period `json:"currentUsagePeriod"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
IsSoftLimit *bool `json:"isSoftLimit,omitempty"`
// IsUnlimited Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
IsUnlimited *bool `json:"isUnlimited,omitempty"`
// IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.
// If an amount is specified here, a grant will be created alongside the entitlement with the specified amount.
// That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.
// Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
IssueAfterReset *float64 `json:"issueAfterReset,omitempty"`
// IssueAfterResetPriority Defines the grant priority for the default grant.
IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"`
// LastReset The time the last reset happened.
LastReset time.Time `json:"lastReset"`
// MeasureUsageFrom The time from which usage is measured. If not specified on creation, defaults to entitlement creation time.
MeasureUsageFrom time.Time `json:"measureUsageFrom"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
// PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0.
PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"`
// SubjectKey The identifier key unique to the subject.
// NOTE: Subjects are being deprecated, please use the new customer APIs.
SubjectKey string `json:"subjectKey"`
Type EntitlementMeteredType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// UsagePeriod THe usage period of the entitlement.
UsagePeriod RecurringPeriod `json:"usagePeriod"`
}
EntitlementMetered Metered entitlements are useful for many different use cases, from setting up usage based access to implementing complex credit systems. Access is determined based on feature usage using a balance calculation (the "usage allowance" provided by the issued grants is "burnt down" by the usage).
type EntitlementMeteredCreateInputs ¶
type EntitlementMeteredCreateInputs struct {
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId *string `json:"featureId,omitempty"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey *string `json:"featureKey,omitempty"`
// IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
IsSoftLimit *bool `json:"isSoftLimit,omitempty"`
// IsUnlimited Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
IsUnlimited *bool `json:"isUnlimited,omitempty"`
// IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.
// If an amount is specified here, a grant will be created alongside the entitlement with the specified amount.
// That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.
// Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
IssueAfterReset *float64 `json:"issueAfterReset,omitempty"`
// IssueAfterResetPriority Defines the grant priority for the default grant.
IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"`
// MeasureUsageFrom Defines the time from which usage is measured. If not specified on creation, defaults to entitlement creation time.
MeasureUsageFrom *MeasureUsageFrom `json:"measureUsageFrom,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
// PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0.
PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"`
Type EntitlementMeteredCreateInputsType `json:"type"`
// UsagePeriod The usage period associated with the entitlement.
UsagePeriod RecurringPeriodCreateInput `json:"usagePeriod"`
}
EntitlementMeteredCreateInputs Create inpurs for metered entitlement
type EntitlementMeteredCreateInputsType ¶
type EntitlementMeteredCreateInputsType string
EntitlementMeteredCreateInputsType defines model for EntitlementMeteredCreateInputs.Type.
const (
EntitlementMeteredCreateInputsTypeMetered EntitlementMeteredCreateInputsType = "metered"
)
Defines values for EntitlementMeteredCreateInputsType.
type EntitlementMeteredType ¶
type EntitlementMeteredType string
EntitlementMeteredType defines model for EntitlementMetered.Type.
const (
EntitlementMeteredTypeMetered EntitlementMeteredType = "metered"
)
Defines values for EntitlementMeteredType.
type EntitlementMeteredV2 ¶
type EntitlementMeteredV2 struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Annotations The annotations of the entitlement.
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CurrentUsagePeriod The current usage period.
CurrentUsagePeriod Period `json:"currentUsagePeriod"`
// CustomerId The identifier unique to the customer
CustomerId string `json:"customerId"`
// CustomerKey The identifier key unique to the customer
CustomerKey *string `json:"customerKey,omitempty"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
IsSoftLimit *bool `json:"isSoftLimit,omitempty"`
// Issue Issue after reset
Issue *IssueAfterReset `json:"issue,omitempty"`
// IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.
// If an amount is specified here, a grant will be created alongside the entitlement with the specified amount.
// That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.
// Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
IssueAfterReset *float64 `json:"issueAfterReset,omitempty"`
// IssueAfterResetPriority Defines the grant priority for the default grant.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"`
// LastReset The time the last reset happened.
LastReset time.Time `json:"lastReset"`
// MeasureUsageFrom The time from which usage is measured. If not specified on creation, defaults to entitlement creation time.
MeasureUsageFrom time.Time `json:"measureUsageFrom"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
// PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0.
PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"`
Type EntitlementMeteredV2Type `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// UsagePeriod THe usage period of the entitlement.
UsagePeriod RecurringPeriod `json:"usagePeriod"`
}
EntitlementMeteredV2 Metered entitlements are useful for many different use cases, from setting up usage based access to implementing complex credit systems. Access is determined based on feature usage using a balance calculation (the "usage allowance" provided by the issued grants is "burnt down" by the usage).
type EntitlementMeteredV2CreateInputs ¶
type EntitlementMeteredV2CreateInputs struct {
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId *string `json:"featureId,omitempty"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey *string `json:"featureKey,omitempty"`
// Grants Grants
Grants *[]EntitlementGrantCreateInputV2 `json:"grants,omitempty"`
// IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
IsSoftLimit *bool `json:"isSoftLimit,omitempty"`
// Issue Issue after reset
Issue *IssueAfterReset `json:"issue,omitempty"`
// IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.
// If an amount is specified here, a grant will be created alongside the entitlement with the specified amount.
// That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.
// Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
IssueAfterReset *float64 `json:"issueAfterReset,omitempty"`
// IssueAfterResetPriority Defines the grant priority for the default grant.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"`
// MeasureUsageFrom Defines the time from which usage is measured. If not specified on creation, defaults to entitlement creation time.
MeasureUsageFrom *MeasureUsageFrom `json:"measureUsageFrom,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
// PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0.
PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"`
Type EntitlementMeteredV2CreateInputsType `json:"type"`
// UsagePeriod The usage period associated with the entitlement.
UsagePeriod RecurringPeriodCreateInput `json:"usagePeriod"`
}
EntitlementMeteredV2CreateInputs Create inputs for metered entitlement
type EntitlementMeteredV2CreateInputsType ¶
type EntitlementMeteredV2CreateInputsType string
EntitlementMeteredV2CreateInputsType defines model for EntitlementMeteredV2CreateInputs.Type.
const (
EntitlementMeteredV2CreateInputsTypeMetered EntitlementMeteredV2CreateInputsType = "metered"
)
Defines values for EntitlementMeteredV2CreateInputsType.
type EntitlementMeteredV2Type ¶
type EntitlementMeteredV2Type string
EntitlementMeteredV2Type defines model for EntitlementMeteredV2.Type.
const (
EntitlementMeteredV2TypeMetered EntitlementMeteredV2Type = "metered"
)
Defines values for EntitlementMeteredV2Type.
type EntitlementOrderBy ¶
type EntitlementOrderBy string
EntitlementOrderBy Order by options for entitlements.
const ( EntitlementOrderByCreatedAt EntitlementOrderBy = "createdAt" EntitlementOrderByUpdatedAt EntitlementOrderBy = "updatedAt" )
Defines values for EntitlementOrderBy.
type EntitlementOrderByOrderingOrder ¶
type EntitlementOrderByOrderingOrder = SortOrder
EntitlementOrderByOrderingOrder The order direction.
type EntitlementOrderByOrderingOrderBy ¶
type EntitlementOrderByOrderingOrderBy = EntitlementOrderBy
EntitlementOrderByOrderingOrderBy Order by options for entitlements.
type EntitlementPaginatedResponse ¶
type EntitlementPaginatedResponse struct {
// Items The items in the current page.
Items []Entitlement `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
EntitlementPaginatedResponse Paginated response
type EntitlementStatic ¶
type EntitlementStatic struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Annotations The annotations of the entitlement.
Annotations *Annotations `json:"annotations,omitempty"`
// Config The JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object.
Config json.RawMessage `json:"config"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CurrentUsagePeriod The current usage period.
CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
// SubjectKey The identifier key unique to the subject.
// NOTE: Subjects are being deprecated, please use the new customer APIs.
SubjectKey string `json:"subjectKey"`
Type EntitlementStaticType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// UsagePeriod The defined usage period of the entitlement
UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"`
}
EntitlementStatic A static entitlement.
type EntitlementStaticCreateInputs ¶
type EntitlementStaticCreateInputs struct {
// Config The JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object.
Config json.RawMessage `json:"config"`
// FeatureId The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureId *string `json:"featureId,omitempty"`
// FeatureKey The feature the subject is entitled to use.
// Either featureKey or featureId is required.
FeatureKey *string `json:"featureKey,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
Type EntitlementStaticCreateInputsType `json:"type"`
// UsagePeriod The usage period associated with the entitlement.
UsagePeriod *RecurringPeriodCreateInput `json:"usagePeriod,omitempty"`
}
EntitlementStaticCreateInputs Create inputs for static entitlement
type EntitlementStaticCreateInputsType ¶
type EntitlementStaticCreateInputsType string
EntitlementStaticCreateInputsType defines model for EntitlementStaticCreateInputs.Type.
const (
EntitlementStaticCreateInputsTypeStatic EntitlementStaticCreateInputsType = "static"
)
Defines values for EntitlementStaticCreateInputsType.
type EntitlementStaticType ¶
type EntitlementStaticType string
EntitlementStaticType defines model for EntitlementStatic.Type.
const (
EntitlementStaticTypeStatic EntitlementStaticType = "static"
)
Defines values for EntitlementStaticType.
type EntitlementStaticV2 ¶
type EntitlementStaticV2 struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Annotations The annotations of the entitlement.
Annotations *Annotations `json:"annotations,omitempty"`
// Config The JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object.
Config json.RawMessage `json:"config"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CurrentUsagePeriod The current usage period.
CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"`
// CustomerId The identifier unique to the customer
CustomerId string `json:"customerId"`
// CustomerKey The identifier key unique to the customer
CustomerKey *string `json:"customerKey,omitempty"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FeatureId The feature the subject is entitled to use.
FeatureId string `json:"featureId"`
// FeatureKey The feature the subject is entitled to use.
FeatureKey string `json:"featureKey"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
Type EntitlementStaticV2Type `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// UsagePeriod The defined usage period of the entitlement
UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"`
}
EntitlementStaticV2 A static entitlement.
type EntitlementStaticV2Type ¶
type EntitlementStaticV2Type string
EntitlementStaticV2Type defines model for EntitlementStaticV2.Type.
const (
EntitlementStaticV2TypeStatic EntitlementStaticV2Type = "static"
)
Defines values for EntitlementStaticV2Type.
type EntitlementV2 ¶
type EntitlementV2 struct {
// contains filtered or unexported fields
}
EntitlementV2 Entitlement templates are used to define the entitlements of a plan. Features are omitted from the entitlement template, as they are defined in the rate card.
func (EntitlementV2) AsEntitlementBooleanV2 ¶
func (t EntitlementV2) AsEntitlementBooleanV2() (EntitlementBooleanV2, error)
AsEntitlementBooleanV2 returns the union data inside the EntitlementV2 as a EntitlementBooleanV2
func (EntitlementV2) AsEntitlementMeteredV2 ¶
func (t EntitlementV2) AsEntitlementMeteredV2() (EntitlementMeteredV2, error)
AsEntitlementMeteredV2 returns the union data inside the EntitlementV2 as a EntitlementMeteredV2
func (EntitlementV2) AsEntitlementStaticV2 ¶
func (t EntitlementV2) AsEntitlementStaticV2() (EntitlementStaticV2, error)
AsEntitlementStaticV2 returns the union data inside the EntitlementV2 as a EntitlementStaticV2
func (EntitlementV2) Discriminator ¶
func (t EntitlementV2) Discriminator() (string, error)
func (*EntitlementV2) FromEntitlementBooleanV2 ¶
func (t *EntitlementV2) FromEntitlementBooleanV2(v EntitlementBooleanV2) error
FromEntitlementBooleanV2 overwrites any union data inside the EntitlementV2 as the provided EntitlementBooleanV2
func (*EntitlementV2) FromEntitlementMeteredV2 ¶
func (t *EntitlementV2) FromEntitlementMeteredV2(v EntitlementMeteredV2) error
FromEntitlementMeteredV2 overwrites any union data inside the EntitlementV2 as the provided EntitlementMeteredV2
func (*EntitlementV2) FromEntitlementStaticV2 ¶
func (t *EntitlementV2) FromEntitlementStaticV2(v EntitlementStaticV2) error
FromEntitlementStaticV2 overwrites any union data inside the EntitlementV2 as the provided EntitlementStaticV2
func (EntitlementV2) MarshalJSON ¶
func (t EntitlementV2) MarshalJSON() ([]byte, error)
func (*EntitlementV2) MergeEntitlementBooleanV2 ¶
func (t *EntitlementV2) MergeEntitlementBooleanV2(v EntitlementBooleanV2) error
MergeEntitlementBooleanV2 performs a merge with any union data inside the EntitlementV2, using the provided EntitlementBooleanV2
func (*EntitlementV2) MergeEntitlementMeteredV2 ¶
func (t *EntitlementV2) MergeEntitlementMeteredV2(v EntitlementMeteredV2) error
MergeEntitlementMeteredV2 performs a merge with any union data inside the EntitlementV2, using the provided EntitlementMeteredV2
func (*EntitlementV2) MergeEntitlementStaticV2 ¶
func (t *EntitlementV2) MergeEntitlementStaticV2(v EntitlementStaticV2) error
MergeEntitlementStaticV2 performs a merge with any union data inside the EntitlementV2, using the provided EntitlementStaticV2
func (*EntitlementV2) UnmarshalJSON ¶
func (t *EntitlementV2) UnmarshalJSON(b []byte) error
func (EntitlementV2) ValueByDiscriminator ¶
func (t EntitlementV2) ValueByDiscriminator() (interface{}, error)
type EntitlementV2CreateInputs ¶
type EntitlementV2CreateInputs struct {
// contains filtered or unexported fields
}
EntitlementV2CreateInputs Create inputs for entitlement
func (EntitlementV2CreateInputs) AsEntitlementBooleanCreateInputs ¶
func (t EntitlementV2CreateInputs) AsEntitlementBooleanCreateInputs() (EntitlementBooleanCreateInputs, error)
AsEntitlementBooleanCreateInputs returns the union data inside the EntitlementV2CreateInputs as a EntitlementBooleanCreateInputs
func (EntitlementV2CreateInputs) AsEntitlementMeteredV2CreateInputs ¶
func (t EntitlementV2CreateInputs) AsEntitlementMeteredV2CreateInputs() (EntitlementMeteredV2CreateInputs, error)
AsEntitlementMeteredV2CreateInputs returns the union data inside the EntitlementV2CreateInputs as a EntitlementMeteredV2CreateInputs
func (EntitlementV2CreateInputs) AsEntitlementStaticCreateInputs ¶
func (t EntitlementV2CreateInputs) AsEntitlementStaticCreateInputs() (EntitlementStaticCreateInputs, error)
AsEntitlementStaticCreateInputs returns the union data inside the EntitlementV2CreateInputs as a EntitlementStaticCreateInputs
func (EntitlementV2CreateInputs) Discriminator ¶
func (t EntitlementV2CreateInputs) Discriminator() (string, error)
func (*EntitlementV2CreateInputs) FromEntitlementBooleanCreateInputs ¶
func (t *EntitlementV2CreateInputs) FromEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
FromEntitlementBooleanCreateInputs overwrites any union data inside the EntitlementV2CreateInputs as the provided EntitlementBooleanCreateInputs
func (*EntitlementV2CreateInputs) FromEntitlementMeteredV2CreateInputs ¶
func (t *EntitlementV2CreateInputs) FromEntitlementMeteredV2CreateInputs(v EntitlementMeteredV2CreateInputs) error
FromEntitlementMeteredV2CreateInputs overwrites any union data inside the EntitlementV2CreateInputs as the provided EntitlementMeteredV2CreateInputs
func (*EntitlementV2CreateInputs) FromEntitlementStaticCreateInputs ¶
func (t *EntitlementV2CreateInputs) FromEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
FromEntitlementStaticCreateInputs overwrites any union data inside the EntitlementV2CreateInputs as the provided EntitlementStaticCreateInputs
func (EntitlementV2CreateInputs) MarshalJSON ¶
func (t EntitlementV2CreateInputs) MarshalJSON() ([]byte, error)
func (*EntitlementV2CreateInputs) MergeEntitlementBooleanCreateInputs ¶
func (t *EntitlementV2CreateInputs) MergeEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error
MergeEntitlementBooleanCreateInputs performs a merge with any union data inside the EntitlementV2CreateInputs, using the provided EntitlementBooleanCreateInputs
func (*EntitlementV2CreateInputs) MergeEntitlementMeteredV2CreateInputs ¶
func (t *EntitlementV2CreateInputs) MergeEntitlementMeteredV2CreateInputs(v EntitlementMeteredV2CreateInputs) error
MergeEntitlementMeteredV2CreateInputs performs a merge with any union data inside the EntitlementV2CreateInputs, using the provided EntitlementMeteredV2CreateInputs
func (*EntitlementV2CreateInputs) MergeEntitlementStaticCreateInputs ¶
func (t *EntitlementV2CreateInputs) MergeEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error
MergeEntitlementStaticCreateInputs performs a merge with any union data inside the EntitlementV2CreateInputs, using the provided EntitlementStaticCreateInputs
func (*EntitlementV2CreateInputs) UnmarshalJSON ¶
func (t *EntitlementV2CreateInputs) UnmarshalJSON(b []byte) error
func (EntitlementV2CreateInputs) ValueByDiscriminator ¶
func (t EntitlementV2CreateInputs) ValueByDiscriminator() (interface{}, error)
type EntitlementV2PaginatedResponse ¶
type EntitlementV2PaginatedResponse struct {
// Items The items in the current page.
Items []EntitlementV2 `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
EntitlementV2PaginatedResponse Paginated response
type EntitlementValue ¶
type EntitlementValue struct {
// Balance Only available for metered entitlements. Metered entitlements are built around a balance calculation where feature usage is deducted from the issued grants. Balance represents the remaining balance of the entitlement, it's value never turns negative.
Balance *float64 `json:"balance,omitempty"`
// Config Only available for static entitlements. The JSON parsable config of the entitlement.
Config *string `json:"config,omitempty"`
// HasAccess Whether the subject has access to the feature. Shared accross all entitlement types.
HasAccess bool `json:"hasAccess"`
// Overage Only available for metered entitlements. Overage represents the usage that wasn't covered by grants, e.g. if the subject had a total feature usage of 100 in the period but they were only granted 80, there would be 20 overage.
Overage *float64 `json:"overage,omitempty"`
// Usage Only available for metered entitlements. Returns the total feature usage in the current period.
Usage *float64 `json:"usage,omitempty"`
}
EntitlementValue Entitlements are the core of OpenMeter access management. They define access to features for subjects. Entitlements can be metered, boolean, or static.
type ErrResponse ¶
type ErrResponse struct {
Err error `json:"-"` // low-level runtime error
StatusCode int `json:"statusCode"` // http response status code
StatusText string `json:"status"` // user-level status message
AppCode int64 `json:"code,omitempty"` // application-specific error code
Message string `json:"message,omitempty"` // application-level error message, for debugging
}
ErrResponse renderer type for handling all sorts of errors. In the best case scenario, the excellent github.com/pkg/errors package helps reveal information on the error, setting it on Err, and in the Render() method, using it to set the application-specific error code in AppCode.
type ErrorExtension ¶
type ErrorExtension struct {
// Code The machine readable description of the error.
Code string `json:"code"`
// Field The path to the field.
Field string `json:"field"`
// Message The human readable description of the error.
Message string `json:"message"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorExtension Generic ErrorExtension as part of HTTPProblem.Extensions.[StatusCode]
func (ErrorExtension) Get ¶
func (a ErrorExtension) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorExtension. Returns the specified element and whether it was found
func (ErrorExtension) MarshalJSON ¶
func (a ErrorExtension) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorExtension to handle AdditionalProperties
func (*ErrorExtension) Set ¶
func (a *ErrorExtension) Set(fieldName string, value interface{})
Setter for additional properties for ErrorExtension
func (*ErrorExtension) UnmarshalJSON ¶
func (a *ErrorExtension) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorExtension to handle AdditionalProperties
type Event ¶
Event CloudEvents Specification JSON Schema
Optional properties are nullable according to the CloudEvents specification: OPTIONAL not omitted attributes MAY be represented as a null JSON value.
type EventDeliveryAttemptResponse ¶
type EventDeliveryAttemptResponse struct {
// Body The body of the response.
Body string `json:"body"`
// DurationMs The duration of the response in milliseconds.
DurationMs int `json:"durationMs"`
// StatusCode Status code of the response if available.
StatusCode *int `json:"statusCode,omitempty"`
// Url URL where the event was sent in case of notification channel with webhook type.
Url *string `json:"url,omitempty"`
}
EventDeliveryAttemptResponse The response of the event delivery attempt.
type ExpirationDuration ¶
type ExpirationDuration string
ExpirationDuration The expiration duration enum
const ( ExpirationDurationDAY ExpirationDuration = "DAY" ExpirationDurationHOUR ExpirationDuration = "HOUR" ExpirationDurationMONTH ExpirationDuration = "MONTH" ExpirationDurationWEEK ExpirationDuration = "WEEK" ExpirationDurationYEAR ExpirationDuration = "YEAR" )
Defines values for ExpirationDuration.
type ExpirationPeriod ¶
type ExpirationPeriod struct {
// Count The number of time units in the expiration period.
Count uint32 `json:"count"`
// Duration The unit of time for the expiration period.
Duration ExpirationDuration `json:"duration"`
}
ExpirationPeriod The grant expiration definition
type Feature ¶
type Feature struct {
// AdvancedMeterGroupByFilters Optional advanced meter group by filters.
// You can use this to filter for values of the meter groupBy fields.
AdvancedMeterGroupByFilters *map[string]FilterString `json:"advancedMeterGroupByFilters,omitempty"`
// ArchivedAt Timestamp of when the resource was archived.
ArchivedAt *time.Time `json:"archivedAt,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Id Readonly unique ULID identifier.
Id string `json:"id"`
// Key A key is a unique string that is used to identify a resource.
Key string `json:"key"`
Metadata *Metadata `json:"metadata,omitempty"`
// MeterGroupByFilters Optional meter group by filters.
// Useful if the meter scope is broader than what feature tracks.
// Example scenario would be a meter tracking all token use with groupBy fields for the model,
// then the feature could filter for model=gpt-4.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MeterGroupByFilters *map[string]string `json:"meterGroupByFilters,omitempty"`
// MeterSlug A key is a unique string that is used to identify a resource.
MeterSlug *string `json:"meterSlug,omitempty"`
Name string `json:"name"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
Feature Represents a feature that can be enabled or disabled for a plan. Used both for product catalog and entitlements.
type FeatureCreateInputs ¶
type FeatureCreateInputs struct {
// AdvancedMeterGroupByFilters Optional advanced meter group by filters.
// You can use this to filter for values of the meter groupBy fields.
AdvancedMeterGroupByFilters *map[string]FilterString `json:"advancedMeterGroupByFilters,omitempty"`
// Key A key is a unique string that is used to identify a resource.
Key string `json:"key"`
Metadata *Metadata `json:"metadata,omitempty"`
// MeterGroupByFilters Optional meter group by filters.
// Useful if the meter scope is broader than what feature tracks.
// Example scenario would be a meter tracking all token use with groupBy fields for the model,
// then the feature could filter for model=gpt-4.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MeterGroupByFilters *map[string]string `json:"meterGroupByFilters,omitempty"`
// MeterSlug A key is a unique string that is used to identify a resource.
MeterSlug *string `json:"meterSlug,omitempty"`
Name string `json:"name"`
}
FeatureCreateInputs Represents a feature that can be enabled or disabled for a plan. Used both for product catalog and entitlements.
type FeatureMeta ¶
type FeatureMeta struct {
// Id Unique identifier of a feature.
Id string `json:"id"`
// Key The key is an immutable unique identifier of the feature used throughout the API,
// for example when interacting with a subject's entitlements.
Key string `json:"key"`
}
FeatureMeta Limited representation of a feature resource which includes only its unique identifiers (id, key).
type FeatureOrderBy ¶
type FeatureOrderBy string
FeatureOrderBy Order by options for features.
const ( FeatureOrderByCreatedAt FeatureOrderBy = "createdAt" FeatureOrderById FeatureOrderBy = "id" FeatureOrderByKey FeatureOrderBy = "key" FeatureOrderByName FeatureOrderBy = "name" FeatureOrderByUpdatedAt FeatureOrderBy = "updatedAt" )
Defines values for FeatureOrderBy.
type FeatureOrderByOrderingOrder ¶
type FeatureOrderByOrderingOrder = SortOrder
FeatureOrderByOrderingOrder The order direction.
type FeatureOrderByOrderingOrderBy ¶
type FeatureOrderByOrderingOrderBy = FeatureOrderBy
FeatureOrderByOrderingOrderBy Order by options for features.
type FeaturePaginatedResponse ¶
type FeaturePaginatedResponse struct {
// Items The items in the current page.
Items []Feature `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
FeaturePaginatedResponse Paginated response
type FilterIDExact ¶
type FilterIDExact struct {
// In The field must be in the provided list of values.
In *[]string `json:"$in,omitempty"`
}
FilterIDExact A filter for a ID (ULID) field allowing only equality or inclusion.
type FilterString ¶
type FilterString struct {
// And Provide a list of filters to be combined with a logical AND.
And *[]FilterString `json:"$and,omitempty"`
// Eq The field must be equal to the provided value.
Eq *string `json:"$eq,omitempty"`
// Gt The field must be greater than the provided value.
Gt *string `json:"$gt,omitempty"`
// Gte The field must be greater than or equal to the provided value.
Gte *string `json:"$gte,omitempty"`
// Ilike The field must match the provided value, ignoring case.
Ilike *string `json:"$ilike,omitempty"`
// In The field must be in the provided list of values.
In *[]string `json:"$in,omitempty"`
// Like The field must match the provided value.
Like *string `json:"$like,omitempty"`
// Lt The field must be less than the provided value.
Lt *string `json:"$lt,omitempty"`
// Lte The field must be less than or equal to the provided value.
Lte *string `json:"$lte,omitempty"`
// Ne The field must not be equal to the provided value.
Ne *string `json:"$ne,omitempty"`
// Nilike The field must not match the provided value, ignoring case.
Nilike *string `json:"$nilike,omitempty"`
// Nin The field must not be in the provided list of values.
Nin *[]string `json:"$nin,omitempty"`
// Nlike The field must not match the provided value.
Nlike *string `json:"$nlike,omitempty"`
// Or Provide a list of filters to be combined with a logical OR.
Or *[]FilterString `json:"$or,omitempty"`
}
FilterString A filter for a string field.
type FilterTime ¶
type FilterTime struct {
// And Provide a list of filters to be combined with a logical AND.
And *[]FilterTime `json:"$and,omitempty"`
// Gt The field must be greater than the provided value.
Gt *time.Time `json:"$gt,omitempty"`
// Gte The field must be greater than or equal to the provided value.
Gte *time.Time `json:"$gte,omitempty"`
// Lt The field must be less than the provided value.
Lt *time.Time `json:"$lt,omitempty"`
// Lte The field must be less than or equal to the provided value.
Lte *time.Time `json:"$lte,omitempty"`
// Or Provide a list of filters to be combined with a logical OR.
Or *[]FilterTime `json:"$or,omitempty"`
}
FilterTime A filter for a time field.
type FlatPrice ¶
type FlatPrice struct {
// Amount The amount of the flat price.
Amount Numeric `json:"amount"`
// Type The type of the price.
Type FlatPriceType `json:"type"`
}
FlatPrice Flat price.
type FlatPriceType ¶
type FlatPriceType string
FlatPriceType The type of the price.
const (
FlatPriceTypeFlat FlatPriceType = "flat"
)
Defines values for FlatPriceType.
type FlatPriceWithPaymentTerm ¶
type FlatPriceWithPaymentTerm struct {
// Amount The amount of the flat price.
Amount Numeric `json:"amount"`
// PaymentTerm The payment term of the flat price.
// Defaults to in advance.
PaymentTerm *PricePaymentTerm `json:"paymentTerm,omitempty"`
// Type The type of the price.
Type FlatPriceWithPaymentTermType `json:"type"`
}
FlatPriceWithPaymentTerm Flat price with payment term.
type FlatPriceWithPaymentTermType ¶
type FlatPriceWithPaymentTermType string
FlatPriceWithPaymentTermType The type of the price.
const (
FlatPriceWithPaymentTermTypeFlat FlatPriceWithPaymentTermType = "flat"
)
Defines values for FlatPriceWithPaymentTermType.
type ForbiddenProblemResponse ¶
type ForbiddenProblemResponse = UnexpectedProblemResponse
ForbiddenProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type GetAddonParams ¶
type GetAddonParams struct {
// IncludeLatest Include latest version of the add-on instead of the version in active state.
//
// Usage: `?includeLatest=true`
IncludeLatest *bool `form:"includeLatest,omitempty" json:"includeLatest,omitempty"`
}
GetAddonParams defines parameters for GetAddon.
type GetAddonResponse ¶
type GetAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Addon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetAddonResponse ¶
func ParseGetAddonResponse(rsp *http.Response) (*GetAddonResponse, error)
ParseGetAddonResponse parses an HTTP response from a GetAddonWithResponse call
func (GetAddonResponse) Status ¶
func (r GetAddonResponse) Status() string
Status returns HTTPResponse.Status
func (GetAddonResponse) StatusCode ¶
func (r GetAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAppResponse ¶
type GetAppResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *App
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetAppResponse ¶
func ParseGetAppResponse(rsp *http.Response) (*GetAppResponse, error)
ParseGetAppResponse parses an HTTP response from a GetAppWithResponse call
func (GetAppResponse) Status ¶
func (r GetAppResponse) Status() string
Status returns HTTPResponse.Status
func (GetAppResponse) StatusCode ¶
func (r GetAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBillingProfileCustomerOverrideParams ¶
type GetBillingProfileCustomerOverrideParams struct {
Expand *[]BillingProfileCustomerOverrideExpand `form:"expand,omitempty" json:"expand,omitempty"`
}
GetBillingProfileCustomerOverrideParams defines parameters for GetBillingProfileCustomerOverride.
type GetBillingProfileCustomerOverrideResponse ¶
type GetBillingProfileCustomerOverrideResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BillingProfileCustomerOverrideWithDetails
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetBillingProfileCustomerOverrideResponse ¶
func ParseGetBillingProfileCustomerOverrideResponse(rsp *http.Response) (*GetBillingProfileCustomerOverrideResponse, error)
ParseGetBillingProfileCustomerOverrideResponse parses an HTTP response from a GetBillingProfileCustomerOverrideWithResponse call
func (GetBillingProfileCustomerOverrideResponse) Status ¶
func (r GetBillingProfileCustomerOverrideResponse) Status() string
Status returns HTTPResponse.Status
func (GetBillingProfileCustomerOverrideResponse) StatusCode ¶
func (r GetBillingProfileCustomerOverrideResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBillingProfileParams ¶
type GetBillingProfileParams struct {
Expand *[]BillingProfileExpand `form:"expand,omitempty" json:"expand,omitempty"`
}
GetBillingProfileParams defines parameters for GetBillingProfile.
type GetBillingProfileResponse ¶
type GetBillingProfileResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BillingProfile
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetBillingProfileResponse ¶
func ParseGetBillingProfileResponse(rsp *http.Response) (*GetBillingProfileResponse, error)
ParseGetBillingProfileResponse parses an HTTP response from a GetBillingProfileWithResponse call
func (GetBillingProfileResponse) Status ¶
func (r GetBillingProfileResponse) Status() string
Status returns HTTPResponse.Status
func (GetBillingProfileResponse) StatusCode ¶
func (r GetBillingProfileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomerAccessResponse ¶
type GetCustomerAccessResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CustomerAccess
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetCustomerAccessResponse ¶
func ParseGetCustomerAccessResponse(rsp *http.Response) (*GetCustomerAccessResponse, error)
ParseGetCustomerAccessResponse parses an HTTP response from a GetCustomerAccessWithResponse call
func (GetCustomerAccessResponse) Status ¶
func (r GetCustomerAccessResponse) Status() string
Status returns HTTPResponse.Status
func (GetCustomerAccessResponse) StatusCode ¶
func (r GetCustomerAccessResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomerEntitlementHistoryV2Params ¶
type GetCustomerEntitlementHistoryV2Params struct {
// From Start of time range to query entitlement: date-time in RFC 3339 format. Defaults to the last reset. Gets truncated to the granularity of the underlying meter.
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To End of time range to query entitlement: date-time in RFC 3339 format. Defaults to now.
// If not now then gets truncated to the granularity of the underlying meter.
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// WindowSize Windowsize
WindowSize WindowSize `form:"windowSize" json:"windowSize"`
// WindowTimeZone The timezone used when calculating the windows.
WindowTimeZone *string `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"`
}
GetCustomerEntitlementHistoryV2Params defines parameters for GetCustomerEntitlementHistoryV2.
type GetCustomerEntitlementHistoryV2Response ¶
type GetCustomerEntitlementHistoryV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WindowedBalanceHistory
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetCustomerEntitlementHistoryV2Response ¶
func ParseGetCustomerEntitlementHistoryV2Response(rsp *http.Response) (*GetCustomerEntitlementHistoryV2Response, error)
ParseGetCustomerEntitlementHistoryV2Response parses an HTTP response from a GetCustomerEntitlementHistoryV2WithResponse call
func (GetCustomerEntitlementHistoryV2Response) Status ¶
func (r GetCustomerEntitlementHistoryV2Response) Status() string
Status returns HTTPResponse.Status
func (GetCustomerEntitlementHistoryV2Response) StatusCode ¶
func (r GetCustomerEntitlementHistoryV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomerEntitlementV2Response ¶
type GetCustomerEntitlementV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EntitlementV2
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetCustomerEntitlementV2Response ¶
func ParseGetCustomerEntitlementV2Response(rsp *http.Response) (*GetCustomerEntitlementV2Response, error)
ParseGetCustomerEntitlementV2Response parses an HTTP response from a GetCustomerEntitlementV2WithResponse call
func (GetCustomerEntitlementV2Response) Status ¶
func (r GetCustomerEntitlementV2Response) Status() string
Status returns HTTPResponse.Status
func (GetCustomerEntitlementV2Response) StatusCode ¶
func (r GetCustomerEntitlementV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomerEntitlementValueParams ¶
type GetCustomerEntitlementValueParams struct {
Time *time.Time `form:"time,omitempty" json:"time,omitempty"`
}
GetCustomerEntitlementValueParams defines parameters for GetCustomerEntitlementValue.
type GetCustomerEntitlementValueResponse ¶
type GetCustomerEntitlementValueResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EntitlementValue
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetCustomerEntitlementValueResponse ¶
func ParseGetCustomerEntitlementValueResponse(rsp *http.Response) (*GetCustomerEntitlementValueResponse, error)
ParseGetCustomerEntitlementValueResponse parses an HTTP response from a GetCustomerEntitlementValueWithResponse call
func (GetCustomerEntitlementValueResponse) Status ¶
func (r GetCustomerEntitlementValueResponse) Status() string
Status returns HTTPResponse.Status
func (GetCustomerEntitlementValueResponse) StatusCode ¶
func (r GetCustomerEntitlementValueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomerEntitlementValueV2Params ¶
type GetCustomerEntitlementValueV2Params struct {
Time *time.Time `form:"time,omitempty" json:"time,omitempty"`
}
GetCustomerEntitlementValueV2Params defines parameters for GetCustomerEntitlementValueV2.
type GetCustomerEntitlementValueV2Response ¶
type GetCustomerEntitlementValueV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EntitlementValue
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetCustomerEntitlementValueV2Response ¶
func ParseGetCustomerEntitlementValueV2Response(rsp *http.Response) (*GetCustomerEntitlementValueV2Response, error)
ParseGetCustomerEntitlementValueV2Response parses an HTTP response from a GetCustomerEntitlementValueV2WithResponse call
func (GetCustomerEntitlementValueV2Response) Status ¶
func (r GetCustomerEntitlementValueV2Response) Status() string
Status returns HTTPResponse.Status
func (GetCustomerEntitlementValueV2Response) StatusCode ¶
func (r GetCustomerEntitlementValueV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomerParams ¶
type GetCustomerParams struct {
// Expand What parts of the customer output to expand
Expand *QueryCustomerGet `form:"expand,omitempty" json:"expand,omitempty"`
}
GetCustomerParams defines parameters for GetCustomer.
type GetCustomerResponse ¶
type GetCustomerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Customer
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetCustomerResponse ¶
func ParseGetCustomerResponse(rsp *http.Response) (*GetCustomerResponse, error)
ParseGetCustomerResponse parses an HTTP response from a GetCustomerWithResponse call
func (GetCustomerResponse) Status ¶
func (r GetCustomerResponse) Status() string
Status returns HTTPResponse.Status
func (GetCustomerResponse) StatusCode ¶
func (r GetCustomerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomerStripeAppDataResponse ¶
type GetCustomerStripeAppDataResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *StripeCustomerAppData
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetCustomerStripeAppDataResponse ¶
func ParseGetCustomerStripeAppDataResponse(rsp *http.Response) (*GetCustomerStripeAppDataResponse, error)
ParseGetCustomerStripeAppDataResponse parses an HTTP response from a GetCustomerStripeAppDataWithResponse call
func (GetCustomerStripeAppDataResponse) Status ¶
func (r GetCustomerStripeAppDataResponse) Status() string
Status returns HTTPResponse.Status
func (GetCustomerStripeAppDataResponse) StatusCode ¶
func (r GetCustomerStripeAppDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDebugMetricsResponse ¶
type GetDebugMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetDebugMetricsResponse ¶
func ParseGetDebugMetricsResponse(rsp *http.Response) (*GetDebugMetricsResponse, error)
ParseGetDebugMetricsResponse parses an HTTP response from a GetDebugMetricsWithResponse call
func (GetDebugMetricsResponse) Status ¶
func (r GetDebugMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (GetDebugMetricsResponse) StatusCode ¶
func (r GetDebugMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementByIdResponse ¶
type GetEntitlementByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Entitlement
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementByIdResponse ¶
func ParseGetEntitlementByIdResponse(rsp *http.Response) (*GetEntitlementByIdResponse, error)
ParseGetEntitlementByIdResponse parses an HTTP response from a GetEntitlementByIdWithResponse call
func (GetEntitlementByIdResponse) Status ¶
func (r GetEntitlementByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementByIdResponse) StatusCode ¶
func (r GetEntitlementByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementByIdV2Response ¶
type GetEntitlementByIdV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EntitlementV2
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementByIdV2Response ¶
func ParseGetEntitlementByIdV2Response(rsp *http.Response) (*GetEntitlementByIdV2Response, error)
ParseGetEntitlementByIdV2Response parses an HTTP response from a GetEntitlementByIdV2WithResponse call
func (GetEntitlementByIdV2Response) Status ¶
func (r GetEntitlementByIdV2Response) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementByIdV2Response) StatusCode ¶
func (r GetEntitlementByIdV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementHistoryParams ¶
type GetEntitlementHistoryParams struct {
// From Start of time range to query entitlement: date-time in RFC 3339 format. Defaults to the last reset. Gets truncated to the granularity of the underlying meter.
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To End of time range to query entitlement: date-time in RFC 3339 format. Defaults to now.
// If not now then gets truncated to the granularity of the underlying meter.
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// WindowSize Windowsize
WindowSize WindowSize `form:"windowSize" json:"windowSize"`
// WindowTimeZone The timezone used when calculating the windows.
WindowTimeZone *string `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"`
}
GetEntitlementHistoryParams defines parameters for GetEntitlementHistory.
type GetEntitlementHistoryResponse ¶
type GetEntitlementHistoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WindowedBalanceHistory
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementHistoryResponse ¶
func ParseGetEntitlementHistoryResponse(rsp *http.Response) (*GetEntitlementHistoryResponse, error)
ParseGetEntitlementHistoryResponse parses an HTTP response from a GetEntitlementHistoryWithResponse call
func (GetEntitlementHistoryResponse) Status ¶
func (r GetEntitlementHistoryResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementHistoryResponse) StatusCode ¶
func (r GetEntitlementHistoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementResponse ¶
type GetEntitlementResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Entitlement
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementResponse ¶
func ParseGetEntitlementResponse(rsp *http.Response) (*GetEntitlementResponse, error)
ParseGetEntitlementResponse parses an HTTP response from a GetEntitlementWithResponse call
func (GetEntitlementResponse) Status ¶
func (r GetEntitlementResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementResponse) StatusCode ¶
func (r GetEntitlementResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitlementValueParams ¶
type GetEntitlementValueParams struct {
Time *time.Time `form:"time,omitempty" json:"time,omitempty"`
}
GetEntitlementValueParams defines parameters for GetEntitlementValue.
type GetEntitlementValueResponse ¶
type GetEntitlementValueResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EntitlementValue
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetEntitlementValueResponse ¶
func ParseGetEntitlementValueResponse(rsp *http.Response) (*GetEntitlementValueResponse, error)
ParseGetEntitlementValueResponse parses an HTTP response from a GetEntitlementValueWithResponse call
func (GetEntitlementValueResponse) Status ¶
func (r GetEntitlementValueResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitlementValueResponse) StatusCode ¶
func (r GetEntitlementValueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFeatureResponse ¶
type GetFeatureResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Feature
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetFeatureResponse ¶
func ParseGetFeatureResponse(rsp *http.Response) (*GetFeatureResponse, error)
ParseGetFeatureResponse parses an HTTP response from a GetFeatureWithResponse call
func (GetFeatureResponse) Status ¶
func (r GetFeatureResponse) Status() string
Status returns HTTPResponse.Status
func (GetFeatureResponse) StatusCode ¶
func (r GetFeatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInvoiceParams ¶
type GetInvoiceParams struct {
Expand *[]InvoiceExpand `form:"expand,omitempty" json:"expand,omitempty"`
IncludeDeletedLines *bool `form:"includeDeletedLines,omitempty" json:"includeDeletedLines,omitempty"`
}
GetInvoiceParams defines parameters for GetInvoice.
type GetInvoiceResponse ¶
type GetInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetInvoiceResponse ¶
func ParseGetInvoiceResponse(rsp *http.Response) (*GetInvoiceResponse, error)
ParseGetInvoiceResponse parses an HTTP response from a GetInvoiceWithResponse call
func (GetInvoiceResponse) Status ¶
func (r GetInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (GetInvoiceResponse) StatusCode ¶
func (r GetInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMarketplaceListingResponse ¶
type GetMarketplaceListingResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MarketplaceListing
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetMarketplaceListingResponse ¶
func ParseGetMarketplaceListingResponse(rsp *http.Response) (*GetMarketplaceListingResponse, error)
ParseGetMarketplaceListingResponse parses an HTTP response from a GetMarketplaceListingWithResponse call
func (GetMarketplaceListingResponse) Status ¶
func (r GetMarketplaceListingResponse) Status() string
Status returns HTTPResponse.Status
func (GetMarketplaceListingResponse) StatusCode ¶
func (r GetMarketplaceListingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMeterResponse ¶
type GetMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Meter
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetMeterResponse ¶
func ParseGetMeterResponse(rsp *http.Response) (*GetMeterResponse, error)
ParseGetMeterResponse parses an HTTP response from a GetMeterWithResponse call
func (GetMeterResponse) Status ¶
func (r GetMeterResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeterResponse) StatusCode ¶
func (r GetMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNotificationChannelResponse ¶
type GetNotificationChannelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationChannel
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetNotificationChannelResponse ¶
func ParseGetNotificationChannelResponse(rsp *http.Response) (*GetNotificationChannelResponse, error)
ParseGetNotificationChannelResponse parses an HTTP response from a GetNotificationChannelWithResponse call
func (GetNotificationChannelResponse) Status ¶
func (r GetNotificationChannelResponse) Status() string
Status returns HTTPResponse.Status
func (GetNotificationChannelResponse) StatusCode ¶
func (r GetNotificationChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNotificationEventResponse ¶
type GetNotificationEventResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationEvent
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetNotificationEventResponse ¶
func ParseGetNotificationEventResponse(rsp *http.Response) (*GetNotificationEventResponse, error)
ParseGetNotificationEventResponse parses an HTTP response from a GetNotificationEventWithResponse call
func (GetNotificationEventResponse) Status ¶
func (r GetNotificationEventResponse) Status() string
Status returns HTTPResponse.Status
func (GetNotificationEventResponse) StatusCode ¶
func (r GetNotificationEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNotificationRuleResponse ¶
type GetNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationRule
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetNotificationRuleResponse ¶
func ParseGetNotificationRuleResponse(rsp *http.Response) (*GetNotificationRuleResponse, error)
ParseGetNotificationRuleResponse parses an HTTP response from a GetNotificationRuleWithResponse call
func (GetNotificationRuleResponse) Status ¶
func (r GetNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (GetNotificationRuleResponse) StatusCode ¶
func (r GetNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPlanAddonResponse ¶
type GetPlanAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PlanAddon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetPlanAddonResponse ¶
func ParseGetPlanAddonResponse(rsp *http.Response) (*GetPlanAddonResponse, error)
ParseGetPlanAddonResponse parses an HTTP response from a GetPlanAddonWithResponse call
func (GetPlanAddonResponse) Status ¶
func (r GetPlanAddonResponse) Status() string
Status returns HTTPResponse.Status
func (GetPlanAddonResponse) StatusCode ¶
func (r GetPlanAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPlanParams ¶
type GetPlanParams struct {
// IncludeLatest Include latest version of the Plan instead of the version in active state.
//
// Usage: `?includeLatest=true`
IncludeLatest *bool `form:"includeLatest,omitempty" json:"includeLatest,omitempty"`
}
GetPlanParams defines parameters for GetPlan.
type GetPlanResponse ¶
type GetPlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Plan
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetPlanResponse ¶
func ParseGetPlanResponse(rsp *http.Response) (*GetPlanResponse, error)
ParseGetPlanResponse parses an HTTP response from a GetPlanWithResponse call
func (GetPlanResponse) Status ¶
func (r GetPlanResponse) Status() string
Status returns HTTPResponse.Status
func (GetPlanResponse) StatusCode ¶
func (r GetPlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProgressResponse ¶
type GetProgressResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Progress
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetProgressResponse ¶
func ParseGetProgressResponse(rsp *http.Response) (*GetProgressResponse, error)
ParseGetProgressResponse parses an HTTP response from a GetProgressWithResponse call
func (GetProgressResponse) Status ¶
func (r GetProgressResponse) Status() string
Status returns HTTPResponse.Status
func (GetProgressResponse) StatusCode ¶
func (r GetProgressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSubjectResponse ¶
type GetSubjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Subject
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetSubjectResponse ¶
func ParseGetSubjectResponse(rsp *http.Response) (*GetSubjectResponse, error)
ParseGetSubjectResponse parses an HTTP response from a GetSubjectWithResponse call
func (GetSubjectResponse) Status ¶
func (r GetSubjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetSubjectResponse) StatusCode ¶
func (r GetSubjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSubscriptionAddonResponse ¶
type GetSubscriptionAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SubscriptionAddon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetSubscriptionAddonResponse ¶
func ParseGetSubscriptionAddonResponse(rsp *http.Response) (*GetSubscriptionAddonResponse, error)
ParseGetSubscriptionAddonResponse parses an HTTP response from a GetSubscriptionAddonWithResponse call
func (GetSubscriptionAddonResponse) Status ¶
func (r GetSubscriptionAddonResponse) Status() string
Status returns HTTPResponse.Status
func (GetSubscriptionAddonResponse) StatusCode ¶
func (r GetSubscriptionAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSubscriptionParams ¶
type GetSubscriptionParams struct {
// At The time at which the subscription should be queried. If not provided the current time is used.
At *time.Time `form:"at,omitempty" json:"at,omitempty"`
}
GetSubscriptionParams defines parameters for GetSubscription.
type GetSubscriptionResponse ¶
type GetSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SubscriptionExpanded
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseGetSubscriptionResponse ¶
func ParseGetSubscriptionResponse(rsp *http.Response) (*GetSubscriptionResponse, error)
ParseGetSubscriptionResponse parses an HTTP response from a GetSubscriptionWithResponse call
func (GetSubscriptionResponse) Status ¶
func (r GetSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (GetSubscriptionResponse) StatusCode ¶
func (r GetSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GrantBurnDownHistorySegment ¶
type GrantBurnDownHistorySegment struct {
// BalanceAtEnd The entitlement balance at the end of the period.
BalanceAtEnd float64 `json:"balanceAtEnd"`
// BalanceAtStart entitlement balance at the start of the period.
BalanceAtStart float64 `json:"balanceAtStart"`
// GrantBalancesAtEnd The balance breakdown of each active grant at the end of the period: GrantID: Balance
GrantBalancesAtEnd map[string]float64 `json:"grantBalancesAtEnd"`
// GrantBalancesAtStart The balance breakdown of each active grant at the start of the period: GrantID: Balance
GrantBalancesAtStart map[string]float64 `json:"grantBalancesAtStart"`
// GrantUsages Which grants were actually burnt down in the period and by what amount.
GrantUsages []GrantUsageRecord `json:"grantUsages"`
// Overage Overuse that wasn't covered by grants.
Overage float64 `json:"overage"`
// Period The period of the segment.
Period Period `json:"period"`
// Usage The total usage of the grant in the period.
Usage float64 `json:"usage"`
}
GrantBurnDownHistorySegment A segment of the grant burn down history.
A given segment represents the usage of a grant between events that changed either the grant burn down priority order or the usag period.
type GrantOrderBy ¶
type GrantOrderBy string
GrantOrderBy Order by options for grants.
const ( GrantOrderByCreatedAt GrantOrderBy = "createdAt" GrantOrderById GrantOrderBy = "id" GrantOrderByUpdatedAt GrantOrderBy = "updatedAt" )
Defines values for GrantOrderBy.
type GrantOrderByOrderingOrder ¶
type GrantOrderByOrderingOrder = SortOrder
GrantOrderByOrderingOrder The order direction.
type GrantOrderByOrderingOrderBy ¶
type GrantOrderByOrderingOrderBy = GrantOrderBy
GrantOrderByOrderingOrderBy Order by options for grants.
type GrantPaginatedResponse ¶
type GrantPaginatedResponse struct {
// Items The items in the current page.
Items []EntitlementGrant `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
GrantPaginatedResponse Paginated response
type GrantUsageRecord ¶
type GrantUsageRecord struct {
// GrantId The id of the grant
GrantId string `json:"grantId"`
// Usage The usage in the period
Usage float64 `json:"usage"`
}
GrantUsageRecord Usage Record
type GrantV2PaginatedResponse ¶
type GrantV2PaginatedResponse struct {
// Items The items in the current page.
Items []EntitlementGrantV2 `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
GrantV2PaginatedResponse Paginated response
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IDResource ¶
type IDResource struct {
// Id A unique identifier for the resource.
Id string `json:"id"`
}
IDResource IDResource is a resouce with an ID.
type IngestEventsApplicationCloudeventsBatchPlusJSONBody ¶
type IngestEventsApplicationCloudeventsBatchPlusJSONBody = []Event
IngestEventsApplicationCloudeventsBatchPlusJSONBody defines parameters for IngestEvents.
type IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody ¶
type IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody = IngestEventsApplicationCloudeventsBatchPlusJSONBody
IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody defines body for IngestEvents for application/cloudevents-batch+json ContentType.
type IngestEventsApplicationCloudeventsPlusJSONRequestBody ¶
type IngestEventsApplicationCloudeventsPlusJSONRequestBody = Event
IngestEventsApplicationCloudeventsPlusJSONRequestBody defines body for IngestEvents for application/cloudevents+json ContentType.
type IngestEventsBody ¶
type IngestEventsBody struct {
// contains filtered or unexported fields
}
IngestEventsBody The body of the events request. Either a single event or a batch of events.
func (IngestEventsBody) AsEvent ¶
func (t IngestEventsBody) AsEvent() (Event, error)
AsEvent returns the union data inside the IngestEventsBody as a Event
func (IngestEventsBody) AsIngestEventsBody1 ¶
func (t IngestEventsBody) AsIngestEventsBody1() (IngestEventsBody1, error)
AsIngestEventsBody1 returns the union data inside the IngestEventsBody as a IngestEventsBody1
func (*IngestEventsBody) FromEvent ¶
func (t *IngestEventsBody) FromEvent(v Event) error
FromEvent overwrites any union data inside the IngestEventsBody as the provided Event
func (*IngestEventsBody) FromIngestEventsBody1 ¶
func (t *IngestEventsBody) FromIngestEventsBody1(v IngestEventsBody1) error
FromIngestEventsBody1 overwrites any union data inside the IngestEventsBody as the provided IngestEventsBody1
func (IngestEventsBody) MarshalJSON ¶
func (t IngestEventsBody) MarshalJSON() ([]byte, error)
func (*IngestEventsBody) MergeEvent ¶
func (t *IngestEventsBody) MergeEvent(v Event) error
MergeEvent performs a merge with any union data inside the IngestEventsBody, using the provided Event
func (*IngestEventsBody) MergeIngestEventsBody1 ¶
func (t *IngestEventsBody) MergeIngestEventsBody1(v IngestEventsBody1) error
MergeIngestEventsBody1 performs a merge with any union data inside the IngestEventsBody, using the provided IngestEventsBody1
func (*IngestEventsBody) UnmarshalJSON ¶
func (t *IngestEventsBody) UnmarshalJSON(b []byte) error
type IngestEventsJSONRequestBody ¶
type IngestEventsJSONRequestBody = IngestEventsBody
IngestEventsJSONRequestBody defines body for IngestEvents for application/json ContentType.
type IngestEventsResponse ¶
type IngestEventsResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseIngestEventsResponse ¶
func ParseIngestEventsResponse(rsp *http.Response) (*IngestEventsResponse, error)
ParseIngestEventsResponse parses an HTTP response from a IngestEventsWithResponse call
func (IngestEventsResponse) Status ¶
func (r IngestEventsResponse) Status() string
Status returns HTTPResponse.Status
func (IngestEventsResponse) StatusCode ¶
func (r IngestEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IngestedEvent ¶
type IngestedEvent struct {
// CustomerId The customer ID if the event is associated with a customer.
CustomerId *string `json:"customerId,omitempty"`
// Event The original event ingested.
Event Event `json:"event"`
// IngestedAt The date and time the event was ingested.
IngestedAt time.Time `json:"ingestedAt"`
// StoredAt The date and time the event was stored.
StoredAt time.Time `json:"storedAt"`
// ValidationError The validation error if the event failed validation.
ValidationError *string `json:"validationError,omitempty"`
}
IngestedEvent An ingested event with optional validation error.
type IngestedEventCursorPaginatedResponse ¶
type IngestedEventCursorPaginatedResponse struct {
// Items The items in the response.
Items []IngestedEvent `json:"items"`
// NextCursor The cursor of the last item in the list.
NextCursor *string `json:"nextCursor,omitempty"`
}
IngestedEventCursorPaginatedResponse A response for cursor pagination.
type InstallMethod ¶
type InstallMethod string
InstallMethod Install method of the application.
const ( InstallMethodNoCredentialsRequired InstallMethod = "no_credentials_required" InstallMethodWithApiKey InstallMethod = "with_api_key" InstallMethodWithOauth2 InstallMethod = "with_oauth2" )
Defines values for InstallMethod.
type InternalServerErrorProblemResponse ¶
type InternalServerErrorProblemResponse = UnexpectedProblemResponse
InternalServerErrorProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type InvalidatePortalTokensJSONBody ¶
type InvalidatePortalTokensJSONBody struct {
// Id Invalidate a portal token by ID.
Id *string `json:"id,omitempty"`
// Subject Invalidate all portal tokens for a subject.
Subject *string `json:"subject,omitempty"`
}
InvalidatePortalTokensJSONBody defines parameters for InvalidatePortalTokens.
type InvalidatePortalTokensJSONRequestBody ¶
type InvalidatePortalTokensJSONRequestBody InvalidatePortalTokensJSONBody
InvalidatePortalTokensJSONRequestBody defines body for InvalidatePortalTokens for application/json ContentType.
type InvalidatePortalTokensResponse ¶
type InvalidatePortalTokensResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseInvalidatePortalTokensResponse ¶
func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalTokensResponse, error)
ParseInvalidatePortalTokensResponse parses an HTTP response from a InvalidatePortalTokensWithResponse call
func (InvalidatePortalTokensResponse) Status ¶
func (r InvalidatePortalTokensResponse) Status() string
Status returns HTTPResponse.Status
func (InvalidatePortalTokensResponse) StatusCode ¶
func (r InvalidatePortalTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Invoice ¶
type Invoice struct {
// CollectionAt The time when the invoice will be/has been collected.
CollectionAt *time.Time `json:"collectionAt,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Currency Currency for all invoice line items.
//
// Multi currency invoices are not supported yet.
Currency CurrencyCode `json:"currency"`
// Customer Legal entity receiving the goods or services.
Customer BillingInvoiceCustomerExtendedDetails `json:"customer"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// DraftUntil The time until the invoice is in draft status.
//
// On draft invoice creation it is calculated from the workflow settings.
//
// If manual approval is required, the draftUntil time is set.
DraftUntil *time.Time `json:"draftUntil,omitempty"`
// DueAt Due time of the fulfillment of the invoice (if available).
DueAt *time.Time `json:"dueAt,omitempty"`
// ExternalIds External IDs of the invoice in other apps such as Stripe.
ExternalIds *InvoiceAppExternalIds `json:"externalIds,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// IssuedAt The time the invoice was issued.
//
// Depending on the status of the invoice this can mean multiple things:
// - draft, gathering: The time the invoice will be issued based on the workflow settings.
// - issued: The time the invoice was issued.
IssuedAt *time.Time `json:"issuedAt,omitempty"`
// Lines List of invoice lines representing each of the items sold to the customer.
Lines *[]InvoiceLine `json:"lines,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Number Number specifies the human readable key used to reference this Invoice.
//
// The invoice number can change in the draft phases, as we are allocating temporary draft
// invoice numbers, but it's final as soon as the invoice gets finalized (issued state).
//
// Please note that the number is (depending on the upstream settings) either unique for the
// whole organization or unique for the customer, or in multi (stripe) account setups unique for the
// account.
Number InvoiceNumber `json:"number"`
// Payment Information on when, how, and to whom the invoice should be paid.
Payment *InvoicePaymentTerms `json:"payment,omitempty"`
// Period The period the invoice covers. If the invoice has no line items, it's not set.
Period *Period `json:"period,omitempty"`
// Preceding Key information regarding previous invoices and potentially details as to why they were corrected.
Preceding *[]InvoiceDocumentRef `json:"preceding,omitempty"`
// QuantitySnapshotedAt The time when the quantity snapshots on the invoice lines were taken.
QuantitySnapshotedAt *time.Time `json:"quantitySnapshotedAt,omitempty"`
// SentToCustomerAt The time the invoice was sent to customer.
SentToCustomerAt *time.Time `json:"sentToCustomerAt,omitempty"`
// Status The status of the invoice.
//
// This field only conatins a simplified status, for more detailed information use the statusDetails field.
Status InvoiceStatus `json:"status"`
// StatusDetails The details of the current invoice status.
StatusDetails InvoiceStatusDetails `json:"statusDetails"`
// Supplier The taxable entity supplying the goods or services.
Supplier BillingParty `json:"supplier"`
// Totals Summary of all the invoice totals, including taxes (calculated).
Totals InvoiceTotals `json:"totals"`
// Type Type of the invoice.
//
// The type of invoice determines the purpose of the invoice and how it should be handled.
//
// Supported types:
// - standard: A regular commercial invoice document between a supplier and customer.
// - credit_note: Reflects a refund either partial or complete of the preceding document. A credit note effectively *extends* the previous document.
Type InvoiceType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// ValidationIssues Validation issues reported by the invoice workflow.
ValidationIssues *[]ValidationIssue `json:"validationIssues,omitempty"`
// VoidedAt The time the invoice was voided.
//
// If the invoice was voided, this field will be set to the time the invoice was voided.
VoidedAt *time.Time `json:"voidedAt,omitempty"`
// Workflow The workflow associated with the invoice.
//
// It is always a snapshot of the workflow settings at the time of invoice creation. The
// field is optional as it should be explicitly requested with expand options.
Workflow InvoiceWorkflowSettings `json:"workflow"`
}
Invoice Invoice represents an invoice in the system.
type InvoiceAppExternalIds ¶
type InvoiceAppExternalIds struct {
// Invoicing The external ID of the invoice in the invoicing app if available.
Invoicing *string `json:"invoicing,omitempty"`
// Payment The external ID of the invoice in the payment app if available.
Payment *string `json:"payment,omitempty"`
// Tax The external ID of the invoice in the tax app if available.
Tax *string `json:"tax,omitempty"`
}
InvoiceAppExternalIds InvoiceAppExternalIds contains the external IDs of the invoice in other apps such as Stripe.
type InvoiceAvailableActionDetails ¶
type InvoiceAvailableActionDetails struct {
// ResultingState The state the invoice will reach if the action is activated and
// all intermediate steps are successful.
//
// For example advancing a draft_created invoice will result in a draft_manual_approval_needed invoice.
ResultingState string `json:"resultingState"`
}
InvoiceAvailableActionDetails InvoiceAvailableActionInvoiceDetails represents the details of the invoice action for non-gathering invoices.
type InvoiceAvailableActionInvoiceDetails ¶
type InvoiceAvailableActionInvoiceDetails = map[string]interface{}
InvoiceAvailableActionInvoiceDetails InvoiceAvailableActionInvoiceDetails represents the details of the invoice action for gathering invoices.
type InvoiceAvailableActions ¶
type InvoiceAvailableActions struct {
// Advance Advance the invoice to the next status.
Advance *InvoiceAvailableActionDetails `json:"advance,omitempty"`
// Approve Approve an invoice that requires manual approval.
Approve *InvoiceAvailableActionDetails `json:"approve,omitempty"`
// Delete Delete the invoice (only non-issued invoices can be deleted).
Delete *InvoiceAvailableActionDetails `json:"delete,omitempty"`
// Invoice Invoice a gathering invoice
Invoice *InvoiceAvailableActionInvoiceDetails `json:"invoice,omitempty"`
// Retry Retry an invoice issuing step that failed.
Retry *InvoiceAvailableActionDetails `json:"retry,omitempty"`
// SnapshotQuantities Snapshot quantities for usage based line items.
SnapshotQuantities *InvoiceAvailableActionDetails `json:"snapshotQuantities,omitempty"`
// Void Void an already issued invoice.
Void *InvoiceAvailableActionDetails `json:"void,omitempty"`
}
InvoiceAvailableActions InvoiceAvailableActions represents the actions that can be performed on the invoice.
type InvoiceDetailedLine ¶
type InvoiceDetailedLine struct {
// Category Category of the flat fee.
Category *InvoiceDetailedLineCostCategory `json:"category,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Currency The currency of this line.
Currency CurrencyCode `json:"currency"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Discounts Discounts detailes applied to this line.
//
// New discounts can be added via the invoice's discounts API, to facilitate
// discounts that are affecting multiple lines.
Discounts *InvoiceLineDiscounts `json:"discounts,omitempty"`
// ExternalIds External IDs of the invoice in other apps such as Stripe.
ExternalIds *InvoiceLineAppExternalIds `json:"externalIds,omitempty"`
// Id ID of the line.
Id string `json:"id"`
// Invoice The invoice this item belongs to.
Invoice *InvoiceReference `json:"invoice,omitempty"`
// InvoiceAt The time this line item should be invoiced.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
InvoiceAt time.Time `json:"invoiceAt"`
// ManagedBy managedBy specifies if the line is manually added via the api or managed by OpenMeter.
ManagedBy InvoiceLineManagedBy `json:"managedBy"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// PaymentTerm Payment term of the line.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PaymentTerm *PricePaymentTerm `json:"paymentTerm,omitempty"`
// PerUnitAmount Price of the item being sold.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PerUnitAmount *Numeric `json:"perUnitAmount,omitempty"`
// Period Period of the line item applies to for revenue recognition pruposes.
//
// Billing always treats periods as start being inclusive and end being exclusive.
Period Period `json:"period"`
// Quantity Quantity of the item being sold.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Quantity *Numeric `json:"quantity,omitempty"`
// RateCard The rate card that is used for this line.
RateCard *InvoiceDetailedLineRateCard `json:"rateCard,omitempty"`
// Status Status of the line.
//
// External calls always create valid lines, other line types are managed by the
// billing engine of OpenMeter.
Status InvoiceLineStatus `json:"status"`
// Subscription Subscription are the references to the subscritpions that this line is related to.
Subscription *InvoiceLineSubscriptionReference `json:"subscription,omitempty"`
// TaxConfig Tax config specify the tax configuration for this line.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
// Taxes Taxes applied to the invoice totals.
Taxes *[]InvoiceLineTaxItem `json:"taxes,omitempty"`
// Totals Totals for this line.
Totals InvoiceTotals `json:"totals"`
// Type Type of the line.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Type InvoiceDetailedLineType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
InvoiceDetailedLine InvoiceDetailedLine represents a line item that is sold to the customer as a manually added fee.
type InvoiceDetailedLineCostCategory ¶
type InvoiceDetailedLineCostCategory string
InvoiceDetailedLineCostCategory InvoiceDetailedLineCostCategory determines if the flat fee is a regular fee due to use due to a commitment.
const ( InvoiceDetailedLineCostCategoryCommitment InvoiceDetailedLineCostCategory = "commitment" InvoiceDetailedLineCostCategoryRegular InvoiceDetailedLineCostCategory = "regular" )
Defines values for InvoiceDetailedLineCostCategory.
type InvoiceDetailedLineRateCard ¶
type InvoiceDetailedLineRateCard struct {
// Discounts The discounts that are applied to the line.
Discounts *BillingDiscounts `json:"discounts,omitempty"`
// Price The price of the rate card.
// When null, the feature or service is free.
Price *FlatPriceWithPaymentTerm `json:"price"`
// Quantity Quantity of the item being sold.
//
// Default: 1
Quantity *Numeric `json:"quantity,omitempty"`
// TaxConfig The tax config of the rate card.
// When undefined, the tax config of the feature or the default tax config of the plan is used.
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
}
InvoiceDetailedLineRateCard InvoiceDetailedLineRateCard represents the rate card (intent) for a flat fee line.
type InvoiceDetailedLineType ¶
type InvoiceDetailedLineType string
InvoiceDetailedLineType Type of the line.
const (
InvoiceDetailedLineTypeFlatFee InvoiceDetailedLineType = "flat_fee"
)
Defines values for InvoiceDetailedLineType.
type InvoiceDocumentRef ¶
type InvoiceDocumentRef = CreditNoteOriginalInvoiceRef
InvoiceDocumentRef CreditNoteOriginalInvoiceRef is used to reference the original invoice that a credit note is based on.
type InvoiceDocumentRefType ¶
type InvoiceDocumentRefType string
InvoiceDocumentRefType InvoiceDocumentRefType defines the type of document that is being referenced.
const (
InvoiceDocumentRefTypeCreditNoteOriginalInvoice InvoiceDocumentRefType = "credit_note_original_invoice"
)
Defines values for InvoiceDocumentRefType.
type InvoiceExpand ¶
type InvoiceExpand string
InvoiceExpand InvoiceExpand specifies the parts of the invoice to expand in the list output.
const ( InvoiceExpandLines InvoiceExpand = "lines" InvoiceExpandPreceding InvoiceExpand = "preceding" InvoiceExpandWorkflowApps InvoiceExpand = "workflow.apps" )
Defines values for InvoiceExpand.
type InvoiceGenericDocumentRef ¶
type InvoiceGenericDocumentRef struct {
// Description Additional details about the document.
Description *string `json:"description,omitempty"`
// Reason Human readable description on why this reference is here or needs to be used.
Reason *string `json:"reason,omitempty"`
// Type Type of the document referenced.
Type InvoiceDocumentRefType `json:"type"`
}
InvoiceGenericDocumentRef Omitted fields: period: Tax period in which the referred document had an effect required by some tax regimes and formats. stamps: Seals of approval from other organisations that may need to be listed. ext: Extensions for additional codes that may be required.
type InvoiceLine ¶
type InvoiceLine struct {
// Children The lines detailing the item or service sold.
Children *[]InvoiceDetailedLine `json:"children,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Currency The currency of this line.
Currency CurrencyCode `json:"currency"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Discounts Discounts detailes applied to this line.
//
// New discounts can be added via the invoice's discounts API, to facilitate
// discounts that are affecting multiple lines.
Discounts *InvoiceLineDiscounts `json:"discounts,omitempty"`
// ExternalIds External IDs of the invoice in other apps such as Stripe.
ExternalIds *InvoiceLineAppExternalIds `json:"externalIds,omitempty"`
// FeatureKey The feature that the usage is based on.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FeatureKey *string `json:"featureKey,omitempty"`
// Id ID of the line.
Id string `json:"id"`
// Invoice The invoice this item belongs to.
Invoice *InvoiceReference `json:"invoice,omitempty"`
// InvoiceAt The time this line item should be invoiced.
InvoiceAt time.Time `json:"invoiceAt"`
// ManagedBy managedBy specifies if the line is manually added via the api or managed by OpenMeter.
ManagedBy InvoiceLineManagedBy `json:"managedBy"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// MeteredPreLinePeriodQuantity The metered quantity of the item used in before this line's period without any discounts applied.
//
// It is non-zero in case of progressive billing, when this shows how much of the usage was already billed.
MeteredPreLinePeriodQuantity *Numeric `json:"meteredPreLinePeriodQuantity,omitempty"`
// MeteredQuantity The quantity of the item that has been metered for the period before any discounts were applied.
MeteredQuantity *Numeric `json:"meteredQuantity,omitempty"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Period Period of the line item applies to for revenue recognition pruposes.
//
// Billing always treats periods as start being inclusive and end being exclusive.
Period Period `json:"period"`
// PreLinePeriodQuantity The quantity of the item used before this line's period.
//
// It is non-zero in case of progressive billing, when this shows how much of the usage was already billed.
//
// Any usage discounts applied previously are deducted from this quantity.
PreLinePeriodQuantity *Numeric `json:"preLinePeriodQuantity,omitempty"`
// Price Price of the usage-based item being sold.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Price *RateCardUsageBasedPrice `json:"price,omitempty"`
// Quantity The quantity of the item being sold.
//
// Any usage discounts applied previously are deducted from this quantity.
Quantity *Numeric `json:"quantity,omitempty"`
// RateCard The rate card that is used for this line.
//
// The rate card captures the intent of the price and discounts for the usage-based item.
RateCard *InvoiceUsageBasedRateCard `json:"rateCard,omitempty"`
// Status Status of the line.
//
// External calls always create valid lines, other line types are managed by the
// billing engine of OpenMeter.
Status InvoiceLineStatus `json:"status"`
// Subscription Subscription are the references to the subscritpions that this line is related to.
Subscription *InvoiceLineSubscriptionReference `json:"subscription,omitempty"`
// TaxConfig Tax config specify the tax configuration for this line.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
// Taxes Taxes applied to the invoice totals.
Taxes *[]InvoiceLineTaxItem `json:"taxes,omitempty"`
// Totals Totals for this line.
Totals InvoiceTotals `json:"totals"`
// Type Type of the line.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Type InvoiceLineType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
InvoiceLine InvoiceUsageBasedLine represents a line item that is sold to the customer based on usage.
type InvoiceLineAmountDiscount ¶
type InvoiceLineAmountDiscount struct {
// Amount Fixed discount amount to apply (calculated if percent present).
Amount Numeric `json:"amount"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Text description as to why the discount was applied.
Description *string `json:"description,omitempty"`
// ExternalIds External IDs of the invoice in other apps such as Stripe.
ExternalIds *InvoiceLineAppExternalIds `json:"externalIds,omitempty"`
// Id ID of the charge or discount.
Id string `json:"id"`
// Reason Reason code.
Reason BillingDiscountReason `json:"reason"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
InvoiceLineAmountDiscount InvoiceLineAmountDiscount represents an amount deducted from the line, and will be applied before taxes.
type InvoiceLineAppExternalIds ¶
type InvoiceLineAppExternalIds struct {
// Invoicing The external ID of the invoice in the invoicing app if available.
Invoicing *string `json:"invoicing,omitempty"`
// Tax The external ID of the invoice in the tax app if available.
Tax *string `json:"tax,omitempty"`
}
InvoiceLineAppExternalIds InvoiceLineAppExternalIds contains the external IDs of the invoice in other apps such as Stripe.
type InvoiceLineDiscounts ¶
type InvoiceLineDiscounts struct {
// Amount Amount based discounts applied to the line.
//
// Amount based discounts are deduced from the total price of the line.
Amount *[]InvoiceLineAmountDiscount `json:"amount,omitempty"`
// Usage Usage based discounts applied to the line.
//
// Usage based discounts are deduced from the usage of the line before price calculations are applied.
Usage *[]InvoiceLineUsageDiscount `json:"usage,omitempty"`
}
InvoiceLineDiscounts InvoiceLineDiscounts represents the discounts applied to the invoice line by type.
type InvoiceLineManagedBy ¶
type InvoiceLineManagedBy string
InvoiceLineManagedBy InvoiceLineManagedBy specifies who manages the line.
const ( InvoiceLineManagedByManual InvoiceLineManagedBy = "manual" InvoiceLineManagedBySubscription InvoiceLineManagedBy = "subscription" InvoiceLineManagedBySystem InvoiceLineManagedBy = "system" )
Defines values for InvoiceLineManagedBy.
type InvoiceLineReplaceUpdate ¶
type InvoiceLineReplaceUpdate struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// FeatureKey The feature that the usage is based on.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FeatureKey *string `json:"featureKey,omitempty"`
// Id The ID of the line.
Id *string `json:"id,omitempty"`
// InvoiceAt The time this line item should be invoiced.
InvoiceAt time.Time `json:"invoiceAt"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Period Period of the line item applies to for revenue recognition pruposes.
//
// Billing always treats periods as start being inclusive and end being exclusive.
Period Period `json:"period"`
// Price Price of the usage-based item being sold.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Price *RateCardUsageBasedPrice `json:"price,omitempty"`
// RateCard The rate card that is used for this line.
//
// The rate card captures the intent of the price and discounts for the usage-based item.
RateCard *InvoiceUsageBasedRateCard `json:"rateCard,omitempty"`
// TaxConfig Tax config specify the tax configuration for this line.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
}
InvoiceLineReplaceUpdate InvoiceLineReplaceUpdate represents the update model for an UBP invoice line.
This type makes ID optional to allow for creating new lines as part of the update.
type InvoiceLineStatus ¶
type InvoiceLineStatus string
InvoiceLineStatus Line status specifies the status of the line.
const ( InvoiceLineStatusDetailed InvoiceLineStatus = "detailed" InvoiceLineStatusSplit InvoiceLineStatus = "split" InvoiceLineStatusValid InvoiceLineStatus = "valid" )
Defines values for InvoiceLineStatus.
type InvoiceLineSubscriptionReference ¶
type InvoiceLineSubscriptionReference struct {
// BillingPeriod The billing period of the subscription. In case the subscription item's billing period is different
// from the subscription's billing period, this field will contain the billing period of the subscription itself.
//
// For example, in case of:
// - A monthly billed subscription anchored to 2025-01-01
// - A subscription item billed daily
//
// An example line would have the period of 2025-01-02 to 2025-01-03 as the item is billed daily, but the subscription's billing period
// will be 2025-01-01 to 2025-01-31.
BillingPeriod Period `json:"billingPeriod"`
// Item The item this line is related to.
Item IDResource `json:"item"`
// Phase The phase of the subscription.
Phase IDResource `json:"phase"`
// Subscription The subscription.
Subscription IDResource `json:"subscription"`
}
InvoiceLineSubscriptionReference InvoiceLineSubscriptionReference contains the references to the subscription that this line is related to.
type InvoiceLineTaxBehavior ¶
type InvoiceLineTaxBehavior string
InvoiceLineTaxBehavior InvoiceLineTaxBehavior details how the tax item is applied to the base amount.
Inclusive means the tax is included in the base amount. Exclusive means the tax is added to the base amount.
const ( InvoiceLineTaxBehaviorExclusive InvoiceLineTaxBehavior = "exclusive" InvoiceLineTaxBehaviorInclusive InvoiceLineTaxBehavior = "inclusive" )
Defines values for InvoiceLineTaxBehavior.
type InvoiceLineTaxItem ¶
type InvoiceLineTaxItem struct {
// Behavior Is the tax item inclusive or exclusive of the base amount.
Behavior *InvoiceLineTaxBehavior `json:"behavior,omitempty"`
// Config Tax provider configuration.
Config *TaxConfig `json:"config,omitempty"`
// Percent Percent defines the percentage set manually or determined from
// the rate key (calculated if rate present). A nil percent implies that
// this tax combo is **exempt** from tax.")
Percent *Percentage `json:"percent,omitempty"`
// Surcharge Some countries require an additional surcharge (calculated if rate present).
Surcharge *Numeric `json:"surcharge,omitempty"`
}
InvoiceLineTaxItem TaxConfig stores the configuration for a tax line relative to an invoice line.
type InvoiceLineType ¶
type InvoiceLineType string
InvoiceLineType Type of the line.
const (
InvoiceLineTypeUsageBased InvoiceLineType = "usage_based"
)
Defines values for InvoiceLineType.
type InvoiceLineUsageDiscount ¶
type InvoiceLineUsageDiscount struct {
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Text description as to why the discount was applied.
Description *string `json:"description,omitempty"`
// ExternalIds External IDs of the invoice in other apps such as Stripe.
ExternalIds *InvoiceLineAppExternalIds `json:"externalIds,omitempty"`
// Id ID of the charge or discount.
Id string `json:"id"`
// PreLinePeriodQuantity The usage discount already applied to the previous split lines.
//
// Only set if progressive billing is enabled and the line is a split line.
PreLinePeriodQuantity *Numeric `json:"preLinePeriodQuantity,omitempty"`
// Quantity The usage to apply.
Quantity Numeric `json:"quantity"`
// Reason Reason code.
Reason BillingDiscountReason `json:"reason"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
InvoiceLineUsageDiscount InvoiceLineUsageDiscount represents an usage-based discount applied to the line.
The deduction is done before the pricing algorithm is applied.
type InvoiceListParamsCreatedAfter ¶
InvoiceListParamsCreatedAfter defines model for InvoiceListParams.createdAfter.
type InvoiceListParamsCreatedBefore ¶
InvoiceListParamsCreatedBefore defines model for InvoiceListParams.createdBefore.
type InvoiceListParamsCustomers ¶
type InvoiceListParamsCustomers = []string
InvoiceListParamsCustomers defines model for InvoiceListParams.customers.
type InvoiceListParamsExpand ¶
type InvoiceListParamsExpand = []InvoiceExpand
InvoiceListParamsExpand defines model for InvoiceListParams.expand.
type InvoiceListParamsExtendedStatuses ¶
type InvoiceListParamsExtendedStatuses = []string
InvoiceListParamsExtendedStatuses defines model for InvoiceListParams.extendedStatuses.
type InvoiceListParamsIncludeDeleted ¶
type InvoiceListParamsIncludeDeleted = bool
InvoiceListParamsIncludeDeleted defines model for InvoiceListParams.includeDeleted.
type InvoiceListParamsIssuedAfter ¶
InvoiceListParamsIssuedAfter defines model for InvoiceListParams.issuedAfter.
type InvoiceListParamsIssuedBefore ¶
InvoiceListParamsIssuedBefore defines model for InvoiceListParams.issuedBefore.
type InvoiceListParamsPeriodStartAfter ¶
InvoiceListParamsPeriodStartAfter defines model for InvoiceListParams.periodStartAfter.
type InvoiceListParamsPeriodStartBefore ¶
InvoiceListParamsPeriodStartBefore defines model for InvoiceListParams.periodStartBefore.
type InvoiceListParamsStatuses ¶
type InvoiceListParamsStatuses = []InvoiceStatus
InvoiceListParamsStatuses defines model for InvoiceListParams.statuses.
type InvoiceNumber ¶
type InvoiceNumber = string
InvoiceNumber InvoiceNumber is a unique identifier for the invoice, generated by the invoicing app.
The uniqueness depends on a lot of factors: - app setting (unique per app or unique per customer) - multiple app scenarios (multiple apps generating invoices with the same prefix)
type InvoiceOrderBy ¶
type InvoiceOrderBy string
InvoiceOrderBy InvoiceOrderBy specifies the ordering options for invoice listing.
const ( InvoiceOrderByCreatedAt InvoiceOrderBy = "createdAt" InvoiceOrderByCustomerName InvoiceOrderBy = "customer.name" InvoiceOrderByIssuedAt InvoiceOrderBy = "issuedAt" InvoiceOrderByPeriodStart InvoiceOrderBy = "periodStart" InvoiceOrderByStatus InvoiceOrderBy = "status" InvoiceOrderByUpdatedAt InvoiceOrderBy = "updatedAt" )
Defines values for InvoiceOrderBy.
type InvoiceOrderByOrderingOrder ¶
type InvoiceOrderByOrderingOrder = SortOrder
InvoiceOrderByOrderingOrder The order direction.
type InvoiceOrderByOrderingOrderBy ¶
type InvoiceOrderByOrderingOrderBy = InvoiceOrderBy
InvoiceOrderByOrderingOrderBy InvoiceOrderBy specifies the ordering options for invoice listing.
type InvoicePaginatedResponse ¶
type InvoicePaginatedResponse struct {
// Items The items in the current page.
Items []Invoice `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
InvoicePaginatedResponse Paginated response
type InvoicePaymentTerms ¶
type InvoicePaymentTerms struct {
// Terms The terms of payment for the invoice.
Terms *PaymentTerms `json:"terms,omitempty"`
}
InvoicePaymentTerms Payment contains details as to how the invoice should be paid.
type InvoicePendingLineCreate ¶
type InvoicePendingLineCreate struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// FeatureKey The feature that the usage is based on.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FeatureKey *string `json:"featureKey,omitempty"`
// InvoiceAt The time this line item should be invoiced.
InvoiceAt time.Time `json:"invoiceAt"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Period Period of the line item applies to for revenue recognition pruposes.
//
// Billing always treats periods as start being inclusive and end being exclusive.
Period Period `json:"period"`
// Price Price of the usage-based item being sold.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Price *RateCardUsageBasedPrice `json:"price,omitempty"`
// RateCard The rate card that is used for this line.
//
// The rate card captures the intent of the price and discounts for the usage-based item.
RateCard *InvoiceUsageBasedRateCard `json:"rateCard,omitempty"`
// TaxConfig Tax config specify the tax configuration for this line.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
}
InvoicePendingLineCreate InvoicePendingLineCreate represents the create model for an invoice line that is sold to the customer based on usage.
type InvoicePendingLineCreateInput ¶
type InvoicePendingLineCreateInput struct {
// Currency The currency of the lines to be created.
Currency CurrencyCode `json:"currency"`
// Lines The lines to be created.
Lines []InvoicePendingLineCreate `json:"lines"`
}
InvoicePendingLineCreateInput InvoicePendingLineCreate represents the create model for a pending invoice line.
type InvoicePendingLineCreateResponse ¶
type InvoicePendingLineCreateResponse struct {
// Invoice The invoice containing the created lines.
Invoice Invoice `json:"invoice"`
// IsInvoiceNew Whether the invoice was newly created.
IsInvoiceNew bool `json:"isInvoiceNew"`
// Lines The lines that were created.
Lines []InvoiceLine `json:"lines"`
}
InvoicePendingLineCreateResponse InvoicePendingLineCreateResponse represents the response from the create pending line endpoint.
type InvoicePendingLinesActionFiltersInput ¶
type InvoicePendingLinesActionFiltersInput struct {
// LineIds The pending line items to include in the invoice, if not provided:
// - all line items that have invoice_at < asOf will be included
// - [progressive billing only] all usage based line items will be included up to asOf, new
// usage-based line items will be staged for the rest of the billing cycle
//
// All lineIDs present in the list, must exists and must be invoicable as of asOf, or the action will fail.
LineIds *[]string `json:"lineIds,omitempty"`
}
InvoicePendingLinesActionFiltersInput InvoicePendingLinesActionFiltersInput specifies which lines to include in the invoice.
type InvoicePendingLinesActionInput ¶
type InvoicePendingLinesActionInput struct {
// AsOf The time as of which the invoice is created.
//
// If not provided, the current time is used.
AsOf *time.Time `json:"asOf,omitempty"`
// CustomerId The customer ID for which to create the invoice.
CustomerId string `json:"customerId"`
// Filters Filters to apply when creating the invoice.
Filters *InvoicePendingLinesActionFiltersInput `json:"filters,omitempty"`
// ProgressiveBillingOverride Override the progressive billing setting of the customer.
//
// Can be used to disable/enable progressive billing in case the business logic
// requires it, if not provided the billing profile's progressive billing setting will be used.
ProgressiveBillingOverride *bool `json:"progressiveBillingOverride,omitempty"`
}
InvoicePendingLinesActionInput BillingInvoiceActionInput is the input for creating an invoice.
Invoice creation is always based on already pending line items created by the billingCreateLineByCustomer operation. Empty invoices are not allowed.
type InvoicePendingLinesActionJSONRequestBody ¶
type InvoicePendingLinesActionJSONRequestBody = InvoicePendingLinesActionInput
InvoicePendingLinesActionJSONRequestBody defines body for InvoicePendingLinesAction for application/json ContentType.
type InvoicePendingLinesActionResponse ¶
type InvoicePendingLinesActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *[]Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseInvoicePendingLinesActionResponse ¶
func ParseInvoicePendingLinesActionResponse(rsp *http.Response) (*InvoicePendingLinesActionResponse, error)
ParseInvoicePendingLinesActionResponse parses an HTTP response from a InvoicePendingLinesActionWithResponse call
func (InvoicePendingLinesActionResponse) Status ¶
func (r InvoicePendingLinesActionResponse) Status() string
Status returns HTTPResponse.Status
func (InvoicePendingLinesActionResponse) StatusCode ¶
func (r InvoicePendingLinesActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InvoiceReference ¶
type InvoiceReference struct {
// Id The ID of the invoice.
Id string `json:"id"`
// Number The number of the invoice.
Number *InvoiceNumber `json:"number,omitempty"`
}
InvoiceReference Reference to an invoice.
type InvoiceReplaceUpdate ¶
type InvoiceReplaceUpdate struct {
// Customer The customer the invoice is sent to.
Customer BillingPartyReplaceUpdate `json:"customer"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Lines The lines included in the invoice.
Lines []InvoiceLineReplaceUpdate `json:"lines"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Supplier The supplier of the lines included in the invoice.
Supplier BillingPartyReplaceUpdate `json:"supplier"`
// Workflow The workflow settings for the invoice.
Workflow InvoiceWorkflowReplaceUpdate `json:"workflow"`
}
InvoiceReplaceUpdate InvoiceReplaceUpdate represents the update model for an invoice.
type InvoiceSimulationInput ¶
type InvoiceSimulationInput struct {
// Currency Currency for all invoice line items.
//
// Multi currency invoices are not supported yet.
Currency CurrencyCode `json:"currency"`
// Lines Lines to be included in the generated invoice.
Lines []InvoiceSimulationLine `json:"lines"`
// Number The number of the invoice.
Number *InvoiceNumber `json:"number,omitempty"`
}
InvoiceSimulationInput InvoiceSimulationInput is the input for simulating an invoice.
type InvoiceSimulationLine ¶
type InvoiceSimulationLine struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// FeatureKey The feature that the usage is based on.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FeatureKey *string `json:"featureKey,omitempty"`
// Id ID of the line. If not specified it will be auto-generated.
//
// When discounts are specified, this must be provided, so that the discount can reference it.
Id *string `json:"id,omitempty"`
// InvoiceAt The time this line item should be invoiced.
InvoiceAt time.Time `json:"invoiceAt"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Period Period of the line item applies to for revenue recognition pruposes.
//
// Billing always treats periods as start being inclusive and end being exclusive.
Period Period `json:"period"`
// PreLinePeriodQuantity The quantity of the item used before this line's period, if the line is billed progressively.
PreLinePeriodQuantity *Numeric `json:"preLinePeriodQuantity,omitempty"`
// Price Price of the usage-based item being sold.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Price *RateCardUsageBasedPrice `json:"price,omitempty"`
// Quantity The quantity of the item being sold.
Quantity Numeric `json:"quantity"`
// RateCard The rate card that is used for this line.
//
// The rate card captures the intent of the price and discounts for the usage-based item.
RateCard *InvoiceUsageBasedRateCard `json:"rateCard,omitempty"`
// TaxConfig Tax config specify the tax configuration for this line.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
}
InvoiceSimulationLine InvoiceSimulationLine represents a usage-based line item that can be input to the simulation endpoint.
type InvoiceStatus ¶
type InvoiceStatus string
InvoiceStatus InvoiceStatus describes the status of an invoice.
const ( InvoiceStatusDraft InvoiceStatus = "draft" InvoiceStatusGathering InvoiceStatus = "gathering" InvoiceStatusIssued InvoiceStatus = "issued" InvoiceStatusIssuing InvoiceStatus = "issuing" InvoiceStatusOverdue InvoiceStatus = "overdue" InvoiceStatusPaid InvoiceStatus = "paid" InvoiceStatusPaymentProcessing InvoiceStatus = "payment_processing" InvoiceStatusUncollectible InvoiceStatus = "uncollectible" InvoiceStatusVoided InvoiceStatus = "voided" )
Defines values for InvoiceStatus.
type InvoiceStatusDetails ¶
type InvoiceStatusDetails struct {
// AvailableActions The actions that can be performed on the invoice.
AvailableActions InvoiceAvailableActions `json:"availableActions"`
// ExtendedStatus Extended status information for the invoice.
ExtendedStatus string `json:"extendedStatus"`
// Failed Is the invoice in a failed state?
Failed bool `json:"failed"`
// Immutable Is the invoice editable?
Immutable bool `json:"immutable"`
}
InvoiceStatusDetails InvoiceStatusDetails represents the details of the invoice status.
API users are encouraged to rely on the immutable/failed/avaliableActions fields to determine the next steps of the invoice instead of the extendedStatus field.
type InvoiceTotals ¶
type InvoiceTotals struct {
// Amount The total value of the line before taxes, discounts and commitments.
Amount Numeric `json:"amount"`
// ChargesTotal The amount of value of the line that are due to additional charges.
ChargesTotal Numeric `json:"chargesTotal"`
// DiscountsTotal The amount of value of the line that are due to discounts.
DiscountsTotal Numeric `json:"discountsTotal"`
// TaxesExclusiveTotal The total amount of taxes that are added on top of amount from the line.
TaxesExclusiveTotal Numeric `json:"taxesExclusiveTotal"`
// TaxesInclusiveTotal The total amount of taxes that are included in the line.
TaxesInclusiveTotal Numeric `json:"taxesInclusiveTotal"`
// TaxesTotal The total amount of taxes for this line.
TaxesTotal Numeric `json:"taxesTotal"`
// Total The total amount value of the line after taxes, discounts and commitments.
Total Numeric `json:"total"`
}
InvoiceTotals Totals contains the summaries of all calculations for the invoice.
type InvoiceType ¶
type InvoiceType string
InvoiceType InvoiceType represents the type of invoice.
The type of invoice determines the purpose of the invoice and how it should be handled.
const ( InvoiceTypeCreditNote InvoiceType = "credit_note" InvoiceTypeStandard InvoiceType = "standard" )
Defines values for InvoiceType.
type InvoiceUsageBasedRateCard ¶
type InvoiceUsageBasedRateCard struct {
// Discounts The discounts that are applied to the line.
Discounts *BillingDiscounts `json:"discounts,omitempty"`
// FeatureKey The feature the customer is entitled to use.
FeatureKey *string `json:"featureKey,omitempty"`
// Price The price of the rate card.
// When null, the feature or service is free.
Price *RateCardUsageBasedPrice `json:"price"`
// TaxConfig The tax config of the rate card.
// When undefined, the tax config of the feature or the default tax config of the plan is used.
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
}
InvoiceUsageBasedRateCard InvoiceUsageBasedRateCard represents the rate card (intent) for an usage-based line.
type InvoiceWorkflowInvoicingSettingsReplaceUpdate ¶
type InvoiceWorkflowInvoicingSettingsReplaceUpdate struct {
// AutoAdvance Whether to automatically issue the invoice after the draftPeriod has passed.
AutoAdvance *bool `json:"autoAdvance,omitempty"`
// DefaultTaxConfig Default tax configuration to apply to the invoices.
DefaultTaxConfig *TaxConfig `json:"defaultTaxConfig,omitempty"`
// DraftPeriod The period for the invoice to be kept in draft status for manual reviews.
DraftPeriod *string `json:"draftPeriod,omitempty"`
// DueAfter The period after which the invoice is due.
// With some payment solutions it's only applicable for manual collection method.
DueAfter *string `json:"dueAfter,omitempty"`
}
InvoiceWorkflowInvoicingSettingsReplaceUpdate InvoiceWorkflowInvoicingSettingsReplaceUpdate represents the update model for the invoicing settings of an invoice workflow.
type InvoiceWorkflowReplaceUpdate ¶
type InvoiceWorkflowReplaceUpdate struct {
// Workflow The workflow used for this invoice.
Workflow InvoiceWorkflowSettingsReplaceUpdate `json:"workflow"`
}
InvoiceWorkflowReplaceUpdate InvoiceWorkflowReplaceUpdate represents the update model for an invoice workflow.
Fields that are immutable a re removed from the model. This is based on InvoiceWorkflowSettings.
type InvoiceWorkflowSettings ¶
type InvoiceWorkflowSettings struct {
// Apps The apps that will be used to orchestrate the invoice's workflow.
Apps *BillingProfileAppsOrReference `json:"apps,omitempty"`
// SourceBillingProfileId sourceBillingProfileID is the billing profile on which the workflow was based on.
//
// The profile is snapshotted on invoice creation, after which it can be altered independently
// of the profile itself.
SourceBillingProfileId string `json:"sourceBillingProfileId"`
// Workflow The workflow details used by this invoice.
Workflow BillingWorkflow `json:"workflow"`
}
InvoiceWorkflowSettings InvoiceWorkflowSettings represents the workflow settings used by the invoice.
This is a clone of the billing profile's workflow settings at the time of invoice creation with customer overrides considered.
type InvoiceWorkflowSettingsReplaceUpdate ¶
type InvoiceWorkflowSettingsReplaceUpdate struct {
// Invoicing The invoicing settings for this workflow
Invoicing InvoiceWorkflowInvoicingSettingsReplaceUpdate `json:"invoicing"`
// Payment The payment settings for this workflow
Payment BillingWorkflowPaymentSettings `json:"payment"`
}
InvoiceWorkflowSettingsReplaceUpdate Mutable workflow settings for an invoice.
Other fields on the invoice's workflow are not mutable, they serve as a history of the invoice's workflow at creation time.
type IssueAfterReset ¶
type IssueAfterReset struct {
// Amount The initial grant amount
Amount float64 `json:"amount"`
// Priority The priority of the issue after reset
Priority *uint8 `json:"priority,omitempty"`
}
IssueAfterReset Issue after reset
type LimitOffsetLimit ¶
type LimitOffsetLimit = int
LimitOffsetLimit defines model for LimitOffset.limit.
type LimitOffsetOffset ¶
type LimitOffsetOffset = int
LimitOffsetOffset defines model for LimitOffset.offset.
type ListAddonsParams ¶
type ListAddonsParams struct {
// IncludeDeleted Include deleted add-ons in response.
//
// Usage: `?includeDeleted=true`
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Id Filter by addon.id attribute
Id *[]string `form:"id,omitempty" json:"id,omitempty"`
// Key Filter by addon.key attribute
Key *[]string `form:"key,omitempty" json:"key,omitempty"`
// KeyVersion Filter by addon.key and addon.version attributes
KeyVersion *map[string][]int `json:"keyVersion,omitempty"`
// Status Only return add-ons with the given status.
//
// Usage:
// - `?status=active`: return only the currently active add-ons
// - `?status=draft`: return only the draft add-ons
// - `?status=archived`: return only the archived add-ons
Status *[]AddonStatus `form:"status,omitempty" json:"status,omitempty"`
// Currency Filter by addon.currency attribute
Currency *[]CurrencyCode `form:"currency,omitempty" json:"currency,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *AddonOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *AddonOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListAddonsParams defines parameters for ListAddons.
type ListAddonsResponse ¶
type ListAddonsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AddonPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListAddonsResponse ¶
func ParseListAddonsResponse(rsp *http.Response) (*ListAddonsResponse, error)
ParseListAddonsResponse parses an HTTP response from a ListAddonsWithResponse call
func (ListAddonsResponse) Status ¶
func (r ListAddonsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAddonsResponse) StatusCode ¶
func (r ListAddonsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAppsParams ¶
type ListAppsParams struct {
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
}
ListAppsParams defines parameters for ListApps.
type ListAppsResponse ¶
type ListAppsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AppPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListAppsResponse ¶
func ParseListAppsResponse(rsp *http.Response) (*ListAppsResponse, error)
ParseListAppsResponse parses an HTTP response from a ListAppsWithResponse call
func (ListAppsResponse) Status ¶
func (r ListAppsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAppsResponse) StatusCode ¶
func (r ListAppsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBillingProfileCustomerOverridesParams ¶
type ListBillingProfileCustomerOverridesParams struct {
// BillingProfile Filter by billing profile.
BillingProfile *BillingProfileListCustomerOverridesParamsBillingProfile `form:"billingProfile,omitempty" json:"billingProfile,omitempty"`
// CustomersWithoutPinnedProfile Only return customers without pinned billing profiles. This implicitly sets includeAllCustomers to true.
CustomersWithoutPinnedProfile *BillingProfileListCustomerOverridesParamsCustomersWithoutPinnedProfile `form:"customersWithoutPinnedProfile,omitempty" json:"customersWithoutPinnedProfile,omitempty"`
// IncludeAllCustomers Include customers without customer overrides.
//
// If set to false only the customers specifically associated with a billing profile will be returned.
//
// If set to true, in case of the default billing profile, all customers will be returned.
IncludeAllCustomers *BillingProfileListCustomerOverridesParamsIncludeAllCustomers `form:"includeAllCustomers,omitempty" json:"includeAllCustomers,omitempty"`
// CustomerId Filter by customer id.
CustomerId *BillingProfileListCustomerOverridesParamsCustomerId `form:"customerId,omitempty" json:"customerId,omitempty"`
// CustomerName Filter by customer name.
CustomerName *BillingProfileListCustomerOverridesParamsCustomerName `form:"customerName,omitempty" json:"customerName,omitempty"`
// CustomerKey Filter by customer key
CustomerKey *BillingProfileListCustomerOverridesParamsCustomerKey `form:"customerKey,omitempty" json:"customerKey,omitempty"`
// CustomerPrimaryEmail Filter by customer primary email
CustomerPrimaryEmail *BillingProfileListCustomerOverridesParamsCustomerPrimaryEmail `form:"customerPrimaryEmail,omitempty" json:"customerPrimaryEmail,omitempty"`
// Expand Expand the response with additional details.
Expand *BillingProfileListCustomerOverridesParamsExpand `form:"expand,omitempty" json:"expand,omitempty"`
// Order The order direction.
Order *BillingProfileCustomerOverrideOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *BillingProfileCustomerOverrideOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
}
ListBillingProfileCustomerOverridesParams defines parameters for ListBillingProfileCustomerOverrides.
type ListBillingProfileCustomerOverridesResponse ¶
type ListBillingProfileCustomerOverridesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BillingProfileCustomerOverrideWithDetailsPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListBillingProfileCustomerOverridesResponse ¶
func ParseListBillingProfileCustomerOverridesResponse(rsp *http.Response) (*ListBillingProfileCustomerOverridesResponse, error)
ParseListBillingProfileCustomerOverridesResponse parses an HTTP response from a ListBillingProfileCustomerOverridesWithResponse call
func (ListBillingProfileCustomerOverridesResponse) Status ¶
func (r ListBillingProfileCustomerOverridesResponse) Status() string
Status returns HTTPResponse.Status
func (ListBillingProfileCustomerOverridesResponse) StatusCode ¶
func (r ListBillingProfileCustomerOverridesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBillingProfilesParams ¶
type ListBillingProfilesParams struct {
IncludeArchived *bool `form:"includeArchived,omitempty" json:"includeArchived,omitempty"`
Expand *[]BillingProfileExpand `form:"expand,omitempty" json:"expand,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *BillingProfileOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *BillingProfileOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListBillingProfilesParams defines parameters for ListBillingProfiles.
type ListBillingProfilesResponse ¶
type ListBillingProfilesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BillingProfilePaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListBillingProfilesResponse ¶
func ParseListBillingProfilesResponse(rsp *http.Response) (*ListBillingProfilesResponse, error)
ParseListBillingProfilesResponse parses an HTTP response from a ListBillingProfilesWithResponse call
func (ListBillingProfilesResponse) Status ¶
func (r ListBillingProfilesResponse) Status() string
Status returns HTTPResponse.Status
func (ListBillingProfilesResponse) StatusCode ¶
func (r ListBillingProfilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCurrenciesResponse ¶
type ListCurrenciesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Currency
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListCurrenciesResponse ¶
func ParseListCurrenciesResponse(rsp *http.Response) (*ListCurrenciesResponse, error)
ParseListCurrenciesResponse parses an HTTP response from a ListCurrenciesWithResponse call
func (ListCurrenciesResponse) Status ¶
func (r ListCurrenciesResponse) Status() string
Status returns HTTPResponse.Status
func (ListCurrenciesResponse) StatusCode ¶
func (r ListCurrenciesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCustomerAppDataParams ¶
type ListCustomerAppDataParams struct {
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Type Filter customer data by app type.
Type *ListCustomerAppDataParamsType `form:"type,omitempty" json:"type,omitempty"`
}
ListCustomerAppDataParams defines parameters for ListCustomerAppData.
type ListCustomerAppDataParamsType ¶
type ListCustomerAppDataParamsType = AppType
ListCustomerAppDataParamsType Type of the app.
type ListCustomerAppDataResponse ¶
type ListCustomerAppDataResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CustomerAppDataPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListCustomerAppDataResponse ¶
func ParseListCustomerAppDataResponse(rsp *http.Response) (*ListCustomerAppDataResponse, error)
ParseListCustomerAppDataResponse parses an HTTP response from a ListCustomerAppDataWithResponse call
func (ListCustomerAppDataResponse) Status ¶
func (r ListCustomerAppDataResponse) Status() string
Status returns HTTPResponse.Status
func (ListCustomerAppDataResponse) StatusCode ¶
func (r ListCustomerAppDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCustomerEntitlementGrantsV2Params ¶
type ListCustomerEntitlementGrantsV2Params struct {
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Offset Number of items to skip.
//
// Default is 0.
Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"`
// Limit Number of items to return.
//
// Default is 100.
Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Order The order direction.
Order *GrantOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *GrantOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListCustomerEntitlementGrantsV2Params defines parameters for ListCustomerEntitlementGrantsV2.
type ListCustomerEntitlementGrantsV2Response ¶
type ListCustomerEntitlementGrantsV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GrantV2PaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListCustomerEntitlementGrantsV2Response ¶
func ParseListCustomerEntitlementGrantsV2Response(rsp *http.Response) (*ListCustomerEntitlementGrantsV2Response, error)
ParseListCustomerEntitlementGrantsV2Response parses an HTTP response from a ListCustomerEntitlementGrantsV2WithResponse call
func (ListCustomerEntitlementGrantsV2Response) Status ¶
func (r ListCustomerEntitlementGrantsV2Response) Status() string
Status returns HTTPResponse.Status
func (ListCustomerEntitlementGrantsV2Response) StatusCode ¶
func (r ListCustomerEntitlementGrantsV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCustomerEntitlementsV2Params ¶
type ListCustomerEntitlementsV2Params struct {
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *EntitlementOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *EntitlementOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListCustomerEntitlementsV2Params defines parameters for ListCustomerEntitlementsV2.
type ListCustomerEntitlementsV2Response ¶
type ListCustomerEntitlementsV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EntitlementV2PaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListCustomerEntitlementsV2Response ¶
func ParseListCustomerEntitlementsV2Response(rsp *http.Response) (*ListCustomerEntitlementsV2Response, error)
ParseListCustomerEntitlementsV2Response parses an HTTP response from a ListCustomerEntitlementsV2WithResponse call
func (ListCustomerEntitlementsV2Response) Status ¶
func (r ListCustomerEntitlementsV2Response) Status() string
Status returns HTTPResponse.Status
func (ListCustomerEntitlementsV2Response) StatusCode ¶
func (r ListCustomerEntitlementsV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCustomerSubscriptionsParams ¶
type ListCustomerSubscriptionsParams struct {
Status *[]SubscriptionStatus `form:"status,omitempty" json:"status,omitempty"`
// Order The order direction.
Order *CustomerSubscriptionOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *CustomerSubscriptionOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
}
ListCustomerSubscriptionsParams defines parameters for ListCustomerSubscriptions.
type ListCustomerSubscriptionsResponse ¶
type ListCustomerSubscriptionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SubscriptionPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListCustomerSubscriptionsResponse ¶
func ParseListCustomerSubscriptionsResponse(rsp *http.Response) (*ListCustomerSubscriptionsResponse, error)
ParseListCustomerSubscriptionsResponse parses an HTTP response from a ListCustomerSubscriptionsWithResponse call
func (ListCustomerSubscriptionsResponse) Status ¶
func (r ListCustomerSubscriptionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListCustomerSubscriptionsResponse) StatusCode ¶
func (r ListCustomerSubscriptionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCustomersParams ¶
type ListCustomersParams struct {
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *CustomerOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *CustomerOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// IncludeDeleted Include deleted customers.
IncludeDeleted *QueryCustomerListIncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Key Filter customers by key.
// Case-insensitive partial match.
Key *QueryCustomerListKey `form:"key,omitempty" json:"key,omitempty"`
// Name Filter customers by name.
// Case-insensitive partial match.
Name *QueryCustomerListName `form:"name,omitempty" json:"name,omitempty"`
// PrimaryEmail Filter customers by primary email.
// Case-insensitive partial match.
PrimaryEmail *QueryCustomerListPrimaryEmail `form:"primaryEmail,omitempty" json:"primaryEmail,omitempty"`
// Subject Filter customers by usage attribution subject.
// Case-insensitive partial match.
Subject *QueryCustomerListSubject `form:"subject,omitempty" json:"subject,omitempty"`
// PlanKey Filter customers by the plan key of their susbcription.
PlanKey *QueryCustomerListPlanKey `form:"planKey,omitempty" json:"planKey,omitempty"`
// Expand What parts of the list output to expand in listings
Expand *QueryCustomerListExpand `form:"expand,omitempty" json:"expand,omitempty"`
}
ListCustomersParams defines parameters for ListCustomers.
type ListCustomersResponse ¶
type ListCustomersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CustomerPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListCustomersResponse ¶
func ParseListCustomersResponse(rsp *http.Response) (*ListCustomersResponse, error)
ParseListCustomersResponse parses an HTTP response from a ListCustomersWithResponse call
func (ListCustomersResponse) Status ¶
func (r ListCustomersResponse) Status() string
Status returns HTTPResponse.Status
func (ListCustomersResponse) StatusCode ¶
func (r ListCustomersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEntitlementGrantsParams ¶
type ListEntitlementGrantsParams struct {
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
OrderBy *GrantOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListEntitlementGrantsParams defines parameters for ListEntitlementGrants.
type ListEntitlementGrantsResponse ¶
type ListEntitlementGrantsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]EntitlementGrant
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListEntitlementGrantsResponse ¶
func ParseListEntitlementGrantsResponse(rsp *http.Response) (*ListEntitlementGrantsResponse, error)
ParseListEntitlementGrantsResponse parses an HTTP response from a ListEntitlementGrantsWithResponse call
func (ListEntitlementGrantsResponse) Status ¶
func (r ListEntitlementGrantsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEntitlementGrantsResponse) StatusCode ¶
func (r ListEntitlementGrantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEntitlementsParams ¶
type ListEntitlementsParams struct {
// Feature Filtering by multiple features.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *[]string `form:"feature,omitempty" json:"feature,omitempty"`
// Subject Filtering by multiple subjects.
//
// Usage: `?subject=customer-1&subject=customer-2`
Subject *[]string `form:"subject,omitempty" json:"subject,omitempty"`
// EntitlementType Filtering by multiple entitlement types.
//
// Usage: `?entitlementType=metered&entitlementType=boolean`
EntitlementType *[]EntitlementType `form:"entitlementType,omitempty" json:"entitlementType,omitempty"`
// ExcludeInactive Exclude inactive entitlements in the response (those scheduled for later or earlier)
ExcludeInactive *bool `form:"excludeInactive,omitempty" json:"excludeInactive,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Offset Number of items to skip.
//
// Default is 0.
Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"`
// Limit Number of items to return.
//
// Default is 100.
Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Order The order direction.
Order *EntitlementOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *EntitlementOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListEntitlementsParams defines parameters for ListEntitlements.
type ListEntitlementsResponse ¶
type ListEntitlementsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListEntitlementsResult
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListEntitlementsResponse ¶
func ParseListEntitlementsResponse(rsp *http.Response) (*ListEntitlementsResponse, error)
ParseListEntitlementsResponse parses an HTTP response from a ListEntitlementsWithResponse call
func (ListEntitlementsResponse) Status ¶
func (r ListEntitlementsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEntitlementsResponse) StatusCode ¶
func (r ListEntitlementsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEntitlementsResult ¶
type ListEntitlementsResult struct {
// contains filtered or unexported fields
}
ListEntitlementsResult List entitlements result
func (ListEntitlementsResult) AsEntitlementPaginatedResponse ¶
func (t ListEntitlementsResult) AsEntitlementPaginatedResponse() (EntitlementPaginatedResponse, error)
AsEntitlementPaginatedResponse returns the union data inside the ListEntitlementsResult as a EntitlementPaginatedResponse
func (ListEntitlementsResult) AsListEntitlementsResult0 ¶
func (t ListEntitlementsResult) AsListEntitlementsResult0() (ListEntitlementsResult0, error)
AsListEntitlementsResult0 returns the union data inside the ListEntitlementsResult as a ListEntitlementsResult0
func (*ListEntitlementsResult) FromEntitlementPaginatedResponse ¶
func (t *ListEntitlementsResult) FromEntitlementPaginatedResponse(v EntitlementPaginatedResponse) error
FromEntitlementPaginatedResponse overwrites any union data inside the ListEntitlementsResult as the provided EntitlementPaginatedResponse
func (*ListEntitlementsResult) FromListEntitlementsResult0 ¶
func (t *ListEntitlementsResult) FromListEntitlementsResult0(v ListEntitlementsResult0) error
FromListEntitlementsResult0 overwrites any union data inside the ListEntitlementsResult as the provided ListEntitlementsResult0
func (ListEntitlementsResult) MarshalJSON ¶
func (t ListEntitlementsResult) MarshalJSON() ([]byte, error)
func (*ListEntitlementsResult) MergeEntitlementPaginatedResponse ¶
func (t *ListEntitlementsResult) MergeEntitlementPaginatedResponse(v EntitlementPaginatedResponse) error
MergeEntitlementPaginatedResponse performs a merge with any union data inside the ListEntitlementsResult, using the provided EntitlementPaginatedResponse
func (*ListEntitlementsResult) MergeListEntitlementsResult0 ¶
func (t *ListEntitlementsResult) MergeListEntitlementsResult0(v ListEntitlementsResult0) error
MergeListEntitlementsResult0 performs a merge with any union data inside the ListEntitlementsResult, using the provided ListEntitlementsResult0
func (*ListEntitlementsResult) UnmarshalJSON ¶
func (t *ListEntitlementsResult) UnmarshalJSON(b []byte) error
type ListEntitlementsResult0 ¶
type ListEntitlementsResult0 = []Entitlement
ListEntitlementsResult0 defines model for .
type ListEntitlementsV2Params ¶
type ListEntitlementsV2Params struct {
// Feature Filtering by multiple features.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *[]string `form:"feature,omitempty" json:"feature,omitempty"`
// CustomerKeys Filtering by multiple customers.
//
// Usage: `?customerKeys=customer-1&customerKeys=customer-3`
CustomerKeys *[]string `form:"customerKeys,omitempty" json:"customerKeys,omitempty"`
// CustomerIds Filtering by multiple customers.
//
// Usage: `?customerIds=01K4WAQ0J99ZZ0MD75HXR112H8&customerIds=01K4WAQ0J99ZZ0MD75HXR112H9`
CustomerIds *[]string `form:"customerIds,omitempty" json:"customerIds,omitempty"`
// EntitlementType Filtering by multiple entitlement types.
//
// Usage: `?entitlementType=metered&entitlementType=boolean`
EntitlementType *[]EntitlementType `form:"entitlementType,omitempty" json:"entitlementType,omitempty"`
// ExcludeInactive Exclude inactive entitlements in the response (those scheduled for later or earlier)
ExcludeInactive *bool `form:"excludeInactive,omitempty" json:"excludeInactive,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Offset Number of items to skip.
//
// Default is 0.
Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"`
// Limit Number of items to return.
//
// Default is 100.
Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Order The order direction.
Order *EntitlementOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *EntitlementOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListEntitlementsV2Params defines parameters for ListEntitlementsV2.
type ListEntitlementsV2Response ¶
type ListEntitlementsV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EntitlementV2PaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListEntitlementsV2Response ¶
func ParseListEntitlementsV2Response(rsp *http.Response) (*ListEntitlementsV2Response, error)
ParseListEntitlementsV2Response parses an HTTP response from a ListEntitlementsV2WithResponse call
func (ListEntitlementsV2Response) Status ¶
func (r ListEntitlementsV2Response) Status() string
Status returns HTTPResponse.Status
func (ListEntitlementsV2Response) StatusCode ¶
func (r ListEntitlementsV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEventsParams ¶
type ListEventsParams struct {
// ClientId Client ID
// Useful to track progress of a query.
ClientId *string `form:"clientId,omitempty" json:"clientId,omitempty"`
// IngestedAtFrom Start date-time in RFC 3339 format.
//
// Inclusive.
IngestedAtFrom *time.Time `form:"ingestedAtFrom,omitempty" json:"ingestedAtFrom,omitempty"`
// IngestedAtTo End date-time in RFC 3339 format.
//
// Inclusive.
IngestedAtTo *time.Time `form:"ingestedAtTo,omitempty" json:"ingestedAtTo,omitempty"`
// Id The event ID.
//
// Accepts partial ID.
Id *string `form:"id,omitempty" json:"id,omitempty"`
// Subject The event subject.
//
// Accepts partial subject.
Subject *string `form:"subject,omitempty" json:"subject,omitempty"`
// CustomerId The event customer ID.
CustomerId *[]string `form:"customerId,omitempty" json:"customerId,omitempty"`
// From Start date-time in RFC 3339 format.
//
// Inclusive.
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
//
// Inclusive.
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// Limit Number of events to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListEventsParams defines parameters for ListEvents.
type ListEventsResponse ¶
type ListEventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]IngestedEvent
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListEventsResponse ¶
func ParseListEventsResponse(rsp *http.Response) (*ListEventsResponse, error)
ParseListEventsResponse parses an HTTP response from a ListEventsWithResponse call
func (ListEventsResponse) Status ¶
func (r ListEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEventsResponse) StatusCode ¶
func (r ListEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEventsV2Params ¶
type ListEventsV2Params struct {
// Cursor The cursor after which to start the pagination.
Cursor *CursorPaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit The limit of the pagination.
Limit *CursorPaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// ClientId Client ID
// Useful to track progress of a query.
ClientId *string `form:"clientId,omitempty" json:"clientId,omitempty"`
// Filter The filter for the events encoded as JSON string.
Filter *struct {
// CustomerId A filter for a ID (ULID) field allowing only equality or inclusion.
CustomerId *FilterIDExact `json:"customerId,omitempty"`
// Id A filter for a string field.
Id *FilterString `json:"id,omitempty"`
// IngestedAt A filter for a time field.
IngestedAt *FilterTime `json:"ingestedAt,omitempty"`
// Source A filter for a string field.
Source *FilterString `json:"source,omitempty"`
// Subject A filter for a string field.
Subject *FilterString `json:"subject,omitempty"`
// Time A filter for a time field.
Time *FilterTime `json:"time,omitempty"`
// Type A filter for a string field.
Type *FilterString `json:"type,omitempty"`
} `form:"filter,omitempty" json:"filter,omitempty"`
}
ListEventsV2Params defines parameters for ListEventsV2.
type ListEventsV2Response ¶
type ListEventsV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *IngestedEventCursorPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListEventsV2Response ¶
func ParseListEventsV2Response(rsp *http.Response) (*ListEventsV2Response, error)
ParseListEventsV2Response parses an HTTP response from a ListEventsV2WithResponse call
func (ListEventsV2Response) Status ¶
func (r ListEventsV2Response) Status() string
Status returns HTTPResponse.Status
func (ListEventsV2Response) StatusCode ¶
func (r ListEventsV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListFeaturesParams ¶
type ListFeaturesParams struct {
// MeterSlug Filter by meterSlug
MeterSlug *[]string `form:"meterSlug,omitempty" json:"meterSlug,omitempty"`
// IncludeArchived Include archived features in response.
IncludeArchived *bool `form:"includeArchived,omitempty" json:"includeArchived,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Offset Number of items to skip.
//
// Default is 0.
Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"`
// Limit Number of items to return.
//
// Default is 100.
Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Order The order direction.
Order *FeatureOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *FeatureOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListFeaturesParams defines parameters for ListFeatures.
type ListFeaturesResponse ¶
type ListFeaturesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListFeaturesResult
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListFeaturesResponse ¶
func ParseListFeaturesResponse(rsp *http.Response) (*ListFeaturesResponse, error)
ParseListFeaturesResponse parses an HTTP response from a ListFeaturesWithResponse call
func (ListFeaturesResponse) Status ¶
func (r ListFeaturesResponse) Status() string
Status returns HTTPResponse.Status
func (ListFeaturesResponse) StatusCode ¶
func (r ListFeaturesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListFeaturesResult ¶
type ListFeaturesResult struct {
// contains filtered or unexported fields
}
ListFeaturesResult List features result
func (ListFeaturesResult) AsFeaturePaginatedResponse ¶
func (t ListFeaturesResult) AsFeaturePaginatedResponse() (FeaturePaginatedResponse, error)
AsFeaturePaginatedResponse returns the union data inside the ListFeaturesResult as a FeaturePaginatedResponse
func (ListFeaturesResult) AsListFeaturesResult0 ¶
func (t ListFeaturesResult) AsListFeaturesResult0() (ListFeaturesResult0, error)
AsListFeaturesResult0 returns the union data inside the ListFeaturesResult as a ListFeaturesResult0
func (*ListFeaturesResult) FromFeaturePaginatedResponse ¶
func (t *ListFeaturesResult) FromFeaturePaginatedResponse(v FeaturePaginatedResponse) error
FromFeaturePaginatedResponse overwrites any union data inside the ListFeaturesResult as the provided FeaturePaginatedResponse
func (*ListFeaturesResult) FromListFeaturesResult0 ¶
func (t *ListFeaturesResult) FromListFeaturesResult0(v ListFeaturesResult0) error
FromListFeaturesResult0 overwrites any union data inside the ListFeaturesResult as the provided ListFeaturesResult0
func (ListFeaturesResult) MarshalJSON ¶
func (t ListFeaturesResult) MarshalJSON() ([]byte, error)
func (*ListFeaturesResult) MergeFeaturePaginatedResponse ¶
func (t *ListFeaturesResult) MergeFeaturePaginatedResponse(v FeaturePaginatedResponse) error
MergeFeaturePaginatedResponse performs a merge with any union data inside the ListFeaturesResult, using the provided FeaturePaginatedResponse
func (*ListFeaturesResult) MergeListFeaturesResult0 ¶
func (t *ListFeaturesResult) MergeListFeaturesResult0(v ListFeaturesResult0) error
MergeListFeaturesResult0 performs a merge with any union data inside the ListFeaturesResult, using the provided ListFeaturesResult0
func (*ListFeaturesResult) UnmarshalJSON ¶
func (t *ListFeaturesResult) UnmarshalJSON(b []byte) error
type ListFeaturesResult0 ¶
type ListFeaturesResult0 = []Feature
ListFeaturesResult0 defines model for .
type ListGrants2000 ¶
type ListGrants2000 = []EntitlementGrant
type ListGrantsParams ¶
type ListGrantsParams struct {
// Feature Filtering by multiple features.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *[]string `form:"feature,omitempty" json:"feature,omitempty"`
// Subject Filtering by multiple subjects.
//
// Usage: `?subject=customer-1&subject=customer-2`
Subject *[]string `form:"subject,omitempty" json:"subject,omitempty"`
// IncludeDeleted Include deleted
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Offset Number of items to skip.
//
// Default is 0.
Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"`
// Limit Number of items to return.
//
// Default is 100.
Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Order The order direction.
Order *GrantOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *GrantOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListGrantsParams defines parameters for ListGrants.
type ListGrantsResponse ¶
type ListGrantsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListGrantsResponse ¶
func ParseListGrantsResponse(rsp *http.Response) (*ListGrantsResponse, error)
ParseListGrantsResponse parses an HTTP response from a ListGrantsWithResponse call
func (ListGrantsResponse) Status ¶
func (r ListGrantsResponse) Status() string
Status returns HTTPResponse.Status
func (ListGrantsResponse) StatusCode ¶
func (r ListGrantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGrantsV2Params ¶
type ListGrantsV2Params struct {
// Feature Filtering by multiple features.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *[]string `form:"feature,omitempty" json:"feature,omitempty"`
// Customer Filtering by multiple customers (either by ID or key).
//
// Usage: `?customer=customer-1&customer=customer-2`
Customer *[]ULIDOrExternalKey `form:"customer,omitempty" json:"customer,omitempty"`
// IncludeDeleted Include deleted
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Offset Number of items to skip.
//
// Default is 0.
Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"`
// Limit Number of items to return.
//
// Default is 100.
Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Order The order direction.
Order *GrantOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *GrantOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListGrantsV2Params defines parameters for ListGrantsV2.
type ListGrantsV2Response ¶
type ListGrantsV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GrantV2PaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListGrantsV2Response ¶
func ParseListGrantsV2Response(rsp *http.Response) (*ListGrantsV2Response, error)
ParseListGrantsV2Response parses an HTTP response from a ListGrantsV2WithResponse call
func (ListGrantsV2Response) Status ¶
func (r ListGrantsV2Response) Status() string
Status returns HTTPResponse.Status
func (ListGrantsV2Response) StatusCode ¶
func (r ListGrantsV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInvoicesParams ¶
type ListInvoicesParams struct {
// Statuses Filter by the invoice status.
Statuses *InvoiceListParamsStatuses `form:"statuses,omitempty" json:"statuses,omitempty"`
// ExtendedStatuses Filter by invoice extended statuses
ExtendedStatuses *InvoiceListParamsExtendedStatuses `form:"extendedStatuses,omitempty" json:"extendedStatuses,omitempty"`
// IssuedAfter Filter by invoice issued time.
// Inclusive.
IssuedAfter *InvoiceListParamsIssuedAfter `form:"issuedAfter,omitempty" json:"issuedAfter,omitempty"`
// IssuedBefore Filter by invoice issued time.
// Inclusive.
IssuedBefore *InvoiceListParamsIssuedBefore `form:"issuedBefore,omitempty" json:"issuedBefore,omitempty"`
// PeriodStartAfter Filter by period start time.
// Inclusive.
PeriodStartAfter *InvoiceListParamsPeriodStartAfter `form:"periodStartAfter,omitempty" json:"periodStartAfter,omitempty"`
// PeriodStartBefore Filter by period start time.
// Inclusive.
PeriodStartBefore *InvoiceListParamsPeriodStartBefore `form:"periodStartBefore,omitempty" json:"periodStartBefore,omitempty"`
// CreatedAfter Filter by invoice created time.
// Inclusive.
CreatedAfter *InvoiceListParamsCreatedAfter `form:"createdAfter,omitempty" json:"createdAfter,omitempty"`
// CreatedBefore Filter by invoice created time.
// Inclusive.
CreatedBefore *InvoiceListParamsCreatedBefore `form:"createdBefore,omitempty" json:"createdBefore,omitempty"`
// Expand What parts of the list output to expand in listings
Expand *InvoiceListParamsExpand `form:"expand,omitempty" json:"expand,omitempty"`
// Customers Filter by customer ID
Customers *InvoiceListParamsCustomers `form:"customers,omitempty" json:"customers,omitempty"`
// IncludeDeleted Include deleted invoices
IncludeDeleted *InvoiceListParamsIncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *InvoiceOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *InvoiceOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListInvoicesParams defines parameters for ListInvoices.
type ListInvoicesResponse ¶
type ListInvoicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InvoicePaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListInvoicesResponse ¶
func ParseListInvoicesResponse(rsp *http.Response) (*ListInvoicesResponse, error)
ParseListInvoicesResponse parses an HTTP response from a ListInvoicesWithResponse call
func (ListInvoicesResponse) Status ¶
func (r ListInvoicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInvoicesResponse) StatusCode ¶
func (r ListInvoicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMarketplaceListingsParams ¶
type ListMarketplaceListingsParams struct {
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
}
ListMarketplaceListingsParams defines parameters for ListMarketplaceListings.
type ListMarketplaceListingsResponse ¶
type ListMarketplaceListingsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MarketplaceListingPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListMarketplaceListingsResponse ¶
func ParseListMarketplaceListingsResponse(rsp *http.Response) (*ListMarketplaceListingsResponse, error)
ParseListMarketplaceListingsResponse parses an HTTP response from a ListMarketplaceListingsWithResponse call
func (ListMarketplaceListingsResponse) Status ¶
func (r ListMarketplaceListingsResponse) Status() string
Status returns HTTPResponse.Status
func (ListMarketplaceListingsResponse) StatusCode ¶
func (r ListMarketplaceListingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMeterGroupByValuesParams ¶
type ListMeterGroupByValuesParams struct {
// From Start date-time in RFC 3339 format.
//
// Inclusive. Defaults to 24 hours ago.
//
// For example: ?from=2025-01-01T00%3A00%3A00.000Z
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
//
// Inclusive.
//
// For example: ?to=2025-02-01T00%3A00%3A00.000Z
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}
ListMeterGroupByValuesParams defines parameters for ListMeterGroupByValues.
type ListMeterGroupByValuesResponse ¶
type ListMeterGroupByValuesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]string
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListMeterGroupByValuesResponse ¶
func ParseListMeterGroupByValuesResponse(rsp *http.Response) (*ListMeterGroupByValuesResponse, error)
ParseListMeterGroupByValuesResponse parses an HTTP response from a ListMeterGroupByValuesWithResponse call
func (ListMeterGroupByValuesResponse) Status ¶
func (r ListMeterGroupByValuesResponse) Status() string
Status returns HTTPResponse.Status
func (ListMeterGroupByValuesResponse) StatusCode ¶
func (r ListMeterGroupByValuesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMeterSubjectsParams ¶
type ListMeterSubjectsParams struct {
// From Start date-time in RFC 3339 format.
//
// Inclusive. Defaults to the beginning of time.
//
// For example: ?from=2025-01-01T00%3A00%3A00.000Z
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
//
// Inclusive.
//
// For example: ?to=2025-02-01T00%3A00%3A00.000Z
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}
ListMeterSubjectsParams defines parameters for ListMeterSubjects.
type ListMeterSubjectsResponse ¶
type ListMeterSubjectsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]string
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListMeterSubjectsResponse ¶
func ParseListMeterSubjectsResponse(rsp *http.Response) (*ListMeterSubjectsResponse, error)
ParseListMeterSubjectsResponse parses an HTTP response from a ListMeterSubjectsWithResponse call
func (ListMeterSubjectsResponse) Status ¶
func (r ListMeterSubjectsResponse) Status() string
Status returns HTTPResponse.Status
func (ListMeterSubjectsResponse) StatusCode ¶
func (r ListMeterSubjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMetersParams ¶
type ListMetersParams struct {
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *MeterOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *MeterOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
// IncludeDeleted Include deleted meters.
IncludeDeleted *QueryMeterListIncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
}
ListMetersParams defines parameters for ListMeters.
type ListMetersResponse ¶
type ListMetersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Meter
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListMetersResponse ¶
func ParseListMetersResponse(rsp *http.Response) (*ListMetersResponse, error)
ParseListMetersResponse parses an HTTP response from a ListMetersWithResponse call
func (ListMetersResponse) Status ¶
func (r ListMetersResponse) Status() string
Status returns HTTPResponse.Status
func (ListMetersResponse) StatusCode ¶
func (r ListMetersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNotificationChannelsParams ¶
type ListNotificationChannelsParams struct {
// IncludeDeleted Include deleted notification channels in response.
//
// Usage: `?includeDeleted=true`
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// IncludeDisabled Include disabled notification channels in response.
//
// Usage: `?includeDisabled=false`
IncludeDisabled *bool `form:"includeDisabled,omitempty" json:"includeDisabled,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *NotificationChannelOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *NotificationChannelOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListNotificationChannelsParams defines parameters for ListNotificationChannels.
type ListNotificationChannelsResponse ¶
type ListNotificationChannelsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationChannelPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListNotificationChannelsResponse ¶
func ParseListNotificationChannelsResponse(rsp *http.Response) (*ListNotificationChannelsResponse, error)
ParseListNotificationChannelsResponse parses an HTTP response from a ListNotificationChannelsWithResponse call
func (ListNotificationChannelsResponse) Status ¶
func (r ListNotificationChannelsResponse) Status() string
Status returns HTTPResponse.Status
func (ListNotificationChannelsResponse) StatusCode ¶
func (r ListNotificationChannelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNotificationEventsParams ¶
type ListNotificationEventsParams struct {
// From Start date-time in RFC 3339 format.
// Inclusive.
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
// Inclusive.
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// Feature Filtering by multiple feature ids or keys.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *[]string `form:"feature,omitempty" json:"feature,omitempty"`
// Subject Filtering by multiple subject ids or keys.
//
// Usage: `?subject=subject-1&subject=subject-2`
Subject *[]string `form:"subject,omitempty" json:"subject,omitempty"`
// Rule Filtering by multiple rule ids.
//
// Usage: `?rule=01J8J2XYZ2N5WBYK09EDZFBSZM&rule=01J8J4R4VZH180KRKQ63NB2VA5`
Rule *[]string `form:"rule,omitempty" json:"rule,omitempty"`
// Channel Filtering by multiple channel ids.
//
// Usage: `?channel=01J8J4RXH778XB056JS088PCYT&channel=01J8J4S1R1G9EVN62RG23A9M6J`
Channel *[]string `form:"channel,omitempty" json:"channel,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *NotificationEventOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *NotificationEventOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListNotificationEventsParams defines parameters for ListNotificationEvents.
type ListNotificationEventsResponse ¶
type ListNotificationEventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationEventPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListNotificationEventsResponse ¶
func ParseListNotificationEventsResponse(rsp *http.Response) (*ListNotificationEventsResponse, error)
ParseListNotificationEventsResponse parses an HTTP response from a ListNotificationEventsWithResponse call
func (ListNotificationEventsResponse) Status ¶
func (r ListNotificationEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListNotificationEventsResponse) StatusCode ¶
func (r ListNotificationEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNotificationRulesParams ¶
type ListNotificationRulesParams struct {
// IncludeDeleted Include deleted notification rules in response.
//
// Usage: `?includeDeleted=true`
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// IncludeDisabled Include disabled notification rules in response.
//
// Usage: `?includeDisabled=false`
IncludeDisabled *bool `form:"includeDisabled,omitempty" json:"includeDisabled,omitempty"`
// Feature Filtering by multiple feature ids/keys.
//
// Usage: `?feature=feature-1&feature=feature-2`
Feature *[]string `form:"feature,omitempty" json:"feature,omitempty"`
// Channel Filtering by multiple notifiaction channel ids.
//
// Usage: `?channel=01ARZ3NDEKTSV4RRFFQ69G5FAV&channel=01J8J2Y5X4NNGQS32CF81W95E3`
Channel *[]string `form:"channel,omitempty" json:"channel,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *NotificationRuleOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *NotificationRuleOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListNotificationRulesParams defines parameters for ListNotificationRules.
type ListNotificationRulesResponse ¶
type ListNotificationRulesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationRulePaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListNotificationRulesResponse ¶
func ParseListNotificationRulesResponse(rsp *http.Response) (*ListNotificationRulesResponse, error)
ParseListNotificationRulesResponse parses an HTTP response from a ListNotificationRulesWithResponse call
func (ListNotificationRulesResponse) Status ¶
func (r ListNotificationRulesResponse) Status() string
Status returns HTTPResponse.Status
func (ListNotificationRulesResponse) StatusCode ¶
func (r ListNotificationRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPlanAddonsParams ¶
type ListPlanAddonsParams struct {
// IncludeDeleted Include deleted plan add-on assignments.
//
// Usage: `?includeDeleted=true`
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Id Filter by addon.id attribute.
Id *[]string `form:"id,omitempty" json:"id,omitempty"`
// Key Filter by addon.key attribute.
Key *[]string `form:"key,omitempty" json:"key,omitempty"`
// KeyVersion Filter by addon.key and addon.version attributes.
KeyVersion *map[string][]int `json:"keyVersion,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *PlanAddonOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *PlanAddonOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListPlanAddonsParams defines parameters for ListPlanAddons.
type ListPlanAddonsResponse ¶
type ListPlanAddonsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PlanAddonPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListPlanAddonsResponse ¶
func ParseListPlanAddonsResponse(rsp *http.Response) (*ListPlanAddonsResponse, error)
ParseListPlanAddonsResponse parses an HTTP response from a ListPlanAddonsWithResponse call
func (ListPlanAddonsResponse) Status ¶
func (r ListPlanAddonsResponse) Status() string
Status returns HTTPResponse.Status
func (ListPlanAddonsResponse) StatusCode ¶
func (r ListPlanAddonsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPlansParams ¶
type ListPlansParams struct {
// IncludeDeleted Include deleted plans in response.
//
// Usage: `?includeDeleted=true`
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
// Id Filter by plan.id attribute
Id *[]string `form:"id,omitempty" json:"id,omitempty"`
// Key Filter by plan.key attribute
Key *[]string `form:"key,omitempty" json:"key,omitempty"`
// KeyVersion Filter by plan.key and plan.version attributes
KeyVersion *map[string][]int `json:"keyVersion,omitempty"`
// Status Only return plans with the given status.
//
// Usage:
// - `?status=active`: return only the currently active plan
// - `?status=draft`: return only the draft plan
// - `?status=archived`: return only the archived plans
Status *[]PlanStatus `form:"status,omitempty" json:"status,omitempty"`
// Currency Filter by plan.currency attribute
Currency *[]CurrencyCode `form:"currency,omitempty" json:"currency,omitempty"`
// Page Page index.
//
// Default is 1.
Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"`
// PageSize The maximum number of items per page.
//
// Default is 100.
PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Order The order direction.
Order *PlanOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"`
// OrderBy The order by field.
OrderBy *PlanOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
}
ListPlansParams defines parameters for ListPlans.
type ListPlansResponse ¶
type ListPlansResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PlanPaginatedResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListPlansResponse ¶
func ParseListPlansResponse(rsp *http.Response) (*ListPlansResponse, error)
ParseListPlansResponse parses an HTTP response from a ListPlansWithResponse call
func (ListPlansResponse) Status ¶
func (r ListPlansResponse) Status() string
Status returns HTTPResponse.Status
func (ListPlansResponse) StatusCode ¶
func (r ListPlansResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPortalTokensParams ¶
type ListPortalTokensParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListPortalTokensParams defines parameters for ListPortalTokens.
type ListPortalTokensResponse ¶
type ListPortalTokensResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]PortalToken
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListPortalTokensResponse ¶
func ParseListPortalTokensResponse(rsp *http.Response) (*ListPortalTokensResponse, error)
ParseListPortalTokensResponse parses an HTTP response from a ListPortalTokensWithResponse call
func (ListPortalTokensResponse) Status ¶
func (r ListPortalTokensResponse) Status() string
Status returns HTTPResponse.Status
func (ListPortalTokensResponse) StatusCode ¶
func (r ListPortalTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSubjectEntitlementsParams ¶
type ListSubjectEntitlementsParams struct {
IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
}
ListSubjectEntitlementsParams defines parameters for ListSubjectEntitlements.
type ListSubjectEntitlementsResponse ¶
type ListSubjectEntitlementsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Entitlement
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListSubjectEntitlementsResponse ¶
func ParseListSubjectEntitlementsResponse(rsp *http.Response) (*ListSubjectEntitlementsResponse, error)
ParseListSubjectEntitlementsResponse parses an HTTP response from a ListSubjectEntitlementsWithResponse call
func (ListSubjectEntitlementsResponse) Status ¶
func (r ListSubjectEntitlementsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSubjectEntitlementsResponse) StatusCode ¶
func (r ListSubjectEntitlementsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSubjectsResponse ¶
type ListSubjectsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Subject
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListSubjectsResponse ¶
func ParseListSubjectsResponse(rsp *http.Response) (*ListSubjectsResponse, error)
ParseListSubjectsResponse parses an HTTP response from a ListSubjectsWithResponse call
func (ListSubjectsResponse) Status ¶
func (r ListSubjectsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSubjectsResponse) StatusCode ¶
func (r ListSubjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSubscriptionAddonsResponse ¶
type ListSubscriptionAddonsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]SubscriptionAddon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseListSubscriptionAddonsResponse ¶
func ParseListSubscriptionAddonsResponse(rsp *http.Response) (*ListSubscriptionAddonsResponse, error)
ParseListSubscriptionAddonsResponse parses an HTTP response from a ListSubscriptionAddonsWithResponse call
func (ListSubscriptionAddonsResponse) Status ¶
func (r ListSubscriptionAddonsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSubscriptionAddonsResponse) StatusCode ¶
func (r ListSubscriptionAddonsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarketplaceApiKeyInstallRequestType ¶
type MarketplaceApiKeyInstallRequestType = AppType
MarketplaceApiKeyInstallRequestType Type of the app.
type MarketplaceAppAPIKeyInstallJSONBody ¶
type MarketplaceAppAPIKeyInstallJSONBody struct {
// ApiKey The API key for the provider.
// For example, the Stripe API key.
ApiKey string `json:"apiKey"`
// CreateBillingProfile If true, a billing profile will be created for the app.
// The Stripe app will be also set as the default billing profile if the current default is a Sandbox app.
CreateBillingProfile *bool `json:"createBillingProfile,omitempty"`
// Name Name of the application to install.
//
// If name is not provided defaults to the marketplace listing's name.
Name *string `json:"name,omitempty"`
}
MarketplaceAppAPIKeyInstallJSONBody defines parameters for MarketplaceAppAPIKeyInstall.
type MarketplaceAppAPIKeyInstallJSONRequestBody ¶
type MarketplaceAppAPIKeyInstallJSONRequestBody MarketplaceAppAPIKeyInstallJSONBody
MarketplaceAppAPIKeyInstallJSONRequestBody defines body for MarketplaceAppAPIKeyInstall for application/json ContentType.
type MarketplaceAppAPIKeyInstallResponse ¶
type MarketplaceAppAPIKeyInstallResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MarketplaceInstallResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseMarketplaceAppAPIKeyInstallResponse ¶
func ParseMarketplaceAppAPIKeyInstallResponse(rsp *http.Response) (*MarketplaceAppAPIKeyInstallResponse, error)
ParseMarketplaceAppAPIKeyInstallResponse parses an HTTP response from a MarketplaceAppAPIKeyInstallWithResponse call
func (MarketplaceAppAPIKeyInstallResponse) Status ¶
func (r MarketplaceAppAPIKeyInstallResponse) Status() string
Status returns HTTPResponse.Status
func (MarketplaceAppAPIKeyInstallResponse) StatusCode ¶
func (r MarketplaceAppAPIKeyInstallResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarketplaceAppInstallJSONRequestBody ¶
type MarketplaceAppInstallJSONRequestBody = MarketplaceInstallRequestPayload
MarketplaceAppInstallJSONRequestBody defines body for MarketplaceAppInstall for application/json ContentType.
type MarketplaceAppInstallResponse ¶
type MarketplaceAppInstallResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MarketplaceInstallResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseMarketplaceAppInstallResponse ¶
func ParseMarketplaceAppInstallResponse(rsp *http.Response) (*MarketplaceAppInstallResponse, error)
ParseMarketplaceAppInstallResponse parses an HTTP response from a MarketplaceAppInstallWithResponse call
func (MarketplaceAppInstallResponse) Status ¶
func (r MarketplaceAppInstallResponse) Status() string
Status returns HTTPResponse.Status
func (MarketplaceAppInstallResponse) StatusCode ¶
func (r MarketplaceAppInstallResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarketplaceInstallRequestPayload ¶
type MarketplaceInstallRequestPayload struct {
// CreateBillingProfile If true, a billing profile will be created for the app.
// The Stripe app will be also set as the default billing profile if the current default is a Sandbox app.
CreateBillingProfile *bool `json:"createBillingProfile,omitempty"`
// Name Name of the application to install.
//
// If name is not provided defaults to the marketplace listing's name.
Name *string `json:"name,omitempty"`
}
MarketplaceInstallRequestPayload Marketplace install request payload.
type MarketplaceInstallRequestType ¶
type MarketplaceInstallRequestType = AppType
MarketplaceInstallRequestType Type of the app.
type MarketplaceInstallResponse ¶
type MarketplaceInstallResponse struct {
// App App.
// One of: stripe
App App `json:"app"`
// DefaultForCapabilityTypes Default for capabilities
DefaultForCapabilityTypes []AppCapabilityType `json:"defaultForCapabilityTypes"`
}
MarketplaceInstallResponse Marketplace install response.
type MarketplaceListing ¶
type MarketplaceListing struct {
// Capabilities The app's capabilities.
Capabilities []AppCapability `json:"capabilities"`
// Description The app's description.
Description string `json:"description"`
// InstallMethods Install methods.
//
// List of methods to install the app.
InstallMethods []InstallMethod `json:"installMethods"`
// Name The app's name.
Name string `json:"name"`
// Type The app's type
Type AppType `json:"type"`
}
MarketplaceListing A marketplace listing. Represent an available app in the app marketplace that can be installed to the organization.
Marketplace apps only exist in config so they don't extend the Resource model.
type MarketplaceListingPaginatedResponse ¶
type MarketplaceListingPaginatedResponse struct {
// Items The items in the current page.
Items []MarketplaceListing `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
MarketplaceListingPaginatedResponse Paginated response
type MarketplaceOAuth2InstallAuthorizeParams ¶
type MarketplaceOAuth2InstallAuthorizeParams struct {
// State Required if the "state" parameter was present in the client authorization request.
// The exact value received from the client:
//
// Unique, randomly generated, opaque, and non-guessable string that is sent
// when starting an authentication request and validated when processing the response.
State *OAuth2AuthorizationCodeGrantSuccessParamsState `form:"state,omitempty" json:"state,omitempty"`
// Code Authorization code which the client will later exchange for an access token.
// Required with the success response.
Code *OAuth2AuthorizationCodeGrantSuccessParamsCode `form:"code,omitempty" json:"code,omitempty"`
// Error Error code.
// Required with the error response.
Error *OAuth2AuthorizationCodeGrantErrorParamsError `form:"error,omitempty" json:"error,omitempty"`
// ErrorDescription Optional human-readable text providing additional information,
// used to assist the client developer in understanding the error that occurred.
ErrorDescription *OAuth2AuthorizationCodeGrantErrorParamsErrorDescription `form:"error_description,omitempty" json:"error_description,omitempty"`
// ErrorUri Optional uri identifying a human-readable web page with
// information about the error, used to provide the client
// developer with additional information about the error
ErrorUri *OAuth2AuthorizationCodeGrantErrorParamsErrorUri `form:"error_uri,omitempty" json:"error_uri,omitempty"`
}
MarketplaceOAuth2InstallAuthorizeParams defines parameters for MarketplaceOAuth2InstallAuthorize.
type MarketplaceOAuth2InstallAuthorizeRequestType ¶
type MarketplaceOAuth2InstallAuthorizeRequestType = AppType
MarketplaceOAuth2InstallAuthorizeRequestType Type of the app.
type MarketplaceOAuth2InstallAuthorizeResponse ¶
type MarketplaceOAuth2InstallAuthorizeResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseMarketplaceOAuth2InstallAuthorizeResponse ¶
func ParseMarketplaceOAuth2InstallAuthorizeResponse(rsp *http.Response) (*MarketplaceOAuth2InstallAuthorizeResponse, error)
ParseMarketplaceOAuth2InstallAuthorizeResponse parses an HTTP response from a MarketplaceOAuth2InstallAuthorizeWithResponse call
func (MarketplaceOAuth2InstallAuthorizeResponse) Status ¶
func (r MarketplaceOAuth2InstallAuthorizeResponse) Status() string
Status returns HTTPResponse.Status
func (MarketplaceOAuth2InstallAuthorizeResponse) StatusCode ¶
func (r MarketplaceOAuth2InstallAuthorizeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarketplaceOAuth2InstallGetURLResponse ¶
type MarketplaceOAuth2InstallGetURLResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ClientAppStartResponse
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseMarketplaceOAuth2InstallGetURLResponse ¶
func ParseMarketplaceOAuth2InstallGetURLResponse(rsp *http.Response) (*MarketplaceOAuth2InstallGetURLResponse, error)
ParseMarketplaceOAuth2InstallGetURLResponse parses an HTTP response from a MarketplaceOAuth2InstallGetURLWithResponse call
func (MarketplaceOAuth2InstallGetURLResponse) Status ¶
func (r MarketplaceOAuth2InstallGetURLResponse) Status() string
Status returns HTTPResponse.Status
func (MarketplaceOAuth2InstallGetURLResponse) StatusCode ¶
func (r MarketplaceOAuth2InstallGetURLResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MeasureUsageFrom ¶
type MeasureUsageFrom struct {
// contains filtered or unexported fields
}
MeasureUsageFrom Measure usage from
func (MeasureUsageFrom) AsMeasureUsageFromPreset ¶
func (t MeasureUsageFrom) AsMeasureUsageFromPreset() (MeasureUsageFromPreset, error)
AsMeasureUsageFromPreset returns the union data inside the MeasureUsageFrom as a MeasureUsageFromPreset
func (MeasureUsageFrom) AsMeasureUsageFromTime ¶
func (t MeasureUsageFrom) AsMeasureUsageFromTime() (MeasureUsageFromTime, error)
AsMeasureUsageFromTime returns the union data inside the MeasureUsageFrom as a MeasureUsageFromTime
func (*MeasureUsageFrom) FromMeasureUsageFromPreset ¶
func (t *MeasureUsageFrom) FromMeasureUsageFromPreset(v MeasureUsageFromPreset) error
FromMeasureUsageFromPreset overwrites any union data inside the MeasureUsageFrom as the provided MeasureUsageFromPreset
func (*MeasureUsageFrom) FromMeasureUsageFromTime ¶
func (t *MeasureUsageFrom) FromMeasureUsageFromTime(v MeasureUsageFromTime) error
FromMeasureUsageFromTime overwrites any union data inside the MeasureUsageFrom as the provided MeasureUsageFromTime
func (MeasureUsageFrom) MarshalJSON ¶
func (t MeasureUsageFrom) MarshalJSON() ([]byte, error)
func (*MeasureUsageFrom) MergeMeasureUsageFromPreset ¶
func (t *MeasureUsageFrom) MergeMeasureUsageFromPreset(v MeasureUsageFromPreset) error
MergeMeasureUsageFromPreset performs a merge with any union data inside the MeasureUsageFrom, using the provided MeasureUsageFromPreset
func (*MeasureUsageFrom) MergeMeasureUsageFromTime ¶
func (t *MeasureUsageFrom) MergeMeasureUsageFromTime(v MeasureUsageFromTime) error
MergeMeasureUsageFromTime performs a merge with any union data inside the MeasureUsageFrom, using the provided MeasureUsageFromTime
func (*MeasureUsageFrom) UnmarshalJSON ¶
func (t *MeasureUsageFrom) UnmarshalJSON(b []byte) error
type MeasureUsageFromPreset ¶
type MeasureUsageFromPreset string
MeasureUsageFromPreset Start of measurement options
const ( MeasureUsageFromPresetCurrentPeriodStart MeasureUsageFromPreset = "CURRENT_PERIOD_START" MeasureUsageFromPresetNow MeasureUsageFromPreset = "NOW" )
Defines values for MeasureUsageFromPreset.
type MeasureUsageFromTime ¶
MeasureUsageFromTime [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
type Metadata ¶
Metadata Set of key-value pairs. Metadata can be used to store additional information about a resource.
type Meter ¶
type Meter struct {
// Aggregation The aggregation type to use for the meter.
Aggregation MeterAggregation `json:"aggregation"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// EventFrom The date since the meter should include events.
// Useful to skip old events.
// If not specified, all historical events are included.
EventFrom *time.Time `json:"eventFrom,omitempty"`
// EventType The event type to aggregate.
EventType string `json:"eventType"`
// GroupBy Named JSONPath expressions to extract the group by values from the event data.
//
// Keys must be unique and consist only alphanumeric and underscore characters.
GroupBy *map[string]string `json:"groupBy,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
// Defaults to the slug if not specified.
Name *string `json:"name,omitempty"`
// Slug A unique, human-readable identifier for the meter.
// Must consist only alphanumeric and underscore characters.
Slug string `json:"slug"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// ValueProperty JSONPath expression to extract the value from the ingested event's data property.
//
// The ingested value for SUM, AVG, MIN, and MAX aggregations is a number or a string that can be parsed to a number.
//
// For UNIQUE_COUNT aggregation, the ingested value must be a string. For COUNT aggregation the valueProperty is ignored.
ValueProperty *string `json:"valueProperty,omitempty"`
}
Meter A meter is a configuration that defines how to match and aggregate events.
type MeterAggregation ¶
type MeterAggregation string
MeterAggregation The aggregation type to use for the meter.
const ( MeterAggregationAvg MeterAggregation = "AVG" MeterAggregationCount MeterAggregation = "COUNT" MeterAggregationLatest MeterAggregation = "LATEST" MeterAggregationMax MeterAggregation = "MAX" MeterAggregationMin MeterAggregation = "MIN" MeterAggregationSum MeterAggregation = "SUM" MeterAggregationUniqueCount MeterAggregation = "UNIQUE_COUNT" )
Defines values for MeterAggregation.
type MeterCreate ¶
type MeterCreate struct {
// Aggregation The aggregation type to use for the meter.
Aggregation MeterAggregation `json:"aggregation"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// EventFrom The date since the meter should include events.
// Useful to skip old events.
// If not specified, all historical events are included.
EventFrom *time.Time `json:"eventFrom,omitempty"`
// EventType The event type to aggregate.
EventType string `json:"eventType"`
// GroupBy Named JSONPath expressions to extract the group by values from the event data.
//
// Keys must be unique and consist only alphanumeric and underscore characters.
GroupBy *map[string]string `json:"groupBy,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
// Defaults to the slug if not specified.
Name *string `json:"name,omitempty"`
// Slug A unique, human-readable identifier for the meter.
// Must consist only alphanumeric and underscore characters.
Slug string `json:"slug"`
// ValueProperty JSONPath expression to extract the value from the ingested event's data property.
//
// The ingested value for SUM, AVG, MIN, and MAX aggregations is a number or a string that can be parsed to a number.
//
// For UNIQUE_COUNT aggregation, the ingested value must be a string. For COUNT aggregation the valueProperty is ignored.
ValueProperty *string `json:"valueProperty,omitempty"`
}
MeterCreate A meter create model.
type MeterOrderBy ¶
type MeterOrderBy string
MeterOrderBy Order by options for meters.
const ( MeterOrderByAggregation MeterOrderBy = "aggregation" MeterOrderByCreatedAt MeterOrderBy = "createdAt" MeterOrderByKey MeterOrderBy = "key" MeterOrderByName MeterOrderBy = "name" MeterOrderByUpdatedAt MeterOrderBy = "updatedAt" )
Defines values for MeterOrderBy.
type MeterOrderByOrderingOrder ¶
type MeterOrderByOrderingOrder = SortOrder
MeterOrderByOrderingOrder The order direction.
type MeterOrderByOrderingOrderBy ¶
type MeterOrderByOrderingOrderBy = MeterOrderBy
MeterOrderByOrderingOrderBy Order by options for meters.
type MeterQueryAdvancedMeterGroupByFilters ¶
type MeterQueryAdvancedMeterGroupByFilters map[string]FilterString
MeterQueryAdvancedMeterGroupByFilters defines model for MeterQuery.advancedMeterGroupByFilters.
type MeterQueryClientId ¶
type MeterQueryClientId = string
MeterQueryClientId defines model for MeterQuery.clientId.
type MeterQueryFilterCustomerId ¶
type MeterQueryFilterCustomerId = []string
MeterQueryFilterCustomerId defines model for MeterQuery.filterCustomerId.
type MeterQueryFilterGroupBy ¶
MeterQueryFilterGroupBy defines model for MeterQuery.filterGroupBy.
type MeterQueryFrom ¶
MeterQueryFrom defines model for MeterQuery.from.
type MeterQueryGroupBy ¶
type MeterQueryGroupBy = []string
MeterQueryGroupBy defines model for MeterQuery.groupBy.
type MeterQueryRequest ¶
type MeterQueryRequest struct {
// AdvancedMeterGroupByFilters Optional advanced meter group by filters.
// You can use this to filter for values of the meter groupBy fields.
AdvancedMeterGroupByFilters *map[string]FilterString `json:"advancedMeterGroupByFilters,omitempty"`
// ClientId Client ID
// Useful to track progress of a query.
ClientId *string `json:"clientId,omitempty"`
// FilterCustomerId Filtering by multiple customers.
FilterCustomerId *[]string `json:"filterCustomerId,omitempty"`
// FilterGroupBy Simple filter for group bys with exact match.
FilterGroupBy *map[string][]string `json:"filterGroupBy,omitempty"`
// From Start date-time in RFC 3339 format.
//
// Inclusive.
From *time.Time `json:"from,omitempty"`
// GroupBy If not specified a single aggregate will be returned for each subject and time window.
// `subject` is a reserved group by value.
GroupBy *[]string `json:"groupBy,omitempty"`
// Subject Filtering by multiple subjects.
Subject *[]string `json:"subject,omitempty"`
// To End date-time in RFC 3339 format.
//
// Inclusive.
To *time.Time `json:"to,omitempty"`
// WindowSize If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group.
WindowSize *WindowSize `json:"windowSize,omitempty"`
// WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones).
// If not specified, the UTC timezone will be used.
WindowTimeZone *string `json:"windowTimeZone,omitempty"`
}
MeterQueryRequest A meter query request.
type MeterQueryResult ¶
type MeterQueryResult struct {
// Data The usage data.
// If no data is available, an empty array is returned.
Data []MeterQueryRow `json:"data"`
// From The start of the period the usage is queried from.
// If not specified, the usage is queried from the beginning of time.
From *time.Time `json:"from,omitempty"`
// To The end of the period the usage is queried to.
// If not specified, the usage is queried up to the current time.
To *time.Time `json:"to,omitempty"`
// WindowSize The window size that the usage is aggregated.
// If not specified, the usage is aggregated over the entire period.
WindowSize *WindowSize `json:"windowSize,omitempty"`
}
MeterQueryResult The result of a meter query.
type MeterQueryRow ¶
type MeterQueryRow struct {
// CustomerId The customer ID the value is aggregated over.
CustomerId *string `json:"customerId,omitempty"`
// GroupBy The group by values the value is aggregated over.
GroupBy map[string]*string `json:"groupBy"`
// Subject The subject the value is aggregated over.
// If not specified, the value is aggregated over all subjects.
Subject *string `json:"subject"`
// Value The aggregated value.
Value float64 `json:"value"`
// WindowEnd The end of the window the value is aggregated over.
WindowEnd time.Time `json:"windowEnd"`
// WindowStart The start of the window the value is aggregated over.
WindowStart time.Time `json:"windowStart"`
}
MeterQueryRow A row in the result of a meter query.
type MeterQuerySubject ¶
type MeterQuerySubject = []string
MeterQuerySubject defines model for MeterQuery.subject.
type MeterQueryWindowSize ¶
type MeterQueryWindowSize = WindowSize
MeterQueryWindowSize Aggregation window size.
type MeterQueryWindowTimeZone ¶
type MeterQueryWindowTimeZone = string
MeterQueryWindowTimeZone defines model for MeterQuery.windowTimeZone.
type MeterUpdate ¶
type MeterUpdate struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// GroupBy Named JSONPath expressions to extract the group by values from the event data.
//
// Keys must be unique and consist only alphanumeric and underscore characters.
GroupBy *map[string]string `json:"groupBy,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
// Defaults to the slug if not specified.
Name *string `json:"name,omitempty"`
}
MeterUpdate A meter update model.
Only the properties that can be updated are included. For example, the slug and aggregation cannot be updated.
type MigrateSubscriptionJSONBody ¶
type MigrateSubscriptionJSONBody struct {
// BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the previous subscription billing anchor will be used.
BillingAnchor *time.Time `json:"billingAnchor,omitempty"`
// StartingPhase The key of the phase to start the subscription in.
// If not provided, the subscription will start in the first phase of the plan.
StartingPhase *string `json:"startingPhase,omitempty"`
// TargetVersion The version of the plan to migrate to.
// If not provided, the subscription will migrate to the latest version of the current plan.
TargetVersion *int `json:"targetVersion,omitempty"`
// Timing Timing configuration for the migration, when the migration should take effect.
// If not supported by the subscription, 400 will be returned.
Timing *SubscriptionTiming `json:"timing,omitempty"`
}
MigrateSubscriptionJSONBody defines parameters for MigrateSubscription.
type MigrateSubscriptionJSONRequestBody ¶
type MigrateSubscriptionJSONRequestBody MigrateSubscriptionJSONBody
MigrateSubscriptionJSONRequestBody defines body for MigrateSubscription for application/json ContentType.
type MigrateSubscriptionResponse ¶
type MigrateSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SubscriptionChangeResponseBody
ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *SubscriptionConflictErrorResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseMigrateSubscriptionResponse ¶
func ParseMigrateSubscriptionResponse(rsp *http.Response) (*MigrateSubscriptionResponse, error)
ParseMigrateSubscriptionResponse parses an HTTP response from a MigrateSubscriptionWithResponse call
func (MigrateSubscriptionResponse) Status ¶
func (r MigrateSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (MigrateSubscriptionResponse) StatusCode ¶
func (r MigrateSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NextPlanResponse ¶
type NextPlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Plan
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseNextPlanResponse ¶
func ParseNextPlanResponse(rsp *http.Response) (*NextPlanResponse, error)
ParseNextPlanResponse parses an HTTP response from a NextPlanWithResponse call
func (NextPlanResponse) Status ¶
func (r NextPlanResponse) Status() string
Status returns HTTPResponse.Status
func (NextPlanResponse) StatusCode ¶
func (r NextPlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NotFoundProblemResponse ¶
type NotFoundProblemResponse = UnexpectedProblemResponse
NotFoundProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type NotificationChannel ¶
type NotificationChannel = NotificationChannelWebhook
NotificationChannel Notification channel with webhook type.
type NotificationChannelCreateRequest ¶
type NotificationChannelCreateRequest = NotificationChannelWebhookCreateRequest
NotificationChannelCreateRequest Request with input parameters for creating new notification channel with webhook type.
type NotificationChannelMeta ¶
type NotificationChannelMeta struct {
// Id Identifies the notification channel.
Id string `json:"id"`
// Type Notification channel type.
Type NotificationChannelType `json:"type"`
}
NotificationChannelMeta Metadata only fields of a notification channel.
type NotificationChannelOrderBy ¶
type NotificationChannelOrderBy string
NotificationChannelOrderBy Order by options for notification channels.
const ( NotificationChannelOrderByCreatedAt NotificationChannelOrderBy = "createdAt" NotificationChannelOrderById NotificationChannelOrderBy = "id" NotificationChannelOrderByType NotificationChannelOrderBy = "type" NotificationChannelOrderByUpdatedAt NotificationChannelOrderBy = "updatedAt" )
Defines values for NotificationChannelOrderBy.
type NotificationChannelOrderByOrderingOrder ¶
type NotificationChannelOrderByOrderingOrder = SortOrder
NotificationChannelOrderByOrderingOrder The order direction.
type NotificationChannelOrderByOrderingOrderBy ¶
type NotificationChannelOrderByOrderingOrderBy = NotificationChannelOrderBy
NotificationChannelOrderByOrderingOrderBy Order by options for notification channels.
type NotificationChannelPaginatedResponse ¶
type NotificationChannelPaginatedResponse struct {
// Items The items in the current page.
Items []NotificationChannel `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
NotificationChannelPaginatedResponse Paginated response
type NotificationChannelType ¶
type NotificationChannelType string
NotificationChannelType Type of the notification channel.
const (
NotificationChannelTypeWebhook NotificationChannelType = "WEBHOOK"
)
Defines values for NotificationChannelType.
type NotificationChannelWebhook ¶
type NotificationChannelWebhook struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CustomHeaders Custom HTTP headers sent as part of the webhook request.
CustomHeaders *map[string]string `json:"customHeaders,omitempty"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the channel is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Id Identifies the notification channel.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name User friendly name of the channel.
Name string `json:"name"`
// SigningSecret Signing secret used for webhook request validation on the receiving end.
//
// Format: `base64` encoded random bytes optionally prefixed with `whsec_`. Recommended size: 24
SigningSecret *string `json:"signingSecret,omitempty"`
// Type Notification channel type.
Type NotificationChannelWebhookType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// Url Webhook URL where the notification is sent.
Url string `json:"url"`
}
NotificationChannelWebhook Notification channel with webhook type.
type NotificationChannelWebhookCreateRequest ¶
type NotificationChannelWebhookCreateRequest struct {
// CustomHeaders Custom HTTP headers sent as part of the webhook request.
CustomHeaders *map[string]string `json:"customHeaders,omitempty"`
// Disabled Whether the channel is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name User friendly name of the channel.
Name string `json:"name"`
// SigningSecret Signing secret used for webhook request validation on the receiving end.
//
// Format: `base64` encoded random bytes optionally prefixed with `whsec_`. Recommended size: 24
SigningSecret *string `json:"signingSecret,omitempty"`
// Type Notification channel type.
Type NotificationChannelWebhookCreateRequestType `json:"type"`
// Url Webhook URL where the notification is sent.
Url string `json:"url"`
}
NotificationChannelWebhookCreateRequest Request with input parameters for creating new notification channel with webhook type.
type NotificationChannelWebhookCreateRequestType ¶
type NotificationChannelWebhookCreateRequestType string
NotificationChannelWebhookCreateRequestType Notification channel type.
const (
NotificationChannelWebhookCreateRequestTypeWEBHOOK NotificationChannelWebhookCreateRequestType = "WEBHOOK"
)
Defines values for NotificationChannelWebhookCreateRequestType.
type NotificationChannelWebhookType ¶
type NotificationChannelWebhookType string
NotificationChannelWebhookType Notification channel type.
const (
NotificationChannelWebhookTypeWEBHOOK NotificationChannelWebhookType = "WEBHOOK"
)
Defines values for NotificationChannelWebhookType.
type NotificationEvent ¶
type NotificationEvent struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp when the notification event was created in RFC 3339 format.
CreatedAt time.Time `json:"createdAt"`
// DeliveryStatus The delivery status of the notification event.
DeliveryStatus []NotificationEventDeliveryStatus `json:"deliveryStatus"`
// Id A unique identifier of the notification event.
Id string `json:"id"`
// Payload Timestamp when the notification event was created in RFC 3339 format.
Payload NotificationEventPayload `json:"payload"`
// Rule The nnotification rule which generated this event.
Rule NotificationRule `json:"rule"`
// Type Type of the notification event.
Type NotificationEventType `json:"type"`
}
NotificationEvent Type of the notification event.
type NotificationEventBalanceThresholdPayload ¶
type NotificationEventBalanceThresholdPayload struct {
// Data The data of the payload.
Data NotificationEventBalanceThresholdPayloadData `json:"data"`
// Id A unique identifier for the notification event the payload belongs to.
Id string `json:"id"`
// Timestamp Timestamp when the notification event was created in RFC 3339 format.
Timestamp time.Time `json:"timestamp"`
// Type Type of the notification event.
Type NotificationEventBalanceThresholdPayloadType `json:"type"`
}
NotificationEventBalanceThresholdPayload Payload for notification event with `entitlements.balance.threshold` type.
type NotificationEventBalanceThresholdPayloadData ¶
type NotificationEventBalanceThresholdPayloadData struct {
Customer *Customer `json:"customer,omitempty"`
Entitlement EntitlementMetered `json:"entitlement"`
Feature Feature `json:"feature"`
Subject Subject `json:"subject"`
Threshold NotificationRuleBalanceThresholdValue `json:"threshold"`
Value EntitlementValue `json:"value"`
}
NotificationEventBalanceThresholdPayloadData Data of the payload for notification event with `entitlements.balance.threshold` type.
type NotificationEventBalanceThresholdPayloadType ¶
type NotificationEventBalanceThresholdPayloadType string
NotificationEventBalanceThresholdPayloadType Type of the notification event.
const (
NotificationEventBalanceThresholdPayloadTypeEntitlementsBalanceThreshold NotificationEventBalanceThresholdPayloadType = "entitlements.balance.threshold"
)
Defines values for NotificationEventBalanceThresholdPayloadType.
type NotificationEventDeliveryAttempt ¶
type NotificationEventDeliveryAttempt struct {
// Response Response returned by the notification event recipient.
Response EventDeliveryAttemptResponse `json:"response"`
// State State of teh delivery attempt.
State NotificationEventDeliveryStatusState `json:"state"`
// Timestamp Timestamp of the delivery attempt.
Timestamp time.Time `json:"timestamp"`
}
NotificationEventDeliveryAttempt The delivery attempt of the notification event.
type NotificationEventDeliveryStatus ¶
type NotificationEventDeliveryStatus struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// Attempts List of delivery attempts.
Attempts []NotificationEventDeliveryAttempt `json:"attempts"`
// Channel Notification channel the delivery status associated with.
Channel NotificationChannelMeta `json:"channel"`
// NextAttempt Timestamp of the next delivery attempt. If null it means there will be no more delivery attempts.
NextAttempt *time.Time `json:"nextAttempt,omitempty"`
// Reason The reason of the last deliverry state update.
Reason string `json:"reason"`
// State Delivery state of the notification event to the channel.
State NotificationEventDeliveryStatusState `json:"state"`
// UpdatedAt Timestamp of when the status was last updated in RFC 3339 format.
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationEventDeliveryStatus The delivery status of the notification event.
type NotificationEventDeliveryStatusState ¶
type NotificationEventDeliveryStatusState string
NotificationEventDeliveryStatusState The delivery state of the notification event to the channel.
const ( NotificationEventDeliveryStatusStateFailed NotificationEventDeliveryStatusState = "FAILED" NotificationEventDeliveryStatusStatePending NotificationEventDeliveryStatusState = "PENDING" NotificationEventDeliveryStatusStateResending NotificationEventDeliveryStatusState = "RESENDING" NotificationEventDeliveryStatusStateSending NotificationEventDeliveryStatusState = "SENDING" NotificationEventDeliveryStatusStateSuccess NotificationEventDeliveryStatusState = "SUCCESS" )
Defines values for NotificationEventDeliveryStatusState.
type NotificationEventEntitlementValuePayloadBase ¶
type NotificationEventEntitlementValuePayloadBase struct {
Customer *Customer `json:"customer,omitempty"`
Entitlement EntitlementMetered `json:"entitlement"`
Feature Feature `json:"feature"`
Subject Subject `json:"subject"`
Value EntitlementValue `json:"value"`
}
NotificationEventEntitlementValuePayloadBase Base data for any payload with entitlement entitlement value.
type NotificationEventInvoiceCreatedPayload ¶
type NotificationEventInvoiceCreatedPayload struct {
// Data The data of the payload.
Data Invoice `json:"data"`
// Id A unique identifier for the notification event the payload belongs to.
Id string `json:"id"`
// Timestamp Timestamp when the notification event was created in RFC 3339 format.
Timestamp time.Time `json:"timestamp"`
// Type Type of the notification event.
Type NotificationEventInvoiceCreatedPayloadType `json:"type"`
}
NotificationEventInvoiceCreatedPayload Payload for notification event with `invoice.created` type.
type NotificationEventInvoiceCreatedPayloadType ¶
type NotificationEventInvoiceCreatedPayloadType string
NotificationEventInvoiceCreatedPayloadType Type of the notification event.
const (
NotificationEventInvoiceCreatedPayloadTypeInvoiceCreated NotificationEventInvoiceCreatedPayloadType = "invoice.created"
)
Defines values for NotificationEventInvoiceCreatedPayloadType.
type NotificationEventInvoiceUpdatedPayload ¶
type NotificationEventInvoiceUpdatedPayload struct {
// Data The data of the payload.
Data Invoice `json:"data"`
// Id A unique identifier for the notification event the payload belongs to.
Id string `json:"id"`
// Timestamp Timestamp when the notification event was created in RFC 3339 format.
Timestamp time.Time `json:"timestamp"`
// Type Type of the notification event.
Type NotificationEventInvoiceUpdatedPayloadType `json:"type"`
}
NotificationEventInvoiceUpdatedPayload Payload for notification event with `invoice.updated` type.
type NotificationEventInvoiceUpdatedPayloadType ¶
type NotificationEventInvoiceUpdatedPayloadType string
NotificationEventInvoiceUpdatedPayloadType Type of the notification event.
const (
NotificationEventInvoiceUpdatedPayloadTypeInvoiceUpdated NotificationEventInvoiceUpdatedPayloadType = "invoice.updated"
)
Defines values for NotificationEventInvoiceUpdatedPayloadType.
type NotificationEventOrderBy ¶
type NotificationEventOrderBy string
NotificationEventOrderBy Order by options for notification channels.
const ( NotificationEventOrderByCreatedAt NotificationEventOrderBy = "createdAt" NotificationEventOrderById NotificationEventOrderBy = "id" )
Defines values for NotificationEventOrderBy.
type NotificationEventOrderByOrderingOrder ¶
type NotificationEventOrderByOrderingOrder = SortOrder
NotificationEventOrderByOrderingOrder The order direction.
type NotificationEventOrderByOrderingOrderBy ¶
type NotificationEventOrderByOrderingOrderBy = NotificationEventOrderBy
NotificationEventOrderByOrderingOrderBy Order by options for notification channels.
type NotificationEventPaginatedResponse ¶
type NotificationEventPaginatedResponse struct {
// Items The items in the current page.
Items []NotificationEvent `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
NotificationEventPaginatedResponse Paginated response
type NotificationEventPayload ¶
type NotificationEventPayload struct {
// contains filtered or unexported fields
}
NotificationEventPayload The delivery status of the notification event.
func (NotificationEventPayload) AsNotificationEventBalanceThresholdPayload ¶
func (t NotificationEventPayload) AsNotificationEventBalanceThresholdPayload() (NotificationEventBalanceThresholdPayload, error)
AsNotificationEventBalanceThresholdPayload returns the union data inside the NotificationEventPayload as a NotificationEventBalanceThresholdPayload
func (NotificationEventPayload) AsNotificationEventInvoiceCreatedPayload ¶
func (t NotificationEventPayload) AsNotificationEventInvoiceCreatedPayload() (NotificationEventInvoiceCreatedPayload, error)
AsNotificationEventInvoiceCreatedPayload returns the union data inside the NotificationEventPayload as a NotificationEventInvoiceCreatedPayload
func (NotificationEventPayload) AsNotificationEventInvoiceUpdatedPayload ¶
func (t NotificationEventPayload) AsNotificationEventInvoiceUpdatedPayload() (NotificationEventInvoiceUpdatedPayload, error)
AsNotificationEventInvoiceUpdatedPayload returns the union data inside the NotificationEventPayload as a NotificationEventInvoiceUpdatedPayload
func (NotificationEventPayload) AsNotificationEventResetPayload ¶
func (t NotificationEventPayload) AsNotificationEventResetPayload() (NotificationEventResetPayload, error)
AsNotificationEventResetPayload returns the union data inside the NotificationEventPayload as a NotificationEventResetPayload
func (NotificationEventPayload) Discriminator ¶
func (t NotificationEventPayload) Discriminator() (string, error)
func (*NotificationEventPayload) FromNotificationEventBalanceThresholdPayload ¶
func (t *NotificationEventPayload) FromNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error
FromNotificationEventBalanceThresholdPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventBalanceThresholdPayload
func (*NotificationEventPayload) FromNotificationEventInvoiceCreatedPayload ¶
func (t *NotificationEventPayload) FromNotificationEventInvoiceCreatedPayload(v NotificationEventInvoiceCreatedPayload) error
FromNotificationEventInvoiceCreatedPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventInvoiceCreatedPayload
func (*NotificationEventPayload) FromNotificationEventInvoiceUpdatedPayload ¶
func (t *NotificationEventPayload) FromNotificationEventInvoiceUpdatedPayload(v NotificationEventInvoiceUpdatedPayload) error
FromNotificationEventInvoiceUpdatedPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventInvoiceUpdatedPayload
func (*NotificationEventPayload) FromNotificationEventResetPayload ¶
func (t *NotificationEventPayload) FromNotificationEventResetPayload(v NotificationEventResetPayload) error
FromNotificationEventResetPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventResetPayload
func (NotificationEventPayload) MarshalJSON ¶
func (t NotificationEventPayload) MarshalJSON() ([]byte, error)
func (*NotificationEventPayload) MergeNotificationEventBalanceThresholdPayload ¶
func (t *NotificationEventPayload) MergeNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error
MergeNotificationEventBalanceThresholdPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventBalanceThresholdPayload
func (*NotificationEventPayload) MergeNotificationEventInvoiceCreatedPayload ¶
func (t *NotificationEventPayload) MergeNotificationEventInvoiceCreatedPayload(v NotificationEventInvoiceCreatedPayload) error
MergeNotificationEventInvoiceCreatedPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventInvoiceCreatedPayload
func (*NotificationEventPayload) MergeNotificationEventInvoiceUpdatedPayload ¶
func (t *NotificationEventPayload) MergeNotificationEventInvoiceUpdatedPayload(v NotificationEventInvoiceUpdatedPayload) error
MergeNotificationEventInvoiceUpdatedPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventInvoiceUpdatedPayload
func (*NotificationEventPayload) MergeNotificationEventResetPayload ¶
func (t *NotificationEventPayload) MergeNotificationEventResetPayload(v NotificationEventResetPayload) error
MergeNotificationEventResetPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventResetPayload
func (*NotificationEventPayload) UnmarshalJSON ¶
func (t *NotificationEventPayload) UnmarshalJSON(b []byte) error
func (NotificationEventPayload) ValueByDiscriminator ¶
func (t NotificationEventPayload) ValueByDiscriminator() (interface{}, error)
type NotificationEventResendRequest ¶
type NotificationEventResendRequest struct {
// Channels Notification channels to which the event should be re-sent.
Channels *[]string `json:"channels,omitempty"`
}
NotificationEventResendRequest A notification event that will be re-sent.
type NotificationEventResetPayload ¶
type NotificationEventResetPayload struct {
// Data The data of the payload.
Data NotificationEventEntitlementValuePayloadBase `json:"data"`
// Id A unique identifier for the notification event the payload belongs to.
Id string `json:"id"`
// Timestamp Timestamp when the notification event was created in RFC 3339 format.
Timestamp time.Time `json:"timestamp"`
// Type Type of the notification event.
Type NotificationEventResetPayloadType `json:"type"`
}
NotificationEventResetPayload Payload for notification event with `entitlements.reset` type.
type NotificationEventResetPayloadType ¶
type NotificationEventResetPayloadType string
NotificationEventResetPayloadType Type of the notification event.
const (
NotificationEventResetPayloadTypeEntitlementsReset NotificationEventResetPayloadType = "entitlements.reset"
)
Defines values for NotificationEventResetPayloadType.
type NotificationEventType ¶
type NotificationEventType string
NotificationEventType Type of the notification event.
const ( NotificationEventTypeEntitlementsBalanceThreshold NotificationEventType = "entitlements.balance.threshold" NotificationEventTypeEntitlementsReset NotificationEventType = "entitlements.reset" NotificationEventTypeInvoiceCreated NotificationEventType = "invoice.created" NotificationEventTypeInvoiceUpdated NotificationEventType = "invoice.updated" )
Defines values for NotificationEventType.
type NotificationRule ¶
type NotificationRule struct {
// contains filtered or unexported fields
}
NotificationRule Notification Rule.
func (NotificationRule) AsNotificationRuleBalanceThreshold ¶
func (t NotificationRule) AsNotificationRuleBalanceThreshold() (NotificationRuleBalanceThreshold, error)
AsNotificationRuleBalanceThreshold returns the union data inside the NotificationRule as a NotificationRuleBalanceThreshold
func (NotificationRule) AsNotificationRuleEntitlementReset ¶
func (t NotificationRule) AsNotificationRuleEntitlementReset() (NotificationRuleEntitlementReset, error)
AsNotificationRuleEntitlementReset returns the union data inside the NotificationRule as a NotificationRuleEntitlementReset
func (NotificationRule) AsNotificationRuleInvoiceCreated ¶
func (t NotificationRule) AsNotificationRuleInvoiceCreated() (NotificationRuleInvoiceCreated, error)
AsNotificationRuleInvoiceCreated returns the union data inside the NotificationRule as a NotificationRuleInvoiceCreated
func (NotificationRule) AsNotificationRuleInvoiceUpdated ¶
func (t NotificationRule) AsNotificationRuleInvoiceUpdated() (NotificationRuleInvoiceUpdated, error)
AsNotificationRuleInvoiceUpdated returns the union data inside the NotificationRule as a NotificationRuleInvoiceUpdated
func (NotificationRule) Discriminator ¶
func (t NotificationRule) Discriminator() (string, error)
func (*NotificationRule) FromNotificationRuleBalanceThreshold ¶
func (t *NotificationRule) FromNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error
FromNotificationRuleBalanceThreshold overwrites any union data inside the NotificationRule as the provided NotificationRuleBalanceThreshold
func (*NotificationRule) FromNotificationRuleEntitlementReset ¶
func (t *NotificationRule) FromNotificationRuleEntitlementReset(v NotificationRuleEntitlementReset) error
FromNotificationRuleEntitlementReset overwrites any union data inside the NotificationRule as the provided NotificationRuleEntitlementReset
func (*NotificationRule) FromNotificationRuleInvoiceCreated ¶
func (t *NotificationRule) FromNotificationRuleInvoiceCreated(v NotificationRuleInvoiceCreated) error
FromNotificationRuleInvoiceCreated overwrites any union data inside the NotificationRule as the provided NotificationRuleInvoiceCreated
func (*NotificationRule) FromNotificationRuleInvoiceUpdated ¶
func (t *NotificationRule) FromNotificationRuleInvoiceUpdated(v NotificationRuleInvoiceUpdated) error
FromNotificationRuleInvoiceUpdated overwrites any union data inside the NotificationRule as the provided NotificationRuleInvoiceUpdated
func (NotificationRule) MarshalJSON ¶
func (t NotificationRule) MarshalJSON() ([]byte, error)
func (*NotificationRule) MergeNotificationRuleBalanceThreshold ¶
func (t *NotificationRule) MergeNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error
MergeNotificationRuleBalanceThreshold performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleBalanceThreshold
func (*NotificationRule) MergeNotificationRuleEntitlementReset ¶
func (t *NotificationRule) MergeNotificationRuleEntitlementReset(v NotificationRuleEntitlementReset) error
MergeNotificationRuleEntitlementReset performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleEntitlementReset
func (*NotificationRule) MergeNotificationRuleInvoiceCreated ¶
func (t *NotificationRule) MergeNotificationRuleInvoiceCreated(v NotificationRuleInvoiceCreated) error
MergeNotificationRuleInvoiceCreated performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleInvoiceCreated
func (*NotificationRule) MergeNotificationRuleInvoiceUpdated ¶
func (t *NotificationRule) MergeNotificationRuleInvoiceUpdated(v NotificationRuleInvoiceUpdated) error
MergeNotificationRuleInvoiceUpdated performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleInvoiceUpdated
func (*NotificationRule) UnmarshalJSON ¶
func (t *NotificationRule) UnmarshalJSON(b []byte) error
func (NotificationRule) ValueByDiscriminator ¶
func (t NotificationRule) ValueByDiscriminator() (interface{}, error)
type NotificationRuleBalanceThreshold ¶
type NotificationRuleBalanceThreshold struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// Channels List of notification channels the rule applies to.
Channels []NotificationChannelMeta `json:"channels"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Features Optional field containing list of features the rule applies to.
Features *[]FeatureMeta `json:"features,omitempty"`
// Id Identifies the notification rule.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Thresholds List of thresholds the rule suppose to be triggered.
Thresholds []NotificationRuleBalanceThresholdValue `json:"thresholds"`
// Type Notification rule type.
Type NotificationRuleBalanceThresholdType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationRuleBalanceThreshold Notification rule with entitlements.balance.threshold type.
type NotificationRuleBalanceThresholdCreateRequest ¶
type NotificationRuleBalanceThresholdCreateRequest struct {
// Channels List of notification channels the rule is applied to.
Channels []string `json:"channels"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Features Optional field for defining the scope of notification by feature. It may contain features by id or key.
Features *[]string `json:"features,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Thresholds List of thresholds the rule suppose to be triggered.
Thresholds []NotificationRuleBalanceThresholdValue `json:"thresholds"`
// Type Notification rule type.
Type NotificationRuleBalanceThresholdCreateRequestType `json:"type"`
}
NotificationRuleBalanceThresholdCreateRequest Request with input parameters for creating new notification rule with entitlements.balance.threshold type.
type NotificationRuleBalanceThresholdCreateRequestType ¶
type NotificationRuleBalanceThresholdCreateRequestType string
NotificationRuleBalanceThresholdCreateRequestType Notification rule type.
const (
NotificationRuleBalanceThresholdCreateRequestTypeEntitlementsBalanceThreshold NotificationRuleBalanceThresholdCreateRequestType = "entitlements.balance.threshold"
)
Defines values for NotificationRuleBalanceThresholdCreateRequestType.
type NotificationRuleBalanceThresholdType ¶
type NotificationRuleBalanceThresholdType string
NotificationRuleBalanceThresholdType Notification rule type.
const (
NotificationRuleBalanceThresholdTypeEntitlementsBalanceThreshold NotificationRuleBalanceThresholdType = "entitlements.balance.threshold"
)
Defines values for NotificationRuleBalanceThresholdType.
type NotificationRuleBalanceThresholdValue ¶
type NotificationRuleBalanceThresholdValue struct {
// Type Type of the threshold.
Type NotificationRuleBalanceThresholdValueType `json:"type"`
// Value Value of the threshold.
Value float64 `json:"value"`
}
NotificationRuleBalanceThresholdValue Threshold value with multiple supported types.
type NotificationRuleBalanceThresholdValueType ¶
type NotificationRuleBalanceThresholdValueType string
NotificationRuleBalanceThresholdValueType Type of the rule in the balance threshold specification: * `balance_value`: threshold defined by the remaining balance value based on usage and the total of grants in the current usage period * `usage_percentage`: threshold defined by the usage percentage compared to the total of grants in the current usage period * `usage_value`: threshold defined by the usage value in the current usage period * `NUMBER` (**deprecated**): see `usage_value` * `PERCENT` (**deprecated**): see `usage_percentage`
const ( NotificationRuleBalanceThresholdValueTypeBalanceValue NotificationRuleBalanceThresholdValueType = "balance_value" NotificationRuleBalanceThresholdValueTypeNumber NotificationRuleBalanceThresholdValueType = "NUMBER" NotificationRuleBalanceThresholdValueTypePercent NotificationRuleBalanceThresholdValueType = "PERCENT" NotificationRuleBalanceThresholdValueTypeUsagePercentage NotificationRuleBalanceThresholdValueType = "usage_percentage" NotificationRuleBalanceThresholdValueTypeUsageValue NotificationRuleBalanceThresholdValueType = "usage_value" )
Defines values for NotificationRuleBalanceThresholdValueType.
type NotificationRuleCreateRequest ¶
type NotificationRuleCreateRequest struct {
// contains filtered or unexported fields
}
NotificationRuleCreateRequest Union type for requests creating new notification rule with certain type.
func (NotificationRuleCreateRequest) AsNotificationRuleBalanceThresholdCreateRequest ¶
func (t NotificationRuleCreateRequest) AsNotificationRuleBalanceThresholdCreateRequest() (NotificationRuleBalanceThresholdCreateRequest, error)
AsNotificationRuleBalanceThresholdCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleBalanceThresholdCreateRequest
func (NotificationRuleCreateRequest) AsNotificationRuleEntitlementResetCreateRequest ¶
func (t NotificationRuleCreateRequest) AsNotificationRuleEntitlementResetCreateRequest() (NotificationRuleEntitlementResetCreateRequest, error)
AsNotificationRuleEntitlementResetCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleEntitlementResetCreateRequest
func (NotificationRuleCreateRequest) AsNotificationRuleInvoiceCreatedCreateRequest ¶
func (t NotificationRuleCreateRequest) AsNotificationRuleInvoiceCreatedCreateRequest() (NotificationRuleInvoiceCreatedCreateRequest, error)
AsNotificationRuleInvoiceCreatedCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleInvoiceCreatedCreateRequest
func (NotificationRuleCreateRequest) AsNotificationRuleInvoiceUpdatedCreateRequest ¶
func (t NotificationRuleCreateRequest) AsNotificationRuleInvoiceUpdatedCreateRequest() (NotificationRuleInvoiceUpdatedCreateRequest, error)
AsNotificationRuleInvoiceUpdatedCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleInvoiceUpdatedCreateRequest
func (NotificationRuleCreateRequest) Discriminator ¶
func (t NotificationRuleCreateRequest) Discriminator() (string, error)
func (*NotificationRuleCreateRequest) FromNotificationRuleBalanceThresholdCreateRequest ¶
func (t *NotificationRuleCreateRequest) FromNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error
FromNotificationRuleBalanceThresholdCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleBalanceThresholdCreateRequest
func (*NotificationRuleCreateRequest) FromNotificationRuleEntitlementResetCreateRequest ¶
func (t *NotificationRuleCreateRequest) FromNotificationRuleEntitlementResetCreateRequest(v NotificationRuleEntitlementResetCreateRequest) error
FromNotificationRuleEntitlementResetCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleEntitlementResetCreateRequest
func (*NotificationRuleCreateRequest) FromNotificationRuleInvoiceCreatedCreateRequest ¶
func (t *NotificationRuleCreateRequest) FromNotificationRuleInvoiceCreatedCreateRequest(v NotificationRuleInvoiceCreatedCreateRequest) error
FromNotificationRuleInvoiceCreatedCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleInvoiceCreatedCreateRequest
func (*NotificationRuleCreateRequest) FromNotificationRuleInvoiceUpdatedCreateRequest ¶
func (t *NotificationRuleCreateRequest) FromNotificationRuleInvoiceUpdatedCreateRequest(v NotificationRuleInvoiceUpdatedCreateRequest) error
FromNotificationRuleInvoiceUpdatedCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleInvoiceUpdatedCreateRequest
func (NotificationRuleCreateRequest) MarshalJSON ¶
func (t NotificationRuleCreateRequest) MarshalJSON() ([]byte, error)
func (*NotificationRuleCreateRequest) MergeNotificationRuleBalanceThresholdCreateRequest ¶
func (t *NotificationRuleCreateRequest) MergeNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error
MergeNotificationRuleBalanceThresholdCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleBalanceThresholdCreateRequest
func (*NotificationRuleCreateRequest) MergeNotificationRuleEntitlementResetCreateRequest ¶
func (t *NotificationRuleCreateRequest) MergeNotificationRuleEntitlementResetCreateRequest(v NotificationRuleEntitlementResetCreateRequest) error
MergeNotificationRuleEntitlementResetCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleEntitlementResetCreateRequest
func (*NotificationRuleCreateRequest) MergeNotificationRuleInvoiceCreatedCreateRequest ¶
func (t *NotificationRuleCreateRequest) MergeNotificationRuleInvoiceCreatedCreateRequest(v NotificationRuleInvoiceCreatedCreateRequest) error
MergeNotificationRuleInvoiceCreatedCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleInvoiceCreatedCreateRequest
func (*NotificationRuleCreateRequest) MergeNotificationRuleInvoiceUpdatedCreateRequest ¶
func (t *NotificationRuleCreateRequest) MergeNotificationRuleInvoiceUpdatedCreateRequest(v NotificationRuleInvoiceUpdatedCreateRequest) error
MergeNotificationRuleInvoiceUpdatedCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleInvoiceUpdatedCreateRequest
func (*NotificationRuleCreateRequest) UnmarshalJSON ¶
func (t *NotificationRuleCreateRequest) UnmarshalJSON(b []byte) error
func (NotificationRuleCreateRequest) ValueByDiscriminator ¶
func (t NotificationRuleCreateRequest) ValueByDiscriminator() (interface{}, error)
type NotificationRuleEntitlementReset ¶
type NotificationRuleEntitlementReset struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// Channels List of notification channels the rule applies to.
Channels []NotificationChannelMeta `json:"channels"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Features Optional field containing list of features the rule applies to.
Features *[]FeatureMeta `json:"features,omitempty"`
// Id Identifies the notification rule.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Type Notification rule type.
Type NotificationRuleEntitlementResetType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationRuleEntitlementReset Notification rule with entitlements.reset type.
type NotificationRuleEntitlementResetCreateRequest ¶
type NotificationRuleEntitlementResetCreateRequest struct {
// Channels List of notification channels the rule is applied to.
Channels []string `json:"channels"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Features Optional field for defining the scope of notification by feature. It may contain features by id or key.
Features *[]string `json:"features,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Type Notification rule type.
Type NotificationRuleEntitlementResetCreateRequestType `json:"type"`
}
NotificationRuleEntitlementResetCreateRequest Request with input parameters for creating new notification rule with entitlements.reset type.
type NotificationRuleEntitlementResetCreateRequestType ¶
type NotificationRuleEntitlementResetCreateRequestType string
NotificationRuleEntitlementResetCreateRequestType Notification rule type.
const (
NotificationRuleEntitlementResetCreateRequestTypeEntitlementsReset NotificationRuleEntitlementResetCreateRequestType = "entitlements.reset"
)
Defines values for NotificationRuleEntitlementResetCreateRequestType.
type NotificationRuleEntitlementResetType ¶
type NotificationRuleEntitlementResetType string
NotificationRuleEntitlementResetType Notification rule type.
const (
NotificationRuleEntitlementResetTypeEntitlementsReset NotificationRuleEntitlementResetType = "entitlements.reset"
)
Defines values for NotificationRuleEntitlementResetType.
type NotificationRuleInvoiceCreated ¶
type NotificationRuleInvoiceCreated struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// Channels List of notification channels the rule applies to.
Channels []NotificationChannelMeta `json:"channels"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Id Identifies the notification rule.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Type Notification rule type.
Type NotificationRuleInvoiceCreatedType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationRuleInvoiceCreated Notification rule with invoice.created type.
type NotificationRuleInvoiceCreatedCreateRequest ¶
type NotificationRuleInvoiceCreatedCreateRequest struct {
// Channels List of notification channels the rule is applied to.
Channels []string `json:"channels"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Type Notification rule type.
Type NotificationRuleInvoiceCreatedCreateRequestType `json:"type"`
}
NotificationRuleInvoiceCreatedCreateRequest Request with input parameters for creating new notification rule with invoice.created type.
type NotificationRuleInvoiceCreatedCreateRequestType ¶
type NotificationRuleInvoiceCreatedCreateRequestType string
NotificationRuleInvoiceCreatedCreateRequestType Notification rule type.
const (
NotificationRuleInvoiceCreatedCreateRequestTypeInvoiceCreated NotificationRuleInvoiceCreatedCreateRequestType = "invoice.created"
)
Defines values for NotificationRuleInvoiceCreatedCreateRequestType.
type NotificationRuleInvoiceCreatedType ¶
type NotificationRuleInvoiceCreatedType string
NotificationRuleInvoiceCreatedType Notification rule type.
const (
NotificationRuleInvoiceCreatedTypeInvoiceCreated NotificationRuleInvoiceCreatedType = "invoice.created"
)
Defines values for NotificationRuleInvoiceCreatedType.
type NotificationRuleInvoiceUpdated ¶
type NotificationRuleInvoiceUpdated struct {
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// Channels List of notification channels the rule applies to.
Channels []NotificationChannelMeta `json:"channels"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Id Identifies the notification rule.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Type Notification rule type.
Type NotificationRuleInvoiceUpdatedType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
NotificationRuleInvoiceUpdated Notification rule with invoice.updated type.
type NotificationRuleInvoiceUpdatedCreateRequest ¶
type NotificationRuleInvoiceUpdatedCreateRequest struct {
// Channels List of notification channels the rule is applied to.
Channels []string `json:"channels"`
// Disabled Whether the rule is disabled or not.
Disabled *bool `json:"disabled,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name The user friendly name of the notification rule.
Name string `json:"name"`
// Type Notification rule type.
Type NotificationRuleInvoiceUpdatedCreateRequestType `json:"type"`
}
NotificationRuleInvoiceUpdatedCreateRequest Request with input parameters for creating new notification rule with invoice.updated type.
type NotificationRuleInvoiceUpdatedCreateRequestType ¶
type NotificationRuleInvoiceUpdatedCreateRequestType string
NotificationRuleInvoiceUpdatedCreateRequestType Notification rule type.
const (
NotificationRuleInvoiceUpdatedCreateRequestTypeInvoiceUpdated NotificationRuleInvoiceUpdatedCreateRequestType = "invoice.updated"
)
Defines values for NotificationRuleInvoiceUpdatedCreateRequestType.
type NotificationRuleInvoiceUpdatedType ¶
type NotificationRuleInvoiceUpdatedType string
NotificationRuleInvoiceUpdatedType Notification rule type.
const (
NotificationRuleInvoiceUpdatedTypeInvoiceUpdated NotificationRuleInvoiceUpdatedType = "invoice.updated"
)
Defines values for NotificationRuleInvoiceUpdatedType.
type NotificationRuleOrderBy ¶
type NotificationRuleOrderBy string
NotificationRuleOrderBy Order by options for notification channels.
const ( NotificationRuleOrderByCreatedAt NotificationRuleOrderBy = "createdAt" NotificationRuleOrderById NotificationRuleOrderBy = "id" NotificationRuleOrderByType NotificationRuleOrderBy = "type" NotificationRuleOrderByUpdatedAt NotificationRuleOrderBy = "updatedAt" )
Defines values for NotificationRuleOrderBy.
type NotificationRuleOrderByOrderingOrder ¶
type NotificationRuleOrderByOrderingOrder = SortOrder
NotificationRuleOrderByOrderingOrder The order direction.
type NotificationRuleOrderByOrderingOrderBy ¶
type NotificationRuleOrderByOrderingOrderBy = NotificationRuleOrderBy
NotificationRuleOrderByOrderingOrderBy Order by options for notification channels.
type NotificationRulePaginatedResponse ¶
type NotificationRulePaginatedResponse struct {
// Items The items in the current page.
Items []NotificationRule `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
NotificationRulePaginatedResponse Paginated response
type OAuth2AuthorizationCodeGrantErrorParamsError ¶
type OAuth2AuthorizationCodeGrantErrorParamsError = OAuth2AuthorizationCodeGrantErrorType
OAuth2AuthorizationCodeGrantErrorParamsError OAuth2 authorization code grant error types.
type OAuth2AuthorizationCodeGrantErrorParamsErrorDescription ¶
type OAuth2AuthorizationCodeGrantErrorParamsErrorDescription = string
OAuth2AuthorizationCodeGrantErrorParamsErrorDescription defines model for OAuth2AuthorizationCodeGrantErrorParams.error_description.
type OAuth2AuthorizationCodeGrantErrorParamsErrorUri ¶
type OAuth2AuthorizationCodeGrantErrorParamsErrorUri = string
OAuth2AuthorizationCodeGrantErrorParamsErrorUri defines model for OAuth2AuthorizationCodeGrantErrorParams.error_uri.
type OAuth2AuthorizationCodeGrantErrorType ¶
type OAuth2AuthorizationCodeGrantErrorType string
OAuth2AuthorizationCodeGrantErrorType OAuth2 authorization code grant error types.
const ( OAuth2AuthorizationCodeGrantErrorTypeAccessDenied OAuth2AuthorizationCodeGrantErrorType = "access_denied" OAuth2AuthorizationCodeGrantErrorTypeInvalidRequest OAuth2AuthorizationCodeGrantErrorType = "invalid_request" OAuth2AuthorizationCodeGrantErrorTypeInvalidScope OAuth2AuthorizationCodeGrantErrorType = "invalid_scope" OAuth2AuthorizationCodeGrantErrorTypeServerError OAuth2AuthorizationCodeGrantErrorType = "server_error" OAuth2AuthorizationCodeGrantErrorTypeUnsupportedResponseType OAuth2AuthorizationCodeGrantErrorType = "unsupported_response_type" )
Defines values for OAuth2AuthorizationCodeGrantErrorType.
type OAuth2AuthorizationCodeGrantSuccessParamsCode ¶
type OAuth2AuthorizationCodeGrantSuccessParamsCode = string
OAuth2AuthorizationCodeGrantSuccessParamsCode defines model for OAuth2AuthorizationCodeGrantSuccessParams.code.
type OAuth2AuthorizationCodeGrantSuccessParamsState ¶
type OAuth2AuthorizationCodeGrantSuccessParamsState = string
OAuth2AuthorizationCodeGrantSuccessParamsState defines model for OAuth2AuthorizationCodeGrantSuccessParams.state.
type OverrideCustomerEntitlementV2JSONRequestBody ¶
type OverrideCustomerEntitlementV2JSONRequestBody = EntitlementV2CreateInputs
OverrideCustomerEntitlementV2JSONRequestBody defines body for OverrideCustomerEntitlementV2 for application/json ContentType.
type OverrideCustomerEntitlementV2Response ¶
type OverrideCustomerEntitlementV2Response struct {
Body []byte
HTTPResponse *http.Response
JSON201 *EntitlementV2
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseOverrideCustomerEntitlementV2Response ¶
func ParseOverrideCustomerEntitlementV2Response(rsp *http.Response) (*OverrideCustomerEntitlementV2Response, error)
ParseOverrideCustomerEntitlementV2Response parses an HTTP response from a OverrideCustomerEntitlementV2WithResponse call
func (OverrideCustomerEntitlementV2Response) Status ¶
func (r OverrideCustomerEntitlementV2Response) Status() string
Status returns HTTPResponse.Status
func (OverrideCustomerEntitlementV2Response) StatusCode ¶
func (r OverrideCustomerEntitlementV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OverrideEntitlementJSONRequestBody ¶
type OverrideEntitlementJSONRequestBody = EntitlementCreateInputs
OverrideEntitlementJSONRequestBody defines body for OverrideEntitlement for application/json ContentType.
type OverrideEntitlementResponse ¶
type OverrideEntitlementResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Entitlement
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseOverrideEntitlementResponse ¶
func ParseOverrideEntitlementResponse(rsp *http.Response) (*OverrideEntitlementResponse, error)
ParseOverrideEntitlementResponse parses an HTTP response from a OverrideEntitlementWithResponse call
func (OverrideEntitlementResponse) Status ¶
func (r OverrideEntitlementResponse) Status() string
Status returns HTTPResponse.Status
func (OverrideEntitlementResponse) StatusCode ¶
func (r OverrideEntitlementResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PackagePriceWithCommitments ¶
type PackagePriceWithCommitments struct {
// Amount The price of one package.
Amount Numeric `json:"amount"`
// MaximumAmount The customer is limited to spend at most the amount.
MaximumAmount *Numeric `json:"maximumAmount,omitempty"`
// MinimumAmount The customer is committed to spend at least the amount.
MinimumAmount *Numeric `json:"minimumAmount,omitempty"`
// QuantityPerPackage The quantity per package.
QuantityPerPackage Numeric `json:"quantityPerPackage"`
// Type The type of the price.
Type PackagePriceWithCommitmentsType `json:"type"`
}
PackagePriceWithCommitments Package price with spend commitments.
type PackagePriceWithCommitmentsType ¶
type PackagePriceWithCommitmentsType string
PackagePriceWithCommitmentsType The type of the price.
const (
PackagePriceWithCommitmentsTypePackage PackagePriceWithCommitmentsType = "package"
)
Defines values for PackagePriceWithCommitmentsType.
type PaginationPageSize ¶
type PaginationPageSize = int
PaginationPageSize defines model for Pagination.pageSize.
type PaymentDueDate ¶
type PaymentDueDate struct {
// Amount How much needs to be paid by the date.
Amount Numeric `json:"amount"`
// Currency If different from the parent document's base currency.
Currency *CurrencyCode `json:"currency,omitempty"`
// DueAt When the payment is due.
DueAt time.Time `json:"dueAt"`
// Notes Other details to take into account for the due date.
Notes *string `json:"notes,omitempty"`
// Percent Percentage of the total that should be paid by the date.
Percent *Percentage `json:"percent,omitempty"`
}
PaymentDueDate PaymentDueDate contains an amount that should be paid by the given date.
type PaymentTermDueDate ¶
type PaymentTermDueDate struct {
// Detail Text detail of the chosen payment terms.
Detail *string `json:"detail,omitempty"`
// DueAt When the payment is due.
DueAt []PaymentDueDate `json:"dueAt"`
// Notes Description of the conditions for payment.
Notes *string `json:"notes,omitempty"`
// Type Type of terms to be applied.
Type PaymentTermDueDateType `json:"type"`
}
PaymentTermDueDate PaymentTermDueDate defines the terms for payment on a specific date.
type PaymentTermDueDateType ¶
type PaymentTermDueDateType string
PaymentTermDueDateType Type of terms to be applied.
const (
PaymentTermDueDateTypeDueDate PaymentTermDueDateType = "due_date"
)
Defines values for PaymentTermDueDateType.
type PaymentTermInstant ¶
type PaymentTermInstant struct {
// Detail Text detail of the chosen payment terms.
Detail *string `json:"detail,omitempty"`
// Notes Description of the conditions for payment.
Notes *string `json:"notes,omitempty"`
// Type Type of terms to be applied.
Type PaymentTermInstantType `json:"type"`
}
PaymentTermInstant PaymentTermInstant defines the terms for payment on receipt of invoice.
type PaymentTermInstantType ¶
type PaymentTermInstantType string
PaymentTermInstantType Type of terms to be applied.
const (
PaymentTermInstantTypeInstant PaymentTermInstantType = "instant"
)
Defines values for PaymentTermInstantType.
type PaymentTerms ¶
type PaymentTerms struct {
// contains filtered or unexported fields
}
PaymentTerms PaymentTerms defines the terms for payment.
func (PaymentTerms) AsPaymentTermDueDate ¶
func (t PaymentTerms) AsPaymentTermDueDate() (PaymentTermDueDate, error)
AsPaymentTermDueDate returns the union data inside the PaymentTerms as a PaymentTermDueDate
func (PaymentTerms) AsPaymentTermInstant ¶
func (t PaymentTerms) AsPaymentTermInstant() (PaymentTermInstant, error)
AsPaymentTermInstant returns the union data inside the PaymentTerms as a PaymentTermInstant
func (*PaymentTerms) FromPaymentTermDueDate ¶
func (t *PaymentTerms) FromPaymentTermDueDate(v PaymentTermDueDate) error
FromPaymentTermDueDate overwrites any union data inside the PaymentTerms as the provided PaymentTermDueDate
func (*PaymentTerms) FromPaymentTermInstant ¶
func (t *PaymentTerms) FromPaymentTermInstant(v PaymentTermInstant) error
FromPaymentTermInstant overwrites any union data inside the PaymentTerms as the provided PaymentTermInstant
func (PaymentTerms) MarshalJSON ¶
func (t PaymentTerms) MarshalJSON() ([]byte, error)
func (*PaymentTerms) MergePaymentTermDueDate ¶
func (t *PaymentTerms) MergePaymentTermDueDate(v PaymentTermDueDate) error
MergePaymentTermDueDate performs a merge with any union data inside the PaymentTerms, using the provided PaymentTermDueDate
func (*PaymentTerms) MergePaymentTermInstant ¶
func (t *PaymentTerms) MergePaymentTermInstant(v PaymentTermInstant) error
MergePaymentTermInstant performs a merge with any union data inside the PaymentTerms, using the provided PaymentTermInstant
func (*PaymentTerms) UnmarshalJSON ¶
func (t *PaymentTerms) UnmarshalJSON(b []byte) error
type Percentage ¶
type Percentage = models.Percentage
Percentage Numeric representation of a percentage
50% is represented as 50
type Period ¶
type Period struct {
// From Period start time.
From time.Time `json:"from"`
// To Period end time.
To time.Time `json:"to"`
}
Period A period with a start and end time.
type Plan ¶
type Plan struct {
// Alignment Alignment configuration for the plan.
Alignment *Alignment `json:"alignment,omitempty"`
// BillingCadence The default billing cadence for subscriptions using this plan.
// Defines how often customers are billed using ISO8601 duration format.
// Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
BillingCadence string `json:"billingCadence"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Currency The currency code of the plan.
Currency CurrencyCode `json:"currency"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// EffectiveFrom The date and time when the plan becomes effective. When not specified, the plan is a draft.
EffectiveFrom *time.Time `json:"effectiveFrom,omitempty"`
// EffectiveTo The date and time when the plan is no longer effective. When not specified, the plan is effective indefinitely.
EffectiveTo *time.Time `json:"effectiveTo,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Key A semi-unique identifier for the resource.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Phases The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
// A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices.
Phases []PlanPhase `json:"phases"`
// ProRatingConfig Default pro-rating configuration for subscriptions using this plan.
ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"`
// Status The status of the plan.
// Computed based on the effective start and end dates:
// - draft = no effectiveFrom
// - active = effectiveFrom <= now < effectiveTo
// - archived / inactive = effectiveTo <= now
// - scheduled = now < effectiveFrom < effectiveTo
Status PlanStatus `json:"status"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// ValidationErrors List of validation errors.
ValidationErrors *[]ValidationError `json:"validationErrors"`
// Version Version of the plan. Incremented when the plan is updated.
Version int `json:"version"`
}
Plan Plans provide a template for subscriptions.
type PlanAddon ¶
type PlanAddon struct {
// Addon Add-on object.
Addon Addon `json:"addon"`
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// FromPlanPhase The key of the plan phase from the add-on becomes available for purchase.
FromPlanPhase string `json:"fromPlanPhase"`
// MaxQuantity The maximum number of times the add-on can be purchased for the plan.
// It is not applicable for add-ons with single instance type.
MaxQuantity *int `json:"maxQuantity,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata,omitempty"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// ValidationErrors List of validation errors.
ValidationErrors *[]ValidationError `json:"validationErrors"`
}
PlanAddon The PlanAddon describes the association between a plan and add-on.
type PlanAddonCreate ¶
type PlanAddonCreate struct {
// AddonId The add-on unique identifier in ULID format.
AddonId string `json:"addonId"`
// FromPlanPhase The key of the plan phase from the add-on becomes available for purchase.
FromPlanPhase string `json:"fromPlanPhase"`
// MaxQuantity The maximum number of times the add-on can be purchased for the plan.
// It is not applicable for add-ons with single instance type.
MaxQuantity *int `json:"maxQuantity,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata,omitempty"`
}
PlanAddonCreate A plan add-on assignment create request.
type PlanAddonOrderBy ¶
type PlanAddonOrderBy string
PlanAddonOrderBy Order by options for plan add-on assignments.
const ( PlanAddonOrderByCreatedAt PlanAddonOrderBy = "created_at" PlanAddonOrderById PlanAddonOrderBy = "id" PlanAddonOrderByKey PlanAddonOrderBy = "key" PlanAddonOrderByUpdatedAt PlanAddonOrderBy = "updated_at" PlanAddonOrderByVersion PlanAddonOrderBy = "version" )
Defines values for PlanAddonOrderBy.
type PlanAddonOrderByOrderingOrder ¶
type PlanAddonOrderByOrderingOrder = SortOrder
PlanAddonOrderByOrderingOrder The order direction.
type PlanAddonOrderByOrderingOrderBy ¶
type PlanAddonOrderByOrderingOrderBy = PlanAddonOrderBy
PlanAddonOrderByOrderingOrderBy Order by options for plan add-on assignments.
type PlanAddonPaginatedResponse ¶
type PlanAddonPaginatedResponse struct {
// Items The items in the current page.
Items []PlanAddon `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
PlanAddonPaginatedResponse Paginated response
type PlanAddonReplaceUpdate ¶
type PlanAddonReplaceUpdate struct {
// FromPlanPhase The key of the plan phase from the add-on becomes available for purchase.
FromPlanPhase string `json:"fromPlanPhase"`
// MaxQuantity The maximum number of times the add-on can be purchased for the plan.
// It is not applicable for add-ons with single instance type.
MaxQuantity *int `json:"maxQuantity,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata,omitempty"`
}
PlanAddonReplaceUpdate Resource update operation model.
type PlanCreate ¶
type PlanCreate struct {
// Alignment Alignment configuration for the plan.
Alignment *Alignment `json:"alignment,omitempty"`
// BillingCadence The default billing cadence for subscriptions using this plan.
// Defines how often customers are billed using ISO8601 duration format.
// Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
BillingCadence string `json:"billingCadence"`
// Currency The currency code of the plan.
Currency CurrencyCode `json:"currency"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Key A semi-unique identifier for the resource.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Phases The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
// A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices.
Phases []PlanPhase `json:"phases"`
// ProRatingConfig Default pro-rating configuration for subscriptions using this plan.
ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"`
}
PlanCreate Resource create operation model.
type PlanOrderBy ¶
type PlanOrderBy string
PlanOrderBy Order by options for plans.
const ( PlanOrderByCreatedAt PlanOrderBy = "created_at" PlanOrderById PlanOrderBy = "id" PlanOrderByKey PlanOrderBy = "key" PlanOrderByUpdatedAt PlanOrderBy = "updated_at" PlanOrderByVersion PlanOrderBy = "version" )
Defines values for PlanOrderBy.
type PlanOrderByOrderingOrder ¶
type PlanOrderByOrderingOrder = SortOrder
PlanOrderByOrderingOrder The order direction.
type PlanOrderByOrderingOrderBy ¶
type PlanOrderByOrderingOrderBy = PlanOrderBy
PlanOrderByOrderingOrderBy Order by options for plans.
type PlanPaginatedResponse ¶
type PlanPaginatedResponse struct {
// Items The items in the current page.
Items []Plan `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
PlanPaginatedResponse Paginated response
type PlanPhase ¶
type PlanPhase struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Duration The duration of the phase.
Duration *string `json:"duration"`
// Key A semi-unique identifier for the resource.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// RateCards The rate cards of the plan.
RateCards []RateCard `json:"rateCards"`
}
PlanPhase The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
type PlanReference ¶
type PlanReference struct {
// Id The plan ID.
Id string `json:"id"`
// Key The plan key.
Key string `json:"key"`
// Version The plan version.
Version int `json:"version"`
}
PlanReference References an exact plan.
type PlanReferenceInput ¶
type PlanReferenceInput struct {
// Key The plan key.
Key string `json:"key"`
// Version The plan version.
Version *int `json:"version,omitempty"`
}
PlanReferenceInput References an exact plan defaulting to the current active version.
type PlanReplaceUpdate ¶
type PlanReplaceUpdate struct {
// Alignment Alignment configuration for the plan.
Alignment *Alignment `json:"alignment,omitempty"`
// BillingCadence The default billing cadence for subscriptions using this plan.
// Defines how often customers are billed using ISO8601 duration format.
// Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
BillingCadence string `json:"billingCadence"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Phases The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
// A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices.
Phases []PlanPhase `json:"phases"`
// ProRatingConfig Default pro-rating configuration for subscriptions using this plan.
ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"`
}
PlanReplaceUpdate Resource update operation model.
type PlanStatus ¶
type PlanStatus string
PlanStatus The status of a plan.
const ( PlanStatusActive PlanStatus = "active" PlanStatusArchived PlanStatus = "archived" PlanStatusDraft PlanStatus = "draft" PlanStatusScheduled PlanStatus = "scheduled" )
Defines values for PlanStatus.
type PlanSubscriptionChange ¶
type PlanSubscriptionChange struct {
// Alignment What alignment settings the subscription should have.
Alignment *Alignment `json:"alignment,omitempty"`
// BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the previous subscription billing anchor will be used.
BillingAnchor *time.Time `json:"billingAnchor,omitempty"`
// Description Description for the Subscription.
Description *string `json:"description,omitempty"`
// Metadata Arbitrary metadata associated with the subscription.
Metadata *Metadata `json:"metadata,omitempty"`
// Name The name of the Subscription. If not provided the plan name is used.
Name *string `json:"name,omitempty"`
// Plan The plan reference to change to.
Plan PlanReferenceInput `json:"plan"`
// StartingPhase The key of the phase to start the subscription in.
// If not provided, the subscription will start in the first phase of the plan.
StartingPhase *string `json:"startingPhase,omitempty"`
// Timing Timing configuration for the change, when the change should take effect.
// For changing a subscription, the accepted values depend on the subscription configuration.
Timing SubscriptionTiming `json:"timing"`
}
PlanSubscriptionChange Change subscription based on plan.
type PlanSubscriptionCreate ¶
type PlanSubscriptionCreate struct {
// Alignment What alignment settings the subscription should have.
Alignment *Alignment `json:"alignment,omitempty"`
// BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the subscription start time will be used.
BillingAnchor *time.Time `json:"billingAnchor,omitempty"`
// CustomerId The ID of the customer. Provide either the key or ID. Has presedence over the key.
CustomerId *string `json:"customerId,omitempty"`
// CustomerKey The key of the customer. Provide either the key or ID.
CustomerKey *string `json:"customerKey,omitempty"`
// Description Description for the Subscription.
Description *string `json:"description,omitempty"`
// Metadata Arbitrary metadata associated with the subscription.
Metadata *Metadata `json:"metadata,omitempty"`
// Name The name of the Subscription. If not provided the plan name is used.
Name *string `json:"name,omitempty"`
// Plan The plan reference to change to.
Plan PlanReferenceInput `json:"plan"`
// StartingPhase The key of the phase to start the subscription in.
// If not provided, the subscription will start in the first phase of the plan.
StartingPhase *string `json:"startingPhase,omitempty"`
// Timing Timing configuration for the change, when the change should take effect.
// The default is immediate.
Timing *SubscriptionTiming `json:"timing,omitempty"`
}
PlanSubscriptionCreate Create subscription based on plan.
type PortalToken ¶
type PortalToken struct {
// AllowedMeterSlugs Optional, if defined only the specified meters will be allowed.
AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"`
// CreatedAt [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
CreatedAt *time.Time `json:"createdAt,omitempty"`
Expired *bool `json:"expired,omitempty"`
// ExpiresAt [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// Id ULID (Universally Unique Lexicographically Sortable Identifier).
Id *string `json:"id,omitempty"`
Subject string `json:"subject"`
// Token The token is only returned at creation.
Token *string `json:"token,omitempty"`
}
PortalToken A consumer portal token.
Validator doesn't obey required for readOnly properties See: https://github.com/stoplightio/spectral/issues/1274
type PreconditionFailedProblemResponse ¶
type PreconditionFailedProblemResponse = UnexpectedProblemResponse
PreconditionFailedProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type PricePaymentTerm ¶
type PricePaymentTerm string
PricePaymentTerm The payment term of a flat price. One of: in_advance or in_arrears.
const ( PricePaymentTermInAdvance PricePaymentTerm = "in_advance" PricePaymentTermInArrears PricePaymentTerm = "in_arrears" )
Defines values for PricePaymentTerm.
type PriceTier ¶
type PriceTier struct {
// FlatPrice The flat price component of the tier.
FlatPrice *FlatPrice `json:"flatPrice"`
// UnitPrice The unit price component of the tier.
UnitPrice *UnitPrice `json:"unitPrice"`
// UpToAmount Up to and including to this quantity will be contained in the tier.
// If null, the tier is open-ended.
UpToAmount *Numeric `json:"upToAmount,omitempty"`
}
PriceTier A price tier. At least one price component is required in each tier.
type ProRatingConfig ¶
type ProRatingConfig struct {
// Enabled Whether pro-rating is enabled for this plan.
Enabled bool `json:"enabled"`
// Mode How to handle pro-rating for billing period changes.
Mode ProRatingMode `json:"mode"`
}
ProRatingConfig Configuration for pro-rating behavior.
type ProRatingMode ¶
type ProRatingMode string
ProRatingMode Pro-rating mode options for handling billing period changes.
const (
ProRatingModeProratePrices ProRatingMode = "prorate_prices"
)
Defines values for ProRatingMode.
type Progress ¶
type Progress struct {
// Failed Failed is the number of items that failed
Failed uint64 `json:"failed"`
// Success Success is the number of items that succeeded
Success uint64 `json:"success"`
// Total The total number of items to process
Total uint64 `json:"total"`
// UpdatedAt The time the progress was last updated
UpdatedAt time.Time `json:"updatedAt"`
}
Progress Progress describes a progress of a task.
type PublishAddonResponse ¶
type PublishAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Addon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParsePublishAddonResponse ¶
func ParsePublishAddonResponse(rsp *http.Response) (*PublishAddonResponse, error)
ParsePublishAddonResponse parses an HTTP response from a PublishAddonWithResponse call
func (PublishAddonResponse) Status ¶
func (r PublishAddonResponse) Status() string
Status returns HTTPResponse.Status
func (PublishAddonResponse) StatusCode ¶
func (r PublishAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PublishPlanResponse ¶
type PublishPlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Plan
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParsePublishPlanResponse ¶
func ParsePublishPlanResponse(rsp *http.Response) (*PublishPlanResponse, error)
ParsePublishPlanResponse parses an HTTP response from a PublishPlanWithResponse call
func (PublishPlanResponse) Status ¶
func (r PublishPlanResponse) Status() string
Status returns HTTPResponse.Status
func (PublishPlanResponse) StatusCode ¶
func (r PublishPlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryCustomerGet ¶
type QueryCustomerGet = []CustomerExpand
QueryCustomerGet defines model for queryCustomerGet.
type QueryCustomerListExpand ¶
type QueryCustomerListExpand = []CustomerExpand
QueryCustomerListExpand defines model for queryCustomerList.expand.
type QueryCustomerListIncludeDeleted ¶
type QueryCustomerListIncludeDeleted = bool
QueryCustomerListIncludeDeleted defines model for queryCustomerList.includeDeleted.
type QueryCustomerListKey ¶
type QueryCustomerListKey = string
QueryCustomerListKey defines model for queryCustomerList.key.
type QueryCustomerListName ¶
type QueryCustomerListName = string
QueryCustomerListName defines model for queryCustomerList.name.
type QueryCustomerListPlanKey ¶
type QueryCustomerListPlanKey = string
QueryCustomerListPlanKey defines model for queryCustomerList.planKey.
type QueryCustomerListPrimaryEmail ¶
type QueryCustomerListPrimaryEmail = string
QueryCustomerListPrimaryEmail defines model for queryCustomerList.primaryEmail.
type QueryCustomerListSubject ¶
type QueryCustomerListSubject = string
QueryCustomerListSubject defines model for queryCustomerList.subject.
type QueryMeterListIncludeDeleted ¶
type QueryMeterListIncludeDeleted = bool
QueryMeterListIncludeDeleted defines model for queryMeterList.includeDeleted.
type QueryMeterParams ¶
type QueryMeterParams struct {
// ClientId Client ID
// Useful to track progress of a query.
ClientId *MeterQueryClientId `form:"clientId,omitempty" json:"clientId,omitempty"`
// From Start date-time in RFC 3339 format.
//
// Inclusive.
//
// For example: ?from=2025-01-01T00%3A00%3A00.000Z
From *MeterQueryFrom `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
//
// Inclusive.
//
// For example: ?to=2025-02-01T00%3A00%3A00.000Z
To *MeterQueryTo `form:"to,omitempty" json:"to,omitempty"`
// WindowSize If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group.
//
// For example: ?windowSize=DAY
WindowSize *MeterQueryWindowSize `form:"windowSize,omitempty" json:"windowSize,omitempty"`
// WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones).
// If not specified, the UTC timezone will be used.
//
// For example: ?windowTimeZone=UTC
WindowTimeZone *MeterQueryWindowTimeZone `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"`
// Subject Filtering by multiple subjects.
//
// For example: ?subject=subject-1&subject=subject-2
Subject *MeterQuerySubject `form:"subject,omitempty" json:"subject,omitempty"`
// FilterCustomerId Filtering by multiple customers.
//
// For example: ?filterCustomerId=customer-1&filterCustomerId=customer-2
FilterCustomerId *MeterQueryFilterCustomerId `form:"filterCustomerId,omitempty" json:"filterCustomerId,omitempty"`
// FilterGroupBy Simple filter for group bys with exact match.
//
// For example: ?filterGroupBy[vendor]=openai&filterGroupBy[model]=gpt-4-turbo
FilterGroupBy *MeterQueryFilterGroupBy `json:"filterGroupBy,omitempty"`
// AdvancedMeterGroupByFilters Optional advanced meter group by filters.
// You can use this to filter for values of the meter groupBy fields.
AdvancedMeterGroupByFilters *MeterQueryAdvancedMeterGroupByFilters `form:"advancedMeterGroupByFilters,omitempty" json:"advancedMeterGroupByFilters,omitempty"`
// GroupBy If not specified a single aggregate will be returned for each subject and time window.
// `subject` is a reserved group by value.
//
// For example: ?groupBy=subject&groupBy=model
GroupBy *MeterQueryGroupBy `form:"groupBy,omitempty" json:"groupBy,omitempty"`
}
QueryMeterParams defines parameters for QueryMeter.
type QueryMeterPostJSONRequestBody ¶
type QueryMeterPostJSONRequestBody = MeterQueryRequest
QueryMeterPostJSONRequestBody defines body for QueryMeterPost for application/json ContentType.
type QueryMeterPostResponse ¶
type QueryMeterPostResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeterQueryResult
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseQueryMeterPostResponse ¶
func ParseQueryMeterPostResponse(rsp *http.Response) (*QueryMeterPostResponse, error)
ParseQueryMeterPostResponse parses an HTTP response from a QueryMeterPostWithResponse call
func (QueryMeterPostResponse) Status ¶
func (r QueryMeterPostResponse) Status() string
Status returns HTTPResponse.Status
func (QueryMeterPostResponse) StatusCode ¶
func (r QueryMeterPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryMeterResponse ¶
type QueryMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeterQueryResult
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseQueryMeterResponse ¶
func ParseQueryMeterResponse(rsp *http.Response) (*QueryMeterResponse, error)
ParseQueryMeterResponse parses an HTTP response from a QueryMeterWithResponse call
func (QueryMeterResponse) Status ¶
func (r QueryMeterResponse) Status() string
Status returns HTTPResponse.Status
func (QueryMeterResponse) StatusCode ¶
func (r QueryMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryPortalMeterParams ¶
type QueryPortalMeterParams struct {
// ClientId Client ID
// Useful to track progress of a query.
ClientId *MeterQueryClientId `form:"clientId,omitempty" json:"clientId,omitempty"`
// From Start date-time in RFC 3339 format.
//
// Inclusive.
//
// For example: ?from=2025-01-01T00%3A00%3A00.000Z
From *MeterQueryFrom `form:"from,omitempty" json:"from,omitempty"`
// To End date-time in RFC 3339 format.
//
// Inclusive.
//
// For example: ?to=2025-02-01T00%3A00%3A00.000Z
To *MeterQueryTo `form:"to,omitempty" json:"to,omitempty"`
// WindowSize If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group.
//
// For example: ?windowSize=DAY
WindowSize *MeterQueryWindowSize `form:"windowSize,omitempty" json:"windowSize,omitempty"`
// WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones).
// If not specified, the UTC timezone will be used.
//
// For example: ?windowTimeZone=UTC
WindowTimeZone *MeterQueryWindowTimeZone `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"`
// FilterCustomerId Filtering by multiple customers.
//
// For example: ?filterCustomerId=customer-1&filterCustomerId=customer-2
FilterCustomerId *MeterQueryFilterCustomerId `form:"filterCustomerId,omitempty" json:"filterCustomerId,omitempty"`
// FilterGroupBy Simple filter for group bys with exact match.
//
// For example: ?filterGroupBy[vendor]=openai&filterGroupBy[model]=gpt-4-turbo
FilterGroupBy *MeterQueryFilterGroupBy `json:"filterGroupBy,omitempty"`
// AdvancedMeterGroupByFilters Optional advanced meter group by filters.
// You can use this to filter for values of the meter groupBy fields.
AdvancedMeterGroupByFilters *MeterQueryAdvancedMeterGroupByFilters `form:"advancedMeterGroupByFilters,omitempty" json:"advancedMeterGroupByFilters,omitempty"`
// GroupBy If not specified a single aggregate will be returned for each subject and time window.
// `subject` is a reserved group by value.
//
// For example: ?groupBy=subject&groupBy=model
GroupBy *MeterQueryGroupBy `form:"groupBy,omitempty" json:"groupBy,omitempty"`
}
QueryPortalMeterParams defines parameters for QueryPortalMeter.
type QueryPortalMeterResponse ¶
type QueryPortalMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeterQueryResult
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseQueryPortalMeterResponse ¶
func ParseQueryPortalMeterResponse(rsp *http.Response) (*QueryPortalMeterResponse, error)
ParseQueryPortalMeterResponse parses an HTTP response from a QueryPortalMeterWithResponse call
func (QueryPortalMeterResponse) Status ¶
func (r QueryPortalMeterResponse) Status() string
Status returns HTTPResponse.Status
func (QueryPortalMeterResponse) StatusCode ¶
func (r QueryPortalMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RateCard ¶
type RateCard struct {
// contains filtered or unexported fields
}
RateCard A rate card defines the pricing and entitlement of a feature or service.
func (RateCard) AsRateCardFlatFee ¶
func (t RateCard) AsRateCardFlatFee() (RateCardFlatFee, error)
AsRateCardFlatFee returns the union data inside the RateCard as a RateCardFlatFee
func (RateCard) AsRateCardUsageBased ¶
func (t RateCard) AsRateCardUsageBased() (RateCardUsageBased, error)
AsRateCardUsageBased returns the union data inside the RateCard as a RateCardUsageBased
func (RateCard) Discriminator ¶
func (*RateCard) FromRateCardFlatFee ¶
func (t *RateCard) FromRateCardFlatFee(v RateCardFlatFee) error
FromRateCardFlatFee overwrites any union data inside the RateCard as the provided RateCardFlatFee
func (*RateCard) FromRateCardUsageBased ¶
func (t *RateCard) FromRateCardUsageBased(v RateCardUsageBased) error
FromRateCardUsageBased overwrites any union data inside the RateCard as the provided RateCardUsageBased
func (RateCard) MarshalJSON ¶
func (*RateCard) MergeRateCardFlatFee ¶
func (t *RateCard) MergeRateCardFlatFee(v RateCardFlatFee) error
MergeRateCardFlatFee performs a merge with any union data inside the RateCard, using the provided RateCardFlatFee
func (*RateCard) MergeRateCardUsageBased ¶
func (t *RateCard) MergeRateCardUsageBased(v RateCardUsageBased) error
MergeRateCardUsageBased performs a merge with any union data inside the RateCard, using the provided RateCardUsageBased
func (*RateCard) UnmarshalJSON ¶
func (RateCard) ValueByDiscriminator ¶
type RateCardBooleanEntitlement ¶
type RateCardBooleanEntitlement struct {
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
Type RateCardBooleanEntitlementType `json:"type"`
}
RateCardBooleanEntitlement Entitlement template of a boolean entitlement.
type RateCardBooleanEntitlementType ¶
type RateCardBooleanEntitlementType string
RateCardBooleanEntitlementType defines model for RateCardBooleanEntitlement.Type.
const (
RateCardBooleanEntitlementTypeBoolean RateCardBooleanEntitlementType = "boolean"
)
Defines values for RateCardBooleanEntitlementType.
type RateCardEntitlement ¶
type RateCardEntitlement struct {
// contains filtered or unexported fields
}
RateCardEntitlement Entitlement templates are used to define the entitlements of a plan. Features are omitted from the entitlement template, as they are defined in the rate card.
func (RateCardEntitlement) AsRateCardBooleanEntitlement ¶
func (t RateCardEntitlement) AsRateCardBooleanEntitlement() (RateCardBooleanEntitlement, error)
AsRateCardBooleanEntitlement returns the union data inside the RateCardEntitlement as a RateCardBooleanEntitlement
func (RateCardEntitlement) AsRateCardMeteredEntitlement ¶
func (t RateCardEntitlement) AsRateCardMeteredEntitlement() (RateCardMeteredEntitlement, error)
AsRateCardMeteredEntitlement returns the union data inside the RateCardEntitlement as a RateCardMeteredEntitlement
func (RateCardEntitlement) AsRateCardStaticEntitlement ¶
func (t RateCardEntitlement) AsRateCardStaticEntitlement() (RateCardStaticEntitlement, error)
AsRateCardStaticEntitlement returns the union data inside the RateCardEntitlement as a RateCardStaticEntitlement
func (RateCardEntitlement) Discriminator ¶
func (t RateCardEntitlement) Discriminator() (string, error)
func (*RateCardEntitlement) FromRateCardBooleanEntitlement ¶
func (t *RateCardEntitlement) FromRateCardBooleanEntitlement(v RateCardBooleanEntitlement) error
FromRateCardBooleanEntitlement overwrites any union data inside the RateCardEntitlement as the provided RateCardBooleanEntitlement
func (*RateCardEntitlement) FromRateCardMeteredEntitlement ¶
func (t *RateCardEntitlement) FromRateCardMeteredEntitlement(v RateCardMeteredEntitlement) error
FromRateCardMeteredEntitlement overwrites any union data inside the RateCardEntitlement as the provided RateCardMeteredEntitlement
func (*RateCardEntitlement) FromRateCardStaticEntitlement ¶
func (t *RateCardEntitlement) FromRateCardStaticEntitlement(v RateCardStaticEntitlement) error
FromRateCardStaticEntitlement overwrites any union data inside the RateCardEntitlement as the provided RateCardStaticEntitlement
func (RateCardEntitlement) MarshalJSON ¶
func (t RateCardEntitlement) MarshalJSON() ([]byte, error)
func (*RateCardEntitlement) MergeRateCardBooleanEntitlement ¶
func (t *RateCardEntitlement) MergeRateCardBooleanEntitlement(v RateCardBooleanEntitlement) error
MergeRateCardBooleanEntitlement performs a merge with any union data inside the RateCardEntitlement, using the provided RateCardBooleanEntitlement
func (*RateCardEntitlement) MergeRateCardMeteredEntitlement ¶
func (t *RateCardEntitlement) MergeRateCardMeteredEntitlement(v RateCardMeteredEntitlement) error
MergeRateCardMeteredEntitlement performs a merge with any union data inside the RateCardEntitlement, using the provided RateCardMeteredEntitlement
func (*RateCardEntitlement) MergeRateCardStaticEntitlement ¶
func (t *RateCardEntitlement) MergeRateCardStaticEntitlement(v RateCardStaticEntitlement) error
MergeRateCardStaticEntitlement performs a merge with any union data inside the RateCardEntitlement, using the provided RateCardStaticEntitlement
func (*RateCardEntitlement) UnmarshalJSON ¶
func (t *RateCardEntitlement) UnmarshalJSON(b []byte) error
func (RateCardEntitlement) ValueByDiscriminator ¶
func (t RateCardEntitlement) ValueByDiscriminator() (interface{}, error)
type RateCardFlatFee ¶
type RateCardFlatFee struct {
// BillingCadence The billing cadence of the rate card.
// When null it means it is a one time fee.
BillingCadence *string `json:"billingCadence"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Discounts The discount of the rate card. For flat fee rate cards only percentage discounts are supported.
// Only available when price is set.
Discounts *Discounts `json:"discounts,omitempty"`
// EntitlementTemplate The entitlement of the rate card.
// Only available when featureKey is set.
EntitlementTemplate *RateCardEntitlement `json:"entitlementTemplate,omitempty"`
// FeatureKey The feature the customer is entitled to use.
FeatureKey *string `json:"featureKey,omitempty"`
// Key A semi-unique identifier for the resource.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Price The price of the rate card.
// When null, the feature or service is free.
Price *FlatPriceWithPaymentTerm `json:"price"`
// TaxConfig The tax config of the rate card.
// When undefined, the tax config of the feature or the default tax config of the plan is used.
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
// Type The type of the RateCard.
Type RateCardFlatFeeType `json:"type"`
}
RateCardFlatFee A flat fee rate card defines a one-time purchase or a recurring fee.
type RateCardFlatFeeType ¶
type RateCardFlatFeeType string
RateCardFlatFeeType The type of the RateCard.
const (
RateCardFlatFeeTypeFlatFee RateCardFlatFeeType = "flat_fee"
)
Defines values for RateCardFlatFeeType.
type RateCardMeteredEntitlement ¶
type RateCardMeteredEntitlement struct {
// IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
IsSoftLimit *bool `json:"isSoftLimit,omitempty"`
// IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.
// If an amount is specified here, a grant will be created alongside the entitlement with the specified amount.
// That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.
// Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
IssueAfterReset *float64 `json:"issueAfterReset,omitempty"`
// IssueAfterResetPriority Defines the grant priority for the default grant.
IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
// PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0.
PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"`
Type RateCardMeteredEntitlementType `json:"type"`
// UsagePeriod The interval of the metered entitlement.
// Defaults to the billing cadence of the rate card.
UsagePeriod *string `json:"usagePeriod,omitempty"`
}
RateCardMeteredEntitlement The entitlement template with a metered entitlement.
type RateCardMeteredEntitlementType ¶
type RateCardMeteredEntitlementType string
RateCardMeteredEntitlementType defines model for RateCardMeteredEntitlement.Type.
const (
RateCardMeteredEntitlementTypeMetered RateCardMeteredEntitlementType = "metered"
)
Defines values for RateCardMeteredEntitlementType.
type RateCardStaticEntitlement ¶
type RateCardStaticEntitlement struct {
// Config The JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object.
Config json.RawMessage `json:"config"`
// Metadata Additional metadata for the feature.
Metadata *Metadata `json:"metadata,omitempty"`
Type RateCardStaticEntitlementType `json:"type"`
}
RateCardStaticEntitlement Entitlement template of a static entitlement.
type RateCardStaticEntitlementType ¶
type RateCardStaticEntitlementType string
RateCardStaticEntitlementType defines model for RateCardStaticEntitlement.Type.
const (
RateCardStaticEntitlementTypeStatic RateCardStaticEntitlementType = "static"
)
Defines values for RateCardStaticEntitlementType.
type RateCardUsageBased ¶
type RateCardUsageBased struct {
// BillingCadence The billing cadence of the rate card.
BillingCadence string `json:"billingCadence"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Discounts The discounts of the rate card.
//
// Flat fee rate cards only support percentage discounts.
Discounts *Discounts `json:"discounts,omitempty"`
// EntitlementTemplate The entitlement of the rate card.
// Only available when featureKey is set.
EntitlementTemplate *RateCardEntitlement `json:"entitlementTemplate,omitempty"`
// FeatureKey The feature the customer is entitled to use.
FeatureKey *string `json:"featureKey,omitempty"`
// Key A semi-unique identifier for the resource.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Price The price of the rate card.
// When null, the feature or service is free.
Price *RateCardUsageBasedPrice `json:"price"`
// TaxConfig The tax config of the rate card.
// When undefined, the tax config of the feature or the default tax config of the plan is used.
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
// Type The type of the RateCard.
Type RateCardUsageBasedType `json:"type"`
}
RateCardUsageBased A usage-based rate card defines a price based on usage.
type RateCardUsageBasedPrice ¶
type RateCardUsageBasedPrice struct {
// contains filtered or unexported fields
}
RateCardUsageBasedPrice The price of the usage based rate card.
func (RateCardUsageBasedPrice) AsDynamicPriceWithCommitments ¶
func (t RateCardUsageBasedPrice) AsDynamicPriceWithCommitments() (DynamicPriceWithCommitments, error)
AsDynamicPriceWithCommitments returns the union data inside the RateCardUsageBasedPrice as a DynamicPriceWithCommitments
func (RateCardUsageBasedPrice) AsFlatPriceWithPaymentTerm ¶
func (t RateCardUsageBasedPrice) AsFlatPriceWithPaymentTerm() (FlatPriceWithPaymentTerm, error)
AsFlatPriceWithPaymentTerm returns the union data inside the RateCardUsageBasedPrice as a FlatPriceWithPaymentTerm
func (RateCardUsageBasedPrice) AsPackagePriceWithCommitments ¶
func (t RateCardUsageBasedPrice) AsPackagePriceWithCommitments() (PackagePriceWithCommitments, error)
AsPackagePriceWithCommitments returns the union data inside the RateCardUsageBasedPrice as a PackagePriceWithCommitments
func (RateCardUsageBasedPrice) AsTieredPriceWithCommitments ¶
func (t RateCardUsageBasedPrice) AsTieredPriceWithCommitments() (TieredPriceWithCommitments, error)
AsTieredPriceWithCommitments returns the union data inside the RateCardUsageBasedPrice as a TieredPriceWithCommitments
func (RateCardUsageBasedPrice) AsUnitPriceWithCommitments ¶
func (t RateCardUsageBasedPrice) AsUnitPriceWithCommitments() (UnitPriceWithCommitments, error)
AsUnitPriceWithCommitments returns the union data inside the RateCardUsageBasedPrice as a UnitPriceWithCommitments
func (RateCardUsageBasedPrice) Discriminator ¶
func (t RateCardUsageBasedPrice) Discriminator() (string, error)
func (*RateCardUsageBasedPrice) FromDynamicPriceWithCommitments ¶
func (t *RateCardUsageBasedPrice) FromDynamicPriceWithCommitments(v DynamicPriceWithCommitments) error
FromDynamicPriceWithCommitments overwrites any union data inside the RateCardUsageBasedPrice as the provided DynamicPriceWithCommitments
func (*RateCardUsageBasedPrice) FromFlatPriceWithPaymentTerm ¶
func (t *RateCardUsageBasedPrice) FromFlatPriceWithPaymentTerm(v FlatPriceWithPaymentTerm) error
FromFlatPriceWithPaymentTerm overwrites any union data inside the RateCardUsageBasedPrice as the provided FlatPriceWithPaymentTerm
func (*RateCardUsageBasedPrice) FromPackagePriceWithCommitments ¶
func (t *RateCardUsageBasedPrice) FromPackagePriceWithCommitments(v PackagePriceWithCommitments) error
FromPackagePriceWithCommitments overwrites any union data inside the RateCardUsageBasedPrice as the provided PackagePriceWithCommitments
func (*RateCardUsageBasedPrice) FromTieredPriceWithCommitments ¶
func (t *RateCardUsageBasedPrice) FromTieredPriceWithCommitments(v TieredPriceWithCommitments) error
FromTieredPriceWithCommitments overwrites any union data inside the RateCardUsageBasedPrice as the provided TieredPriceWithCommitments
func (*RateCardUsageBasedPrice) FromUnitPriceWithCommitments ¶
func (t *RateCardUsageBasedPrice) FromUnitPriceWithCommitments(v UnitPriceWithCommitments) error
FromUnitPriceWithCommitments overwrites any union data inside the RateCardUsageBasedPrice as the provided UnitPriceWithCommitments
func (RateCardUsageBasedPrice) MarshalJSON ¶
func (t RateCardUsageBasedPrice) MarshalJSON() ([]byte, error)
func (*RateCardUsageBasedPrice) MergeDynamicPriceWithCommitments ¶
func (t *RateCardUsageBasedPrice) MergeDynamicPriceWithCommitments(v DynamicPriceWithCommitments) error
MergeDynamicPriceWithCommitments performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided DynamicPriceWithCommitments
func (*RateCardUsageBasedPrice) MergeFlatPriceWithPaymentTerm ¶
func (t *RateCardUsageBasedPrice) MergeFlatPriceWithPaymentTerm(v FlatPriceWithPaymentTerm) error
MergeFlatPriceWithPaymentTerm performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided FlatPriceWithPaymentTerm
func (*RateCardUsageBasedPrice) MergePackagePriceWithCommitments ¶
func (t *RateCardUsageBasedPrice) MergePackagePriceWithCommitments(v PackagePriceWithCommitments) error
MergePackagePriceWithCommitments performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided PackagePriceWithCommitments
func (*RateCardUsageBasedPrice) MergeTieredPriceWithCommitments ¶
func (t *RateCardUsageBasedPrice) MergeTieredPriceWithCommitments(v TieredPriceWithCommitments) error
MergeTieredPriceWithCommitments performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided TieredPriceWithCommitments
func (*RateCardUsageBasedPrice) MergeUnitPriceWithCommitments ¶
func (t *RateCardUsageBasedPrice) MergeUnitPriceWithCommitments(v UnitPriceWithCommitments) error
MergeUnitPriceWithCommitments performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided UnitPriceWithCommitments
func (*RateCardUsageBasedPrice) UnmarshalJSON ¶
func (t *RateCardUsageBasedPrice) UnmarshalJSON(b []byte) error
func (RateCardUsageBasedPrice) ValueByDiscriminator ¶
func (t RateCardUsageBasedPrice) ValueByDiscriminator() (interface{}, error)
type RateCardUsageBasedType ¶
type RateCardUsageBasedType string
RateCardUsageBasedType The type of the RateCard.
const (
RateCardUsageBasedTypeUsageBased RateCardUsageBasedType = "usage_based"
)
Defines values for RateCardUsageBasedType.
type RecalculateInvoiceTaxActionResponse ¶
type RecalculateInvoiceTaxActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseRecalculateInvoiceTaxActionResponse ¶
func ParseRecalculateInvoiceTaxActionResponse(rsp *http.Response) (*RecalculateInvoiceTaxActionResponse, error)
ParseRecalculateInvoiceTaxActionResponse parses an HTTP response from a RecalculateInvoiceTaxActionWithResponse call
func (RecalculateInvoiceTaxActionResponse) Status ¶
func (r RecalculateInvoiceTaxActionResponse) Status() string
Status returns HTTPResponse.Status
func (RecalculateInvoiceTaxActionResponse) StatusCode ¶
func (r RecalculateInvoiceTaxActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RecurringPeriod ¶
type RecurringPeriod struct {
// Anchor A date-time anchor to base the recurring period on.
Anchor time.Time `json:"anchor"`
// Interval The unit of time for the interval. Heuristically maps ISO duraitons to enum values or returns the ISO duration.
Interval RecurringPeriodInterval `json:"interval"`
// IntervalISO The unit of time for the interval in ISO8601 format.
IntervalISO string `json:"intervalISO"`
}
RecurringPeriod Recurring period with an interval and an anchor.
type RecurringPeriodCreateInput ¶
type RecurringPeriodCreateInput struct {
// Anchor A date-time anchor to base the recurring period on.
Anchor *time.Time `json:"anchor,omitempty"`
// Interval The unit of time for the interval.
Interval RecurringPeriodInterval `json:"interval"`
}
RecurringPeriodCreateInput Recurring period with an interval and an anchor.
type RecurringPeriodInterval ¶
type RecurringPeriodInterval struct {
// contains filtered or unexported fields
}
RecurringPeriodInterval Period duration for the recurrence
func (RecurringPeriodInterval) AsRecurringPeriodInterval0 ¶
func (t RecurringPeriodInterval) AsRecurringPeriodInterval0() (RecurringPeriodInterval0, error)
AsRecurringPeriodInterval0 returns the union data inside the RecurringPeriodInterval as a RecurringPeriodInterval0
func (RecurringPeriodInterval) AsRecurringPeriodIntervalEnum ¶
func (t RecurringPeriodInterval) AsRecurringPeriodIntervalEnum() (RecurringPeriodIntervalEnum, error)
AsRecurringPeriodIntervalEnum returns the union data inside the RecurringPeriodInterval as a RecurringPeriodIntervalEnum
func (*RecurringPeriodInterval) FromRecurringPeriodInterval0 ¶
func (t *RecurringPeriodInterval) FromRecurringPeriodInterval0(v RecurringPeriodInterval0) error
FromRecurringPeriodInterval0 overwrites any union data inside the RecurringPeriodInterval as the provided RecurringPeriodInterval0
func (*RecurringPeriodInterval) FromRecurringPeriodIntervalEnum ¶
func (t *RecurringPeriodInterval) FromRecurringPeriodIntervalEnum(v RecurringPeriodIntervalEnum) error
FromRecurringPeriodIntervalEnum overwrites any union data inside the RecurringPeriodInterval as the provided RecurringPeriodIntervalEnum
func (RecurringPeriodInterval) MarshalJSON ¶
func (t RecurringPeriodInterval) MarshalJSON() ([]byte, error)
func (*RecurringPeriodInterval) MergeRecurringPeriodInterval0 ¶
func (t *RecurringPeriodInterval) MergeRecurringPeriodInterval0(v RecurringPeriodInterval0) error
MergeRecurringPeriodInterval0 performs a merge with any union data inside the RecurringPeriodInterval, using the provided RecurringPeriodInterval0
func (*RecurringPeriodInterval) MergeRecurringPeriodIntervalEnum ¶
func (t *RecurringPeriodInterval) MergeRecurringPeriodIntervalEnum(v RecurringPeriodIntervalEnum) error
MergeRecurringPeriodIntervalEnum performs a merge with any union data inside the RecurringPeriodInterval, using the provided RecurringPeriodIntervalEnum
func (*RecurringPeriodInterval) UnmarshalJSON ¶
func (t *RecurringPeriodInterval) UnmarshalJSON(b []byte) error
type RecurringPeriodInterval0 ¶
type RecurringPeriodInterval0 = string
RecurringPeriodInterval0 defines model for .
type RecurringPeriodIntervalEnum ¶
type RecurringPeriodIntervalEnum string
RecurringPeriodIntervalEnum The unit of time for the interval. One of: `day`, `week`, `month`, or `year`.
const ( RecurringPeriodIntervalEnumDAY RecurringPeriodIntervalEnum = "DAY" RecurringPeriodIntervalEnumMONTH RecurringPeriodIntervalEnum = "MONTH" RecurringPeriodIntervalEnumWEEK RecurringPeriodIntervalEnum = "WEEK" RecurringPeriodIntervalEnumYEAR RecurringPeriodIntervalEnum = "YEAR" )
Defines values for RecurringPeriodIntervalEnum.
type RecurringPeriodV2 ¶
type RecurringPeriodV2 struct {
// Anchor A date-time anchor to base the recurring period on.
Anchor time.Time `json:"anchor"`
// Interval The unit of time for the interval. Heuristically maps ISO duraitons to enum values or returns the ISO duration.
Interval RecurringPeriodInterval `json:"interval"`
}
RecurringPeriodV2 Recurring period with an interval and an anchor.
type RemovePhaseShifting ¶
type RemovePhaseShifting string
RemovePhaseShifting The direction of the phase shift when a phase is removed.
const ( RemovePhaseShiftingNext RemovePhaseShifting = "next" RemovePhaseShiftingPrev RemovePhaseShifting = "prev" )
Defines values for RemovePhaseShifting.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResendNotificationEventJSONRequestBody ¶
type ResendNotificationEventJSONRequestBody = NotificationEventResendRequest
ResendNotificationEventJSONRequestBody defines body for ResendNotificationEvent for application/json ContentType.
type ResendNotificationEventResponse ¶
type ResendNotificationEventResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseResendNotificationEventResponse ¶
func ParseResendNotificationEventResponse(rsp *http.Response) (*ResendNotificationEventResponse, error)
ParseResendNotificationEventResponse parses an HTTP response from a ResendNotificationEventWithResponse call
func (ResendNotificationEventResponse) Status ¶
func (r ResendNotificationEventResponse) Status() string
Status returns HTTPResponse.Status
func (ResendNotificationEventResponse) StatusCode ¶
func (r ResendNotificationEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResetCustomerEntitlementUsageV2JSONRequestBody ¶
type ResetCustomerEntitlementUsageV2JSONRequestBody = ResetEntitlementUsageInput
ResetCustomerEntitlementUsageV2JSONRequestBody defines body for ResetCustomerEntitlementUsageV2 for application/json ContentType.
type ResetCustomerEntitlementUsageV2Response ¶
type ResetCustomerEntitlementUsageV2Response struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseResetCustomerEntitlementUsageV2Response ¶
func ParseResetCustomerEntitlementUsageV2Response(rsp *http.Response) (*ResetCustomerEntitlementUsageV2Response, error)
ParseResetCustomerEntitlementUsageV2Response parses an HTTP response from a ResetCustomerEntitlementUsageV2WithResponse call
func (ResetCustomerEntitlementUsageV2Response) Status ¶
func (r ResetCustomerEntitlementUsageV2Response) Status() string
Status returns HTTPResponse.Status
func (ResetCustomerEntitlementUsageV2Response) StatusCode ¶
func (r ResetCustomerEntitlementUsageV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResetEntitlementUsageInput ¶
type ResetEntitlementUsageInput struct {
// EffectiveAt The time at which the reset takes effect, defaults to now. The reset cannot be in the future. The provided value is truncated to the minute due to how historical meter data is stored.
EffectiveAt *time.Time `json:"effectiveAt,omitempty"`
// PreserveOverage Determines whether the overage is preserved or forgiven, overriding the entitlement's default behavior.
// - If true, the overage is preserved.
// - If false, the overage is forgiven.
PreserveOverage *bool `json:"preserveOverage,omitempty"`
// RetainAnchor Determines whether the usage period anchor is retained or reset to the effectiveAt time.
// - If true, the usage period anchor is retained.
// - If false, the usage period anchor is reset to the effectiveAt time.
RetainAnchor *bool `json:"retainAnchor,omitempty"`
}
ResetEntitlementUsageInput Reset parameters
type ResetEntitlementUsageJSONRequestBody ¶
type ResetEntitlementUsageJSONRequestBody = ResetEntitlementUsageInput
ResetEntitlementUsageJSONRequestBody defines body for ResetEntitlementUsage for application/json ContentType.
type ResetEntitlementUsageResponse ¶
type ResetEntitlementUsageResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseResetEntitlementUsageResponse ¶
func ParseResetEntitlementUsageResponse(rsp *http.Response) (*ResetEntitlementUsageResponse, error)
ParseResetEntitlementUsageResponse parses an HTTP response from a ResetEntitlementUsageWithResponse call
func (ResetEntitlementUsageResponse) Status ¶
func (r ResetEntitlementUsageResponse) Status() string
Status returns HTTPResponse.Status
func (ResetEntitlementUsageResponse) StatusCode ¶
func (r ResetEntitlementUsageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RestoreSubscriptionResponse ¶
type RestoreSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Subscription
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseRestoreSubscriptionResponse ¶
func ParseRestoreSubscriptionResponse(rsp *http.Response) (*RestoreSubscriptionResponse, error)
ParseRestoreSubscriptionResponse parses an HTTP response from a RestoreSubscriptionWithResponse call
func (RestoreSubscriptionResponse) Status ¶
func (r RestoreSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (RestoreSubscriptionResponse) StatusCode ¶
func (r RestoreSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RetryInvoiceActionResponse ¶
type RetryInvoiceActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseRetryInvoiceActionResponse ¶
func ParseRetryInvoiceActionResponse(rsp *http.Response) (*RetryInvoiceActionResponse, error)
ParseRetryInvoiceActionResponse parses an HTTP response from a RetryInvoiceActionWithResponse call
func (RetryInvoiceActionResponse) Status ¶
func (r RetryInvoiceActionResponse) Status() string
Status returns HTTPResponse.Status
func (RetryInvoiceActionResponse) StatusCode ¶
func (r RetryInvoiceActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SandboxApp ¶
type SandboxApp struct {
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Listing The marketplace listing that this installed app is based on.
Listing MarketplaceListing `json:"listing"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Status Status of the app connection.
Status AppStatus `json:"status"`
// Type The app's type is Sandbox.
Type SandboxAppType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
SandboxApp Sandbox app can be used for testing OpenMeter features.
The app is not creating anything in external systems, thus it is safe to use for verifying OpenMeter features.
type SandboxAppReplaceUpdate ¶
type SandboxAppReplaceUpdate struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Type The app's type is Sandbox.
Type SandboxAppReplaceUpdateType `json:"type"`
}
SandboxAppReplaceUpdate Resource update operation model.
type SandboxAppReplaceUpdateType ¶
type SandboxAppReplaceUpdateType string
SandboxAppReplaceUpdateType The app's type is Sandbox.
const (
SandboxAppReplaceUpdateTypeSandbox SandboxAppReplaceUpdateType = "sandbox"
)
Defines values for SandboxAppReplaceUpdateType.
type SandboxAppType ¶
type SandboxAppType string
SandboxAppType The app's type is Sandbox.
const (
SandboxAppTypeSandbox SandboxAppType = "sandbox"
)
Defines values for SandboxAppType.
type SandboxCustomerAppData ¶
type SandboxCustomerAppData struct {
// App The installed sandbox app this data belongs to.
App *SandboxApp `json:"app,omitempty"`
// Id The app ID.
// If not provided, it will use the global default for the app type.
Id *string `json:"id,omitempty"`
// Type The app name.
Type SandboxCustomerAppDataType `json:"type"`
}
SandboxCustomerAppData Sandbox Customer App Data.
type SandboxCustomerAppDataType ¶
type SandboxCustomerAppDataType string
SandboxCustomerAppDataType The app name.
const (
SandboxCustomerAppDataTypeSandbox SandboxCustomerAppDataType = "sandbox"
)
Defines values for SandboxCustomerAppDataType.
type ServiceUnavailableProblemResponse ¶
type ServiceUnavailableProblemResponse = UnexpectedProblemResponse
ServiceUnavailableProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type SimulateInvoiceJSONRequestBody ¶
type SimulateInvoiceJSONRequestBody = InvoiceSimulationInput
SimulateInvoiceJSONRequestBody defines body for SimulateInvoice for application/json ContentType.
type SimulateInvoiceResponse ¶
type SimulateInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseSimulateInvoiceResponse ¶
func ParseSimulateInvoiceResponse(rsp *http.Response) (*SimulateInvoiceResponse, error)
ParseSimulateInvoiceResponse parses an HTTP response from a SimulateInvoiceWithResponse call
func (SimulateInvoiceResponse) Status ¶
func (r SimulateInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (SimulateInvoiceResponse) StatusCode ¶
func (r SimulateInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SnapshotQuantitiesInvoiceActionResponse ¶
type SnapshotQuantitiesInvoiceActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseSnapshotQuantitiesInvoiceActionResponse ¶
func ParseSnapshotQuantitiesInvoiceActionResponse(rsp *http.Response) (*SnapshotQuantitiesInvoiceActionResponse, error)
ParseSnapshotQuantitiesInvoiceActionResponse parses an HTTP response from a SnapshotQuantitiesInvoiceActionWithResponse call
func (SnapshotQuantitiesInvoiceActionResponse) Status ¶
func (r SnapshotQuantitiesInvoiceActionResponse) Status() string
Status returns HTTPResponse.Status
func (SnapshotQuantitiesInvoiceActionResponse) StatusCode ¶
func (r SnapshotQuantitiesInvoiceActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StripeAPIKeyInput ¶
type StripeAPIKeyInput struct {
SecretAPIKey string `json:"secretAPIKey"`
}
StripeAPIKeyInput The Stripe API key input. Used to authenticate with the Stripe API.
type StripeApp ¶
type StripeApp struct {
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Listing The marketplace listing that this installed app is based on.
Listing MarketplaceListing `json:"listing"`
// Livemode Livemode, true if the app is in production mode.
Livemode bool `json:"livemode"`
// MaskedAPIKey The masked API key.
// Only shows the first 8 and last 3 characters.
MaskedAPIKey string `json:"maskedAPIKey"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Status Status of the app connection.
Status AppStatus `json:"status"`
// StripeAccountId The Stripe account ID.
StripeAccountId string `json:"stripeAccountId"`
// Type The app's type is Stripe.
Type StripeAppType `json:"type"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
StripeApp A installed Stripe app object.
type StripeAppReplaceUpdate ¶
type StripeAppReplaceUpdate struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// SecretAPIKey The Stripe API key.
SecretAPIKey *string `json:"secretAPIKey,omitempty"`
// Type The app's type is Stripe.
Type StripeAppReplaceUpdateType `json:"type"`
}
StripeAppReplaceUpdate Resource update operation model.
type StripeAppReplaceUpdateType ¶
type StripeAppReplaceUpdateType string
StripeAppReplaceUpdateType The app's type is Stripe.
const (
StripeAppReplaceUpdateTypeStripe StripeAppReplaceUpdateType = "stripe"
)
Defines values for StripeAppReplaceUpdateType.
type StripeAppType ¶
type StripeAppType string
StripeAppType The app's type is Stripe.
const (
StripeAppTypeStripe StripeAppType = "stripe"
)
Defines values for StripeAppType.
type StripeCheckoutSessionMode ¶
type StripeCheckoutSessionMode string
StripeCheckoutSessionMode Stripe CheckoutSession.mode
const (
StripeCheckoutSessionModeSetup StripeCheckoutSessionMode = "setup"
)
Defines values for StripeCheckoutSessionMode.
type StripeCustomerAppData ¶
type StripeCustomerAppData struct {
// App The installed stripe app this data belongs to.
App *StripeApp `json:"app,omitempty"`
// Id The app ID.
// If not provided, it will use the global default for the app type.
Id *string `json:"id,omitempty"`
// StripeCustomerId The Stripe customer ID.
StripeCustomerId string `json:"stripeCustomerId"`
// StripeDefaultPaymentMethodId The Stripe default payment method ID.
StripeDefaultPaymentMethodId *string `json:"stripeDefaultPaymentMethodId,omitempty"`
// Type The app name.
Type StripeCustomerAppDataType `json:"type"`
}
StripeCustomerAppData Stripe Customer App Data.
type StripeCustomerAppDataBase ¶
type StripeCustomerAppDataBase struct {
// StripeCustomerId The Stripe customer ID.
StripeCustomerId string `json:"stripeCustomerId"`
// StripeDefaultPaymentMethodId The Stripe default payment method ID.
StripeDefaultPaymentMethodId *string `json:"stripeDefaultPaymentMethodId,omitempty"`
}
StripeCustomerAppDataBase Stripe Customer App Data Base.
type StripeCustomerAppDataCreateOrUpdateItem ¶
type StripeCustomerAppDataCreateOrUpdateItem struct {
// Id The app ID.
// If not provided, it will use the global default for the app type.
Id *string `json:"id,omitempty"`
// StripeCustomerId The Stripe customer ID.
StripeCustomerId string `json:"stripeCustomerId"`
// StripeDefaultPaymentMethodId The Stripe default payment method ID.
StripeDefaultPaymentMethodId *string `json:"stripeDefaultPaymentMethodId,omitempty"`
// Type The app name.
Type StripeCustomerAppDataCreateOrUpdateItemType `json:"type"`
}
StripeCustomerAppDataCreateOrUpdateItem Stripe Customer App Data.
type StripeCustomerAppDataCreateOrUpdateItemType ¶
type StripeCustomerAppDataCreateOrUpdateItemType string
StripeCustomerAppDataCreateOrUpdateItemType The app name.
const (
StripeCustomerAppDataCreateOrUpdateItemTypeStripe StripeCustomerAppDataCreateOrUpdateItemType = "stripe"
)
Defines values for StripeCustomerAppDataCreateOrUpdateItemType.
type StripeCustomerAppDataType ¶
type StripeCustomerAppDataType string
StripeCustomerAppDataType The app name.
const (
StripeCustomerAppDataTypeStripe StripeCustomerAppDataType = "stripe"
)
Defines values for StripeCustomerAppDataType.
type StripeCustomerPortalSession ¶
type StripeCustomerPortalSession struct {
// ConfigurationId Configuration used to customize the customer portal.
//
// See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-configuration
ConfigurationId string `json:"configurationId"`
// CreatedAt Created at.
//
// See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-created
CreatedAt time.Time `json:"createdAt"`
// Id The ID of the customer portal session.
//
// See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-id
Id string `json:"id"`
// Livemode Livemode.
//
// See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-livemode
Livemode bool `json:"livemode"`
// Locale Status.
// /**
// The IETF language tag of the locale customer portal is displayed in.
//
// See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-locale
Locale string `json:"locale"`
// ReturnUrl Return URL.
//
// See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-return_url
ReturnUrl string `json:"returnUrl"`
// StripeCustomerId The ID of the stripe customer.
StripeCustomerId string `json:"stripeCustomerId"`
// Url /**
// The ID of the customer.The URL to redirect the customer to after they have completed
// their requested actions.
Url string `json:"url"`
}
StripeCustomerPortalSession Stripe customer portal session.
See: https://docs.stripe.com/api/customer_portal/sessions/object
type StripeTaxConfig ¶
type StripeTaxConfig struct {
// Code Product tax code.
//
// See: https://docs.stripe.com/tax/tax-codes
Code string `json:"code"`
}
StripeTaxConfig The tax config for Stripe.
type StripeWebhookEvent ¶
type StripeWebhookEvent struct {
// Created The event created timestamp.
Created int32 `json:"created"`
// Data The event data.
Data struct {
Object interface{} `json:"object"`
} `json:"data"`
// Id The event ID.
Id string `json:"id"`
// Livemode Live mode.
Livemode bool `json:"livemode"`
// Type The event type.
Type string `json:"type"`
}
StripeWebhookEvent Stripe webhook event.
type StripeWebhookResponse ¶
type StripeWebhookResponse struct {
// AppId ULID (Universally Unique Lexicographically Sortable Identifier).
AppId string `json:"appId"`
// CustomerId ULID (Universally Unique Lexicographically Sortable Identifier).
CustomerId *string `json:"customerId,omitempty"`
Message *string `json:"message,omitempty"`
// NamespaceId ULID (Universally Unique Lexicographically Sortable Identifier).
NamespaceId string `json:"namespaceId"`
}
StripeWebhookResponse Stripe webhook response.
type Subject ¶
type Subject struct {
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// CurrentPeriodEnd The end of the current period for the subject.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
CurrentPeriodEnd *time.Time `json:"currentPeriodEnd,omitempty"`
// CurrentPeriodStart The start of the current period for the subject.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
CurrentPeriodStart *time.Time `json:"currentPeriodStart,omitempty"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// DisplayName A human-readable display name for the subject.
DisplayName *string `json:"displayName"`
// Id A unique identifier for the subject.
Id string `json:"id"`
// Key A unique, human-readable identifier for the subject.
// This is typically a database ID or a customer key.
Key string `json:"key"`
// Metadata Metadata for the subject.
Metadata *map[string]interface{} `json:"metadata"`
// StripeCustomerId The Stripe customer ID for the subject.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
StripeCustomerId *string `json:"stripeCustomerId"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
Subject A subject is a unique identifier for a usage attribution by its key. Subjects only exist in the concept of metering. Subjects are optional to create and work as an enrichment for the subject key like displayName, metadata, etc. Subjects are useful when you are reporting usage events with your own database ID but want to enrich the subject with a human-readable name or metadata. For most use cases, a subject is equivalent to a customer.
type SubjectUpsert ¶
type SubjectUpsert struct {
// CurrentPeriodEnd The end of the current period for the subject.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
CurrentPeriodEnd *time.Time `json:"currentPeriodEnd,omitempty"`
// CurrentPeriodStart The start of the current period for the subject.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
CurrentPeriodStart *time.Time `json:"currentPeriodStart,omitempty"`
// DisplayName A human-readable display name for the subject.
DisplayName *string `json:"displayName"`
// Key A unique, human-readable identifier for the subject.
// This is typically a database ID or a customer key.
Key string `json:"key"`
// Metadata Metadata for the subject.
Metadata *map[string]interface{} `json:"metadata"`
// StripeCustomerId The Stripe customer ID for the subject.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
StripeCustomerId *string `json:"stripeCustomerId"`
}
SubjectUpsert A subject is a unique identifier for a user or entity.
type Subscription ¶
type Subscription struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Alignment Alignment configuration for the plan.
Alignment *Alignment `json:"alignment,omitempty"`
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// BillingAnchor The normalizedbilling anchor of the subscription.
BillingAnchor time.Time `json:"billingAnchor"`
// BillingCadence The billing cadence for the subscriptions.
// Defines how often customers are billed using ISO8601 duration format.
// Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
BillingCadence string `json:"billingCadence"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Currency The currency code of the subscription.
// Will be revised once we add multi currency support.
Currency CurrencyCode `json:"currency"`
// CustomerId The customer ID of the subscription.
CustomerId string `json:"customerId"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Plan The plan of the subscription.
Plan *PlanReference `json:"plan,omitempty"`
// ProRatingConfig The pro-rating configuration for the subscriptions.
ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"`
// Status The status of the subscription.
Status SubscriptionStatus `json:"status"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
Subscription Subscription is an exact subscription instance.
type SubscriptionAddon ¶
type SubscriptionAddon struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Addon Partially populated add-on properties.
Addon struct {
// Id The ID of the add-on.
Id string `json:"id"`
// InstanceType The instance type of the add-on.
InstanceType AddonInstanceType `json:"instanceType"`
// Key A semi-unique identifier for the resource.
Key string `json:"key"`
// Version The version of the Add-on which templates this instance.
Version int `json:"version"`
} `json:"addon"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Quantity The quantity of the add-on. Always 1 for single instance add-ons.
Quantity int `json:"quantity"`
// QuantityAt For which point in time the quantity was resolved to.
QuantityAt time.Time `json:"quantityAt"`
// RateCards The rate cards of the add-on.
RateCards []SubscriptionAddonRateCard `json:"rateCards"`
// SubscriptionId The ID of the subscription.
SubscriptionId string `json:"subscriptionId"`
// Timeline The timeline of the add-on. The returned periods are sorted and continuous.
Timeline []SubscriptionAddonTimelineSegment `json:"timeline"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
SubscriptionAddon A subscription add-on, represents concrete instances of an add-on for a given subscription.
type SubscriptionAddonCreate ¶
type SubscriptionAddonCreate struct {
// Addon The add-on to create.
Addon struct {
// Id The ID of the add-on.
Id string `json:"id"`
} `json:"addon"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Quantity The quantity of the add-on. Always 1 for single instance add-ons.
Quantity int `json:"quantity"`
// Timing The timing of the operation. After the create or update, a new entry will be created in the timeline.
Timing SubscriptionTiming `json:"timing"`
}
SubscriptionAddonCreate A subscription add-on create body.
type SubscriptionAddonRateCard ¶
type SubscriptionAddonRateCard struct {
// AffectedSubscriptionItemIds The IDs of the subscription items that this rate card belongs to.
AffectedSubscriptionItemIds []string `json:"affectedSubscriptionItemIds"`
// RateCard The rate card.
RateCard RateCard `json:"rateCard"`
}
SubscriptionAddonRateCard A rate card for a subscription add-on.
type SubscriptionAddonTimelineSegment ¶
type SubscriptionAddonTimelineSegment struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Quantity The quantity of the add-on for the given period.
Quantity int `json:"quantity"`
}
SubscriptionAddonTimelineSegment A subscription add-on event.
type SubscriptionAddonUpdate ¶
type SubscriptionAddonUpdate struct {
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name *string `json:"name,omitempty"`
// Quantity The quantity of the add-on. Always 1 for single instance add-ons.
Quantity *int `json:"quantity,omitempty"`
// Timing The timing of the operation. After the create or update, a new entry will be created in the timeline.
Timing *SubscriptionTiming `json:"timing,omitempty"`
}
SubscriptionAddonUpdate Resource create or update operation model.
type SubscriptionAlignment ¶
type SubscriptionAlignment struct {
// BillablesMustAlign Whether all Billable items and RateCards must align.
// Alignment means the Price's BillingCadence must align for both duration and anchor time.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BillablesMustAlign *bool `json:"billablesMustAlign,omitempty"`
// CurrentAlignedBillingPeriod The current billing period. Only has value if the subscription is aligned and active.
CurrentAlignedBillingPeriod *Period `json:"currentAlignedBillingPeriod,omitempty"`
}
SubscriptionAlignment Alignment details enriched with the current billing period.
type SubscriptionBadRequestErrorResponse ¶
type SubscriptionBadRequestErrorResponse struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Extensions Additional properties specific to the problem type may be present.
Extensions *SubscriptionErrorExtensions `json:"extensions,omitempty"`
// Instance A URI reference that identifies the specific occurrence of the problem.
Instance string `json:"instance"`
// Status The HTTP status code generated by the origin server for this occurrence of the problem.
Status *int16 `json:"status,omitempty"`
// Title A a short, human-readable summary of the problem type.
Title string `json:"title"`
// Type Type contains a URI that identifies the problem type.
Type string `json:"type"`
}
SubscriptionBadRequestErrorResponse The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). Variants with ErrorExtensions specific to subscriptions.
type SubscriptionChange ¶
type SubscriptionChange struct {
// contains filtered or unexported fields
}
SubscriptionChange Change a subscription.
func (SubscriptionChange) AsCustomSubscriptionChange ¶
func (t SubscriptionChange) AsCustomSubscriptionChange() (CustomSubscriptionChange, error)
AsCustomSubscriptionChange returns the union data inside the SubscriptionChange as a CustomSubscriptionChange
func (SubscriptionChange) AsPlanSubscriptionChange ¶
func (t SubscriptionChange) AsPlanSubscriptionChange() (PlanSubscriptionChange, error)
AsPlanSubscriptionChange returns the union data inside the SubscriptionChange as a PlanSubscriptionChange
func (*SubscriptionChange) FromCustomSubscriptionChange ¶
func (t *SubscriptionChange) FromCustomSubscriptionChange(v CustomSubscriptionChange) error
FromCustomSubscriptionChange overwrites any union data inside the SubscriptionChange as the provided CustomSubscriptionChange
func (*SubscriptionChange) FromPlanSubscriptionChange ¶
func (t *SubscriptionChange) FromPlanSubscriptionChange(v PlanSubscriptionChange) error
FromPlanSubscriptionChange overwrites any union data inside the SubscriptionChange as the provided PlanSubscriptionChange
func (SubscriptionChange) MarshalJSON ¶
func (t SubscriptionChange) MarshalJSON() ([]byte, error)
func (*SubscriptionChange) MergeCustomSubscriptionChange ¶
func (t *SubscriptionChange) MergeCustomSubscriptionChange(v CustomSubscriptionChange) error
MergeCustomSubscriptionChange performs a merge with any union data inside the SubscriptionChange, using the provided CustomSubscriptionChange
func (*SubscriptionChange) MergePlanSubscriptionChange ¶
func (t *SubscriptionChange) MergePlanSubscriptionChange(v PlanSubscriptionChange) error
MergePlanSubscriptionChange performs a merge with any union data inside the SubscriptionChange, using the provided PlanSubscriptionChange
func (*SubscriptionChange) UnmarshalJSON ¶
func (t *SubscriptionChange) UnmarshalJSON(b []byte) error
type SubscriptionChangeResponseBody ¶
type SubscriptionChangeResponseBody struct {
// Current The current subscription before the change.
Current Subscription `json:"current"`
// Next The new state of the subscription after the change.
Next SubscriptionExpanded `json:"next"`
}
SubscriptionChangeResponseBody Response body for subscription change.
type SubscriptionConflictErrorResponse ¶
type SubscriptionConflictErrorResponse struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Extensions Additional properties specific to the problem type may be present.
Extensions *SubscriptionErrorExtensions `json:"extensions,omitempty"`
// Instance A URI reference that identifies the specific occurrence of the problem.
Instance string `json:"instance"`
// Status The HTTP status code generated by the origin server for this occurrence of the problem.
Status *int16 `json:"status,omitempty"`
// Title A a short, human-readable summary of the problem type.
Title string `json:"title"`
// Type Type contains a URI that identifies the problem type.
Type string `json:"type"`
}
SubscriptionConflictErrorResponse The request could not be completed due to a conflict with the current state of the target resource. Variants with ErrorExtensions specific to subscriptions.
type SubscriptionCreate ¶
type SubscriptionCreate struct {
// contains filtered or unexported fields
}
SubscriptionCreate Create a subscription.
func (SubscriptionCreate) AsCustomSubscriptionCreate ¶
func (t SubscriptionCreate) AsCustomSubscriptionCreate() (CustomSubscriptionCreate, error)
AsCustomSubscriptionCreate returns the union data inside the SubscriptionCreate as a CustomSubscriptionCreate
func (SubscriptionCreate) AsPlanSubscriptionCreate ¶
func (t SubscriptionCreate) AsPlanSubscriptionCreate() (PlanSubscriptionCreate, error)
AsPlanSubscriptionCreate returns the union data inside the SubscriptionCreate as a PlanSubscriptionCreate
func (*SubscriptionCreate) FromCustomSubscriptionCreate ¶
func (t *SubscriptionCreate) FromCustomSubscriptionCreate(v CustomSubscriptionCreate) error
FromCustomSubscriptionCreate overwrites any union data inside the SubscriptionCreate as the provided CustomSubscriptionCreate
func (*SubscriptionCreate) FromPlanSubscriptionCreate ¶
func (t *SubscriptionCreate) FromPlanSubscriptionCreate(v PlanSubscriptionCreate) error
FromPlanSubscriptionCreate overwrites any union data inside the SubscriptionCreate as the provided PlanSubscriptionCreate
func (SubscriptionCreate) MarshalJSON ¶
func (t SubscriptionCreate) MarshalJSON() ([]byte, error)
func (*SubscriptionCreate) MergeCustomSubscriptionCreate ¶
func (t *SubscriptionCreate) MergeCustomSubscriptionCreate(v CustomSubscriptionCreate) error
MergeCustomSubscriptionCreate performs a merge with any union data inside the SubscriptionCreate, using the provided CustomSubscriptionCreate
func (*SubscriptionCreate) MergePlanSubscriptionCreate ¶
func (t *SubscriptionCreate) MergePlanSubscriptionCreate(v PlanSubscriptionCreate) error
MergePlanSubscriptionCreate performs a merge with any union data inside the SubscriptionCreate, using the provided PlanSubscriptionCreate
func (*SubscriptionCreate) UnmarshalJSON ¶
func (t *SubscriptionCreate) UnmarshalJSON(b []byte) error
type SubscriptionEdit ¶
type SubscriptionEdit struct {
// Customizations Batch processing commands for manipulating running subscriptions.
// The key format is `/phases/{phaseKey}` or `/phases/{phaseKey}/items/{itemKey}`.
Customizations []SubscriptionEditOperation `json:"customizations"`
// Timing Whether the billing period should be restarted.Timing configuration to allow for the changes to take effect at different times.
Timing *SubscriptionTiming `json:"timing,omitempty"`
}
SubscriptionEdit Subscription edit input.
type SubscriptionEditOperation ¶
type SubscriptionEditOperation struct {
// contains filtered or unexported fields
}
SubscriptionEditOperation The operation to be performed on the subscription.
func (SubscriptionEditOperation) AsEditSubscriptionAddItem ¶
func (t SubscriptionEditOperation) AsEditSubscriptionAddItem() (EditSubscriptionAddItem, error)
AsEditSubscriptionAddItem returns the union data inside the SubscriptionEditOperation as a EditSubscriptionAddItem
func (SubscriptionEditOperation) AsEditSubscriptionAddPhase ¶
func (t SubscriptionEditOperation) AsEditSubscriptionAddPhase() (EditSubscriptionAddPhase, error)
AsEditSubscriptionAddPhase returns the union data inside the SubscriptionEditOperation as a EditSubscriptionAddPhase
func (SubscriptionEditOperation) AsEditSubscriptionRemoveItem ¶
func (t SubscriptionEditOperation) AsEditSubscriptionRemoveItem() (EditSubscriptionRemoveItem, error)
AsEditSubscriptionRemoveItem returns the union data inside the SubscriptionEditOperation as a EditSubscriptionRemoveItem
func (SubscriptionEditOperation) AsEditSubscriptionRemovePhase ¶
func (t SubscriptionEditOperation) AsEditSubscriptionRemovePhase() (EditSubscriptionRemovePhase, error)
AsEditSubscriptionRemovePhase returns the union data inside the SubscriptionEditOperation as a EditSubscriptionRemovePhase
func (SubscriptionEditOperation) AsEditSubscriptionStretchPhase ¶
func (t SubscriptionEditOperation) AsEditSubscriptionStretchPhase() (EditSubscriptionStretchPhase, error)
AsEditSubscriptionStretchPhase returns the union data inside the SubscriptionEditOperation as a EditSubscriptionStretchPhase
func (SubscriptionEditOperation) AsEditSubscriptionUnscheduleEdit ¶
func (t SubscriptionEditOperation) AsEditSubscriptionUnscheduleEdit() (EditSubscriptionUnscheduleEdit, error)
AsEditSubscriptionUnscheduleEdit returns the union data inside the SubscriptionEditOperation as a EditSubscriptionUnscheduleEdit
func (SubscriptionEditOperation) Discriminator ¶
func (t SubscriptionEditOperation) Discriminator() (string, error)
func (*SubscriptionEditOperation) FromEditSubscriptionAddItem ¶
func (t *SubscriptionEditOperation) FromEditSubscriptionAddItem(v EditSubscriptionAddItem) error
FromEditSubscriptionAddItem overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionAddItem
func (*SubscriptionEditOperation) FromEditSubscriptionAddPhase ¶
func (t *SubscriptionEditOperation) FromEditSubscriptionAddPhase(v EditSubscriptionAddPhase) error
FromEditSubscriptionAddPhase overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionAddPhase
func (*SubscriptionEditOperation) FromEditSubscriptionRemoveItem ¶
func (t *SubscriptionEditOperation) FromEditSubscriptionRemoveItem(v EditSubscriptionRemoveItem) error
FromEditSubscriptionRemoveItem overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionRemoveItem
func (*SubscriptionEditOperation) FromEditSubscriptionRemovePhase ¶
func (t *SubscriptionEditOperation) FromEditSubscriptionRemovePhase(v EditSubscriptionRemovePhase) error
FromEditSubscriptionRemovePhase overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionRemovePhase
func (*SubscriptionEditOperation) FromEditSubscriptionStretchPhase ¶
func (t *SubscriptionEditOperation) FromEditSubscriptionStretchPhase(v EditSubscriptionStretchPhase) error
FromEditSubscriptionStretchPhase overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionStretchPhase
func (*SubscriptionEditOperation) FromEditSubscriptionUnscheduleEdit ¶
func (t *SubscriptionEditOperation) FromEditSubscriptionUnscheduleEdit(v EditSubscriptionUnscheduleEdit) error
FromEditSubscriptionUnscheduleEdit overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionUnscheduleEdit
func (SubscriptionEditOperation) MarshalJSON ¶
func (t SubscriptionEditOperation) MarshalJSON() ([]byte, error)
func (*SubscriptionEditOperation) MergeEditSubscriptionAddItem ¶
func (t *SubscriptionEditOperation) MergeEditSubscriptionAddItem(v EditSubscriptionAddItem) error
MergeEditSubscriptionAddItem performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionAddItem
func (*SubscriptionEditOperation) MergeEditSubscriptionAddPhase ¶
func (t *SubscriptionEditOperation) MergeEditSubscriptionAddPhase(v EditSubscriptionAddPhase) error
MergeEditSubscriptionAddPhase performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionAddPhase
func (*SubscriptionEditOperation) MergeEditSubscriptionRemoveItem ¶
func (t *SubscriptionEditOperation) MergeEditSubscriptionRemoveItem(v EditSubscriptionRemoveItem) error
MergeEditSubscriptionRemoveItem performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionRemoveItem
func (*SubscriptionEditOperation) MergeEditSubscriptionRemovePhase ¶
func (t *SubscriptionEditOperation) MergeEditSubscriptionRemovePhase(v EditSubscriptionRemovePhase) error
MergeEditSubscriptionRemovePhase performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionRemovePhase
func (*SubscriptionEditOperation) MergeEditSubscriptionStretchPhase ¶
func (t *SubscriptionEditOperation) MergeEditSubscriptionStretchPhase(v EditSubscriptionStretchPhase) error
MergeEditSubscriptionStretchPhase performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionStretchPhase
func (*SubscriptionEditOperation) MergeEditSubscriptionUnscheduleEdit ¶
func (t *SubscriptionEditOperation) MergeEditSubscriptionUnscheduleEdit(v EditSubscriptionUnscheduleEdit) error
MergeEditSubscriptionUnscheduleEdit performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionUnscheduleEdit
func (*SubscriptionEditOperation) UnmarshalJSON ¶
func (t *SubscriptionEditOperation) UnmarshalJSON(b []byte) error
func (SubscriptionEditOperation) ValueByDiscriminator ¶
func (t SubscriptionEditOperation) ValueByDiscriminator() (interface{}, error)
type SubscriptionErrorExtensions ¶
type SubscriptionErrorExtensions struct {
ValidationErrors []ErrorExtension `json:"validationErrors"`
}
SubscriptionErrorExtensions Error extensions for the Subscription Errors.
type SubscriptionExpanded ¶
type SubscriptionExpanded struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// Alignment Alignment details enriched with the current billing period.
Alignment *SubscriptionAlignment `json:"alignment,omitempty"`
// Annotations Set of key-value pairs managed by the system. Cannot be modified by user.
Annotations *Annotations `json:"annotations,omitempty"`
// BillingAnchor The normalizedbilling anchor of the subscription.
BillingAnchor time.Time `json:"billingAnchor"`
// BillingCadence The billing cadence for the subscriptions.
// Defines how often customers are billed using ISO8601 duration format.
// Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
BillingCadence string `json:"billingCadence"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// Currency The currency code of the subscription.
// Will be revised once we add multi currency support.
Currency CurrencyCode `json:"currency"`
// CustomerId The customer ID of the subscription.
CustomerId string `json:"customerId"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Phases The phases of the subscription.
Phases []SubscriptionPhaseExpanded `json:"phases"`
// Plan The plan of the subscription.
Plan *PlanReference `json:"plan,omitempty"`
// ProRatingConfig The pro-rating configuration for the subscriptions.
ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"`
// Status The status of the subscription.
Status SubscriptionStatus `json:"status"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
SubscriptionExpanded Expanded subscription
type SubscriptionItem ¶
type SubscriptionItem struct {
// ActiveFrom The cadence start of the resource.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The cadence end of the resource.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// BillingCadence The billing cadence of the rate card.
// When null, the rate card is a one-time purchase.
BillingCadence *string `json:"billingCadence"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Discounts The discounts applied to the rate card.
Discounts *Discounts `json:"discounts,omitempty"`
// FeatureKey The feature's key (if present).
FeatureKey *string `json:"featureKey,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// Included Describes what access is gained via the SubscriptionItem
Included *SubscriptionItemIncluded `json:"included,omitempty"`
// Key The identifier of the RateCard.
// SubscriptionItem/RateCard can be identified, it has a reference:
//
// 1. If a Feature is associated with the SubscriptionItem, it is identified by the Feature
// 1.1 It can be an ID reference, for an exact version of the Feature (Features can change across versions)
// 1.2 It can be a Key reference, which always refers to the latest (active or inactive) version of a Feature
//
// 2. If a Feature is not associated with the SubscriptionItem, it is referenced by the Price
//
// We say "referenced by the Price" regardless of how a price itself is referenced, it colloquially makes sense to say "paying the same price for the same thing". In practice this should be derived from what's printed on the invoice line-item.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// Price The price of the rate card.
// When null, the feature or service is free.
Price *RateCardUsageBasedPrice `json:"price"`
// TaxConfig The tax config of the Subscription Item.
// When undefined, the tax config of the feature or the default tax config of the plan is used.
TaxConfig *TaxConfig `json:"taxConfig,omitempty"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
SubscriptionItem The actual contents of the Subscription, what the user gets, what they pay, etc...
type SubscriptionItemIncluded ¶
type SubscriptionItemIncluded struct {
// Entitlement The entitlement of the Subscription Item.
Entitlement *Entitlement `json:"entitlement,omitempty"`
// Feature The feature the customer is entitled to use.
Feature Feature `json:"feature"`
}
SubscriptionItemIncluded Included contents like Entitlement, or the Feature.
type SubscriptionPaginatedResponse ¶
type SubscriptionPaginatedResponse struct {
// Items The items in the current page.
Items []Subscription `json:"items"`
// Page The page index.
Page int `json:"page"`
// PageSize The maximum number of items per page.
PageSize int `json:"pageSize"`
// TotalCount The total number of items.
TotalCount int `json:"totalCount"`
}
SubscriptionPaginatedResponse Paginated response
type SubscriptionPhaseCreate ¶
type SubscriptionPhaseCreate struct {
// Description The description of the phase.
Description *string `json:"description,omitempty"`
// Discounts The discounts on the plan.
Discounts *Discounts `json:"discounts,omitempty"`
// Duration The intended duration of the new phase.
// Duration is required when the phase will not be the last phase.
Duration *string `json:"duration,omitempty"`
// Key A locally unique identifier for the phase.
Key string `json:"key"`
// Name The name of the phase.
Name string `json:"name"`
// StartAfter Interval after the subscription starts to transition to the phase.
// When null, the phase starts immediately after the subscription starts.
StartAfter *string `json:"startAfter"`
}
SubscriptionPhaseCreate Subscription phase create input.
type SubscriptionPhaseExpanded ¶
type SubscriptionPhaseExpanded struct {
// ActiveFrom The time from which the phase is active.
ActiveFrom time.Time `json:"activeFrom"`
// ActiveTo The until which the Phase is active.
ActiveTo *time.Time `json:"activeTo,omitempty"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Description Optional description of the resource. Maximum 1024 characters.
Description *string `json:"description,omitempty"`
// Discounts The discounts on the plan.
Discounts *Discounts `json:"discounts,omitempty"`
// Id A unique identifier for the resource.
Id string `json:"id"`
// ItemTimelines Includes all versions of the items on each key, including all edits, scheduled changes, etc...
ItemTimelines map[string][]SubscriptionItem `json:"itemTimelines"`
// Items The items of the phase. The structure is flattened to better conform to the Plan API.
// The timelines are flattened according to the following rules:
// - for the current phase, the `items` contains only the active item for each key
// - for past phases, the `items` contains only the last item for each key
// - for future phases, the `items` contains only the first version of the item for each key
Items []SubscriptionItem `json:"items"`
// Key A locally unique identifier for the resource.
Key string `json:"key"`
// Metadata Additional metadata for the resource.
Metadata *Metadata `json:"metadata"`
// Name Human-readable name for the resource. Between 1 and 256 characters.
Name string `json:"name"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
SubscriptionPhaseExpanded Expanded subscription phase
type SubscriptionStatus ¶
type SubscriptionStatus string
SubscriptionStatus Subscription status.
const ( SubscriptionStatusActive SubscriptionStatus = "active" SubscriptionStatusCanceled SubscriptionStatus = "canceled" SubscriptionStatusInactive SubscriptionStatus = "inactive" SubscriptionStatusScheduled SubscriptionStatus = "scheduled" )
Defines values for SubscriptionStatus.
type SubscriptionTiming ¶
type SubscriptionTiming struct {
// contains filtered or unexported fields
}
SubscriptionTiming Subscription edit timing defined when the changes should take effect. If the provided configuration is not supported by the subscription, an error will be returned.
func (SubscriptionTiming) AsSubscriptionTiming1 ¶
func (t SubscriptionTiming) AsSubscriptionTiming1() (SubscriptionTiming1, error)
AsSubscriptionTiming1 returns the union data inside the SubscriptionTiming as a SubscriptionTiming1
func (SubscriptionTiming) AsSubscriptionTimingEnum ¶
func (t SubscriptionTiming) AsSubscriptionTimingEnum() (SubscriptionTimingEnum, error)
AsSubscriptionTimingEnum returns the union data inside the SubscriptionTiming as a SubscriptionTimingEnum
func (*SubscriptionTiming) FromSubscriptionTiming1 ¶
func (t *SubscriptionTiming) FromSubscriptionTiming1(v SubscriptionTiming1) error
FromSubscriptionTiming1 overwrites any union data inside the SubscriptionTiming as the provided SubscriptionTiming1
func (*SubscriptionTiming) FromSubscriptionTimingEnum ¶
func (t *SubscriptionTiming) FromSubscriptionTimingEnum(v SubscriptionTimingEnum) error
FromSubscriptionTimingEnum overwrites any union data inside the SubscriptionTiming as the provided SubscriptionTimingEnum
func (SubscriptionTiming) MarshalJSON ¶
func (t SubscriptionTiming) MarshalJSON() ([]byte, error)
func (*SubscriptionTiming) MergeSubscriptionTiming1 ¶
func (t *SubscriptionTiming) MergeSubscriptionTiming1(v SubscriptionTiming1) error
MergeSubscriptionTiming1 performs a merge with any union data inside the SubscriptionTiming, using the provided SubscriptionTiming1
func (*SubscriptionTiming) MergeSubscriptionTimingEnum ¶
func (t *SubscriptionTiming) MergeSubscriptionTimingEnum(v SubscriptionTimingEnum) error
MergeSubscriptionTimingEnum performs a merge with any union data inside the SubscriptionTiming, using the provided SubscriptionTimingEnum
func (*SubscriptionTiming) UnmarshalJSON ¶
func (t *SubscriptionTiming) UnmarshalJSON(b []byte) error
type SubscriptionTiming1 ¶
SubscriptionTiming1 [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
type SubscriptionTimingEnum ¶
type SubscriptionTimingEnum string
SubscriptionTimingEnum Subscription edit timing. When immediate, the requested changes take effect immediately. When nextBillingCycle, the requested changes take effect at the next billing cycle.
const ( SubscriptionTimingEnumImmediate SubscriptionTimingEnum = "immediate" SubscriptionTimingEnumNextBillingCycle SubscriptionTimingEnum = "next_billing_cycle" )
Defines values for SubscriptionTimingEnum.
type TaxBehavior ¶
type TaxBehavior string
TaxBehavior Tax behavior.
This enum is used to specify whether tax is included in the price or excluded from the price.
const ( TaxBehaviorExclusive TaxBehavior = "exclusive" TaxBehaviorInclusive TaxBehavior = "inclusive" )
Defines values for TaxBehavior.
type TaxConfig ¶
type TaxConfig struct {
// Behavior Tax behavior.
//
// If not specified the billing profile is used to determine the tax behavior.
// If not specified in the billing profile, the provider's default behavior is used.
Behavior *TaxBehavior `json:"behavior,omitempty"`
// CustomInvoicing Custom invoicing tax config.
CustomInvoicing *CustomInvoicingTaxConfig `json:"customInvoicing,omitempty"`
// Stripe Stripe tax config.
Stripe *StripeTaxConfig `json:"stripe,omitempty"`
}
TaxConfig Set of provider specific tax configs.
type TestNotificationRuleResponse ¶
type TestNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *NotificationEvent
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseTestNotificationRuleResponse ¶
func ParseTestNotificationRuleResponse(rsp *http.Response) (*TestNotificationRuleResponse, error)
ParseTestNotificationRuleResponse parses an HTTP response from a TestNotificationRuleWithResponse call
func (TestNotificationRuleResponse) Status ¶
func (r TestNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (TestNotificationRuleResponse) StatusCode ¶
func (r TestNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TieredPriceMode ¶
type TieredPriceMode string
TieredPriceMode The mode of the tiered price.
const ( TieredPriceModeGraduated TieredPriceMode = "graduated" TieredPriceModeVolume TieredPriceMode = "volume" )
Defines values for TieredPriceMode.
type TieredPriceWithCommitments ¶
type TieredPriceWithCommitments struct {
// MaximumAmount The customer is limited to spend at most the amount.
MaximumAmount *Numeric `json:"maximumAmount,omitempty"`
// MinimumAmount The customer is committed to spend at least the amount.
MinimumAmount *Numeric `json:"minimumAmount,omitempty"`
// Mode Defines if the tiering mode is volume-based or graduated:
// - In `volume`-based tiering, the maximum quantity within a period determines the per unit price.
// - In `graduated` tiering, pricing can change as the quantity grows.
Mode TieredPriceMode `json:"mode"`
// Tiers The tiers of the tiered price.
// At least one price component is required in each tier.
Tiers []PriceTier `json:"tiers"`
// Type The type of the price.
//
// One of: flat, unit, or tiered.
Type TieredPriceWithCommitmentsType `json:"type"`
}
TieredPriceWithCommitments Tiered price with spend commitments.
type TieredPriceWithCommitmentsType ¶
type TieredPriceWithCommitmentsType string
TieredPriceWithCommitmentsType The type of the price.
One of: flat, unit, or tiered.
const (
TieredPriceWithCommitmentsTypeTiered TieredPriceWithCommitmentsType = "tiered"
)
Defines values for TieredPriceWithCommitmentsType.
type ULIDOrExternalKey ¶
type ULIDOrExternalKey = string
ULIDOrExternalKey ULID (Universally Unique Lexicographically Sortable Identifier) or external unique key.
type UnauthorizedProblemResponse ¶
type UnauthorizedProblemResponse = UnexpectedProblemResponse
UnauthorizedProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type UnexpectedProblemResponse ¶
type UnexpectedProblemResponse = models.StatusProblem
UnexpectedProblemResponse A Problem Details object (RFC 7807). Additional properties specific to the problem type may be present.
type UninstallAppResponse ¶
type UninstallAppResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUninstallAppResponse ¶
func ParseUninstallAppResponse(rsp *http.Response) (*UninstallAppResponse, error)
ParseUninstallAppResponse parses an HTTP response from a UninstallAppWithResponse call
func (UninstallAppResponse) Status ¶
func (r UninstallAppResponse) Status() string
Status returns HTTPResponse.Status
func (UninstallAppResponse) StatusCode ¶
func (r UninstallAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnitPrice ¶
type UnitPrice struct {
// Amount The amount of the unit price.
Amount Numeric `json:"amount"`
// Type The type of the price.
Type UnitPriceType `json:"type"`
}
UnitPrice Unit price.
type UnitPriceType ¶
type UnitPriceType string
UnitPriceType The type of the price.
const (
UnitPriceTypeUnit UnitPriceType = "unit"
)
Defines values for UnitPriceType.
type UnitPriceWithCommitments ¶
type UnitPriceWithCommitments struct {
// Amount The amount of the unit price.
Amount Numeric `json:"amount"`
// MaximumAmount The customer is limited to spend at most the amount.
MaximumAmount *Numeric `json:"maximumAmount,omitempty"`
// MinimumAmount The customer is committed to spend at least the amount.
MinimumAmount *Numeric `json:"minimumAmount,omitempty"`
// Type The type of the price.
Type UnitPriceWithCommitmentsType `json:"type"`
}
UnitPriceWithCommitments Unit price with spend commitments.
type UnitPriceWithCommitmentsType ¶
type UnitPriceWithCommitmentsType string
UnitPriceWithCommitmentsType The type of the price.
const (
UnitPriceWithCommitmentsTypeUnit UnitPriceWithCommitmentsType = "unit"
)
Defines values for UnitPriceWithCommitmentsType.
type UnscheduleCancelationResponse ¶
type UnscheduleCancelationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Subscription
ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *SubscriptionConflictErrorResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUnscheduleCancelationResponse ¶
func ParseUnscheduleCancelationResponse(rsp *http.Response) (*UnscheduleCancelationResponse, error)
ParseUnscheduleCancelationResponse parses an HTTP response from a UnscheduleCancelationWithResponse call
func (UnscheduleCancelationResponse) Status ¶
func (r UnscheduleCancelationResponse) Status() string
Status returns HTTPResponse.Status
func (UnscheduleCancelationResponse) StatusCode ¶
func (r UnscheduleCancelationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAddonJSONRequestBody ¶
type UpdateAddonJSONRequestBody = AddonReplaceUpdate
UpdateAddonJSONRequestBody defines body for UpdateAddon for application/json ContentType.
type UpdateAddonResponse ¶
type UpdateAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Addon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateAddonResponse ¶
func ParseUpdateAddonResponse(rsp *http.Response) (*UpdateAddonResponse, error)
ParseUpdateAddonResponse parses an HTTP response from a UpdateAddonWithResponse call
func (UpdateAddonResponse) Status ¶
func (r UpdateAddonResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAddonResponse) StatusCode ¶
func (r UpdateAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAppJSONRequestBody ¶
type UpdateAppJSONRequestBody = AppReplaceUpdate
UpdateAppJSONRequestBody defines body for UpdateApp for application/json ContentType.
type UpdateAppResponse ¶
type UpdateAppResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *App
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateAppResponse ¶
func ParseUpdateAppResponse(rsp *http.Response) (*UpdateAppResponse, error)
ParseUpdateAppResponse parses an HTTP response from a UpdateAppWithResponse call
func (UpdateAppResponse) Status ¶
func (r UpdateAppResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAppResponse) StatusCode ¶
func (r UpdateAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateBillingProfileJSONRequestBody ¶
type UpdateBillingProfileJSONRequestBody = BillingProfileReplaceUpdateWithWorkflow
UpdateBillingProfileJSONRequestBody defines body for UpdateBillingProfile for application/json ContentType.
type UpdateBillingProfileResponse ¶
type UpdateBillingProfileResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BillingProfile
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateBillingProfileResponse ¶
func ParseUpdateBillingProfileResponse(rsp *http.Response) (*UpdateBillingProfileResponse, error)
ParseUpdateBillingProfileResponse parses an HTTP response from a UpdateBillingProfileWithResponse call
func (UpdateBillingProfileResponse) Status ¶
func (r UpdateBillingProfileResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateBillingProfileResponse) StatusCode ¶
func (r UpdateBillingProfileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateCustomerJSONRequestBody ¶
type UpdateCustomerJSONRequestBody = CustomerReplaceUpdate
UpdateCustomerJSONRequestBody defines body for UpdateCustomer for application/json ContentType.
type UpdateCustomerResponse ¶
type UpdateCustomerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Customer
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateCustomerResponse ¶
func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, error)
ParseUpdateCustomerResponse parses an HTTP response from a UpdateCustomerWithResponse call
func (UpdateCustomerResponse) Status ¶
func (r UpdateCustomerResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCustomerResponse) StatusCode ¶
func (r UpdateCustomerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInvoiceJSONRequestBody ¶
type UpdateInvoiceJSONRequestBody = InvoiceReplaceUpdate
UpdateInvoiceJSONRequestBody defines body for UpdateInvoice for application/json ContentType.
type UpdateInvoiceResponse ¶
type UpdateInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateInvoiceResponse ¶
func ParseUpdateInvoiceResponse(rsp *http.Response) (*UpdateInvoiceResponse, error)
ParseUpdateInvoiceResponse parses an HTTP response from a UpdateInvoiceWithResponse call
func (UpdateInvoiceResponse) Status ¶
func (r UpdateInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInvoiceResponse) StatusCode ¶
func (r UpdateInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateMeterJSONRequestBody ¶
type UpdateMeterJSONRequestBody = MeterUpdate
UpdateMeterJSONRequestBody defines body for UpdateMeter for application/json ContentType.
type UpdateMeterResponse ¶
type UpdateMeterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Meter
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateMeterResponse ¶
func ParseUpdateMeterResponse(rsp *http.Response) (*UpdateMeterResponse, error)
ParseUpdateMeterResponse parses an HTTP response from a UpdateMeterWithResponse call
func (UpdateMeterResponse) Status ¶
func (r UpdateMeterResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMeterResponse) StatusCode ¶
func (r UpdateMeterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateNotificationChannelJSONRequestBody ¶
type UpdateNotificationChannelJSONRequestBody = NotificationChannelCreateRequest
UpdateNotificationChannelJSONRequestBody defines body for UpdateNotificationChannel for application/json ContentType.
type UpdateNotificationChannelResponse ¶
type UpdateNotificationChannelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationChannel
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateNotificationChannelResponse ¶
func ParseUpdateNotificationChannelResponse(rsp *http.Response) (*UpdateNotificationChannelResponse, error)
ParseUpdateNotificationChannelResponse parses an HTTP response from a UpdateNotificationChannelWithResponse call
func (UpdateNotificationChannelResponse) Status ¶
func (r UpdateNotificationChannelResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateNotificationChannelResponse) StatusCode ¶
func (r UpdateNotificationChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateNotificationRuleJSONRequestBody ¶
type UpdateNotificationRuleJSONRequestBody = NotificationRuleCreateRequest
UpdateNotificationRuleJSONRequestBody defines body for UpdateNotificationRule for application/json ContentType.
type UpdateNotificationRuleResponse ¶
type UpdateNotificationRuleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NotificationRule
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateNotificationRuleResponse ¶
func ParseUpdateNotificationRuleResponse(rsp *http.Response) (*UpdateNotificationRuleResponse, error)
ParseUpdateNotificationRuleResponse parses an HTTP response from a UpdateNotificationRuleWithResponse call
func (UpdateNotificationRuleResponse) Status ¶
func (r UpdateNotificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateNotificationRuleResponse) StatusCode ¶
func (r UpdateNotificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdatePlanAddonJSONRequestBody ¶
type UpdatePlanAddonJSONRequestBody = PlanAddonReplaceUpdate
UpdatePlanAddonJSONRequestBody defines body for UpdatePlanAddon for application/json ContentType.
type UpdatePlanAddonResponse ¶
type UpdatePlanAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PlanAddon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdatePlanAddonResponse ¶
func ParseUpdatePlanAddonResponse(rsp *http.Response) (*UpdatePlanAddonResponse, error)
ParseUpdatePlanAddonResponse parses an HTTP response from a UpdatePlanAddonWithResponse call
func (UpdatePlanAddonResponse) Status ¶
func (r UpdatePlanAddonResponse) Status() string
Status returns HTTPResponse.Status
func (UpdatePlanAddonResponse) StatusCode ¶
func (r UpdatePlanAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdatePlanJSONRequestBody ¶
type UpdatePlanJSONRequestBody = PlanReplaceUpdate
UpdatePlanJSONRequestBody defines body for UpdatePlan for application/json ContentType.
type UpdatePlanResponse ¶
type UpdatePlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Plan
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdatePlanResponse ¶
func ParseUpdatePlanResponse(rsp *http.Response) (*UpdatePlanResponse, error)
ParseUpdatePlanResponse parses an HTTP response from a UpdatePlanWithResponse call
func (UpdatePlanResponse) Status ¶
func (r UpdatePlanResponse) Status() string
Status returns HTTPResponse.Status
func (UpdatePlanResponse) StatusCode ¶
func (r UpdatePlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateStripeAPIKeyJSONRequestBody ¶
type UpdateStripeAPIKeyJSONRequestBody = StripeAPIKeyInput
UpdateStripeAPIKeyJSONRequestBody defines body for UpdateStripeAPIKey for application/json ContentType.
type UpdateStripeAPIKeyResponse ¶
type UpdateStripeAPIKeyResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateStripeAPIKeyResponse ¶
func ParseUpdateStripeAPIKeyResponse(rsp *http.Response) (*UpdateStripeAPIKeyResponse, error)
ParseUpdateStripeAPIKeyResponse parses an HTTP response from a UpdateStripeAPIKeyWithResponse call
func (UpdateStripeAPIKeyResponse) Status ¶
func (r UpdateStripeAPIKeyResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateStripeAPIKeyResponse) StatusCode ¶
func (r UpdateStripeAPIKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSubscriptionAddonJSONRequestBody ¶
type UpdateSubscriptionAddonJSONRequestBody = SubscriptionAddonUpdate
UpdateSubscriptionAddonJSONRequestBody defines body for UpdateSubscriptionAddon for application/json ContentType.
type UpdateSubscriptionAddonResponse ¶
type UpdateSubscriptionAddonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SubscriptionAddon
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpdateSubscriptionAddonResponse ¶
func ParseUpdateSubscriptionAddonResponse(rsp *http.Response) (*UpdateSubscriptionAddonResponse, error)
ParseUpdateSubscriptionAddonResponse parses an HTTP response from a UpdateSubscriptionAddonWithResponse call
func (UpdateSubscriptionAddonResponse) Status ¶
func (r UpdateSubscriptionAddonResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSubscriptionAddonResponse) StatusCode ¶
func (r UpdateSubscriptionAddonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpsertBillingProfileCustomerOverrideJSONRequestBody ¶
type UpsertBillingProfileCustomerOverrideJSONRequestBody = BillingProfileCustomerOverrideCreate
UpsertBillingProfileCustomerOverrideJSONRequestBody defines body for UpsertBillingProfileCustomerOverride for application/json ContentType.
type UpsertBillingProfileCustomerOverrideResponse ¶
type UpsertBillingProfileCustomerOverrideResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BillingProfileCustomerOverrideWithDetails
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpsertBillingProfileCustomerOverrideResponse ¶
func ParseUpsertBillingProfileCustomerOverrideResponse(rsp *http.Response) (*UpsertBillingProfileCustomerOverrideResponse, error)
ParseUpsertBillingProfileCustomerOverrideResponse parses an HTTP response from a UpsertBillingProfileCustomerOverrideWithResponse call
func (UpsertBillingProfileCustomerOverrideResponse) Status ¶
func (r UpsertBillingProfileCustomerOverrideResponse) Status() string
Status returns HTTPResponse.Status
func (UpsertBillingProfileCustomerOverrideResponse) StatusCode ¶
func (r UpsertBillingProfileCustomerOverrideResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpsertCustomerAppDataJSONBody ¶
type UpsertCustomerAppDataJSONBody = []CustomerAppDataCreateOrUpdateItem
UpsertCustomerAppDataJSONBody defines parameters for UpsertCustomerAppData.
type UpsertCustomerAppDataJSONRequestBody ¶
type UpsertCustomerAppDataJSONRequestBody = UpsertCustomerAppDataJSONBody
UpsertCustomerAppDataJSONRequestBody defines body for UpsertCustomerAppData for application/json ContentType.
type UpsertCustomerAppDataResponse ¶
type UpsertCustomerAppDataResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]CustomerAppData
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpsertCustomerAppDataResponse ¶
func ParseUpsertCustomerAppDataResponse(rsp *http.Response) (*UpsertCustomerAppDataResponse, error)
ParseUpsertCustomerAppDataResponse parses an HTTP response from a UpsertCustomerAppDataWithResponse call
func (UpsertCustomerAppDataResponse) Status ¶
func (r UpsertCustomerAppDataResponse) Status() string
Status returns HTTPResponse.Status
func (UpsertCustomerAppDataResponse) StatusCode ¶
func (r UpsertCustomerAppDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpsertCustomerStripeAppDataJSONRequestBody ¶
type UpsertCustomerStripeAppDataJSONRequestBody = StripeCustomerAppDataBase
UpsertCustomerStripeAppDataJSONRequestBody defines body for UpsertCustomerStripeAppData for application/json ContentType.
type UpsertCustomerStripeAppDataResponse ¶
type UpsertCustomerStripeAppDataResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *StripeCustomerAppData
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpsertCustomerStripeAppDataResponse ¶
func ParseUpsertCustomerStripeAppDataResponse(rsp *http.Response) (*UpsertCustomerStripeAppDataResponse, error)
ParseUpsertCustomerStripeAppDataResponse parses an HTTP response from a UpsertCustomerStripeAppDataWithResponse call
func (UpsertCustomerStripeAppDataResponse) Status ¶
func (r UpsertCustomerStripeAppDataResponse) Status() string
Status returns HTTPResponse.Status
func (UpsertCustomerStripeAppDataResponse) StatusCode ¶
func (r UpsertCustomerStripeAppDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpsertSubjectJSONBody ¶
type UpsertSubjectJSONBody = []SubjectUpsert
UpsertSubjectJSONBody defines parameters for UpsertSubject.
type UpsertSubjectJSONRequestBody ¶
type UpsertSubjectJSONRequestBody = UpsertSubjectJSONBody
UpsertSubjectJSONRequestBody defines body for UpsertSubject for application/json ContentType.
type UpsertSubjectResponse ¶
type UpsertSubjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Subject
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseUpsertSubjectResponse ¶
func ParseUpsertSubjectResponse(rsp *http.Response) (*UpsertSubjectResponse, error)
ParseUpsertSubjectResponse parses an HTTP response from a UpsertSubjectWithResponse call
func (UpsertSubjectResponse) Status ¶
func (r UpsertSubjectResponse) Status() string
Status returns HTTPResponse.Status
func (UpsertSubjectResponse) StatusCode ¶
func (r UpsertSubjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ValidationError ¶
type ValidationError struct {
// Attributes Additional attributes.
Attributes *Annotations `json:"attributes,omitempty"`
// Code The machine readable description of the error.
Code string `json:"code"`
// Field The path to the field.
Field string `json:"field"`
// Message The human readable description of the error.
Message string `json:"message"`
}
ValidationError Validation errors providing detailed description of the issue.
type ValidationIssue ¶
type ValidationIssue struct {
// Code Machine indentifiable code for the issue, if available.
Code *string `json:"code,omitempty"`
// Component Component reporting the issue.
Component string `json:"component"`
// CreatedAt Timestamp of when the resource was created.
CreatedAt time.Time `json:"createdAt"`
// DeletedAt Timestamp of when the resource was permanently deleted.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Field The field that the issue is related to, if available in JSON path format.
Field *string `json:"field,omitempty"`
// Id ID of the charge or discount.
Id string `json:"id"`
// Message A human-readable description of the issue.
Message string `json:"message"`
// Metadata Additional context for the issue.
Metadata *Metadata `json:"metadata,omitempty"`
// Severity The severity of the issue.
Severity ValidationIssueSeverity `json:"severity"`
// UpdatedAt Timestamp of when the resource was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
ValidationIssue ValidationIssue captures any validation issues related to the invoice.
Issues with severity "critical" will prevent the invoice from being issued.
type ValidationIssueSeverity ¶
type ValidationIssueSeverity string
ValidationIssueSeverity ValidationIssueSeverity describes the severity of a validation issue.
Issues with severity "critical" will prevent the invoice from being issued.
const ( ValidationIssueSeverityCritical ValidationIssueSeverity = "critical" ValidationIssueSeverityWarning ValidationIssueSeverity = "warning" )
Defines values for ValidationIssueSeverity.
type VoidGrantResponse ¶
type VoidGrantResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON409 *ConflictProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseVoidGrantResponse ¶
func ParseVoidGrantResponse(rsp *http.Response) (*VoidGrantResponse, error)
ParseVoidGrantResponse parses an HTTP response from a VoidGrantWithResponse call
func (VoidGrantResponse) Status ¶
func (r VoidGrantResponse) Status() string
Status returns HTTPResponse.Status
func (VoidGrantResponse) StatusCode ¶
func (r VoidGrantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VoidInvoiceActionCreate ¶
type VoidInvoiceActionCreate struct {
// Action The action to take on the line items.
Action VoidInvoiceLineActionCreate `json:"action"`
// Percentage How much of the total line items to be voided? (e.g. 100% means all charges are voided)
Percentage Percentage `json:"percentage"`
}
VoidInvoiceActionCreate InvoiceVoidAction describes how to handle the voided line items.
type VoidInvoiceActionCreateItem ¶
type VoidInvoiceActionCreateItem struct {
// Action The action to take on the line items.
Action VoidInvoiceLineActionCreateItem `json:"action"`
// Percentage How much of the total line items to be voided? (e.g. 100% means all charges are voided)
Percentage Percentage `json:"percentage"`
}
VoidInvoiceActionCreateItem InvoiceVoidAction describes how to handle the voided line items.
type VoidInvoiceActionInput ¶
type VoidInvoiceActionInput struct {
// Action The action to take on the voided line items.
Action VoidInvoiceActionCreate `json:"action"`
// Overrides Per line item overrides for the action.
//
// If not specified, the `action` will be applied to all line items.
Overrides *[]VoidInvoiceActionLineOverride `json:"overrides"`
// Reason The reason for voiding the invoice.
Reason string `json:"reason"`
}
VoidInvoiceActionInput Request to void an invoice
type VoidInvoiceActionJSONRequestBody ¶
type VoidInvoiceActionJSONRequestBody = VoidInvoiceActionInput
VoidInvoiceActionJSONRequestBody defines body for VoidInvoiceAction for application/json ContentType.
type VoidInvoiceActionLineOverride ¶
type VoidInvoiceActionLineOverride struct {
// Action The action to take on the line item.
Action VoidInvoiceActionCreateItem `json:"action"`
// LineId The line item ID to override.
LineId string `json:"lineId"`
}
VoidInvoiceActionLineOverride VoidInvoiceLineOverride describes how to handle a specific line item in the invoice when voiding.
type VoidInvoiceActionResponse ¶
type VoidInvoiceActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
ApplicationproblemJSON400 *BadRequestProblemResponse
ApplicationproblemJSON401 *UnauthorizedProblemResponse
ApplicationproblemJSON403 *ForbiddenProblemResponse
ApplicationproblemJSON404 *NotFoundProblemResponse
ApplicationproblemJSON412 *PreconditionFailedProblemResponse
ApplicationproblemJSON500 *InternalServerErrorProblemResponse
ApplicationproblemJSON503 *ServiceUnavailableProblemResponse
ApplicationproblemJSONDefault *UnexpectedProblemResponse
}
func ParseVoidInvoiceActionResponse ¶
func ParseVoidInvoiceActionResponse(rsp *http.Response) (*VoidInvoiceActionResponse, error)
ParseVoidInvoiceActionResponse parses an HTTP response from a VoidInvoiceActionWithResponse call
func (VoidInvoiceActionResponse) Status ¶
func (r VoidInvoiceActionResponse) Status() string
Status returns HTTPResponse.Status
func (VoidInvoiceActionResponse) StatusCode ¶
func (r VoidInvoiceActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VoidInvoiceLineActionCreate ¶
type VoidInvoiceLineActionCreate struct {
// contains filtered or unexported fields
}
VoidInvoiceLineActionCreate VoidInvoiceLineAction describes how to handle a specific line item in the invoice when voiding.
func (VoidInvoiceLineActionCreate) AsVoidInvoiceLineDiscardAction ¶
func (t VoidInvoiceLineActionCreate) AsVoidInvoiceLineDiscardAction() (VoidInvoiceLineDiscardAction, error)
AsVoidInvoiceLineDiscardAction returns the union data inside the VoidInvoiceLineActionCreate as a VoidInvoiceLineDiscardAction
func (VoidInvoiceLineActionCreate) AsVoidInvoiceLinePendingActionCreate ¶
func (t VoidInvoiceLineActionCreate) AsVoidInvoiceLinePendingActionCreate() (VoidInvoiceLinePendingActionCreate, error)
AsVoidInvoiceLinePendingActionCreate returns the union data inside the VoidInvoiceLineActionCreate as a VoidInvoiceLinePendingActionCreate
func (VoidInvoiceLineActionCreate) Discriminator ¶
func (t VoidInvoiceLineActionCreate) Discriminator() (string, error)
func (*VoidInvoiceLineActionCreate) FromVoidInvoiceLineDiscardAction ¶
func (t *VoidInvoiceLineActionCreate) FromVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error
FromVoidInvoiceLineDiscardAction overwrites any union data inside the VoidInvoiceLineActionCreate as the provided VoidInvoiceLineDiscardAction
func (*VoidInvoiceLineActionCreate) FromVoidInvoiceLinePendingActionCreate ¶
func (t *VoidInvoiceLineActionCreate) FromVoidInvoiceLinePendingActionCreate(v VoidInvoiceLinePendingActionCreate) error
FromVoidInvoiceLinePendingActionCreate overwrites any union data inside the VoidInvoiceLineActionCreate as the provided VoidInvoiceLinePendingActionCreate
func (VoidInvoiceLineActionCreate) MarshalJSON ¶
func (t VoidInvoiceLineActionCreate) MarshalJSON() ([]byte, error)
func (*VoidInvoiceLineActionCreate) MergeVoidInvoiceLineDiscardAction ¶
func (t *VoidInvoiceLineActionCreate) MergeVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error
MergeVoidInvoiceLineDiscardAction performs a merge with any union data inside the VoidInvoiceLineActionCreate, using the provided VoidInvoiceLineDiscardAction
func (*VoidInvoiceLineActionCreate) MergeVoidInvoiceLinePendingActionCreate ¶
func (t *VoidInvoiceLineActionCreate) MergeVoidInvoiceLinePendingActionCreate(v VoidInvoiceLinePendingActionCreate) error
MergeVoidInvoiceLinePendingActionCreate performs a merge with any union data inside the VoidInvoiceLineActionCreate, using the provided VoidInvoiceLinePendingActionCreate
func (*VoidInvoiceLineActionCreate) UnmarshalJSON ¶
func (t *VoidInvoiceLineActionCreate) UnmarshalJSON(b []byte) error
func (VoidInvoiceLineActionCreate) ValueByDiscriminator ¶
func (t VoidInvoiceLineActionCreate) ValueByDiscriminator() (interface{}, error)
type VoidInvoiceLineActionCreateItem ¶
type VoidInvoiceLineActionCreateItem struct {
// contains filtered or unexported fields
}
VoidInvoiceLineActionCreateItem VoidInvoiceLineAction describes how to handle a specific line item in the invoice when voiding.
func (VoidInvoiceLineActionCreateItem) AsVoidInvoiceLineDiscardAction ¶
func (t VoidInvoiceLineActionCreateItem) AsVoidInvoiceLineDiscardAction() (VoidInvoiceLineDiscardAction, error)
AsVoidInvoiceLineDiscardAction returns the union data inside the VoidInvoiceLineActionCreateItem as a VoidInvoiceLineDiscardAction
func (VoidInvoiceLineActionCreateItem) AsVoidInvoiceLinePendingActionCreateItem ¶
func (t VoidInvoiceLineActionCreateItem) AsVoidInvoiceLinePendingActionCreateItem() (VoidInvoiceLinePendingActionCreateItem, error)
AsVoidInvoiceLinePendingActionCreateItem returns the union data inside the VoidInvoiceLineActionCreateItem as a VoidInvoiceLinePendingActionCreateItem
func (VoidInvoiceLineActionCreateItem) Discriminator ¶
func (t VoidInvoiceLineActionCreateItem) Discriminator() (string, error)
func (*VoidInvoiceLineActionCreateItem) FromVoidInvoiceLineDiscardAction ¶
func (t *VoidInvoiceLineActionCreateItem) FromVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error
FromVoidInvoiceLineDiscardAction overwrites any union data inside the VoidInvoiceLineActionCreateItem as the provided VoidInvoiceLineDiscardAction
func (*VoidInvoiceLineActionCreateItem) FromVoidInvoiceLinePendingActionCreateItem ¶
func (t *VoidInvoiceLineActionCreateItem) FromVoidInvoiceLinePendingActionCreateItem(v VoidInvoiceLinePendingActionCreateItem) error
FromVoidInvoiceLinePendingActionCreateItem overwrites any union data inside the VoidInvoiceLineActionCreateItem as the provided VoidInvoiceLinePendingActionCreateItem
func (VoidInvoiceLineActionCreateItem) MarshalJSON ¶
func (t VoidInvoiceLineActionCreateItem) MarshalJSON() ([]byte, error)
func (*VoidInvoiceLineActionCreateItem) MergeVoidInvoiceLineDiscardAction ¶
func (t *VoidInvoiceLineActionCreateItem) MergeVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error
MergeVoidInvoiceLineDiscardAction performs a merge with any union data inside the VoidInvoiceLineActionCreateItem, using the provided VoidInvoiceLineDiscardAction
func (*VoidInvoiceLineActionCreateItem) MergeVoidInvoiceLinePendingActionCreateItem ¶
func (t *VoidInvoiceLineActionCreateItem) MergeVoidInvoiceLinePendingActionCreateItem(v VoidInvoiceLinePendingActionCreateItem) error
MergeVoidInvoiceLinePendingActionCreateItem performs a merge with any union data inside the VoidInvoiceLineActionCreateItem, using the provided VoidInvoiceLinePendingActionCreateItem
func (*VoidInvoiceLineActionCreateItem) UnmarshalJSON ¶
func (t *VoidInvoiceLineActionCreateItem) UnmarshalJSON(b []byte) error
func (VoidInvoiceLineActionCreateItem) ValueByDiscriminator ¶
func (t VoidInvoiceLineActionCreateItem) ValueByDiscriminator() (interface{}, error)
type VoidInvoiceLineDiscardAction ¶
type VoidInvoiceLineDiscardAction struct {
// Type The action to take on the line item.
Type VoidInvoiceLineDiscardActionType `json:"type"`
}
VoidInvoiceLineDiscardAction VoidInvoiceLineDiscardAction describes how to handle the voidied line item in the invoice.
type VoidInvoiceLineDiscardActionType ¶
type VoidInvoiceLineDiscardActionType string
VoidInvoiceLineDiscardActionType The action to take on the line item.
const (
VoidInvoiceLineDiscardActionTypeDiscard VoidInvoiceLineDiscardActionType = "discard"
)
Defines values for VoidInvoiceLineDiscardActionType.
type VoidInvoiceLinePendingActionCreate ¶
type VoidInvoiceLinePendingActionCreate struct {
// NextInvoiceAt The time at which the line item should be invoiced again.
//
// If not provided, the line item will be re-invoiced now.
NextInvoiceAt *time.Time `json:"nextInvoiceAt,omitempty"`
// Type The action to take on the line item.
Type VoidInvoiceLinePendingActionCreateType `json:"type"`
}
VoidInvoiceLinePendingActionCreate VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice.
type VoidInvoiceLinePendingActionCreateItem ¶
type VoidInvoiceLinePendingActionCreateItem struct {
// NextInvoiceAt The time at which the line item should be invoiced again.
//
// If not provided, the line item will be re-invoiced now.
NextInvoiceAt *time.Time `json:"nextInvoiceAt,omitempty"`
// Type The action to take on the line item.
Type VoidInvoiceLinePendingActionCreateItemType `json:"type"`
}
VoidInvoiceLinePendingActionCreateItem VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice.
type VoidInvoiceLinePendingActionCreateItemType ¶
type VoidInvoiceLinePendingActionCreateItemType string
VoidInvoiceLinePendingActionCreateItemType The action to take on the line item.
const (
VoidInvoiceLinePendingActionCreateItemTypePending VoidInvoiceLinePendingActionCreateItemType = "pending"
)
Defines values for VoidInvoiceLinePendingActionCreateItemType.
type VoidInvoiceLinePendingActionCreateType ¶
type VoidInvoiceLinePendingActionCreateType string
VoidInvoiceLinePendingActionCreateType The action to take on the line item.
const (
VoidInvoiceLinePendingActionCreateTypePending VoidInvoiceLinePendingActionCreateType = "pending"
)
Defines values for VoidInvoiceLinePendingActionCreateType.
type WindowSize ¶
type WindowSize string
WindowSize Aggregation window size.
const ( WindowSizeDay WindowSize = "DAY" WindowSizeHour WindowSize = "HOUR" WindowSizeMinute WindowSize = "MINUTE" WindowSizeMonth WindowSize = "MONTH" )
Defines values for WindowSize.
type WindowedBalanceHistory ¶
type WindowedBalanceHistory struct {
// BurndownHistory Grant burndown history.
BurndownHistory []GrantBurnDownHistorySegment `json:"burndownHistory"`
// WindowedHistory The windowed balance history.
// - It only returns rows for windows where there was usage.
// - The windows are inclusive at their start and exclusive at their end.
// - The last window may be smaller than the window size and is inclusive at both ends.
WindowedHistory []BalanceHistoryWindow `json:"windowedHistory"`
}
WindowedBalanceHistory The windowed balance history.