openmeter

package
v1.0.0-beta.208 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 17 Imported by: 2

README

OpenMeter Go SDK

Install

go get github.com/openmeterio/openmeter/api/client/go@v1.0.0-beta.53

Usage

Initialize client.

import (
  cloudevents "github.com/cloudevents/sdk-go/v2/event"
  om "github.com/openmeterio/openmeter/api/client/go"
)

func main() {
  // Initialize OpenMeter client
  om, err := openmeter.NewClientWithResponses("http://localhost:8888")
  if err != nil {
      panic(err.Error())
  }

  // Use OpenMeter client
  // ...
}
Ingest Event

Report usage to OpenMeter.

e := cloudevents.New()
e.SetID("00001")
e.SetSource("my-app")
e.SetType("tokens")
e.SetSubject("user-id")
e.SetTime(time.Now())
e.SetData("application/json", map[string]string{
  "tokens": "15",
  "model": "gpt-4",
})

_, err := client.IngestEventWithResponse(ctx, e)
Query Meter

Retreive usage from OpenMeter.

slug := "token-usage"
subject := []string{"user-id"}
from, _ := time.Parse(time.RFC3339, "2023-01-01T00:00:00Z")
to, _ := time.Parse(time.RFC3339, "2023-01-02T00:00:00Z")
resp, _ := client.QueryMeterWithResponse(ctx, slug, &om.QueryMeterParams{
    Subject: &subject,
    From:    &from,
    To:      &to,
})
// resp.JSON200.Data

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.4.1 DO NOT EDIT.

Index

Constants

View Source
const (
	CloudCookieAuthScopes      = "CloudCookieAuth.Scopes"
	CloudPortalTokenAuthScopes = "CloudPortalTokenAuth.Scopes"
	CloudTokenAuthScopes       = "CloudTokenAuth.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

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

func NewAdvanceInvoiceActionRequest(server string, invoiceId string) (*http.Request, error)

NewAdvanceInvoiceActionRequest generates requests for AdvanceInvoiceAction

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

func NewApproveInvoiceActionRequest(server string, invoiceId string) (*http.Request, error)

NewApproveInvoiceActionRequest generates requests for ApproveInvoiceAction

func NewArchiveAddonRequest

func NewArchiveAddonRequest(server string, addonId string) (*http.Request, error)

NewArchiveAddonRequest generates requests for ArchiveAddon

func NewArchivePlanRequest

func NewArchivePlanRequest(server string, planId string) (*http.Request, error)

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 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 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, body CreatePendingInvoiceLineJSONRequestBody) (*http.Request, error)

NewCreatePendingInvoiceLineRequest calls the generic CreatePendingInvoiceLine builder with application/json body

func NewCreatePendingInvoiceLineRequestWithBody

func NewCreatePendingInvoiceLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePendingInvoiceLineRequestWithBody generates requests for CreatePendingInvoiceLine 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

func NewDeleteAddonRequest(server string, addonId string) (*http.Request, error)

NewDeleteAddonRequest generates requests for DeleteAddon

func NewDeleteBillingProfileCustomerOverrideRequest

func NewDeleteBillingProfileCustomerOverrideRequest(server string, customerId string) (*http.Request, error)

NewDeleteBillingProfileCustomerOverrideRequest generates requests for DeleteBillingProfileCustomerOverride

func NewDeleteBillingProfileRequest

func NewDeleteBillingProfileRequest(server string, id string) (*http.Request, error)

NewDeleteBillingProfileRequest generates requests for DeleteBillingProfile

func NewDeleteCustomerAppDataRequest

func NewDeleteCustomerAppDataRequest(server string, customerIdOrKey string, appId string) (*http.Request, error)

NewDeleteCustomerAppDataRequest generates requests for DeleteCustomerAppData

func NewDeleteCustomerRequest

func NewDeleteCustomerRequest(server string, customerIdOrKey string) (*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

func NewDeleteFeatureRequest(server string, featureId string) (*http.Request, error)

NewDeleteFeatureRequest generates requests for DeleteFeature

func NewDeleteInvoiceRequest

func NewDeleteInvoiceRequest(server string, invoiceId string) (*http.Request, error)

NewDeleteInvoiceRequest generates requests for DeleteInvoice

func NewDeleteMeterRequest

func NewDeleteMeterRequest(server string, meterIdOrSlug string) (*http.Request, error)

NewDeleteMeterRequest generates requests for DeleteMeter

func NewDeleteNotificationChannelRequest

func NewDeleteNotificationChannelRequest(server string, channelId string) (*http.Request, error)

NewDeleteNotificationChannelRequest generates requests for DeleteNotificationChannel

func NewDeleteNotificationRuleRequest

func NewDeleteNotificationRuleRequest(server string, ruleId string) (*http.Request, error)

NewDeleteNotificationRuleRequest generates requests for DeleteNotificationRule

func NewDeletePlanRequest

func NewDeletePlanRequest(server string, planId string) (*http.Request, error)

NewDeletePlanRequest generates requests for DeletePlan

func NewDeleteSubjectRequest

func NewDeleteSubjectRequest(server string, subjectIdOrKey string) (*http.Request, error)

NewDeleteSubjectRequest generates requests for DeleteSubject

func NewDeleteSubscriptionRequest

func NewDeleteSubscriptionRequest(server string, subscriptionId string) (*http.Request, error)

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

func NewGetAppRequest(server string, id string) (*http.Request, error)

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 string) (*http.Request, error)

NewGetCustomerAccessRequest generates requests for GetCustomerAccess

func NewGetCustomerEntitlementValueRequest

func NewGetCustomerEntitlementValueRequest(server string, customerIdOrKey string, featureKey string, params *GetCustomerEntitlementValueParams) (*http.Request, error)

NewGetCustomerEntitlementValueRequest generates requests for GetCustomerEntitlementValue

func NewGetCustomerRequest

func NewGetCustomerRequest(server string, customerIdOrKey string) (*http.Request, error)

NewGetCustomerRequest generates requests for GetCustomer

func NewGetDebugMetricsRequest

func NewGetDebugMetricsRequest(server string) (*http.Request, error)

NewGetDebugMetricsRequest generates requests for GetDebugMetrics

func NewGetEntitlementByIdRequest

func NewGetEntitlementByIdRequest(server string, entitlementId string) (*http.Request, error)

NewGetEntitlementByIdRequest generates requests for GetEntitlementById

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

func NewGetFeatureRequest(server string, featureId string) (*http.Request, error)

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

func NewGetMarketplaceListingRequest(server string, pType AppType) (*http.Request, error)

NewGetMarketplaceListingRequest generates requests for GetMarketplaceListing

func NewGetMeterRequest

func NewGetMeterRequest(server string, meterIdOrSlug string) (*http.Request, error)

NewGetMeterRequest generates requests for GetMeter

func NewGetNotificationChannelRequest

func NewGetNotificationChannelRequest(server string, channelId string) (*http.Request, error)

NewGetNotificationChannelRequest generates requests for GetNotificationChannel

func NewGetNotificationEventRequest

func NewGetNotificationEventRequest(server string, eventId string) (*http.Request, error)

NewGetNotificationEventRequest generates requests for GetNotificationEvent

func NewGetNotificationRuleRequest

func NewGetNotificationRuleRequest(server string, ruleId string) (*http.Request, error)

NewGetNotificationRuleRequest generates requests for GetNotificationRule

func NewGetPlanRequest

func NewGetPlanRequest(server string, planId string, params *GetPlanParams) (*http.Request, error)

NewGetPlanRequest generates requests for GetPlan

func NewGetProgressRequest

func NewGetProgressRequest(server string, id string) (*http.Request, error)

NewGetProgressRequest generates requests for GetProgress

func NewGetSubjectRequest

func NewGetSubjectRequest(server string, subjectIdOrKey string) (*http.Request, error)

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

func NewListCurrenciesRequest(server string) (*http.Request, error)

NewListCurrenciesRequest generates requests for ListCurrencies

func NewListCustomerAppDataRequest

func NewListCustomerAppDataRequest(server string, customerIdOrKey string, params *ListCustomerAppDataParams) (*http.Request, error)

NewListCustomerAppDataRequest generates requests for ListCustomerAppData

func NewListCustomerSubscriptionsRequest

func NewListCustomerSubscriptionsRequest(server string, customerIdOrKey string, 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 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 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 NewListMeterSubjectsRequest

func NewListMeterSubjectsRequest(server string, meterIdOrSlug string) (*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 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

func NewListSubjectsRequest(server string) (*http.Request, error)

NewListSubjectsRequest generates requests for ListSubjects

func NewListSubscriptionAddonsRequest

func NewListSubscriptionAddonsRequest(server string, subscriptionId string) (*http.Request, error)

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 NewMarketplaceOAuth2InstallAuthorizeRequest

func NewMarketplaceOAuth2InstallAuthorizeRequest(server string, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams) (*http.Request, error)

NewMarketplaceOAuth2InstallAuthorizeRequest generates requests for MarketplaceOAuth2InstallAuthorize

func NewMarketplaceOAuth2InstallGetURLRequest

func NewMarketplaceOAuth2InstallGetURLRequest(server string, pType AppType) (*http.Request, error)

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

func NewNextPlanRequest(server string, planIdOrKey string) (*http.Request, error)

NewNextPlanRequest generates requests for NextPlan

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

func NewPublishAddonRequest(server string, addonId string) (*http.Request, error)

NewPublishAddonRequest generates requests for PublishAddon

func NewPublishPlanRequest

func NewPublishPlanRequest(server string, planId string) (*http.Request, error)

NewPublishPlanRequest generates requests for PublishPlan

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

func NewRecalculateInvoiceTaxActionRequest(server string, invoiceId string) (*http.Request, error)

NewRecalculateInvoiceTaxActionRequest generates requests for RecalculateInvoiceTaxAction

func NewReceiveSvixOperationalEventRequest

func NewReceiveSvixOperationalEventRequest(server string, body ReceiveSvixOperationalEventJSONRequestBody) (*http.Request, error)

NewReceiveSvixOperationalEventRequest calls the generic ReceiveSvixOperationalEvent builder with application/json body

func NewReceiveSvixOperationalEventRequestWithBody

func NewReceiveSvixOperationalEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewReceiveSvixOperationalEventRequestWithBody generates requests for ReceiveSvixOperationalEvent 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

func NewRestoreSubscriptionRequest(server string, subscriptionId string) (*http.Request, error)

NewRestoreSubscriptionRequest generates requests for RestoreSubscription

func NewRetryInvoiceActionRequest

func NewRetryInvoiceActionRequest(server string, invoiceId string) (*http.Request, error)

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 NewTestNotificationRuleRequest

func NewTestNotificationRuleRequest(server string, ruleId string) (*http.Request, error)

NewTestNotificationRuleRequest generates requests for TestNotificationRule

func NewUninstallAppRequest

func NewUninstallAppRequest(server string, id string) (*http.Request, error)

NewUninstallAppRequest generates requests for UninstallApp

func NewUnscheduleCancelationRequest

func NewUnscheduleCancelationRequest(server string, subscriptionId string) (*http.Request, error)

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 string, body UpdateCustomerJSONRequestBody) (*http.Request, error)

NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body

func NewUpdateCustomerRequestWithBody

func NewUpdateCustomerRequestWithBody(server string, customerIdOrKey string, 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 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 string, body UpsertCustomerAppDataJSONRequestBody) (*http.Request, error)

NewUpsertCustomerAppDataRequest calls the generic UpsertCustomerAppData builder with application/json body

func NewUpsertCustomerAppDataRequestWithBody

func NewUpsertCustomerAppDataRequestWithBody(server string, customerIdOrKey string, contentType string, body io.Reader) (*http.Request, error)

NewUpsertCustomerAppDataRequestWithBody generates requests for UpsertCustomerAppData 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

func NewVoidGrantRequest(server string, grantId string) (*http.Request, error)

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

func NewVoidInvoiceActionRequestWithBody

func NewVoidInvoiceActionRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error)

