# README
Metronome Go client
Go client for Metronome generated from its OpenAPI spec
This is not an official client, and was generated for personal use from their OpenAPI spec.
Installation
By using this client you'll avoid a lot of boilerplate code to perform all the marshalling and unmarshalling into objects when using Metronome HTTP APIs.
Install in your project to have it as a dependency in go.mod
:
go get github.com/adilansari/metronome-go-client@latest
Usage
Authentication
Metronome requires all HTTP requests to include a authorization header for authentication:
GET /v1/... HTTP/1.1
Host: api.metronome.com
Authorization: Bearer MY_TOKEN
Instead of adding authorization header to every request when using this go client, you can simply register a callback as:
authProvider, err := securityprovider.NewSecurityProviderBearerToken("MY_TOKEN")
if err != nil {
panic(err)
}
client, err := metronome.NewClient("https://api.metronome.com/v1", metronome.WithRequestEditorFn(authProvider.Intercept))
Create customer example
Following is a complete example you can try in your project. Replace the REPLACE_ME
with your
own token generated from Metronome account.
package main
import (
"context"
"fmt"
"net/http"
"github.com/deepmap/oapi-codegen/pkg/securityprovider"
"github.com/adilansari/metronome-go-client"
)
func main() {
// API key based authentication. Add your metronome auth token here.
// Learn more about auth: https://docs.metronome.com/using-the-api/authorization/
authProvider, err := securityprovider.NewSecurityProviderBearerToken("REPLACE_ME")
if err != nil {
panic(err)
}
// Client will be used to perform all operations on metronome.
// Auth provider generated above will implicitly add an authorization token to all requests.
client, err := metronome.NewClientWithResponses(
"https://api.metronome.com/v1",
metronome.WithRequestEditorFn(authProvider.Intercept),
)
if err != nil {
panic(err)
}
// JSON request for CreateCustomer
createCustomerBody := metronome.CreateCustomerJSONRequestBody{
IngestAliases: &[]string{"my_customer_alias"},
Name: "my_customer_id",
}
// HTTP POST call to "/customers" endpoint
resp, err := client.CreateCustomerWithResponse(context.TODO(), createCustomerBody)
if err != nil {
panic(err)
}
// Checking if request succeeded
if resp.StatusCode() != http.StatusOK {
panic(fmt.Errorf("metronome request failed: %s", resp.Body))
}
// Response available as a struct without explicit parsing
customer := resp.JSON200.Data
fmt.Printf("'id' of created customer: %s\n", customer.Id)
fmt.Printf("'name' of created customer: %s\n", customer.Name)
fmt.Printf("'aliases' for the created customer: %s\n", customer.IngestAliases)
}
// Sample output:
// 'id' of created customer: 1eeb3160-1d1a-40dc-9571-1a65fefbc975
// 'name' of created customer: my_customer_id
// 'aliases' for the created customer: [my_customer_alias]
Requesting updates
- Since this is not official client, the API may be out of date
- Please open an issue in the repo and I'll try to update the client to latest
# Packages
No description provided by the author
# Functions
GetSwagger returns the Swagger specification corresponding to the generated code in this file.
NewAddCustomFieldKeyRequest calls the generic AddCustomFieldKey builder with application/json body.
NewAddCustomFieldKeyRequestWithBody generates requests for AddCustomFieldKey with any type of body.
NewAddOneTimeChargeRequest calls the generic AddOneTimeCharge builder with application/json body.
NewAddOneTimeChargeRequestWithBody generates requests for AddOneTimeCharge with any type of body.
NewAddPlanToCustomerRequest calls the generic AddPlanToCustomer builder with application/json body.
NewAddPlanToCustomerRequestWithBody generates requests for AddPlanToCustomer with any type of body.
NewArchiveAlertRequest calls the generic ArchiveAlert builder with application/json body.
NewArchiveAlertRequestWithBody generates requests for ArchiveAlert with any type of body.
NewArchiveCustomerRequest calls the generic ArchiveCustomer builder with application/json body.
NewArchiveCustomerRequestWithBody generates requests for ArchiveCustomer with any type of body.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewCreateAlertRequest calls the generic CreateAlert builder with application/json body.
NewCreateAlertRequestWithBody generates requests for CreateAlert with any type of body.
NewCreateCustomerRequest calls the generic CreateCustomer builder with application/json body.
NewCreateCustomerRequestWithBody generates requests for CreateCustomer with any type of body.
NewCreateGrantRequest calls the generic CreateGrant builder with application/json body.
NewCreateGrantRequestWithBody generates requests for CreateGrant with any type of body.
NewDeleteBillingConfigForCustomerRequest generates requests for DeleteBillingConfigForCustomer.
NewDeleteCustomFieldsRequest calls the generic DeleteCustomFields builder with application/json body.
NewDeleteCustomFieldsRequestWithBody generates requests for DeleteCustomFields with any type of body.
NewDisableCustomFieldKeyRequest calls the generic DisableCustomFieldKey builder with application/json body.
NewDisableCustomFieldKeyRequestWithBody generates requests for DisableCustomFieldKey with any type of body.
NewEditGrantRequest calls the generic EditGrant builder with application/json body.
NewEditGrantRequestWithBody generates requests for EditGrant with any type of body.
NewEmbeddableDashboardRequest calls the generic EmbeddableDashboard builder with application/json body.
NewEmbeddableDashboardRequestWithBody generates requests for EmbeddableDashboard with any type of body.
NewEndCustomerPlanRequest calls the generic EndCustomerPlan builder with application/json body.
NewEndCustomerPlanRequestWithBody generates requests for EndCustomerPlan with any type of body.
NewGetAuditLogsRequest generates requests for GetAuditLogs.
NewGetBillingConfigRequest generates requests for GetBillingConfig.
NewGetCostsRequest generates requests for GetCosts.
NewGetCustomerAlertRequest calls the generic GetCustomerAlert builder with application/json body.
NewGetCustomerAlertRequestWithBody generates requests for GetCustomerAlert with any type of body.
NewGetCustomerRequest generates requests for GetCustomer.
NewGetInvoiceRequest generates requests for GetInvoice.
NewGetPagedUsageRequest calls the generic GetPagedUsage builder with application/json body.
NewGetPagedUsageRequestWithBody generates requests for GetPagedUsage with any type of body.
NewGetPlanChargesRequest generates requests for GetPlanCharges.
NewGetPlanCustomersRequest generates requests for GetPlanCustomers.
NewGetPlanDetailsRequest generates requests for GetPlanDetails.
NewGetPlanPriceAdjustmentsRequest generates requests for GetPlanPriceAdjustments.
NewGetUsageBatchRequest calls the generic GetUsageBatch builder with application/json body.
NewGetUsageBatchRequestWithBody generates requests for GetUsageBatch with any type of body.
NewIngestRequest calls the generic Ingest builder with application/json body.
NewIngestRequestWithBody generates requests for Ingest with any type of body.
NewListBillableMetricsRequest generates requests for ListBillableMetrics.
NewListCreditLedgerEntriesRequest calls the generic ListCreditLedgerEntries builder with application/json body.
NewListCreditLedgerEntriesRequestWithBody generates requests for ListCreditLedgerEntries with any type of body.
NewListCreditTypesRequest generates requests for ListCreditTypes.
NewListCustomerAlertsRequest calls the generic ListCustomerAlerts builder with application/json body.
NewListCustomerAlertsRequestWithBody generates requests for ListCustomerAlerts with any type of body.
NewListCustomerPlansRequest generates requests for ListCustomerPlans.
NewListCustomersRequest generates requests for ListCustomers.
NewListCustomFieldKeysRequest calls the generic ListCustomFieldKeys builder with application/json body.
NewListCustomFieldKeysRequestWithBody generates requests for ListCustomFieldKeys with any type of body.
NewListGrantsRequest calls the generic ListGrants builder with application/json body.
NewListGrantsRequestWithBody generates requests for ListGrants with any type of body.
NewListInvoicesRequest generates requests for ListInvoices.
NewListPlansRequest generates requests for ListPlans.
NewSetBillingConfigForCustomerRequest calls the generic SetBillingConfigForCustomer builder with application/json body.
NewSetBillingConfigForCustomerRequestWithBody generates requests for SetBillingConfigForCustomer with any type of body.
NewSetCustomerNameRequest calls the generic SetCustomerName builder with application/json body.
NewSetCustomerNameRequestWithBody generates requests for SetCustomerName with any type of body.
NewSetCustomFieldsRequest calls the generic SetCustomFields builder with application/json body.
NewSetCustomFieldsRequestWithBody generates requests for SetCustomFields with any type of body.
NewSetIngestAliasesRequest calls the generic SetIngestAliases builder with application/json body.
NewSetIngestAliasesRequestWithBody generates requests for SetIngestAliases with any type of body.
NewUpdateCustomerConfigRequest calls the generic UpdateCustomerConfig builder with application/json body.
NewUpdateCustomerConfigRequestWithBody generates requests for UpdateCustomerConfig with any type of body.
NewVoidGrantRequest calls the generic VoidGrant builder with application/json body.
NewVoidGrantRequestWithBody generates requests for VoidGrant with any type of body.
ParseAddCustomFieldKeyResponse parses an HTTP response from a AddCustomFieldKeyWithResponse call.
ParseAddOneTimeChargeResponse parses an HTTP response from a AddOneTimeChargeWithResponse call.
ParseAddPlanToCustomerResponse parses an HTTP response from a AddPlanToCustomerWithResponse call.
ParseArchiveAlertResponse parses an HTTP response from a ArchiveAlertWithResponse call.
ParseArchiveCustomerResponse parses an HTTP response from a ArchiveCustomerWithResponse call.
ParseCreateAlertResponse parses an HTTP response from a CreateAlertWithResponse call.
ParseCreateCustomerResponse parses an HTTP response from a CreateCustomerWithResponse call.
ParseCreateGrantResponse parses an HTTP response from a CreateGrantWithResponse call.
ParseDeleteBillingConfigForCustomerResponse parses an HTTP response from a DeleteBillingConfigForCustomerWithResponse call.
ParseDeleteCustomFieldsResponse parses an HTTP response from a DeleteCustomFieldsWithResponse call.
ParseDisableCustomFieldKeyResponse parses an HTTP response from a DisableCustomFieldKeyWithResponse call.
ParseEditGrantResponse parses an HTTP response from a EditGrantWithResponse call.
ParseEmbeddableDashboardResponse parses an HTTP response from a EmbeddableDashboardWithResponse call.
ParseEndCustomerPlanResponse parses an HTTP response from a EndCustomerPlanWithResponse call.
ParseGetAuditLogsResponse parses an HTTP response from a GetAuditLogsWithResponse call.
ParseGetBillingConfigResponse parses an HTTP response from a GetBillingConfigWithResponse call.
ParseGetCostsResponse parses an HTTP response from a GetCostsWithResponse call.
ParseGetCustomerAlertResponse parses an HTTP response from a GetCustomerAlertWithResponse call.
ParseGetCustomerResponse parses an HTTP response from a GetCustomerWithResponse call.
ParseGetInvoiceResponse parses an HTTP response from a GetInvoiceWithResponse call.
ParseGetPagedUsageResponse parses an HTTP response from a GetPagedUsageWithResponse call.
ParseGetPlanChargesResponse parses an HTTP response from a GetPlanChargesWithResponse call.
ParseGetPlanCustomersResponse parses an HTTP response from a GetPlanCustomersWithResponse call.
ParseGetPlanDetailsResponse parses an HTTP response from a GetPlanDetailsWithResponse call.
ParseGetPlanPriceAdjustmentsResponse parses an HTTP response from a GetPlanPriceAdjustmentsWithResponse call.
ParseGetUsageBatchResponse parses an HTTP response from a GetUsageBatchWithResponse call.
ParseIngestResponse parses an HTTP response from a IngestWithResponse call.
ParseListBillableMetricsResponse parses an HTTP response from a ListBillableMetricsWithResponse call.
ParseListCreditLedgerEntriesResponse parses an HTTP response from a ListCreditLedgerEntriesWithResponse call.
ParseListCreditTypesResponse parses an HTTP response from a ListCreditTypesWithResponse call.
ParseListCustomerAlertsResponse parses an HTTP response from a ListCustomerAlertsWithResponse call.
ParseListCustomerPlansResponse parses an HTTP response from a ListCustomerPlansWithResponse call.
ParseListCustomersResponse parses an HTTP response from a ListCustomersWithResponse call.
ParseListCustomFieldKeysResponse parses an HTTP response from a ListCustomFieldKeysWithResponse call.
ParseListGrantsResponse parses an HTTP response from a ListGrantsWithResponse call.
ParseListInvoicesResponse parses an HTTP response from a ListInvoicesWithResponse call.
ParseListPlansResponse parses an HTTP response from a ListPlansWithResponse call.
ParseSetBillingConfigForCustomerResponse parses an HTTP response from a SetBillingConfigForCustomerWithResponse call.
ParseSetCustomerNameResponse parses an HTTP response from a SetCustomerNameWithResponse call.
ParseSetCustomFieldsResponse parses an HTTP response from a SetCustomFieldsWithResponse call.
ParseSetIngestAliasesResponse parses an HTTP response from a SetIngestAliasesWithResponse call.
ParseUpdateCustomerConfigResponse parses an HTTP response from a UpdateCustomerConfigWithResponse call.
ParseVoidGrantResponse parses an HTTP response from a VoidGrantWithResponse call.
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.
# Constants
Defines values for GetPlanCustomersParamsStatus.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for AddCustomFieldKeyJSONBodyEntity.
Defines values for GetPlanCustomersParamsStatus.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
No description provided by the author
Defines values for CreateAlertJSONBodyCustomFieldFiltersEntity.
Defines values for CreateAlertJSONBodyCustomFieldFiltersEntity.
Defines values for CreateAlertJSONBodyCustomFieldFiltersEntity.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigAwsRegion.
Defines values for CreateCustomerJSONBodyBillingConfigBillingProviderType.
Defines values for CreateCustomerJSONBodyBillingConfigBillingProviderType.
Defines values for CreateCustomerJSONBodyBillingConfigBillingProviderType.
Defines values for CreateCustomerJSONBodyBillingConfigBillingProviderType.
Defines values for CreateCustomerJSONBodyBillingConfigBillingProviderType.
Defines values for CreateCustomerJSONBodyBillingConfigBillingProviderType.
Defines values for CreateCustomerJSONBodyBillingConfigBillingProviderType.
Defines values for CreateCustomerJSONBodyBillingConfigStripeCollectionMethod.
Defines values for CreateCustomerJSONBodyBillingConfigStripeCollectionMethod.
Defines values for EmbeddableDashboardJSONBodyDashboard.
Defines values for ListInvoicesParamsSort.
Defines values for ListInvoicesParamsSort.
Defines values for DeleteBillingConfigForCustomerParamsBillingProviderType.
Defines values for DeleteBillingConfigForCustomerParamsBillingProviderType.
Defines values for DeleteBillingConfigForCustomerParamsBillingProviderType.
Defines values for DeleteBillingConfigForCustomerParamsBillingProviderType.
Defines values for DeleteBillingConfigForCustomerParamsBillingProviderType.
Defines values for DeleteBillingConfigForCustomerParamsBillingProviderType.
Defines values for DeleteBillingConfigForCustomerParamsBillingProviderType.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DeleteCustomFieldsJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for DisableCustomFieldKeyJSONBodyEntity.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
Defines values for ListCustomerAlertsJSONBodyAlertStatuses.
Defines values for GetPlanCustomersParamsStatus.
Defines values for AddPlanToCustomerJSONBodyPriceAdjustmentsAdjustmentType.
Defines values for GetBillingConfigParamsBillingProviderType.
Defines values for GetBillingConfigParamsBillingProviderType.
Defines values for GetBillingConfigParamsBillingProviderType.
Defines values for GetBillingConfigParamsBillingProviderType.
Defines values for GetBillingConfigParamsBillingProviderType.
Defines values for GetBillingConfigParamsBillingProviderType.
Defines values for GetBillingConfigParamsBillingProviderType.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetPagedUsageJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for GetUsageBatchJSONBodyWindowSize.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyDashboard.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for ListCustomFieldKeysJSONBodyEntities.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for AddPlanToCustomerJSONBodyPriceAdjustmentsAdjustmentType.
Defines values for AddPlanToCustomerJSONBodyPriceAdjustmentsAdjustmentType.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for AddPlanToCustomerJSONBodyPriceAdjustmentsAdjustmentType.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyAwsRegion.
Defines values for SetBillingConfigForCustomerJSONBodyStripeCollectionMethod.
Defines values for SetBillingConfigForCustomerJSONBodyStripeCollectionMethod.
Defines values for SetBillingConfigForCustomerParamsBillingProviderType.
Defines values for SetBillingConfigForCustomerParamsBillingProviderType.
Defines values for SetBillingConfigForCustomerParamsBillingProviderType.
Defines values for SetBillingConfigForCustomerParamsBillingProviderType.
Defines values for SetBillingConfigForCustomerParamsBillingProviderType.
Defines values for SetBillingConfigForCustomerParamsBillingProviderType.
Defines values for SetBillingConfigForCustomerParamsBillingProviderType.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for SetCustomFieldsJSONBodyEntity.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for GetPlanCustomersParamsStatus.
Defines values for EmbeddableDashboardJSONBodyDashboard.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
Defines values for CreateAlertJSONBodyAlertType.
Defines values for EmbeddableDashboardJSONBodyColorOverridesName.
# Structs
AddCustomFieldKeyJSONBody defines parameters for AddCustomFieldKey.
No description provided by the author
AddOneTimeChargeJSONBody defines parameters for AddOneTimeCharge.
No description provided by the author
AddPlanToCustomerJSONBody defines parameters for AddPlanToCustomer.
No description provided by the author
ArchiveAlertJSONBody defines parameters for ArchiveAlert.
No description provided by the author
ArchiveCustomerJSONBody defines parameters for ArchiveCustomer.
No description provided by the author
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
CreateAlertJSONBody defines parameters for CreateAlert.
No description provided by the author
CreateCustomerJSONBody defines parameters for CreateCustomer.
No description provided by the author
CreateGrantJSONBody defines parameters for CreateGrant.
CreateGrantJSONBody_RolloverSettings_RolloverAmount defines parameters for CreateGrant.
CreateGrantJSONBodyRolloverSettingsRolloverAmount0 defines parameters for CreateGrant.
CreateGrantJSONBodyRolloverSettingsRolloverAmount1 defines parameters for CreateGrant.
No description provided by the author
No description provided by the author
DeleteCustomFieldsJSONBody defines parameters for DeleteCustomFields.
No description provided by the author
DisableCustomFieldKeyJSONBody defines parameters for DisableCustomFieldKey.
No description provided by the author
EditGrantJSONBody defines parameters for EditGrant.
No description provided by the author
EmbeddableDashboardJSONBody defines parameters for EmbeddableDashboard.
No description provided by the author
EndCustomerPlanJSONBody defines parameters for EndCustomerPlan.
No description provided by the author
GetAuditLogsParams defines parameters for GetAuditLogs.
No description provided by the author
No description provided by the author
GetCostsParams defines parameters for GetCosts.
No description provided by the author
GetCustomerAlertJSONBody defines parameters for GetCustomerAlert.
No description provided by the author
No description provided by the author
No description provided by the author
GetPagedUsageJSONBody defines parameters for GetPagedUsage.
GetPagedUsageParams defines parameters for GetPagedUsage.
No description provided by the author
GetPlanChargesParams defines parameters for GetPlanCharges.
No description provided by the author
GetPlanCustomersParams defines parameters for GetPlanCustomers.
No description provided by the author
No description provided by the author
GetPlanPriceAdjustmentsParams defines parameters for GetPlanPriceAdjustments.
No description provided by the author
GetUsageBatchJSONBody defines parameters for GetUsageBatch.
GetUsageBatchParams defines parameters for GetUsageBatch.
No description provided by the author
No description provided by the author
ListBillableMetricsParams defines parameters for ListBillableMetrics.
No description provided by the author
ListCreditLedgerEntriesJSONBody defines parameters for ListCreditLedgerEntries.
ListCreditLedgerEntriesParams defines parameters for ListCreditLedgerEntries.
No description provided by the author
ListCreditTypesParams defines parameters for ListCreditTypes.
No description provided by the author
ListCustomerAlertsJSONBody defines parameters for ListCustomerAlerts.
ListCustomerAlertsParams defines parameters for ListCustomerAlerts.
No description provided by the author
ListCustomerPlansParams defines parameters for ListCustomerPlans.
No description provided by the author
ListCustomersParams defines parameters for ListCustomers.
No description provided by the author
ListCustomFieldKeysJSONBody defines parameters for ListCustomFieldKeys.
ListCustomFieldKeysParams defines parameters for ListCustomFieldKeys.
No description provided by the author
ListGrantsJSONBody defines parameters for ListGrants.
ListGrantsParams defines parameters for ListGrants.
No description provided by the author
ListInvoicesParams defines parameters for ListInvoices.
No description provided by the author
ListPlansParams defines parameters for ListPlans.
No description provided by the author
SetBillingConfigForCustomerJSONBody defines parameters for SetBillingConfigForCustomer.
No description provided by the author
SetCustomerNameJSONBody defines parameters for SetCustomerName.
No description provided by the author
SetCustomFieldsJSONBody defines parameters for SetCustomFields.
No description provided by the author
SetIngestAliasesJSONBody defines parameters for SetIngestAliases.
No description provided by the author
UpdateCustomerConfigJSONBody defines parameters for UpdateCustomerConfig.
No description provided by the author
VoidGrantJSONBody defines parameters for VoidGrant.
No description provided by the author
# Interfaces
The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
Doer performs HTTP requests.
# Type aliases
AddCustomFieldKeyJSONBodyEntity defines parameters for AddCustomFieldKey.
AddCustomFieldKeyJSONRequestBody defines body for AddCustomFieldKey for application/json ContentType.
AddOneTimeChargeJSONRequestBody defines body for AddOneTimeCharge for application/json ContentType.
AddPlanToCustomerJSONBodyPriceAdjustmentsAdjustmentType defines parameters for AddPlanToCustomer.
AddPlanToCustomerJSONRequestBody defines body for AddPlanToCustomer for application/json ContentType.
ArchiveAlertJSONRequestBody defines body for ArchiveAlert for application/json ContentType.
ArchiveCustomerJSONRequestBody defines body for ArchiveCustomer for application/json ContentType.
ClientOption allows setting custom parameters during construction.
CreateAlertJSONBodyAlertType defines parameters for CreateAlert.
CreateAlertJSONBodyCustomFieldFiltersEntity defines parameters for CreateAlert.
CreateAlertJSONRequestBody defines body for CreateAlert for application/json ContentType.
CreateCustomerJSONBodyBillingConfigAwsRegion defines parameters for CreateCustomer.
CreateCustomerJSONBodyBillingConfigBillingProviderType defines parameters for CreateCustomer.
CreateCustomerJSONBodyBillingConfigStripeCollectionMethod defines parameters for CreateCustomer.
CreateCustomerJSONRequestBody defines body for CreateCustomer for application/json ContentType.
CreateGrantJSONRequestBody defines body for CreateGrant for application/json ContentType.
DeleteBillingConfigForCustomerParamsBillingProviderType defines parameters for DeleteBillingConfigForCustomer.
DeleteCustomFieldsJSONBodyEntity defines parameters for DeleteCustomFields.
DeleteCustomFieldsJSONRequestBody defines body for DeleteCustomFields for application/json ContentType.
DisableCustomFieldKeyJSONBodyEntity defines parameters for DisableCustomFieldKey.
DisableCustomFieldKeyJSONRequestBody defines body for DisableCustomFieldKey for application/json ContentType.
EditGrantJSONRequestBody defines body for EditGrant for application/json ContentType.
EmbeddableDashboardJSONBodyColorOverridesName defines parameters for EmbeddableDashboard.
EmbeddableDashboardJSONBodyDashboard defines parameters for EmbeddableDashboard.
EmbeddableDashboardJSONRequestBody defines body for EmbeddableDashboard for application/json ContentType.
EndCustomerPlanJSONRequestBody defines body for EndCustomerPlan for application/json ContentType.
GetBillingConfigParamsBillingProviderType defines parameters for GetBillingConfig.
GetCustomerAlertJSONRequestBody defines body for GetCustomerAlert for application/json ContentType.
GetPagedUsageJSONBodyWindowSize defines parameters for GetPagedUsage.
GetPagedUsageJSONRequestBody defines body for GetPagedUsage for application/json ContentType.
GetPlanCustomersParamsStatus defines parameters for GetPlanCustomers.
GetUsageBatchJSONBodyWindowSize defines parameters for GetUsageBatch.
GetUsageBatchJSONRequestBody defines body for GetUsageBatch for application/json ContentType.
IngestJSONBody defines parameters for Ingest.
IngestJSONRequestBody defines body for Ingest for application/json ContentType.
ListCreditLedgerEntriesJSONRequestBody defines body for ListCreditLedgerEntries for application/json ContentType.
ListCustomerAlertsJSONBodyAlertStatuses defines parameters for ListCustomerAlerts.
ListCustomerAlertsJSONRequestBody defines body for ListCustomerAlerts for application/json ContentType.
ListCustomFieldKeysJSONBodyEntities defines parameters for ListCustomFieldKeys.
ListCustomFieldKeysJSONRequestBody defines body for ListCustomFieldKeys for application/json ContentType.
ListGrantsJSONRequestBody defines body for ListGrants for application/json ContentType.
ListInvoicesParamsSort defines parameters for ListInvoices.
RequestEditorFn is the function signature for the RequestEditor callback function.
SetBillingConfigForCustomerJSONBodyAwsRegion defines parameters for SetBillingConfigForCustomer.
SetBillingConfigForCustomerJSONBodyStripeCollectionMethod defines parameters for SetBillingConfigForCustomer.
SetBillingConfigForCustomerJSONRequestBody defines body for SetBillingConfigForCustomer for application/json ContentType.
SetBillingConfigForCustomerParamsBillingProviderType defines parameters for SetBillingConfigForCustomer.
SetCustomerNameJSONRequestBody defines body for SetCustomerName for application/json ContentType.
SetCustomFieldsJSONBodyEntity defines parameters for SetCustomFields.
SetCustomFieldsJSONRequestBody defines body for SetCustomFields for application/json ContentType.
SetIngestAliasesJSONRequestBody defines body for SetIngestAliases for application/json ContentType.
UpdateCustomerConfigJSONRequestBody defines body for UpdateCustomerConfig for application/json ContentType.
VoidGrantJSONRequestBody defines body for VoidGrant for application/json ContentType.