NewVoidInvoiceActionRequestWithBody generates requests for VoidInvoiceAction with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

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"`

	// 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

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.
	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) AsSandboxApp

func (t App) AsSandboxApp() (SandboxApp, error)

AsSandboxApp returns the union data inside the App as a SandboxApp

func (App) AsStripeApp

func (t App) AsStripeApp() (StripeApp, error)

AsStripeApp returns the union data inside the App as a StripeApp

func (App) Discriminator

func (t App) Discriminator() (string, error)

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

func (t *App) FromStripeApp(v StripeApp) error

FromStripeApp overwrites any union data inside the App as the provided StripeApp

func (App) MarshalJSON

func (t App) MarshalJSON() ([]byte, error)

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

func (t *App) MergeStripeApp(v StripeApp) error

MergeStripeApp performs a merge with any union data inside the App, using the provided StripeApp

func (*App) UnmarshalJSON

func (t *App) UnmarshalJSON(b []byte) error

func (App) ValueByDiscriminator

func (t App) ValueByDiscriminator() (interface{}, error)

type AppBaseReplaceUpdate

type AppBaseReplaceUpdate struct {
	// Default Default for the app type
	// Only one app of each type can be default.
	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"`
}

AppBaseReplaceUpdate Resource update operation model.

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 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 AppStatus

type AppStatus string

AppStatus App installed status.

const (
	AppStatusReady        AppStatus = "ready"
	AppStatusUnauthorized AppStatus = "unauthorized"
)

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 AppType

type AppType string

AppType Type of the app.

const (
	AppTypeSandbox AppType = "sandbox"
	AppTypeStripe  AppType = "stripe"
)

Defines values for AppType.

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

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 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"`

	// 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"`

	// 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 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"`
}

BillingWorkflow BillingWorkflow represents the settings for a billing workflow.

type BillingWorkflowCollectionAlignment

type BillingWorkflowCollectionAlignment = BillingWorkflowCollectionAlignmentSubscription

BillingWorkflowCollectionAlignment BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items into an invoice.

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"`
}

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.
	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 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     *BadRequestProblemResponse
	ApplicationproblemJSON401     *UnauthorizedProblemResponse
	ApplicationproblemJSON403     *ForbiddenProblemResponse
	ApplicationproblemJSON404     *NotFoundProblemResponse
	ApplicationproblemJSON409     *ConflictProblemResponse
	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

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     *BadRequestProblemResponse
	ApplicationproblemJSON401     *UnauthorizedProblemResponse
	ApplicationproblemJSON403     *ForbiddenProblemResponse
	ApplicationproblemJSON404     *NotFoundProblemResponse
	ApplicationproblemJSON409     *ConflictProblemResponse
	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

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 (c *Client) AdvanceInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AppStripeWebhook

func (c *Client) AppStripeWebhook(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AppStripeWebhookWithBody

func (c *Client) AppStripeWebhookWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApproveInvoiceAction

func (c *Client) ApproveInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ArchiveAddon

func (c *Client) ArchiveAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ArchivePlan

func (c *Client) ArchivePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelSubscription

func (c *Client) CancelSubscription(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelSubscriptionWithBody

func (c *Client) CancelSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeSubscription

func (c *Client) ChangeSubscription(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeSubscriptionWithBody

func (c *Client) ChangeSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAddon

func (c *Client) CreateAddon(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAddonWithBody

func (c *Client) CreateAddonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBillingProfile

func (c *Client) CreateBillingProfile(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBillingProfileWithBody

func (c *Client) CreateBillingProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCustomer

func (c *Client) CreateCustomer(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCustomerWithBody

func (c *Client) CreateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateEntitlement

func (c *Client) CreateEntitlement(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateEntitlementWithBody

func (c *Client) CreateEntitlementWithBody(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFeature

func (c *Client) CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFeatureWithBody

func (c *Client) CreateFeatureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) CreateGrantWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMeter

func (c *Client) CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMeterWithBody

func (c *Client) CreateMeterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateNotificationChannel

func (c *Client) CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateNotificationChannelWithBody

func (c *Client) CreateNotificationChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateNotificationRule

func (c *Client) CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateNotificationRuleWithBody

func (c *Client) CreateNotificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePendingInvoiceLine

func (c *Client) CreatePendingInvoiceLine(ctx context.Context, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePendingInvoiceLineWithBody

func (c *Client) CreatePendingInvoiceLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePlan

func (c *Client) CreatePlan(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePlanWithBody

func (c *Client) CreatePlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePortalToken

func (c *Client) CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePortalTokenWithBody

func (c *Client) CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStripeCheckoutSession

func (c *Client) CreateStripeCheckoutSession(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStripeCheckoutSessionWithBody

func (c *Client) CreateStripeCheckoutSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) CreateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSubscriptionWithBody

func (c *Client) CreateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAddon

func (c *Client) DeleteAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBillingProfile

func (c *Client) DeleteBillingProfile(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBillingProfileCustomerOverride

func (c *Client) DeleteBillingProfileCustomerOverride(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCustomer

func (c *Client) DeleteCustomer(ctx context.Context, customerIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCustomerAppData

func (c *Client) DeleteCustomerAppData(ctx context.Context, customerIdOrKey string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteEntitlement

func (c *Client) DeleteEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteFeature

func (c *Client) DeleteFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteInvoice

func (c *Client) DeleteInvoice(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteMeter

func (c *Client) DeleteMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteNotificationChannel

func (c *Client) DeleteNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteNotificationRule

func (c *Client) DeleteNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeletePlan

func (c *Client) DeletePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSubject

func (c *Client) DeleteSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSubscription

func (c *Client) DeleteSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) EditSubscription

func (c *Client) EditSubscription(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) EditSubscriptionWithBody

func (c *Client) EditSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAddon

func (c *Client) GetAddon(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetApp

func (c *Client) GetApp(ctx context.Context, id string, 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 string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCustomerAccess

func (c *Client) GetCustomerAccess(ctx context.Context, customerIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCustomerEntitlementValue

func (c *Client) GetCustomerEntitlementValue(ctx context.Context, customerIdOrKey string, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDebugMetrics

func (c *Client) GetDebugMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetEntitlement

func (c *Client) GetEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetEntitlementById

func (c *Client) GetEntitlementById(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) GetFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInvoice

func (c *Client) GetInvoice(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMarketplaceListing

func (c *Client) GetMarketplaceListing(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeter

func (c *Client) GetMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNotificationChannel

func (c *Client) GetNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNotificationEvent

func (c *Client) GetNotificationEvent(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNotificationRule

func (c *Client) GetNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPlan

func (c *Client) GetPlan(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProgress

func (c *Client) GetProgress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSubject

func (c *Client) GetSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSubscription

func (c *Client) GetSubscription(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSubscriptionAddon

func (c *Client) GetSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) IngestEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InvalidatePortalTokens

func (c *Client) InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InvalidatePortalTokensWithBody

func (c *Client) InvalidatePortalTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InvoicePendingLinesAction

func (c *Client) InvoicePendingLinesAction(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InvoicePendingLinesActionWithBody

func (c *Client) InvoicePendingLinesActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) ListCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCustomerAppData

func (c *Client) ListCustomerAppData(ctx context.Context, customerIdOrKey string, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCustomerSubscriptions

func (c *Client) ListCustomerSubscriptions(ctx context.Context, customerIdOrKey string, 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) 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) 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) ListMeterSubjects

func (c *Client) ListMeterSubjects(ctx context.Context, meterIdOrSlug string, 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) 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 (c *Client) ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSubscriptionAddons

func (c *Client) ListSubscriptionAddons(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MarketplaceAppAPIKeyInstallWithBody

func (c *Client) MarketplaceAppAPIKeyInstallWithBody(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MarketplaceOAuth2InstallGetURL

func (c *Client) MarketplaceOAuth2InstallGetURL(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MigrateSubscription

func (c *Client) MigrateSubscription(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MigrateSubscriptionWithBody

func (c *Client) MigrateSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) NextPlan

func (c *Client) NextPlan(ctx context.Context, planIdOrKey string, 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 (c *Client) OverrideEntitlementWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PublishAddon

func (c *Client) PublishAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PublishPlan

func (c *Client) PublishPlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryMeter

func (c *Client) QueryMeter(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryPortalMeter

func (c *Client) QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RecalculateInvoiceTaxAction

func (c *Client) RecalculateInvoiceTaxAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReceiveSvixOperationalEvent

func (c *Client) ReceiveSvixOperationalEvent(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReceiveSvixOperationalEventWithBody

func (c *Client) ReceiveSvixOperationalEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) ResetEntitlementUsageWithBody(ctx context.Context, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RestoreSubscription

func (c *Client) RestoreSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetryInvoiceAction

func (c *Client) RetryInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SimulateInvoice

func (c *Client) SimulateInvoice(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SimulateInvoiceWithBody

func (c *Client) SimulateInvoiceWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TestNotificationRule

func (c *Client) TestNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UninstallApp

func (c *Client) UninstallApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UnscheduleCancelation

func (c *Client) UnscheduleCancelation(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAddon

func (c *Client) UpdateAddon(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAddonWithBody

func (c *Client) UpdateAddonWithBody(ctx context.Context, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateApp

func (c *Client) UpdateApp(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAppWithBody

func (c *Client) UpdateAppWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateBillingProfile

func (c *Client) UpdateBillingProfile(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateBillingProfileWithBody

func (c *Client) UpdateBillingProfileWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCustomer

func (c *Client) UpdateCustomer(ctx context.Context, customerIdOrKey string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCustomerWithBody

func (c *Client) UpdateCustomerWithBody(ctx context.Context, customerIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateInvoice

func (c *Client) UpdateInvoice(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateInvoiceWithBody

func (c *Client) UpdateInvoiceWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMeter

func (c *Client) UpdateMeter(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMeterWithBody

func (c *Client) UpdateMeterWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateNotificationChannel

func (c *Client) UpdateNotificationChannel(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateNotificationChannelWithBody

func (c *Client) UpdateNotificationChannelWithBody(ctx context.Context, channelId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateNotificationRule

func (c *Client) UpdateNotificationRule(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateNotificationRuleWithBody

func (c *Client) UpdateNotificationRuleWithBody(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePlan

func (c *Client) UpdatePlan(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePlanWithBody

func (c *Client) UpdatePlanWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateStripeAPIKey

func (c *Client) UpdateStripeAPIKey(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateStripeAPIKeyWithBody

func (c *Client) UpdateStripeAPIKeyWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) UpdateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertBillingProfileCustomerOverride

func (c *Client) UpsertBillingProfileCustomerOverride(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertBillingProfileCustomerOverrideWithBody

func (c *Client) UpsertBillingProfileCustomerOverrideWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertCustomerAppData

func (c *Client) UpsertCustomerAppData(ctx context.Context, customerIdOrKey string, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertCustomerAppDataWithBody

func (c *Client) UpsertCustomerAppDataWithBody(ctx context.Context, customerIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertSubject

func (c *Client) UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertSubjectWithBody

func (c *Client) UpsertSubjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) VoidGrant

func (c *Client) VoidGrant(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) VoidInvoiceAction

func (c *Client) VoidInvoiceAction(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) VoidInvoiceActionWithBody

func (c *Client) VoidInvoiceActionWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, 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)

	// 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)

	// 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)

	// CreatePendingInvoiceLineWithBody request with any body
	CreatePendingInvoiceLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreatePendingInvoiceLine(ctx context.Context, body CreatePendingInvoiceLineJSONRequestBody, 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)

	// 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 string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCustomer request
	GetCustomer(ctx context.Context, customerIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCustomerWithBody request with any body
	UpdateCustomerWithBody(ctx context.Context, customerIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateCustomer(ctx context.Context, customerIdOrKey string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCustomerAccess request
	GetCustomerAccess(ctx context.Context, customerIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCustomerAppData request
	ListCustomerAppData(ctx context.Context, customerIdOrKey string, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpsertCustomerAppDataWithBody request with any body
	UpsertCustomerAppDataWithBody(ctx context.Context, customerIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpsertCustomerAppData(ctx context.Context, customerIdOrKey string, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCustomerAppData request
	DeleteCustomerAppData(ctx context.Context, customerIdOrKey string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCustomerEntitlementValue request
	GetCustomerEntitlementValue(ctx context.Context, customerIdOrKey string, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCustomerSubscriptions request
	ListCustomerSubscriptions(ctx context.Context, customerIdOrKey string, 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)

	// 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)

	// QueryMeter request
	QueryMeter(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMeterSubjects request
	ListMeterSubjects(ctx context.Context, meterIdOrSlug string, 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)

	// 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)

	// ReceiveSvixOperationalEventWithBody request with any body
	ReceiveSvixOperationalEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReceiveSvixOperationalEvent(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, 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)

	// 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)

	// ListEventsV2 request
	ListEventsV2(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) 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) 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, 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, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, 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 string, appId string, reqEditors ...RequestEditorFn) (*DeleteCustomerAppDataResponse, error)

DeleteCustomerAppDataWithResponse request returning *DeleteCustomerAppDataResponse

func (*ClientWithResponses) DeleteCustomerWithResponse

func (c *ClientWithResponses) DeleteCustomerWithResponse(ctx context.Context, customerIdOrKey string, 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) 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 string, reqEditors ...RequestEditorFn) (*GetCustomerAccessResponse, error)

GetCustomerAccessWithResponse request returning *GetCustomerAccessResponse

func (*ClientWithResponses) GetCustomerEntitlementValueWithResponse

func (c *ClientWithResponses) GetCustomerEntitlementValueWithResponse(ctx context.Context, customerIdOrKey string, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueResponse, error)

GetCustomerEntitlementValueWithResponse request returning *GetCustomerEntitlementValueResponse

func (*ClientWithResponses) GetCustomerWithResponse

func (c *ClientWithResponses) GetCustomerWithResponse(ctx context.Context, customerIdOrKey string, 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) 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) 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 string, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*ListCustomerAppDataResponse, error)

ListCustomerAppDataWithResponse request returning *ListCustomerAppDataResponse

func (*ClientWithResponses) ListCustomerSubscriptionsWithResponse

func (c *ClientWithResponses) ListCustomerSubscriptionsWithResponse(ctx context.Context, customerIdOrKey string, 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) 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) 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) ListMeterSubjectsWithResponse

func (c *ClientWithResponses) ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug string, 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) 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) MarketplaceOAuth2InstallAuthorizeWithResponse

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) 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) 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) ReceiveSvixOperationalEventWithBodyWithResponse

func (c *ClientWithResponses) ReceiveSvixOperationalEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReceiveSvixOperationalEventResponse, error)

ReceiveSvixOperationalEventWithBodyWithResponse request with arbitrary body returning *ReceiveSvixOperationalEventResponse

func (*ClientWithResponses) ReceiveSvixOperationalEventWithResponse

func (c *ClientWithResponses) ReceiveSvixOperationalEventWithResponse(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, reqEditors ...RequestEditorFn) (*ReceiveSvixOperationalEventResponse, 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) 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 string, 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 string, 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) 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 string, 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 string, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, 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)

	// 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)

	// 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)

	// CreatePendingInvoiceLineWithBodyWithResponse request with any body
	CreatePendingInvoiceLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error)

	CreatePendingInvoiceLineWithResponse(ctx context.Context, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, 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)

	// 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 string, reqEditors ...RequestEditorFn) (*DeleteCustomerResponse, error)

	// GetCustomerWithResponse request
	GetCustomerWithResponse(ctx context.Context, customerIdOrKey string, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error)

	// UpdateCustomerWithBodyWithResponse request with any body
	UpdateCustomerWithBodyWithResponse(ctx context.Context, customerIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)

	UpdateCustomerWithResponse(ctx context.Context, customerIdOrKey string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)

	// GetCustomerAccessWithResponse request
	GetCustomerAccessWithResponse(ctx context.Context, customerIdOrKey string, reqEditors ...RequestEditorFn) (*GetCustomerAccessResponse, error)

	// ListCustomerAppDataWithResponse request
	ListCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey string, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*ListCustomerAppDataResponse, error)

	// UpsertCustomerAppDataWithBodyWithResponse request with any body
	UpsertCustomerAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error)

	UpsertCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey string, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error)

	// DeleteCustomerAppDataWithResponse request
	DeleteCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey string, appId string, reqEditors ...RequestEditorFn) (*DeleteCustomerAppDataResponse, error)

	// GetCustomerEntitlementValueWithResponse request
	GetCustomerEntitlementValueWithResponse(ctx context.Context, customerIdOrKey string, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueResponse, error)

	// ListCustomerSubscriptionsWithResponse request
	ListCustomerSubscriptionsWithResponse(ctx context.Context, customerIdOrKey string, 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)

	// 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)

	// QueryMeterWithResponse request
	QueryMeterWithResponse(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*QueryMeterResponse, error)

	// ListMeterSubjectsWithResponse request
	ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug string, 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)

	// 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)

	// ReceiveSvixOperationalEventWithBodyWithResponse request with any body
	ReceiveSvixOperationalEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReceiveSvixOperationalEventResponse, error)

	ReceiveSvixOperationalEventWithResponse(ctx context.Context, body ReceiveSvixOperationalEventJSONRequestBody, reqEditors ...RequestEditorFn) (*ReceiveSvixOperationalEventResponse, 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)

	// 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)

	// ListEventsV2WithResponse request
	ListEventsV2WithResponse(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*ListEventsV2Response, 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

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 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 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

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

Status returns HTTPResponse.Status

func (CreateNotificationRuleResponse) StatusCode

func (r CreateNotificationRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePendingInvoiceLineJSONBody

type CreatePendingInvoiceLineJSONBody = []InvoicePendingLineCreate

CreatePendingInvoiceLineJSONBody defines parameters for CreatePendingInvoiceLine.

type CreatePendingInvoiceLineJSONRequestBody

type CreatePendingInvoiceLineJSONRequestBody = CreatePendingInvoiceLineJSONBody

CreatePendingInvoiceLineJSONRequestBody defines body for CreatePendingInvoiceLine for application/json ContentType.

type CreatePendingInvoiceLineResponse

type CreatePendingInvoiceLineResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	JSON201                       *[]InvoiceLine
	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

Status returns HTTPResponse.Status

func (CreatePendingInvoiceLineResponse) StatusCode

func (r CreatePendingInvoiceLineResponse) 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

AsCustomerCreate returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerCreate

func (CreateStripeCheckoutSessionRequest_Customer) AsCustomerId

AsCustomerId returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerId

func (CreateStripeCheckoutSessionRequest_Customer) AsCustomerKey

AsCustomerKey returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerKey

func (*CreateStripeCheckoutSessionRequest_Customer) FromCustomerCreate

FromCustomerCreate overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerCreate

func (*CreateStripeCheckoutSessionRequest_Customer) FromCustomerId

FromCustomerId overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerId

func (*CreateStripeCheckoutSessionRequest_Customer) FromCustomerKey

FromCustomerKey overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerKey

func (CreateStripeCheckoutSessionRequest_Customer) MarshalJSON

func (*CreateStripeCheckoutSessionRequest_Customer) MergeCustomerCreate

MergeCustomerCreate performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerCreate

func (*CreateStripeCheckoutSessionRequest_Customer) MergeCustomerId

MergeCustomerId performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerId

func (*CreateStripeCheckoutSessionRequest_Customer) MergeCustomerKey

MergeCustomerKey performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerKey

func (*CreateStripeCheckoutSessionRequest_Customer) UnmarshalJSON

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

Status returns HTTPResponse.Status

func (CreateStripeCheckoutSessionResponse) StatusCode

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 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

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     *BadRequestProblemResponse
	ApplicationproblemJSON401     *UnauthorizedProblemResponse
	ApplicationproblemJSON403     *ForbiddenProblemResponse
	ApplicationproblemJSON409     *ConflictProblemResponse
	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

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 CustomPlanInput

type CustomPlanInput struct {
	// Alignment Alignment configuration for the plan.
	Alignment *Alignment `json:"alignment,omitempty"`

	// 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"`
}

CustomPlanInput The template for omitting properties.

type CustomSubscriptionChange

type CustomSubscriptionChange struct {
	// 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 {
	// 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 {
	// 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"`

	// 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

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) 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) 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 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 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 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

Status returns HTTPResponse.Status

func (DeleteBillingProfileCustomerOverrideResponse) StatusCode

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

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

Status returns HTTPResponse.Status

func (DeleteCustomerAppDataResponse) StatusCode

func (r DeleteCustomerAppDataResponse) 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

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

Status returns HTTPResponse.Status

func (DeleteNotificationRuleResponse) StatusCode

func (r DeleteNotificationRuleResponse) 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     *BadRequestProblemResponse
	ApplicationproblemJSON401     *UnauthorizedProblemResponse
	ApplicationproblemJSON403     *ForbiddenProblemResponse
	ApplicationproblemJSON404     *NotFoundProblemResponse
	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

Status returns HTTPResponse.Status

func (DeleteSubscriptionResponse) StatusCode

func (r DeleteSubscriptionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Discount

type Discount struct {
	// contains filtered or unexported fields
}

Discount A discount on a price.

func (Discount) AsDiscountPercentage

func (t Discount) AsDiscountPercentage() (DiscountPercentage, error)

AsDiscountPercentage returns the union data inside the Discount as a DiscountPercentage

func (Discount) AsDiscountUsage

func (t Discount) AsDiscountUsage() (DiscountUsage, error)

AsDiscountUsage returns the union data inside the Discount as a DiscountUsage

func (Discount) Discriminator

func (t Discount) Discriminator() (string, error)

func (*Discount) FromDiscountPercentage

func (t *Discount) FromDiscountPercentage(v DiscountPercentage) error

FromDiscountPercentage overwrites any union data inside the Discount as the provided DiscountPercentage

func (*Discount) FromDiscountUsage

func (t *Discount) FromDiscountUsage(v DiscountUsage) error

FromDiscountUsage overwrites any union data inside the Discount as the provided DiscountUsage

func (Discount) MarshalJSON

func (t Discount) MarshalJSON() ([]byte, error)

func (*Discount) MergeDiscountPercentage

func (t *Discount) MergeDiscountPercentage(v DiscountPercentage) error

MergeDiscountPercentage performs a merge with any union data inside the Discount, using the provided DiscountPercentage

func (*Discount) MergeDiscountUsage

func (t *Discount) MergeDiscountUsage(v DiscountUsage) error

MergeDiscountUsage performs a merge with any union data inside the Discount, using the provided DiscountUsage

func (*Discount) UnmarshalJSON

func (t *Discount) UnmarshalJSON(b []byte) error

func (Discount) ValueByDiscriminator

func (t Discount) ValueByDiscriminator() (interface{}, error)

type DiscountPercentage

type DiscountPercentage struct {
	// Percentage The percentage of the discount.
	Percentage Percentage `json:"percentage"`

	// Type The type of the discount.
	Type DiscountPercentageType `json:"type"`
}

DiscountPercentage Percentage discount.

type DiscountPercentageType

type DiscountPercentageType string

DiscountPercentageType The type of the discount.

const (
	DiscountPercentageTypePercentage DiscountPercentageType = "percentage"
)

Defines values for DiscountPercentageType.

type DiscountUsage

type DiscountUsage struct {
	// Quantity The quantity of the usage discount.
	//
	// Must be positive.
	Quantity Numeric `json:"quantity"`

	// Type The type of the discount.
	Type DiscountUsageType `json:"type"`
}

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 DiscountUsageType

type DiscountUsageType string

DiscountUsageType The type of the discount.

const (
	DiscountUsageTypeUsage DiscountUsageType = "usage"
)

Defines values for DiscountUsageType.

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     *BadRequestProblemResponse
	ApplicationproblemJSON401     *UnauthorizedProblemResponse
	ApplicationproblemJSON403     *ForbiddenProblemResponse
	ApplicationproblemJSON404     *NotFoundProblemResponse
	ApplicationproblemJSON409     *ConflictProblemResponse
	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 EntitlementBaseTemplate

type EntitlementBaseTemplate 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
	SubjectKey string `json:"subjectKey"`

	// Type The type of the entitlement.
	Type EntitlementType `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"`
}

EntitlementBaseTemplate Shared fields of the entitlement templates.

type EntitlementBoolean

type EntitlementBoolean = EntitlementBaseTemplate

EntitlementBoolean Shared fields of the entitlement templates.

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 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"`

	// 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 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:
	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
	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:
	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 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
	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 EntitlementType

type EntitlementType = string

EntitlementType Type of the entitlement.

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 Event

type Event = event.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 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 int `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 {
	// 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.
	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 {
	// 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.
	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 FilterString

type FilterString struct {
	// And Provide a list of filters to be combined with a logical AND.
	And *[]FilterString `json:"$and"`

	// Eq The field must be equal to the provided value.
	Eq *string `json:"$eq"`

	// Gt The field must be greater than the provided value.
	Gt *string `json:"$gt"`

	// Gte The field must be greater than or equal to the provided value.
	Gte *string `json:"$gte"`

	// Ilike The field must match the provided value, ignoring case.
	Ilike *string `json:"$ilike"`

	// In The field must be in the provided list of values.
	In *[]string `json:"$in"`

	// Like The field must match the provided value.
	Like *string `json:"$like"`

	// Lt The field must be less than the provided value.
	Lt *string `json:"$lt"`

	// Lte The field must be less than or equal to the provided value.
	Lte *string `json:"$lte"`

	// Ne The field must not be equal to the provided value.
	Ne *string `json:"$ne"`

	// Nilike The field must not match the provided value, ignoring case.
	Nilike *string `json:"$nilike"`

	// Nin The field must not be in the provided list of values.
	Nin *[]string `json:"$nin"`

	// Nlike The field must not match the provided value.
	Nlike *string `json:"$nlike"`

	// Or Provide a list of filters to be combined with a logical OR.
	Or *[]FilterString `json:"$or"`
}

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"`

	// Gt The field must be greater than the provided value.
	Gt *time.Time `json:"$gt"`

	// Gte The field must be greater than or equal to the provided value.
	Gte *time.Time `json:"$gte"`

	// Lt The field must be less than the provided value.
	Lt *time.Time `json:"$lt"`

	// Lte The field must be less than or equal to the provided value.
	Lte *time.Time `json:"$lte"`

	// Or Provide a list of filters to be combined with a logical OR.
	Or *[]FilterTime `json:"$or"`
}

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

Status returns HTTPResponse.Status

func (GetBillingProfileCustomerOverrideResponse) StatusCode

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 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

Status returns HTTPResponse.Status

func (GetCustomerEntitlementValueResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

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 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

Status returns HTTPResponse.Status

func (GetEntitlementByIdResponse) StatusCode

func (r GetEntitlementByIdResponse) 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

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

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

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

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

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

Status returns HTTPResponse.Status

func (GetNotificationRuleResponse) StatusCode

func (r GetNotificationRuleResponse) 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

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 HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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 IngestEventsBody1

type IngestEventsBody1 = []Event

IngestEventsBody1 defines model for .

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 {
	// 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 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

Status returns HTTPResponse.Status

func (InvalidatePortalTokensResponse) StatusCode

func (r InvalidatePortalTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Invoice

type Invoice struct {
	// 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 BillingParty `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"`

	// 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"`

	// Void Void an already issued invoice.
	Void *InvoiceAvailableActionDetails `json:"void,omitempty"`
}

InvoiceAvailableActions InvoiceAvailableActions represents the actions that can be performed on the invoice.

type InvoiceDiscountReason

type InvoiceDiscountReason string

InvoiceDiscountReason Reason code.

const (
	InvoiceDiscountReasonMaximumSpend     InvoiceDiscountReason = "maximum_spend"
	InvoiceDiscountReasonRatecardDiscount InvoiceDiscountReason = "ratecard_discount"
)

Defines values for InvoiceDiscountReason.

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 (
	InvoiceDocumentRefTypeCreditNodeOriginalInvoice InvoiceDocumentRefType = "credit_node_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 InvoiceFlatFeeCategory

type InvoiceFlatFeeCategory string

InvoiceFlatFeeCategory InvoiceFlatFeeCategory determines if the flat fee is a regular fee due to use due to a commitment.

const (
	InvoiceFlatFeeCategoryCommitment InvoiceFlatFeeCategory = "commitment"
	InvoiceFlatFeeCategoryRegular    InvoiceFlatFeeCategory = "regular"
)

Defines values for InvoiceFlatFeeCategory.

type InvoiceFlatFeeLine

type InvoiceFlatFeeLine struct {
	// Category Category of the flat fee.
	Category *InvoiceFlatFeeCategory `json:"category,omitempty"`

	// Children The lines detailing the item or service sold.
	Children *[]InvoiceLine `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 *[]InvoiceLineDiscount `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.
	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:
	PaymentTerm *PricePaymentTerm `json:"paymentTerm,omitempty"`

	// PerUnitAmount Price of the item being sold.
	// Deprecated:
	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:
	Quantity *Numeric `json:"quantity,omitempty"`

	// RateCard The rate card that is used for this line.
	RateCard *InvoiceFlatFeeRateCard `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:
	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.
	Type InvoiceFlatFeeLineType `json:"type"`

	// UpdatedAt Timestamp of when the resource was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
}

InvoiceFlatFeeLine InvoiceFlatFeeLine represents a line item that is sold to the customer as a manually added fee.

type InvoiceFlatFeeLineReplaceUpdate

type InvoiceFlatFeeLineReplaceUpdate struct {
	// Category Category of the flat fee.
	Category *InvoiceFlatFeeCategory `json:"category,omitempty"`

	// Description Optional description of the resource. Maximum 1024 characters.
	Description *string `json:"description,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"`

	// PaymentTerm Payment term of the line.
	// Deprecated:
	PaymentTerm *PricePaymentTerm `json:"paymentTerm,omitempty"`

	// PerUnitAmount Price of the item being sold.
	// Deprecated:
	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:
	Quantity *Numeric `json:"quantity,omitempty"`

	// RateCard The rate card that is used for this line.
	RateCard *InvoiceFlatFeeRateCard `json:"rateCard,omitempty"`

	// TaxConfig Tax config specify the tax configuration for this line.
	// Deprecated:
	TaxConfig *TaxConfig `json:"taxConfig,omitempty"`

	// Type Type of the line.
	Type InvoiceFlatFeeLineReplaceUpdateType `json:"type"`
}

InvoiceFlatFeeLineReplaceUpdate InvoiceFlatFeeLineReplaceUpdate represents the update model for a flat fee invoice line.

This type makes ID optional to allow for creating new lines as part of the update.

type InvoiceFlatFeeLineReplaceUpdateType

type InvoiceFlatFeeLineReplaceUpdateType string

InvoiceFlatFeeLineReplaceUpdateType Type of the line.

const (
	InvoiceFlatFeeLineReplaceUpdateTypeFlatFee InvoiceFlatFeeLineReplaceUpdateType = "flat_fee"
)

Defines values for InvoiceFlatFeeLineReplaceUpdateType.

type InvoiceFlatFeeLineType

type InvoiceFlatFeeLineType string

InvoiceFlatFeeLineType Type of the line.

const (
	InvoiceFlatFeeLineTypeFlatFee InvoiceFlatFeeLineType = "flat_fee"
)

Defines values for InvoiceFlatFeeLineType.

type InvoiceFlatFeePendingLineCreate

type InvoiceFlatFeePendingLineCreate struct {
	// Category Category of the flat fee.
	Category *InvoiceFlatFeeCategory `json:"category,omitempty"`

	// Currency The currency of this line.
	Currency CurrencyCode `json:"currency"`

	// CustomerId The customer this line item belongs to.
	CustomerId string `json:"customerId"`

	// Description Optional description of the resource. Maximum 1024 characters.
	Description *string `json:"description,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"`

	// PaymentTerm Payment term of the line.
	// Deprecated:
	PaymentTerm *PricePaymentTerm `json:"paymentTerm,omitempty"`

	// PerUnitAmount Price of the item being sold.
	// Deprecated:
	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:
	Quantity *Numeric `json:"quantity,omitempty"`

	// RateCard The rate card that is used for this line.
	RateCard *InvoiceFlatFeeRateCard `json:"rateCard,omitempty"`

	// TaxConfig Tax config specify the tax configuration for this line.
	// Deprecated:
	TaxConfig *TaxConfig `json:"taxConfig,omitempty"`

	// Type Type of the line.
	Type InvoiceFlatFeePendingLineCreateType `json:"type"`
}

InvoiceFlatFeePendingLineCreate InvoiceFlatFeePendingLineCreate represents the create model for an invoice line that is sold to the customer as a manually added fee.

type InvoiceFlatFeePendingLineCreateType

type InvoiceFlatFeePendingLineCreateType string

InvoiceFlatFeePendingLineCreateType Type of the line.

const (
	InvoiceFlatFeePendingLineCreateTypeFlatFee InvoiceFlatFeePendingLineCreateType = "flat_fee"
)

Defines values for InvoiceFlatFeePendingLineCreateType.

type InvoiceFlatFeeRateCard

type InvoiceFlatFeeRateCard struct {
	// Discounts The discount of the rate card. For flat fee rate cards only percentage discounts are supported.
	// Only available when price is set.
	Discounts *[]DiscountPercentage `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"`
}

InvoiceFlatFeeRateCard InvoiceFlatFeeRateCard represents the rate card (intent) for a flat fee line.

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 {
	// contains filtered or unexported fields
}

InvoiceLine BillingInvoiceLine represents a line item that is sold to the customer based on a specific (unit) price.

func (InvoiceLine) AsInvoiceFlatFeeLine

func (t InvoiceLine) AsInvoiceFlatFeeLine() (InvoiceFlatFeeLine, error)

AsInvoiceFlatFeeLine returns the union data inside the InvoiceLine as a InvoiceFlatFeeLine

func (InvoiceLine) AsInvoiceUsageBasedLine

func (t InvoiceLine) AsInvoiceUsageBasedLine() (InvoiceUsageBasedLine, error)

AsInvoiceUsageBasedLine returns the union data inside the InvoiceLine as a InvoiceUsageBasedLine

func (InvoiceLine) Discriminator

func (t InvoiceLine) Discriminator() (string, error)

func (*InvoiceLine) FromInvoiceFlatFeeLine

func (t *InvoiceLine) FromInvoiceFlatFeeLine(v InvoiceFlatFeeLine) error

FromInvoiceFlatFeeLine overwrites any union data inside the InvoiceLine as the provided InvoiceFlatFeeLine

func (*InvoiceLine) FromInvoiceUsageBasedLine

func (t *InvoiceLine) FromInvoiceUsageBasedLine(v InvoiceUsageBasedLine) error

FromInvoiceUsageBasedLine overwrites any union data inside the InvoiceLine as the provided InvoiceUsageBasedLine

func (InvoiceLine) MarshalJSON

func (t InvoiceLine) MarshalJSON() ([]byte, error)

func (*InvoiceLine) MergeInvoiceFlatFeeLine

func (t *InvoiceLine) MergeInvoiceFlatFeeLine(v InvoiceFlatFeeLine) error

MergeInvoiceFlatFeeLine performs a merge with any union data inside the InvoiceLine, using the provided InvoiceFlatFeeLine

func (*InvoiceLine) MergeInvoiceUsageBasedLine

func (t *InvoiceLine) MergeInvoiceUsageBasedLine(v InvoiceUsageBasedLine) error

MergeInvoiceUsageBasedLine performs a merge with any union data inside the InvoiceLine, using the provided InvoiceUsageBasedLine

func (*InvoiceLine) UnmarshalJSON

func (t *InvoiceLine) UnmarshalJSON(b []byte) error

func (InvoiceLine) ValueByDiscriminator

func (t InvoiceLine) ValueByDiscriminator() (interface{}, error)

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 InvoiceLineDiscount

type InvoiceLineDiscount struct {
	// contains filtered or unexported fields
}

InvoiceLineDiscount InvoiceLineDiscount represents the actual discount applied to the invoice line.

func (InvoiceLineDiscount) AsInvoiceLineDiscountAmount

func (t InvoiceLineDiscount) AsInvoiceLineDiscountAmount() (InvoiceLineDiscountAmount, error)

AsInvoiceLineDiscountAmount returns the union data inside the InvoiceLineDiscount as a InvoiceLineDiscountAmount

func (InvoiceLineDiscount) AsInvoiceLineDiscountUsage

func (t InvoiceLineDiscount) AsInvoiceLineDiscountUsage() (InvoiceLineDiscountUsage, error)

AsInvoiceLineDiscountUsage returns the union data inside the InvoiceLineDiscount as a InvoiceLineDiscountUsage

func (InvoiceLineDiscount) Discriminator

func (t InvoiceLineDiscount) Discriminator() (string, error)

func (*InvoiceLineDiscount) FromInvoiceLineDiscountAmount

func (t *InvoiceLineDiscount) FromInvoiceLineDiscountAmount(v InvoiceLineDiscountAmount) error

FromInvoiceLineDiscountAmount overwrites any union data inside the InvoiceLineDiscount as the provided InvoiceLineDiscountAmount

func (*InvoiceLineDiscount) FromInvoiceLineDiscountUsage

func (t *InvoiceLineDiscount) FromInvoiceLineDiscountUsage(v InvoiceLineDiscountUsage) error

FromInvoiceLineDiscountUsage overwrites any union data inside the InvoiceLineDiscount as the provided InvoiceLineDiscountUsage

func (InvoiceLineDiscount) MarshalJSON

func (t InvoiceLineDiscount) MarshalJSON() ([]byte, error)

func (*InvoiceLineDiscount) MergeInvoiceLineDiscountAmount

func (t *InvoiceLineDiscount) MergeInvoiceLineDiscountAmount(v InvoiceLineDiscountAmount) error

MergeInvoiceLineDiscountAmount performs a merge with any union data inside the InvoiceLineDiscount, using the provided InvoiceLineDiscountAmount

func (*InvoiceLineDiscount) MergeInvoiceLineDiscountUsage

func (t *InvoiceLineDiscount) MergeInvoiceLineDiscountUsage(v InvoiceLineDiscountUsage) error

MergeInvoiceLineDiscountUsage performs a merge with any union data inside the InvoiceLineDiscount, using the provided InvoiceLineDiscountUsage

func (*InvoiceLineDiscount) UnmarshalJSON

func (t *InvoiceLineDiscount) UnmarshalJSON(b []byte) error

func (InvoiceLineDiscount) ValueByDiscriminator

func (t InvoiceLineDiscount) ValueByDiscriminator() (interface{}, error)

type InvoiceLineDiscountAmount

type InvoiceLineDiscountAmount 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"`

	// RateCardDiscount The discount from the rate card this discount is based on.
	RateCardDiscount *Discount `json:"rateCardDiscount,omitempty"`

	// Reason Reason code.
	Reason InvoiceDiscountReason `json:"reason"`

	// Type The type of the discount.
	Type InvoiceLineDiscountAmountType `json:"type"`

	// UpdatedAt Timestamp of when the resource was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
}

InvoiceLineDiscountAmount InvoiceLineDiscountAmount represents an amount deducted from the line, and will be applied before taxes.

type InvoiceLineDiscountAmountType

type InvoiceLineDiscountAmountType string

InvoiceLineDiscountAmountType The type of the discount.

const (
	InvoiceLineDiscountAmountTypeAmount InvoiceLineDiscountAmountType = "amount"
)

Defines values for InvoiceLineDiscountAmountType.

type InvoiceLineDiscountUsage

type InvoiceLineDiscountUsage 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"`

	// RateCardDiscount The discount from the rate card this discount is based on.
	RateCardDiscount *Discount `json:"rateCardDiscount,omitempty"`

	// Reason Reason code.
	Reason InvoiceDiscountReason `json:"reason"`

	// Type The type of the discount.
	Type InvoiceLineDiscountUsageType `json:"type"`

	// UpdatedAt Timestamp of when the resource was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
}

InvoiceLineDiscountUsage InvoiceLineDiscountUsage represents an usage-based discount applied to the line.

The deduction is done before the pricing algorithm is applied.

type InvoiceLineDiscountUsageType

type InvoiceLineDiscountUsageType string

InvoiceLineDiscountUsageType The type of the discount.

const (
	InvoiceLineDiscountUsageTypeUsage InvoiceLineDiscountUsageType = "usage"
)

Defines values for InvoiceLineDiscountUsageType.

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 {
	// contains filtered or unexported fields
}

InvoiceLineReplaceUpdate InvoiceLineReplaceUpdate represents the update model for an invoice line.

func (InvoiceLineReplaceUpdate) AsInvoiceFlatFeeLineReplaceUpdate

func (t InvoiceLineReplaceUpdate) AsInvoiceFlatFeeLineReplaceUpdate() (InvoiceFlatFeeLineReplaceUpdate, error)

AsInvoiceFlatFeeLineReplaceUpdate returns the union data inside the InvoiceLineReplaceUpdate as a InvoiceFlatFeeLineReplaceUpdate

func (InvoiceLineReplaceUpdate) AsInvoiceUsageBasedLineReplaceUpdate

func (t InvoiceLineReplaceUpdate) AsInvoiceUsageBasedLineReplaceUpdate() (InvoiceUsageBasedLineReplaceUpdate, error)

AsInvoiceUsageBasedLineReplaceUpdate returns the union data inside the InvoiceLineReplaceUpdate as a InvoiceUsageBasedLineReplaceUpdate

func (InvoiceLineReplaceUpdate) Discriminator

func (t InvoiceLineReplaceUpdate) Discriminator() (string, error)

func (*InvoiceLineReplaceUpdate) FromInvoiceFlatFeeLineReplaceUpdate

func (t *InvoiceLineReplaceUpdate) FromInvoiceFlatFeeLineReplaceUpdate(v InvoiceFlatFeeLineReplaceUpdate) error

FromInvoiceFlatFeeLineReplaceUpdate overwrites any union data inside the InvoiceLineReplaceUpdate as the provided InvoiceFlatFeeLineReplaceUpdate

func (*InvoiceLineReplaceUpdate) FromInvoiceUsageBasedLineReplaceUpdate

func (t *InvoiceLineReplaceUpdate) FromInvoiceUsageBasedLineReplaceUpdate(v InvoiceUsageBasedLineReplaceUpdate) error

FromInvoiceUsageBasedLineReplaceUpdate overwrites any union data inside the InvoiceLineReplaceUpdate as the provided InvoiceUsageBasedLineReplaceUpdate

func (InvoiceLineReplaceUpdate) MarshalJSON

func (t InvoiceLineReplaceUpdate) MarshalJSON() ([]byte, error)

func (*InvoiceLineReplaceUpdate) MergeInvoiceFlatFeeLineReplaceUpdate

func (t *InvoiceLineReplaceUpdate) MergeInvoiceFlatFeeLineReplaceUpdate(v InvoiceFlatFeeLineReplaceUpdate) error

MergeInvoiceFlatFeeLineReplaceUpdate performs a merge with any union data inside the InvoiceLineReplaceUpdate, using the provided InvoiceFlatFeeLineReplaceUpdate

func (*InvoiceLineReplaceUpdate) MergeInvoiceUsageBasedLineReplaceUpdate

func (t *InvoiceLineReplaceUpdate) MergeInvoiceUsageBasedLineReplaceUpdate(v InvoiceUsageBasedLineReplaceUpdate) error

MergeInvoiceUsageBasedLineReplaceUpdate performs a merge with any union data inside the InvoiceLineReplaceUpdate, using the provided InvoiceUsageBasedLineReplaceUpdate

func (*InvoiceLineReplaceUpdate) UnmarshalJSON

func (t *InvoiceLineReplaceUpdate) UnmarshalJSON(b []byte) error

func (InvoiceLineReplaceUpdate) ValueByDiscriminator

func (t InvoiceLineReplaceUpdate) ValueByDiscriminator() (interface{}, error)

type InvoiceLineStatus

type InvoiceLineStatus string

InvoiceLineStatus Line status specifies the status of the line.

const (
	InvoiceLineStatusDetail InvoiceLineStatus = "detail"
	InvoiceLineStatusSplit  InvoiceLineStatus = "split"
	InvoiceLineStatusValid  InvoiceLineStatus = "valid"
)

Defines values for InvoiceLineStatus.

type InvoiceLineSubscriptionReference

type InvoiceLineSubscriptionReference struct {
	// 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 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

type InvoiceListParamsIssuedAfter = time.Time

InvoiceListParamsIssuedAfter defines model for InvoiceListParams.issuedAfter.

type InvoiceListParamsIssuedBefore

type InvoiceListParamsIssuedBefore = time.Time

InvoiceListParamsIssuedBefore defines model for InvoiceListParams.issuedBefore.

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"
	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 {
	// contains filtered or unexported fields
}

InvoicePendingLineCreate InvoiceLineCreate represents the create model for an invoice line.

func (InvoicePendingLineCreate) AsInvoiceFlatFeePendingLineCreate

func (t InvoicePendingLineCreate) AsInvoiceFlatFeePendingLineCreate() (InvoiceFlatFeePendingLineCreate, error)

AsInvoiceFlatFeePendingLineCreate returns the union data inside the InvoicePendingLineCreate as a InvoiceFlatFeePendingLineCreate

func (InvoicePendingLineCreate) AsInvoiceUsageBasedPendingLineCreate

func (t InvoicePendingLineCreate) AsInvoiceUsageBasedPendingLineCreate() (InvoiceUsageBasedPendingLineCreate, error)

AsInvoiceUsageBasedPendingLineCreate returns the union data inside the InvoicePendingLineCreate as a InvoiceUsageBasedPendingLineCreate

func (InvoicePendingLineCreate) Discriminator

func (t InvoicePendingLineCreate) Discriminator() (string, error)

func (*InvoicePendingLineCreate) FromInvoiceFlatFeePendingLineCreate

func (t *InvoicePendingLineCreate) FromInvoiceFlatFeePendingLineCreate(v InvoiceFlatFeePendingLineCreate) error

FromInvoiceFlatFeePendingLineCreate overwrites any union data inside the InvoicePendingLineCreate as the provided InvoiceFlatFeePendingLineCreate

func (*InvoicePendingLineCreate) FromInvoiceUsageBasedPendingLineCreate

func (t *InvoicePendingLineCreate) FromInvoiceUsageBasedPendingLineCreate(v InvoiceUsageBasedPendingLineCreate) error

FromInvoiceUsageBasedPendingLineCreate overwrites any union data inside the InvoicePendingLineCreate as the provided InvoiceUsageBasedPendingLineCreate

func (InvoicePendingLineCreate) MarshalJSON

func (t InvoicePendingLineCreate) MarshalJSON() ([]byte, error)

func (*InvoicePendingLineCreate) MergeInvoiceFlatFeePendingLineCreate

func (t *InvoicePendingLineCreate) MergeInvoiceFlatFeePendingLineCreate(v InvoiceFlatFeePendingLineCreate) error

MergeInvoiceFlatFeePendingLineCreate performs a merge with any union data inside the InvoicePendingLineCreate, using the provided InvoiceFlatFeePendingLineCreate

func (*InvoicePendingLineCreate) MergeInvoiceUsageBasedPendingLineCreate

func (t *InvoicePendingLineCreate) MergeInvoiceUsageBasedPendingLineCreate(v InvoiceUsageBasedPendingLineCreate) error

MergeInvoiceUsageBasedPendingLineCreate performs a merge with any union data inside the InvoicePendingLineCreate, using the provided InvoiceUsageBasedPendingLineCreate

func (*InvoicePendingLineCreate) UnmarshalJSON

func (t *InvoicePendingLineCreate) UnmarshalJSON(b []byte) error

func (InvoicePendingLineCreate) ValueByDiscriminator

func (t InvoicePendingLineCreate) ValueByDiscriminator() (interface{}, error)

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"`
}

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

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"`

	// 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"`

	// 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 InvoiceSimulationFlatFeeLine

type InvoiceSimulationFlatFeeLine struct {
	// Category Category of the flat fee.
	Category *InvoiceFlatFeeCategory `json:"category,omitempty"`

	// Description Optional description of the resource. Maximum 1024 characters.
	Description *string `json:"description,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"`

	// PaymentTerm Payment term of the line.
	// Deprecated:
	PaymentTerm *PricePaymentTerm `json:"paymentTerm,omitempty"`

	// PerUnitAmount Price of the item being sold.
	// Deprecated:
	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:
	Quantity *Numeric `json:"quantity,omitempty"`

	// RateCard The rate card that is used for this line.
	RateCard *InvoiceFlatFeeRateCard `json:"rateCard,omitempty"`

	// TaxConfig Tax config specify the tax configuration for this line.
	// Deprecated:
	TaxConfig *TaxConfig `json:"taxConfig,omitempty"`

	// Type Type of the line.
	Type InvoiceSimulationFlatFeeLineType `json:"type"`
}

InvoiceSimulationFlatFeeLine InvoiceSimulationFlatFeeLine represents a flat fee line item that can be input to the simulation endpoint.

type InvoiceSimulationFlatFeeLineType

type InvoiceSimulationFlatFeeLineType string

InvoiceSimulationFlatFeeLineType Type of the line.

const (
	InvoiceSimulationFlatFeeLineTypeFlatFee InvoiceSimulationFlatFeeLineType = "flat_fee"
)

Defines values for InvoiceSimulationFlatFeeLineType.

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 {
	// contains filtered or unexported fields
}

InvoiceSimulationLine InvoiceSimulationInput represents a line item that can be input to the simulation endpoint.

func (InvoiceSimulationLine) AsInvoiceSimulationFlatFeeLine

func (t InvoiceSimulationLine) AsInvoiceSimulationFlatFeeLine() (InvoiceSimulationFlatFeeLine, error)

AsInvoiceSimulationFlatFeeLine returns the union data inside the InvoiceSimulationLine as a InvoiceSimulationFlatFeeLine

func (InvoiceSimulationLine) AsInvoiceSimulationUsageBasedLine

func (t InvoiceSimulationLine) AsInvoiceSimulationUsageBasedLine() (InvoiceSimulationUsageBasedLine, error)

AsInvoiceSimulationUsageBasedLine returns the union data inside the InvoiceSimulationLine as a InvoiceSimulationUsageBasedLine

func (InvoiceSimulationLine) Discriminator

func (t InvoiceSimulationLine) Discriminator() (string, error)

func (*InvoiceSimulationLine) FromInvoiceSimulationFlatFeeLine

func (t *InvoiceSimulationLine) FromInvoiceSimulationFlatFeeLine(v InvoiceSimulationFlatFeeLine) error

FromInvoiceSimulationFlatFeeLine overwrites any union data inside the InvoiceSimulationLine as the provided InvoiceSimulationFlatFeeLine

func (*InvoiceSimulationLine) FromInvoiceSimulationUsageBasedLine

func (t *InvoiceSimulationLine) FromInvoiceSimulationUsageBasedLine(v InvoiceSimulationUsageBasedLine) error

FromInvoiceSimulationUsageBasedLine overwrites any union data inside the InvoiceSimulationLine as the provided InvoiceSimulationUsageBasedLine

func (InvoiceSimulationLine) MarshalJSON

func (t InvoiceSimulationLine) MarshalJSON() ([]byte, error)

func (*InvoiceSimulationLine) MergeInvoiceSimulationFlatFeeLine

func (t *InvoiceSimulationLine) MergeInvoiceSimulationFlatFeeLine(v InvoiceSimulationFlatFeeLine) error

MergeInvoiceSimulationFlatFeeLine performs a merge with any union data inside the InvoiceSimulationLine, using the provided InvoiceSimulationFlatFeeLine

func (*InvoiceSimulationLine) MergeInvoiceSimulationUsageBasedLine

func (t *InvoiceSimulationLine) MergeInvoiceSimulationUsageBasedLine(v InvoiceSimulationUsageBasedLine) error

MergeInvoiceSimulationUsageBasedLine performs a merge with any union data inside the InvoiceSimulationLine, using the provided InvoiceSimulationUsageBasedLine

func (*InvoiceSimulationLine) UnmarshalJSON

func (t *InvoiceSimulationLine) UnmarshalJSON(b []byte) error

func (InvoiceSimulationLine) ValueByDiscriminator

func (t InvoiceSimulationLine) ValueByDiscriminator() (interface{}, error)

type InvoiceSimulationUsageBasedLine

type InvoiceSimulationUsageBasedLine 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:
	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:
	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:
	TaxConfig *TaxConfig `json:"taxConfig,omitempty"`

	// Type Type of the line.
	Type InvoiceSimulationUsageBasedLineType `json:"type"`
}

InvoiceSimulationUsageBasedLine InvoiceSimulationUsageBasedLine represents a usage-based line item that can be input to the simulation endpoint.

type InvoiceSimulationUsageBasedLineType

type InvoiceSimulationUsageBasedLineType string

InvoiceSimulationUsageBasedLineType Type of the line.

const (
	InvoiceSimulationUsageBasedLineTypeUsageBased InvoiceSimulationUsageBasedLineType = "usage_based"
)

Defines values for InvoiceSimulationUsageBasedLineType.

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 InvoiceUsageBasedLine

type InvoiceUsageBasedLine struct {
	// Children The lines detailing the item or service sold.
	Children *[]InvoiceLine `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 *[]InvoiceLineDiscount `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:
	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"`

	// 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 in 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.
	PreLinePeriodQuantity *Numeric `json:"preLinePeriodQuantity,omitempty"`

	// Price Price of the usage-based item being sold.
	// Deprecated:
	Price *RateCardUsageBasedPrice `json:"price,omitempty"`

	// Quantity The quantity of the item being sold.
	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:
	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.
	Type InvoiceUsageBasedLineType `json:"type"`

	// UpdatedAt Timestamp of when the resource was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
}

InvoiceUsageBasedLine InvoiceUsageBasedLine represents a line item that is sold to the customer based on usage.

type InvoiceUsageBasedLineReplaceUpdate

type InvoiceUsageBasedLineReplaceUpdate 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:
	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:
	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:
	TaxConfig *TaxConfig `json:"taxConfig,omitempty"`

	// Type Type of the line.
	Type InvoiceUsageBasedLineReplaceUpdateType `json:"type"`
}

InvoiceUsageBasedLineReplaceUpdate InvoiceUpdateUsageBasedLineReplaceUpdate 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 InvoiceUsageBasedLineReplaceUpdateType

type InvoiceUsageBasedLineReplaceUpdateType string

InvoiceUsageBasedLineReplaceUpdateType Type of the line.

const (
	InvoiceUsageBasedLineReplaceUpdateTypeUsageBased InvoiceUsageBasedLineReplaceUpdateType = "usage_based"
)

Defines values for InvoiceUsageBasedLineReplaceUpdateType.

type InvoiceUsageBasedLineType

type InvoiceUsageBasedLineType string

InvoiceUsageBasedLineType Type of the line.

const (
	InvoiceUsageBasedLineTypeUsageBased InvoiceUsageBasedLineType = "usage_based"
)

Defines values for InvoiceUsageBasedLineType.

type InvoiceUsageBasedPendingLineCreate

type InvoiceUsageBasedPendingLineCreate struct {
	// Currency The currency of this line.
	Currency CurrencyCode `json:"currency"`

	// CustomerId The customer this line item belongs to.
	CustomerId string `json:"customerId"`

	// Description Optional description of the resource. Maximum 1024 characters.
	Description *string `json:"description,omitempty"`

	// FeatureKey The feature that the usage is based on.
	// Deprecated:
	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:
	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:
	TaxConfig *TaxConfig `json:"taxConfig,omitempty"`

	// Type Type of the line.
	Type InvoiceUsageBasedPendingLineCreateType `json:"type"`
}

InvoiceUsageBasedPendingLineCreate InvoiceUsageBasedLineCreateWithCustomer represents the create model for an invoice line that is sold to the customer based on usage.

type InvoiceUsageBasedPendingLineCreateType

type InvoiceUsageBasedPendingLineCreateType string

InvoiceUsageBasedPendingLineCreateType Type of the line.

const (
	InvoiceUsageBasedPendingLineCreateTypeUsageBased InvoiceUsageBasedPendingLineCreateType = "usage_based"
)

Defines values for InvoiceUsageBasedPendingLineCreateType.

type InvoiceUsageBasedRateCard

type InvoiceUsageBasedRateCard struct {
	// Discounts The discounts of the rate card.
	//
	// Flat fee rate cards only support percentage discounts.
	Discounts *[]Discount `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.
	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 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"`

	// 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

Status returns HTTPResponse.Status

func (ListBillingProfileCustomerOverridesResponse) StatusCode

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

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 *QueryCustomerListType `form:"type,omitempty" json:"type,omitempty"`
}

ListCustomerAppDataParams defines parameters for ListCustomerAppData.

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

Status returns HTTPResponse.Status

func (ListCustomerAppDataResponse) StatusCode

func (r ListCustomerAppDataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCustomerSubscriptionsParams

type ListCustomerSubscriptionsParams 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"`
}

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

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-sensitive exact 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"`
}

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

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 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"`

	// 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 {
		// 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 Filter by meterGroupByFilters
	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 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 creation time
	IssuedAfter *InvoiceListParamsIssuedAfter `form:"issuedAfter,omitempty" json:"issuedAfter,omitempty"`

	// IssuedBefore Filter by invoice creation time
	IssuedBefore *InvoiceListParamsIssuedBefore `form:"issuedBefore,omitempty" json:"issuedBefore,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

Status returns HTTPResponse.Status

func (ListMarketplaceListingsResponse) StatusCode

func (r ListMarketplaceListingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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

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

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

Status returns HTTPResponse.Status

func (ListNotificationRulesResponse) StatusCode

func (r ListNotificationRulesResponse) 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

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

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"`

	// Name Name of the application to install.
	//
	// If not set defaults to the marketplace item's description.
	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

Status returns HTTPResponse.Status

func (MarketplaceAppAPIKeyInstallResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

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"`

	// 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

Status returns HTTPResponse.Status

func (MarketplaceOAuth2InstallAuthorizeResponse) StatusCode

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

Status returns HTTPResponse.Status

func (MarketplaceOAuth2InstallGetURLResponse) StatusCode

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

type MeasureUsageFromTime = time.Time

MeasureUsageFromTime [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.

type Metadata

type Metadata = map[string]string

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.
	//
	// TODO: add key format enforcement
	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"
	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.
	//
	// TODO: add key format enforcement
	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 MeterQueryClientId

type MeterQueryClientId = string

MeterQueryClientId defines model for MeterQuery.clientId.

type MeterQueryFilterGroupBy

type MeterQueryFilterGroupBy map[string]string

MeterQueryFilterGroupBy defines model for MeterQuery.filterGroupBy.

type MeterQueryFrom

type MeterQueryFrom = time.Time

MeterQueryFrom defines model for MeterQuery.from.

type MeterQueryGroupBy

type MeterQueryGroupBy = []string

MeterQueryGroupBy defines model for MeterQuery.groupBy.

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 {
	// 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 MeterQueryTo

type MeterQueryTo = time.Time

MeterQueryTo defines model for MeterQuery.to.

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.
	//
	// TODO: add key format enforcement
	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 {
	TargetVersion *int `json:"targetVersion,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     *BadRequestProblemResponse
	ApplicationproblemJSON401     *UnauthorizedProblemResponse
	ApplicationproblemJSON403     *ForbiddenProblemResponse
	ApplicationproblemJSON404     *NotFoundProblemResponse
	ApplicationproblemJSON409     *ConflictProblemResponse
	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

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 {
	// 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"`

	// 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"`

	// 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 {
	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 NotificationEventDeliveryStatus

type NotificationEventDeliveryStatus struct {
	// Channel Notification channel the delivery sattus associated with.
	Channel NotificationChannelMeta `json:"channel"`

	// 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"
	NotificationEventDeliveryStatusStateSending NotificationEventDeliveryStatusState = "SENDING"
	NotificationEventDeliveryStatusStateSuccess NotificationEventDeliveryStatusState = "SUCCESS"
)

Defines values for NotificationEventDeliveryStatusState.

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 = NotificationEventBalanceThresholdPayload

NotificationEventPayload Payload for notification event with `entitlements.balance.threshold` type.

type NotificationEventType

type NotificationEventType string

NotificationEventType Type of the notification event.

const (
	NotificationEventTypeEntitlementsBalanceThreshold NotificationEventType = "entitlements.balance.threshold"
)

Defines values for NotificationEventType.

type NotificationRule

type NotificationRule = NotificationRuleBalanceThreshold

NotificationRule Notification rule with entitlements.balance.threshold type.

type NotificationRuleBalanceThreshold

type NotificationRuleBalanceThreshold struct {
	// 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"`

	// 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"`

	// 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.threashold 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.

const (
	NotificationRuleBalanceThresholdValueTypeNumber  NotificationRuleBalanceThresholdValueType = "NUMBER"
	NotificationRuleBalanceThresholdValueTypePercent NotificationRuleBalanceThresholdValueType = "PERCENT"
)

Defines values for NotificationRuleBalanceThresholdValueType.

type NotificationRuleCreateRequest

type NotificationRuleCreateRequest = NotificationRuleBalanceThresholdCreateRequest

NotificationRuleCreateRequest Request with input parameters for creating new notification rule with entitlements.balance.threashold type.

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 Numeric

type Numeric = string

Numeric Numeric represents an arbitrary precision number.

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"
	OAuth2AuthorizationCodeGrantErrorTypeTemporarilyUnavailable  OAuth2AuthorizationCodeGrantErrorType = "temporarily_unavailable"
	OAuth2AuthorizationCodeGrantErrorTypeUnauthorizedClient      OAuth2AuthorizationCodeGrantErrorType = "unauthorized_client"
	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 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

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 PaginationPage

type PaginationPage = int

PaginationPage defines model for Pagination.page.

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"`

	// 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"`

	// 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"`

	// Version Version of the plan. Incremented when the plan is updated.
	Version int `json:"version"`
}

Plan Plans provide a template for subscriptions.

type PlanCreate

type PlanCreate struct {
	// Alignment Alignment configuration for the plan.
	Alignment *Alignment `json:"alignment,omitempty"`

	// 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"`
}

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"`

	// 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"`
}

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"`

	// 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"`

	// 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"`

	// 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"`

	// 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 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 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 QueryCustomerListType

type QueryCustomerListType = AppType

QueryCustomerListType Type of the app.

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=customer-1&subject=customer-2
	Subject *MeterQuerySubject `form:"subject,omitempty" json:"subject,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"`

	// 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 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"`

	// FilterGroupBy Simple filter for group bys with exact match.
	//
	// For example: ?filterGroupBy[vendor]=openai&filterGroupBy[model]=gpt-4-turbo
	FilterGroupBy *MeterQueryFilterGroupBy `json:"filterGroupBy,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 (t RateCard) Discriminator() (string, error)

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 (t RateCard) MarshalJSON() ([]byte, error)

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 (t *RateCard) UnmarshalJSON(b []byte) error

func (RateCard) ValueByDiscriminator

func (t RateCard) ValueByDiscriminator() (interface{}, error)

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 *[]DiscountPercentage `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 *[]Discount `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

Status returns HTTPResponse.Status

func (RecalculateInvoiceTaxActionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ReceiveSvixOperationalEventJSONRequestBody

type ReceiveSvixOperationalEventJSONRequestBody = SvixOperationalWebhookRequest

ReceiveSvixOperationalEventJSONRequestBody defines body for ReceiveSvixOperationalEvent for application/json ContentType.

type ReceiveSvixOperationalEventResponse

type ReceiveSvixOperationalEventResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationproblemJSON400     *BadRequestProblemResponse
	ApplicationproblemJSON401     *UnauthorizedProblemResponse
	ApplicationproblemJSON403     *ForbiddenProblemResponse
	ApplicationproblemJSON412     *PreconditionFailedProblemResponse
	ApplicationproblemJSON500     *InternalServerErrorProblemResponse
	ApplicationproblemJSON503     *ServiceUnavailableProblemResponse
	ApplicationproblemJSONDefault *UnexpectedProblemResponse
}

func ParseReceiveSvixOperationalEventResponse

func ParseReceiveSvixOperationalEventResponse(rsp *http.Response) (*ReceiveSvixOperationalEventResponse, error)

ParseReceiveSvixOperationalEventResponse parses an HTTP response from a ReceiveSvixOperationalEventWithResponse call

func (ReceiveSvixOperationalEventResponse) Status

Status returns HTTPResponse.Status

func (ReceiveSvixOperationalEventResponse) StatusCode

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 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

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

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

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

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

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"`

	// Default Default for the app type
	// Only one app of each type can be default.
	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"`

	// 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 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 SortOrder

type SortOrder string

SortOrder The order direction.

const (
	SortOrderASC  SortOrder = "ASC"
	SortOrderDESC SortOrder = "DESC"
)

Defines values for SortOrder.

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"`

	// Default Default for the app type
	// Only one app of each type can be default.
	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"`

	// 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 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 StripeCustomerAppDataType

type StripeCustomerAppDataType string

StripeCustomerAppDataType The app name.

const (
	StripeCustomerAppDataTypeStripe StripeCustomerAppDataType = "stripe"
)

Defines values for StripeCustomerAppDataType.

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 {
	// CurrentPeriodEnd [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
	CurrentPeriodEnd *time.Time `json:"currentPeriodEnd,omitempty"`

	// CurrentPeriodStart [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
	CurrentPeriodStart *time.Time `json:"currentPeriodStart,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.
	Key              string                  `json:"key"`
	Metadata         *map[string]interface{} `json:"metadata"`
	StripeCustomerId *string                 `json:"stripeCustomerId"`
}

Subject A subject is a unique identifier for a user or entity.

type SubjectUpsert

type SubjectUpsert struct {
	// CurrentPeriodEnd [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
	CurrentPeriodEnd *time.Time `json:"currentPeriodEnd,omitempty"`

	// CurrentPeriodStart [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
	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.
	Key              string                  `json:"key"`
	Metadata         *map[string]interface{} `json:"metadata"`
	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"`

	// 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"`

	// 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 {
	// 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"`

	// 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 Resource create operation model.

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 {
	// ActiveFrom The cadence start of the resource.
	ActiveFrom *time.Time `json:"activeFrom,omitempty"`

	// ActiveTo The cadence end of the resource.
	ActiveTo *time.Time `json:"activeTo,omitempty"`

	// Addon Partially populated add-on properties.
	Addon *map[string]interface{} `json:"addon,omitempty"`

	// 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.
	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 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 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 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"`

	// 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"`

	// 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 *[]Discount `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 *[]Discount `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 *[]Discount `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

type SubscriptionTiming1 = time.Time

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 SvixOperationalWebhookRequest

type SvixOperationalWebhookRequest struct {
	// Data The payload of the Svix operational webhook request.
	Data map[string]string `json:"data"`

	// Type The type of the Svix operational webhook request.
	Type SvixOperationalWebhookRequestType `json:"type"`
}

SvixOperationalWebhookRequest Operational webhook reqeuest sent by Svix.

type SvixOperationalWebhookRequestType

type SvixOperationalWebhookRequestType string

SvixOperationalWebhookRequestType The type of the Svix operational webhook request.

const (
	SvixOperationalWebhookRequestTypeEndpointCreated         SvixOperationalWebhookRequestType = "endpoint.created"
	SvixOperationalWebhookRequestTypeEndpointDeleted         SvixOperationalWebhookRequestType = "endpoint.deleted"
	SvixOperationalWebhookRequestTypeEndpointDisabled        SvixOperationalWebhookRequestType = "endpoint.disabled"
	SvixOperationalWebhookRequestTypeEndpointUpdated         SvixOperationalWebhookRequestType = "endpoint.updated"
	SvixOperationalWebhookRequestTypeMessageAttemptExhausted SvixOperationalWebhookRequestType = "message.attempt.exhausted"
	SvixOperationalWebhookRequestTypeMessageAttemptFailing   SvixOperationalWebhookRequestType = "message.attempt.failing"
	SvixOperationalWebhookRequestTypeMessageAttemptRecovered SvixOperationalWebhookRequestType = "message.attempt.recovered"
)

Defines values for SvixOperationalWebhookRequestType.

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"`

	// 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

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 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     *BadRequestProblemResponse
	ApplicationproblemJSON401     *UnauthorizedProblemResponse
	ApplicationproblemJSON403     *ForbiddenProblemResponse
	ApplicationproblemJSON404     *NotFoundProblemResponse
	ApplicationproblemJSON409     *ConflictProblemResponse
	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

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 = AppBaseReplaceUpdate

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

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

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

Status returns HTTPResponse.Status

func (UpdateNotificationRuleResponse) StatusCode

func (r UpdateNotificationRuleResponse) 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

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

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

Status returns HTTPResponse.Status

func (UpsertBillingProfileCustomerOverrideResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpsertCustomerAppDataJSONBody

type UpsertCustomerAppDataJSONBody = []CustomerAppData

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

Status returns HTTPResponse.Status

func (UpsertCustomerAppDataResponse) StatusCode

func (r UpsertCustomerAppDataResponse) 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 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"
)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL