// Package openmeter provides primitives to interact with the openapi HTTP API. // // Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.1-0.20260403235458-a76544bd16ff DO NOT EDIT. package openmeter import ( "bytes" "compress/gzip" "context" "encoding/base64" "encoding/json" "errors" "fmt" "io" "net/http" "net/url" "path" "strings" "time" "github.com/cloudevents/sdk-go/v2/event" "github.com/getkin/kin-openapi/openapi3" "github.com/oapi-codegen/runtime" "github.com/openmeterio/openmeter/pkg/models" ) const ( CloudCookieAuthScopes cloudCookieAuthContextKey = "CloudCookieAuth.Scopes" CloudPortalTokenAuthScopes cloudPortalTokenAuthContextKey = "CloudPortalTokenAuth.Scopes" CloudTokenAuthScopes cloudTokenAuthContextKey = "CloudTokenAuth.Scopes" ) // Defines values for AddonInstanceType. const ( AddonInstanceTypeMultiple AddonInstanceType = "multiple" AddonInstanceTypeSingle AddonInstanceType = "single" ) // Valid indicates whether the value is a known member of the AddonInstanceType enum. func (e AddonInstanceType) Valid() bool { switch e { case AddonInstanceTypeMultiple: return true case AddonInstanceTypeSingle: return true default: return false } } // Defines values for AddonOrderBy. const ( AddonOrderByCreatedAt AddonOrderBy = "created_at" AddonOrderById AddonOrderBy = "id" AddonOrderByKey AddonOrderBy = "key" AddonOrderByUpdatedAt AddonOrderBy = "updated_at" AddonOrderByVersion AddonOrderBy = "version" ) // Valid indicates whether the value is a known member of the AddonOrderBy enum. func (e AddonOrderBy) Valid() bool { switch e { case AddonOrderByCreatedAt: return true case AddonOrderById: return true case AddonOrderByKey: return true case AddonOrderByUpdatedAt: return true case AddonOrderByVersion: return true default: return false } } // Defines values for AddonStatus. const ( AddonStatusActive AddonStatus = "active" AddonStatusArchived AddonStatus = "archived" AddonStatusDraft AddonStatus = "draft" ) // Valid indicates whether the value is a known member of the AddonStatus enum. func (e AddonStatus) Valid() bool { switch e { case AddonStatusActive: return true case AddonStatusArchived: return true case AddonStatusDraft: return true default: return false } } // Defines values for AppCapabilityType. const ( AppCapabilityTypeCalculateTax AppCapabilityType = "calculateTax" AppCapabilityTypeCollectPayments AppCapabilityType = "collectPayments" AppCapabilityTypeInvoiceCustomers AppCapabilityType = "invoiceCustomers" AppCapabilityTypeReportEvents AppCapabilityType = "reportEvents" AppCapabilityTypeReportUsage AppCapabilityType = "reportUsage" ) // Valid indicates whether the value is a known member of the AppCapabilityType enum. func (e AppCapabilityType) Valid() bool { switch e { case AppCapabilityTypeCalculateTax: return true case AppCapabilityTypeCollectPayments: return true case AppCapabilityTypeInvoiceCustomers: return true case AppCapabilityTypeReportEvents: return true case AppCapabilityTypeReportUsage: return true default: return false } } // Defines values for AppStatus. const ( AppStatusReady AppStatus = "ready" AppStatusUnauthorized AppStatus = "unauthorized" ) // Valid indicates whether the value is a known member of the AppStatus enum. func (e AppStatus) Valid() bool { switch e { case AppStatusReady: return true case AppStatusUnauthorized: return true default: return false } } // Defines values for AppType. const ( AppTypeCustomInvoicing AppType = "custom_invoicing" AppTypeSandbox AppType = "sandbox" AppTypeStripe AppType = "stripe" ) // Valid indicates whether the value is a known member of the AppType enum. func (e AppType) Valid() bool { switch e { case AppTypeCustomInvoicing: return true case AppTypeSandbox: return true case AppTypeStripe: return true default: return false } } // Defines values for BillingProfileCustomerOverrideExpand. const ( BillingProfileCustomerOverrideExpandApps BillingProfileCustomerOverrideExpand = "apps" BillingProfileCustomerOverrideExpandCustomer BillingProfileCustomerOverrideExpand = "customer" ) // Valid indicates whether the value is a known member of the BillingProfileCustomerOverrideExpand enum. func (e BillingProfileCustomerOverrideExpand) Valid() bool { switch e { case BillingProfileCustomerOverrideExpandApps: return true case BillingProfileCustomerOverrideExpandCustomer: return true default: return false } } // Defines values for BillingProfileCustomerOverrideOrderBy. const ( BillingProfileCustomerOverrideOrderByCustomerCreatedAt BillingProfileCustomerOverrideOrderBy = "customerCreatedAt" BillingProfileCustomerOverrideOrderByCustomerId BillingProfileCustomerOverrideOrderBy = "customerId" BillingProfileCustomerOverrideOrderByCustomerKey BillingProfileCustomerOverrideOrderBy = "customerKey" BillingProfileCustomerOverrideOrderByCustomerName BillingProfileCustomerOverrideOrderBy = "customerName" BillingProfileCustomerOverrideOrderByCustomerPrimaryEmail BillingProfileCustomerOverrideOrderBy = "customerPrimaryEmail" ) // Valid indicates whether the value is a known member of the BillingProfileCustomerOverrideOrderBy enum. func (e BillingProfileCustomerOverrideOrderBy) Valid() bool { switch e { case BillingProfileCustomerOverrideOrderByCustomerCreatedAt: return true case BillingProfileCustomerOverrideOrderByCustomerId: return true case BillingProfileCustomerOverrideOrderByCustomerKey: return true case BillingProfileCustomerOverrideOrderByCustomerName: return true case BillingProfileCustomerOverrideOrderByCustomerPrimaryEmail: return true default: return false } } // Defines values for BillingProfileExpand. const ( BillingProfileExpandApps BillingProfileExpand = "apps" ) // Valid indicates whether the value is a known member of the BillingProfileExpand enum. func (e BillingProfileExpand) Valid() bool { switch e { case BillingProfileExpandApps: return true default: return false } } // Defines values for BillingProfileOrderBy. const ( BillingProfileOrderByCreatedAt BillingProfileOrderBy = "createdAt" BillingProfileOrderByDefault BillingProfileOrderBy = "default" BillingProfileOrderByName BillingProfileOrderBy = "name" BillingProfileOrderByUpdatedAt BillingProfileOrderBy = "updatedAt" ) // Valid indicates whether the value is a known member of the BillingProfileOrderBy enum. func (e BillingProfileOrderBy) Valid() bool { switch e { case BillingProfileOrderByCreatedAt: return true case BillingProfileOrderByDefault: return true case BillingProfileOrderByName: return true case BillingProfileOrderByUpdatedAt: return true default: return false } } // Defines values for BillingSettlementMode. const ( BillingSettlementModeCreditOnly BillingSettlementMode = "credit_only" BillingSettlementModeCreditThenInvoice BillingSettlementMode = "credit_then_invoice" ) // Valid indicates whether the value is a known member of the BillingSettlementMode enum. func (e BillingSettlementMode) Valid() bool { switch e { case BillingSettlementModeCreditOnly: return true case BillingSettlementModeCreditThenInvoice: return true default: return false } } // Defines values for BillingWorkflowCollectionAlignmentAnchoredType. const ( BillingWorkflowCollectionAlignmentAnchoredTypeAnchored BillingWorkflowCollectionAlignmentAnchoredType = "anchored" ) // Valid indicates whether the value is a known member of the BillingWorkflowCollectionAlignmentAnchoredType enum. func (e BillingWorkflowCollectionAlignmentAnchoredType) Valid() bool { switch e { case BillingWorkflowCollectionAlignmentAnchoredTypeAnchored: return true default: return false } } // Defines values for BillingWorkflowCollectionAlignmentSubscriptionType. const ( BillingWorkflowCollectionAlignmentSubscriptionTypeSubscription BillingWorkflowCollectionAlignmentSubscriptionType = "subscription" ) // Valid indicates whether the value is a known member of the BillingWorkflowCollectionAlignmentSubscriptionType enum. func (e BillingWorkflowCollectionAlignmentSubscriptionType) Valid() bool { switch e { case BillingWorkflowCollectionAlignmentSubscriptionTypeSubscription: return true default: return false } } // Defines values for BillingWorkflowInvoicingSubscriptionEndProrationMode. const ( BillingWorkflowInvoicingSubscriptionEndProrationModeBillActualPeriod BillingWorkflowInvoicingSubscriptionEndProrationMode = "bill_actual_period" BillingWorkflowInvoicingSubscriptionEndProrationModeBillFullPeriod BillingWorkflowInvoicingSubscriptionEndProrationMode = "bill_full_period" ) // Valid indicates whether the value is a known member of the BillingWorkflowInvoicingSubscriptionEndProrationMode enum. func (e BillingWorkflowInvoicingSubscriptionEndProrationMode) Valid() bool { switch e { case BillingWorkflowInvoicingSubscriptionEndProrationModeBillActualPeriod: return true case BillingWorkflowInvoicingSubscriptionEndProrationModeBillFullPeriod: return true default: return false } } // Defines values for CheckoutSessionUIMode. const ( CheckoutSessionUIModeEmbedded CheckoutSessionUIMode = "embedded" CheckoutSessionUIModeHosted CheckoutSessionUIMode = "hosted" ) // Valid indicates whether the value is a known member of the CheckoutSessionUIMode enum. func (e CheckoutSessionUIMode) Valid() bool { switch e { case CheckoutSessionUIModeEmbedded: return true case CheckoutSessionUIModeHosted: return true default: return false } } // Defines values for CollectionMethod. const ( CollectionMethodChargeAutomatically CollectionMethod = "charge_automatically" CollectionMethodSendInvoice CollectionMethod = "send_invoice" ) // Valid indicates whether the value is a known member of the CollectionMethod enum. func (e CollectionMethod) Valid() bool { switch e { case CollectionMethodChargeAutomatically: return true case CollectionMethodSendInvoice: return true default: return false } } // Defines values for CreateCheckoutSessionTaxIdCollectionRequired. const ( CreateCheckoutSessionTaxIdCollectionRequiredIfSupported CreateCheckoutSessionTaxIdCollectionRequired = "if_supported" CreateCheckoutSessionTaxIdCollectionRequiredNever CreateCheckoutSessionTaxIdCollectionRequired = "never" ) // Valid indicates whether the value is a known member of the CreateCheckoutSessionTaxIdCollectionRequired enum. func (e CreateCheckoutSessionTaxIdCollectionRequired) Valid() bool { switch e { case CreateCheckoutSessionTaxIdCollectionRequiredIfSupported: return true case CreateCheckoutSessionTaxIdCollectionRequiredNever: return true default: return false } } // Defines values for CreateStripeCheckoutSessionBillingAddressCollection. const ( CreateStripeCheckoutSessionBillingAddressCollectionAuto CreateStripeCheckoutSessionBillingAddressCollection = "auto" CreateStripeCheckoutSessionBillingAddressCollectionRequired CreateStripeCheckoutSessionBillingAddressCollection = "required" ) // Valid indicates whether the value is a known member of the CreateStripeCheckoutSessionBillingAddressCollection enum. func (e CreateStripeCheckoutSessionBillingAddressCollection) Valid() bool { switch e { case CreateStripeCheckoutSessionBillingAddressCollectionAuto: return true case CreateStripeCheckoutSessionBillingAddressCollectionRequired: return true default: return false } } // Defines values for CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition. const ( CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPositionAuto CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition = "auto" CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPositionHidden CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition = "hidden" ) // Valid indicates whether the value is a known member of the CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition enum. func (e CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition) Valid() bool { switch e { case CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPositionAuto: return true case CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPositionHidden: return true default: return false } } // Defines values for CreateStripeCheckoutSessionConsentCollectionPromotions. const ( CreateStripeCheckoutSessionConsentCollectionPromotionsAuto CreateStripeCheckoutSessionConsentCollectionPromotions = "auto" CreateStripeCheckoutSessionConsentCollectionPromotionsNone CreateStripeCheckoutSessionConsentCollectionPromotions = "none" ) // Valid indicates whether the value is a known member of the CreateStripeCheckoutSessionConsentCollectionPromotions enum. func (e CreateStripeCheckoutSessionConsentCollectionPromotions) Valid() bool { switch e { case CreateStripeCheckoutSessionConsentCollectionPromotionsAuto: return true case CreateStripeCheckoutSessionConsentCollectionPromotionsNone: return true default: return false } } // Defines values for CreateStripeCheckoutSessionConsentCollectionTermsOfService. const ( CreateStripeCheckoutSessionConsentCollectionTermsOfServiceNone CreateStripeCheckoutSessionConsentCollectionTermsOfService = "none" CreateStripeCheckoutSessionConsentCollectionTermsOfServiceRequired CreateStripeCheckoutSessionConsentCollectionTermsOfService = "required" ) // Valid indicates whether the value is a known member of the CreateStripeCheckoutSessionConsentCollectionTermsOfService enum. func (e CreateStripeCheckoutSessionConsentCollectionTermsOfService) Valid() bool { switch e { case CreateStripeCheckoutSessionConsentCollectionTermsOfServiceNone: return true case CreateStripeCheckoutSessionConsentCollectionTermsOfServiceRequired: return true default: return false } } // Defines values for CreateStripeCheckoutSessionCustomerUpdateBehavior. const ( CreateStripeCheckoutSessionCustomerUpdateBehaviorAuto CreateStripeCheckoutSessionCustomerUpdateBehavior = "auto" CreateStripeCheckoutSessionCustomerUpdateBehaviorNever CreateStripeCheckoutSessionCustomerUpdateBehavior = "never" ) // Valid indicates whether the value is a known member of the CreateStripeCheckoutSessionCustomerUpdateBehavior enum. func (e CreateStripeCheckoutSessionCustomerUpdateBehavior) Valid() bool { switch e { case CreateStripeCheckoutSessionCustomerUpdateBehaviorAuto: return true case CreateStripeCheckoutSessionCustomerUpdateBehaviorNever: return true default: return false } } // Defines values for CreateStripeCheckoutSessionRedirectOnCompletion. const ( CreateStripeCheckoutSessionRedirectOnCompletionAlways CreateStripeCheckoutSessionRedirectOnCompletion = "always" CreateStripeCheckoutSessionRedirectOnCompletionIfRequired CreateStripeCheckoutSessionRedirectOnCompletion = "if_required" CreateStripeCheckoutSessionRedirectOnCompletionNever CreateStripeCheckoutSessionRedirectOnCompletion = "never" ) // Valid indicates whether the value is a known member of the CreateStripeCheckoutSessionRedirectOnCompletion enum. func (e CreateStripeCheckoutSessionRedirectOnCompletion) Valid() bool { switch e { case CreateStripeCheckoutSessionRedirectOnCompletionAlways: return true case CreateStripeCheckoutSessionRedirectOnCompletionIfRequired: return true case CreateStripeCheckoutSessionRedirectOnCompletionNever: return true default: return false } } // Defines values for CustomInvoicingAppType. const ( CustomInvoicingAppTypeCustomInvoicing CustomInvoicingAppType = "custom_invoicing" ) // Valid indicates whether the value is a known member of the CustomInvoicingAppType enum. func (e CustomInvoicingAppType) Valid() bool { switch e { case CustomInvoicingAppTypeCustomInvoicing: return true default: return false } } // Defines values for CustomInvoicingAppReplaceUpdateType. const ( CustomInvoicingAppReplaceUpdateTypeCustomInvoicing CustomInvoicingAppReplaceUpdateType = "custom_invoicing" ) // Valid indicates whether the value is a known member of the CustomInvoicingAppReplaceUpdateType enum. func (e CustomInvoicingAppReplaceUpdateType) Valid() bool { switch e { case CustomInvoicingAppReplaceUpdateTypeCustomInvoicing: return true default: return false } } // Defines values for CustomInvoicingCustomerAppDataType. const ( CustomInvoicingCustomerAppDataTypeCustomInvoicing CustomInvoicingCustomerAppDataType = "custom_invoicing" ) // Valid indicates whether the value is a known member of the CustomInvoicingCustomerAppDataType enum. func (e CustomInvoicingCustomerAppDataType) Valid() bool { switch e { case CustomInvoicingCustomerAppDataTypeCustomInvoicing: return true default: return false } } // Defines values for CustomInvoicingPaymentTrigger. const ( CustomInvoicingPaymentTriggerActionRequired CustomInvoicingPaymentTrigger = "action_required" CustomInvoicingPaymentTriggerPaid CustomInvoicingPaymentTrigger = "paid" CustomInvoicingPaymentTriggerPaymentFailed CustomInvoicingPaymentTrigger = "payment_failed" CustomInvoicingPaymentTriggerPaymentOverdue CustomInvoicingPaymentTrigger = "payment_overdue" CustomInvoicingPaymentTriggerPaymentUncollectible CustomInvoicingPaymentTrigger = "payment_uncollectible" CustomInvoicingPaymentTriggerVoid CustomInvoicingPaymentTrigger = "void" ) // Valid indicates whether the value is a known member of the CustomInvoicingPaymentTrigger enum. func (e CustomInvoicingPaymentTrigger) Valid() bool { switch e { case CustomInvoicingPaymentTriggerActionRequired: return true case CustomInvoicingPaymentTriggerPaid: return true case CustomInvoicingPaymentTriggerPaymentFailed: return true case CustomInvoicingPaymentTriggerPaymentOverdue: return true case CustomInvoicingPaymentTriggerPaymentUncollectible: return true case CustomInvoicingPaymentTriggerVoid: return true default: return false } } // Defines values for CustomerExpand. const ( CustomerExpandSubscriptions CustomerExpand = "subscriptions" ) // Valid indicates whether the value is a known member of the CustomerExpand enum. func (e CustomerExpand) Valid() bool { switch e { case CustomerExpandSubscriptions: return true default: return false } } // Defines values for CustomerOrderBy. const ( CustomerOrderByCreatedAt CustomerOrderBy = "createdAt" CustomerOrderById CustomerOrderBy = "id" CustomerOrderByName CustomerOrderBy = "name" ) // Valid indicates whether the value is a known member of the CustomerOrderBy enum. func (e CustomerOrderBy) Valid() bool { switch e { case CustomerOrderByCreatedAt: return true case CustomerOrderById: return true case CustomerOrderByName: return true default: return false } } // Defines values for CustomerSubscriptionOrderBy. const ( CustomerSubscriptionOrderByActiveFrom CustomerSubscriptionOrderBy = "activeFrom" CustomerSubscriptionOrderByActiveTo CustomerSubscriptionOrderBy = "activeTo" ) // Valid indicates whether the value is a known member of the CustomerSubscriptionOrderBy enum. func (e CustomerSubscriptionOrderBy) Valid() bool { switch e { case CustomerSubscriptionOrderByActiveFrom: return true case CustomerSubscriptionOrderByActiveTo: return true default: return false } } // Defines values for DiscountReasonMaximumSpendType. const ( DiscountReasonMaximumSpendTypeMaximumSpend DiscountReasonMaximumSpendType = "maximum_spend" ) // Valid indicates whether the value is a known member of the DiscountReasonMaximumSpendType enum. func (e DiscountReasonMaximumSpendType) Valid() bool { switch e { case DiscountReasonMaximumSpendTypeMaximumSpend: return true default: return false } } // Defines values for DiscountReasonRatecardPercentageType. const ( DiscountReasonRatecardPercentageTypeRatecardPercentage DiscountReasonRatecardPercentageType = "ratecard_percentage" ) // Valid indicates whether the value is a known member of the DiscountReasonRatecardPercentageType enum. func (e DiscountReasonRatecardPercentageType) Valid() bool { switch e { case DiscountReasonRatecardPercentageTypeRatecardPercentage: return true default: return false } } // Defines values for DiscountReasonRatecardUsageType. const ( DiscountReasonRatecardUsageTypeRatecardUsage DiscountReasonRatecardUsageType = "ratecard_usage" ) // Valid indicates whether the value is a known member of the DiscountReasonRatecardUsageType enum. func (e DiscountReasonRatecardUsageType) Valid() bool { switch e { case DiscountReasonRatecardUsageTypeRatecardUsage: return true default: return false } } // Defines values for DynamicPriceWithCommitmentsType. const ( DynamicPriceWithCommitmentsTypeDynamic DynamicPriceWithCommitmentsType = "dynamic" ) // Valid indicates whether the value is a known member of the DynamicPriceWithCommitmentsType enum. func (e DynamicPriceWithCommitmentsType) Valid() bool { switch e { case DynamicPriceWithCommitmentsTypeDynamic: return true default: return false } } // Defines values for EditSubscriptionAddItemOp. const ( EditSubscriptionAddItemOpAddItem EditSubscriptionAddItemOp = "add_item" ) // Valid indicates whether the value is a known member of the EditSubscriptionAddItemOp enum. func (e EditSubscriptionAddItemOp) Valid() bool { switch e { case EditSubscriptionAddItemOpAddItem: return true default: return false } } // Defines values for EditSubscriptionAddPhaseOp. const ( EditSubscriptionAddPhaseOpAddPhase EditSubscriptionAddPhaseOp = "add_phase" ) // Valid indicates whether the value is a known member of the EditSubscriptionAddPhaseOp enum. func (e EditSubscriptionAddPhaseOp) Valid() bool { switch e { case EditSubscriptionAddPhaseOpAddPhase: return true default: return false } } // Defines values for EditSubscriptionRemoveItemOp. const ( EditSubscriptionRemoveItemOpRemoveItem EditSubscriptionRemoveItemOp = "remove_item" ) // Valid indicates whether the value is a known member of the EditSubscriptionRemoveItemOp enum. func (e EditSubscriptionRemoveItemOp) Valid() bool { switch e { case EditSubscriptionRemoveItemOpRemoveItem: return true default: return false } } // Defines values for EditSubscriptionRemovePhaseOp. const ( EditSubscriptionRemovePhaseOpRemovePhase EditSubscriptionRemovePhaseOp = "remove_phase" ) // Valid indicates whether the value is a known member of the EditSubscriptionRemovePhaseOp enum. func (e EditSubscriptionRemovePhaseOp) Valid() bool { switch e { case EditSubscriptionRemovePhaseOpRemovePhase: return true default: return false } } // Defines values for EditSubscriptionStretchPhaseOp. const ( EditSubscriptionStretchPhaseOpStretchPhase EditSubscriptionStretchPhaseOp = "stretch_phase" ) // Valid indicates whether the value is a known member of the EditSubscriptionStretchPhaseOp enum. func (e EditSubscriptionStretchPhaseOp) Valid() bool { switch e { case EditSubscriptionStretchPhaseOpStretchPhase: return true default: return false } } // Defines values for EditSubscriptionUnscheduleEditOp. const ( EditSubscriptionUnscheduleEditOpUnscheduleEdit EditSubscriptionUnscheduleEditOp = "unschedule_edit" ) // Valid indicates whether the value is a known member of the EditSubscriptionUnscheduleEditOp enum. func (e EditSubscriptionUnscheduleEditOp) Valid() bool { switch e { case EditSubscriptionUnscheduleEditOpUnscheduleEdit: return true default: return false } } // Defines values for EntitlementBooleanType. const ( EntitlementBooleanTypeBoolean EntitlementBooleanType = "boolean" ) // Valid indicates whether the value is a known member of the EntitlementBooleanType enum. func (e EntitlementBooleanType) Valid() bool { switch e { case EntitlementBooleanTypeBoolean: return true default: return false } } // Defines values for EntitlementBooleanCreateInputsType. const ( EntitlementBooleanCreateInputsTypeBoolean EntitlementBooleanCreateInputsType = "boolean" ) // Valid indicates whether the value is a known member of the EntitlementBooleanCreateInputsType enum. func (e EntitlementBooleanCreateInputsType) Valid() bool { switch e { case EntitlementBooleanCreateInputsTypeBoolean: return true default: return false } } // Defines values for EntitlementBooleanV2Type. const ( EntitlementBooleanV2TypeBoolean EntitlementBooleanV2Type = "boolean" ) // Valid indicates whether the value is a known member of the EntitlementBooleanV2Type enum. func (e EntitlementBooleanV2Type) Valid() bool { switch e { case EntitlementBooleanV2TypeBoolean: return true default: return false } } // Defines values for EntitlementMeteredType. const ( EntitlementMeteredTypeMetered EntitlementMeteredType = "metered" ) // Valid indicates whether the value is a known member of the EntitlementMeteredType enum. func (e EntitlementMeteredType) Valid() bool { switch e { case EntitlementMeteredTypeMetered: return true default: return false } } // Defines values for EntitlementMeteredCreateInputsType. const ( EntitlementMeteredCreateInputsTypeMetered EntitlementMeteredCreateInputsType = "metered" ) // Valid indicates whether the value is a known member of the EntitlementMeteredCreateInputsType enum. func (e EntitlementMeteredCreateInputsType) Valid() bool { switch e { case EntitlementMeteredCreateInputsTypeMetered: return true default: return false } } // Defines values for EntitlementMeteredV2Type. const ( EntitlementMeteredV2TypeMetered EntitlementMeteredV2Type = "metered" ) // Valid indicates whether the value is a known member of the EntitlementMeteredV2Type enum. func (e EntitlementMeteredV2Type) Valid() bool { switch e { case EntitlementMeteredV2TypeMetered: return true default: return false } } // Defines values for EntitlementMeteredV2CreateInputsType. const ( EntitlementMeteredV2CreateInputsTypeMetered EntitlementMeteredV2CreateInputsType = "metered" ) // Valid indicates whether the value is a known member of the EntitlementMeteredV2CreateInputsType enum. func (e EntitlementMeteredV2CreateInputsType) Valid() bool { switch e { case EntitlementMeteredV2CreateInputsTypeMetered: return true default: return false } } // Defines values for EntitlementOrderBy. const ( EntitlementOrderByCreatedAt EntitlementOrderBy = "createdAt" EntitlementOrderByUpdatedAt EntitlementOrderBy = "updatedAt" ) // Valid indicates whether the value is a known member of the EntitlementOrderBy enum. func (e EntitlementOrderBy) Valid() bool { switch e { case EntitlementOrderByCreatedAt: return true case EntitlementOrderByUpdatedAt: return true default: return false } } // Defines values for EntitlementStaticType. const ( EntitlementStaticTypeStatic EntitlementStaticType = "static" ) // Valid indicates whether the value is a known member of the EntitlementStaticType enum. func (e EntitlementStaticType) Valid() bool { switch e { case EntitlementStaticTypeStatic: return true default: return false } } // Defines values for EntitlementStaticCreateInputsType. const ( EntitlementStaticCreateInputsTypeStatic EntitlementStaticCreateInputsType = "static" ) // Valid indicates whether the value is a known member of the EntitlementStaticCreateInputsType enum. func (e EntitlementStaticCreateInputsType) Valid() bool { switch e { case EntitlementStaticCreateInputsTypeStatic: return true default: return false } } // Defines values for EntitlementStaticV2Type. const ( EntitlementStaticV2TypeStatic EntitlementStaticV2Type = "static" ) // Valid indicates whether the value is a known member of the EntitlementStaticV2Type enum. func (e EntitlementStaticV2Type) Valid() bool { switch e { case EntitlementStaticV2TypeStatic: return true default: return false } } // Defines values for ExpirationDuration. const ( ExpirationDurationDAY ExpirationDuration = "DAY" ExpirationDurationHOUR ExpirationDuration = "HOUR" ExpirationDurationMONTH ExpirationDuration = "MONTH" ExpirationDurationWEEK ExpirationDuration = "WEEK" ExpirationDurationYEAR ExpirationDuration = "YEAR" ) // Valid indicates whether the value is a known member of the ExpirationDuration enum. func (e ExpirationDuration) Valid() bool { switch e { case ExpirationDurationDAY: return true case ExpirationDurationHOUR: return true case ExpirationDurationMONTH: return true case ExpirationDurationWEEK: return true case ExpirationDurationYEAR: return true default: return false } } // Defines values for FeatureLLMUnitCostType. const ( FeatureLLMUnitCostTypeLlm FeatureLLMUnitCostType = "llm" ) // Valid indicates whether the value is a known member of the FeatureLLMUnitCostType enum. func (e FeatureLLMUnitCostType) Valid() bool { switch e { case FeatureLLMUnitCostTypeLlm: return true default: return false } } // Defines values for FeatureManualUnitCostType. const ( FeatureManualUnitCostTypeManual FeatureManualUnitCostType = "manual" ) // Valid indicates whether the value is a known member of the FeatureManualUnitCostType enum. func (e FeatureManualUnitCostType) Valid() bool { switch e { case FeatureManualUnitCostTypeManual: return true default: return false } } // Defines values for FeatureOrderBy. const ( FeatureOrderByCreatedAt FeatureOrderBy = "createdAt" FeatureOrderById FeatureOrderBy = "id" FeatureOrderByKey FeatureOrderBy = "key" FeatureOrderByName FeatureOrderBy = "name" FeatureOrderByUpdatedAt FeatureOrderBy = "updatedAt" ) // Valid indicates whether the value is a known member of the FeatureOrderBy enum. func (e FeatureOrderBy) Valid() bool { switch e { case FeatureOrderByCreatedAt: return true case FeatureOrderById: return true case FeatureOrderByKey: return true case FeatureOrderByName: return true case FeatureOrderByUpdatedAt: return true default: return false } } // Defines values for FlatPriceType. const ( FlatPriceTypeFlat FlatPriceType = "flat" ) // Valid indicates whether the value is a known member of the FlatPriceType enum. func (e FlatPriceType) Valid() bool { switch e { case FlatPriceTypeFlat: return true default: return false } } // Defines values for FlatPriceWithPaymentTermType. const ( FlatPriceWithPaymentTermTypeFlat FlatPriceWithPaymentTermType = "flat" ) // Valid indicates whether the value is a known member of the FlatPriceWithPaymentTermType enum. func (e FlatPriceWithPaymentTermType) Valid() bool { switch e { case FlatPriceWithPaymentTermTypeFlat: return true default: return false } } // Defines values for GrantOrderBy. const ( GrantOrderByCreatedAt GrantOrderBy = "createdAt" GrantOrderById GrantOrderBy = "id" GrantOrderByUpdatedAt GrantOrderBy = "updatedAt" ) // Valid indicates whether the value is a known member of the GrantOrderBy enum. func (e GrantOrderBy) Valid() bool { switch e { case GrantOrderByCreatedAt: return true case GrantOrderById: return true case GrantOrderByUpdatedAt: return true default: return false } } // Defines values for InstallMethod. const ( InstallMethodNoCredentialsRequired InstallMethod = "no_credentials_required" InstallMethodWithApiKey InstallMethod = "with_api_key" InstallMethodWithOauth2 InstallMethod = "with_oauth2" ) // Valid indicates whether the value is a known member of the InstallMethod enum. func (e InstallMethod) Valid() bool { switch e { case InstallMethodNoCredentialsRequired: return true case InstallMethodWithApiKey: return true case InstallMethodWithOauth2: return true default: return false } } // Defines values for InvoiceDetailedLineType. const ( InvoiceDetailedLineTypeFlatFee InvoiceDetailedLineType = "flat_fee" ) // Valid indicates whether the value is a known member of the InvoiceDetailedLineType enum. func (e InvoiceDetailedLineType) Valid() bool { switch e { case InvoiceDetailedLineTypeFlatFee: return true default: return false } } // Defines values for InvoiceDetailedLineCostCategory. const ( InvoiceDetailedLineCostCategoryCommitment InvoiceDetailedLineCostCategory = "commitment" InvoiceDetailedLineCostCategoryRegular InvoiceDetailedLineCostCategory = "regular" ) // Valid indicates whether the value is a known member of the InvoiceDetailedLineCostCategory enum. func (e InvoiceDetailedLineCostCategory) Valid() bool { switch e { case InvoiceDetailedLineCostCategoryCommitment: return true case InvoiceDetailedLineCostCategoryRegular: return true default: return false } } // Defines values for InvoiceDocumentRefType. const ( InvoiceDocumentRefTypeCreditNoteOriginalInvoice InvoiceDocumentRefType = "credit_note_original_invoice" ) // Valid indicates whether the value is a known member of the InvoiceDocumentRefType enum. func (e InvoiceDocumentRefType) Valid() bool { switch e { case InvoiceDocumentRefTypeCreditNoteOriginalInvoice: return true default: return false } } // Defines values for InvoiceExpand. const ( InvoiceExpandLines InvoiceExpand = "lines" InvoiceExpandPreceding InvoiceExpand = "preceding" InvoiceExpandWorkflowApps InvoiceExpand = "workflow.apps" ) // Valid indicates whether the value is a known member of the InvoiceExpand enum. func (e InvoiceExpand) Valid() bool { switch e { case InvoiceExpandLines: return true case InvoiceExpandPreceding: return true case InvoiceExpandWorkflowApps: return true default: return false } } // Defines values for InvoiceLineType. const ( InvoiceLineTypeUsageBased InvoiceLineType = "usage_based" ) // Valid indicates whether the value is a known member of the InvoiceLineType enum. func (e InvoiceLineType) Valid() bool { switch e { case InvoiceLineTypeUsageBased: return true default: return false } } // Defines values for InvoiceLineManagedBy. const ( InvoiceLineManagedByManual InvoiceLineManagedBy = "manual" InvoiceLineManagedBySubscription InvoiceLineManagedBy = "subscription" InvoiceLineManagedBySystem InvoiceLineManagedBy = "system" ) // Valid indicates whether the value is a known member of the InvoiceLineManagedBy enum. func (e InvoiceLineManagedBy) Valid() bool { switch e { case InvoiceLineManagedByManual: return true case InvoiceLineManagedBySubscription: return true case InvoiceLineManagedBySystem: return true default: return false } } // Defines values for InvoiceLineStatus. const ( InvoiceLineStatusDetailed InvoiceLineStatus = "detailed" InvoiceLineStatusSplit InvoiceLineStatus = "split" InvoiceLineStatusValid InvoiceLineStatus = "valid" ) // Valid indicates whether the value is a known member of the InvoiceLineStatus enum. func (e InvoiceLineStatus) Valid() bool { switch e { case InvoiceLineStatusDetailed: return true case InvoiceLineStatusSplit: return true case InvoiceLineStatusValid: return true default: return false } } // Defines values for InvoiceLineTaxBehavior. const ( InvoiceLineTaxBehaviorExclusive InvoiceLineTaxBehavior = "exclusive" InvoiceLineTaxBehaviorInclusive InvoiceLineTaxBehavior = "inclusive" ) // Valid indicates whether the value is a known member of the InvoiceLineTaxBehavior enum. func (e InvoiceLineTaxBehavior) Valid() bool { switch e { case InvoiceLineTaxBehaviorExclusive: return true case InvoiceLineTaxBehaviorInclusive: return true default: return false } } // Defines values for InvoiceOrderBy. const ( InvoiceOrderByCreatedAt InvoiceOrderBy = "createdAt" InvoiceOrderByCustomerName InvoiceOrderBy = "customer.name" InvoiceOrderByIssuedAt InvoiceOrderBy = "issuedAt" InvoiceOrderByPeriodStart InvoiceOrderBy = "periodStart" InvoiceOrderByStatus InvoiceOrderBy = "status" InvoiceOrderByUpdatedAt InvoiceOrderBy = "updatedAt" ) // Valid indicates whether the value is a known member of the InvoiceOrderBy enum. func (e InvoiceOrderBy) Valid() bool { switch e { case InvoiceOrderByCreatedAt: return true case InvoiceOrderByCustomerName: return true case InvoiceOrderByIssuedAt: return true case InvoiceOrderByPeriodStart: return true case InvoiceOrderByStatus: return true case InvoiceOrderByUpdatedAt: return true default: return false } } // Defines values for InvoiceStatus. 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" ) // Valid indicates whether the value is a known member of the InvoiceStatus enum. func (e InvoiceStatus) Valid() bool { switch e { case InvoiceStatusDraft: return true case InvoiceStatusGathering: return true case InvoiceStatusIssued: return true case InvoiceStatusIssuing: return true case InvoiceStatusOverdue: return true case InvoiceStatusPaid: return true case InvoiceStatusPaymentProcessing: return true case InvoiceStatusUncollectible: return true case InvoiceStatusVoided: return true default: return false } } // Defines values for InvoiceType. const ( InvoiceTypeCreditNote InvoiceType = "credit_note" InvoiceTypeStandard InvoiceType = "standard" ) // Valid indicates whether the value is a known member of the InvoiceType enum. func (e InvoiceType) Valid() bool { switch e { case InvoiceTypeCreditNote: return true case InvoiceTypeStandard: return true default: return false } } // Defines values for MeasureUsageFromPreset. const ( MeasureUsageFromPresetCurrentPeriodStart MeasureUsageFromPreset = "CURRENT_PERIOD_START" MeasureUsageFromPresetNow MeasureUsageFromPreset = "NOW" ) // Valid indicates whether the value is a known member of the MeasureUsageFromPreset enum. func (e MeasureUsageFromPreset) Valid() bool { switch e { case MeasureUsageFromPresetCurrentPeriodStart: return true case MeasureUsageFromPresetNow: return true default: return false } } // Defines values for MeterAggregation. const ( MeterAggregationAvg MeterAggregation = "AVG" MeterAggregationCount MeterAggregation = "COUNT" MeterAggregationLatest MeterAggregation = "LATEST" MeterAggregationMax MeterAggregation = "MAX" MeterAggregationMin MeterAggregation = "MIN" MeterAggregationSum MeterAggregation = "SUM" MeterAggregationUniqueCount MeterAggregation = "UNIQUE_COUNT" ) // Valid indicates whether the value is a known member of the MeterAggregation enum. func (e MeterAggregation) Valid() bool { switch e { case MeterAggregationAvg: return true case MeterAggregationCount: return true case MeterAggregationLatest: return true case MeterAggregationMax: return true case MeterAggregationMin: return true case MeterAggregationSum: return true case MeterAggregationUniqueCount: return true default: return false } } // Defines values for MeterOrderBy. const ( MeterOrderByAggregation MeterOrderBy = "aggregation" MeterOrderByCreatedAt MeterOrderBy = "createdAt" MeterOrderByKey MeterOrderBy = "key" MeterOrderByName MeterOrderBy = "name" MeterOrderByUpdatedAt MeterOrderBy = "updatedAt" ) // Valid indicates whether the value is a known member of the MeterOrderBy enum. func (e MeterOrderBy) Valid() bool { switch e { case MeterOrderByAggregation: return true case MeterOrderByCreatedAt: return true case MeterOrderByKey: return true case MeterOrderByName: return true case MeterOrderByUpdatedAt: return true default: return false } } // Defines values for NotificationChannelOrderBy. const ( NotificationChannelOrderByCreatedAt NotificationChannelOrderBy = "createdAt" NotificationChannelOrderById NotificationChannelOrderBy = "id" NotificationChannelOrderByType NotificationChannelOrderBy = "type" NotificationChannelOrderByUpdatedAt NotificationChannelOrderBy = "updatedAt" ) // Valid indicates whether the value is a known member of the NotificationChannelOrderBy enum. func (e NotificationChannelOrderBy) Valid() bool { switch e { case NotificationChannelOrderByCreatedAt: return true case NotificationChannelOrderById: return true case NotificationChannelOrderByType: return true case NotificationChannelOrderByUpdatedAt: return true default: return false } } // Defines values for NotificationChannelType. const ( NotificationChannelTypeWebhook NotificationChannelType = "WEBHOOK" ) // Valid indicates whether the value is a known member of the NotificationChannelType enum. func (e NotificationChannelType) Valid() bool { switch e { case NotificationChannelTypeWebhook: return true default: return false } } // Defines values for NotificationChannelWebhookType. const ( NotificationChannelWebhookTypeWEBHOOK NotificationChannelWebhookType = "WEBHOOK" ) // Valid indicates whether the value is a known member of the NotificationChannelWebhookType enum. func (e NotificationChannelWebhookType) Valid() bool { switch e { case NotificationChannelWebhookTypeWEBHOOK: return true default: return false } } // Defines values for NotificationChannelWebhookCreateRequestType. const ( NotificationChannelWebhookCreateRequestTypeWEBHOOK NotificationChannelWebhookCreateRequestType = "WEBHOOK" ) // Valid indicates whether the value is a known member of the NotificationChannelWebhookCreateRequestType enum. func (e NotificationChannelWebhookCreateRequestType) Valid() bool { switch e { case NotificationChannelWebhookCreateRequestTypeWEBHOOK: return true default: return false } } // Defines values for NotificationEventBalanceThresholdPayloadType. const ( NotificationEventBalanceThresholdPayloadTypeEntitlementsBalanceThreshold NotificationEventBalanceThresholdPayloadType = "entitlements.balance.threshold" ) // Valid indicates whether the value is a known member of the NotificationEventBalanceThresholdPayloadType enum. func (e NotificationEventBalanceThresholdPayloadType) Valid() bool { switch e { case NotificationEventBalanceThresholdPayloadTypeEntitlementsBalanceThreshold: return true default: return false } } // Defines values for NotificationEventDeliveryStatusState. const ( NotificationEventDeliveryStatusStateFailed NotificationEventDeliveryStatusState = "FAILED" NotificationEventDeliveryStatusStatePending NotificationEventDeliveryStatusState = "PENDING" NotificationEventDeliveryStatusStateResending NotificationEventDeliveryStatusState = "RESENDING" NotificationEventDeliveryStatusStateSending NotificationEventDeliveryStatusState = "SENDING" NotificationEventDeliveryStatusStateSuccess NotificationEventDeliveryStatusState = "SUCCESS" ) // Valid indicates whether the value is a known member of the NotificationEventDeliveryStatusState enum. func (e NotificationEventDeliveryStatusState) Valid() bool { switch e { case NotificationEventDeliveryStatusStateFailed: return true case NotificationEventDeliveryStatusStatePending: return true case NotificationEventDeliveryStatusStateResending: return true case NotificationEventDeliveryStatusStateSending: return true case NotificationEventDeliveryStatusStateSuccess: return true default: return false } } // Defines values for NotificationEventInvoiceCreatedPayloadType. const ( NotificationEventInvoiceCreatedPayloadTypeInvoiceCreated NotificationEventInvoiceCreatedPayloadType = "invoice.created" ) // Valid indicates whether the value is a known member of the NotificationEventInvoiceCreatedPayloadType enum. func (e NotificationEventInvoiceCreatedPayloadType) Valid() bool { switch e { case NotificationEventInvoiceCreatedPayloadTypeInvoiceCreated: return true default: return false } } // Defines values for NotificationEventInvoiceUpdatedPayloadType. const ( NotificationEventInvoiceUpdatedPayloadTypeInvoiceUpdated NotificationEventInvoiceUpdatedPayloadType = "invoice.updated" ) // Valid indicates whether the value is a known member of the NotificationEventInvoiceUpdatedPayloadType enum. func (e NotificationEventInvoiceUpdatedPayloadType) Valid() bool { switch e { case NotificationEventInvoiceUpdatedPayloadTypeInvoiceUpdated: return true default: return false } } // Defines values for NotificationEventOrderBy. const ( NotificationEventOrderByCreatedAt NotificationEventOrderBy = "createdAt" NotificationEventOrderById NotificationEventOrderBy = "id" ) // Valid indicates whether the value is a known member of the NotificationEventOrderBy enum. func (e NotificationEventOrderBy) Valid() bool { switch e { case NotificationEventOrderByCreatedAt: return true case NotificationEventOrderById: return true default: return false } } // Defines values for NotificationEventResetPayloadType. const ( NotificationEventResetPayloadTypeEntitlementsReset NotificationEventResetPayloadType = "entitlements.reset" ) // Valid indicates whether the value is a known member of the NotificationEventResetPayloadType enum. func (e NotificationEventResetPayloadType) Valid() bool { switch e { case NotificationEventResetPayloadTypeEntitlementsReset: return true default: return false } } // Defines values for NotificationEventType. const ( NotificationEventTypeEntitlementsBalanceThreshold NotificationEventType = "entitlements.balance.threshold" NotificationEventTypeEntitlementsReset NotificationEventType = "entitlements.reset" NotificationEventTypeInvoiceCreated NotificationEventType = "invoice.created" NotificationEventTypeInvoiceUpdated NotificationEventType = "invoice.updated" ) // Valid indicates whether the value is a known member of the NotificationEventType enum. func (e NotificationEventType) Valid() bool { switch e { case NotificationEventTypeEntitlementsBalanceThreshold: return true case NotificationEventTypeEntitlementsReset: return true case NotificationEventTypeInvoiceCreated: return true case NotificationEventTypeInvoiceUpdated: return true default: return false } } // Defines values for NotificationRuleBalanceThresholdType. const ( NotificationRuleBalanceThresholdTypeEntitlementsBalanceThreshold NotificationRuleBalanceThresholdType = "entitlements.balance.threshold" ) // Valid indicates whether the value is a known member of the NotificationRuleBalanceThresholdType enum. func (e NotificationRuleBalanceThresholdType) Valid() bool { switch e { case NotificationRuleBalanceThresholdTypeEntitlementsBalanceThreshold: return true default: return false } } // Defines values for NotificationRuleBalanceThresholdCreateRequestType. const ( NotificationRuleBalanceThresholdCreateRequestTypeEntitlementsBalanceThreshold NotificationRuleBalanceThresholdCreateRequestType = "entitlements.balance.threshold" ) // Valid indicates whether the value is a known member of the NotificationRuleBalanceThresholdCreateRequestType enum. func (e NotificationRuleBalanceThresholdCreateRequestType) Valid() bool { switch e { case NotificationRuleBalanceThresholdCreateRequestTypeEntitlementsBalanceThreshold: return true default: return false } } // Defines values for NotificationRuleBalanceThresholdValueType. const ( NotificationRuleBalanceThresholdValueTypeBalanceValue NotificationRuleBalanceThresholdValueType = "balance_value" NotificationRuleBalanceThresholdValueTypeNumber NotificationRuleBalanceThresholdValueType = "NUMBER" NotificationRuleBalanceThresholdValueTypePercent NotificationRuleBalanceThresholdValueType = "PERCENT" NotificationRuleBalanceThresholdValueTypeUsagePercentage NotificationRuleBalanceThresholdValueType = "usage_percentage" NotificationRuleBalanceThresholdValueTypeUsageValue NotificationRuleBalanceThresholdValueType = "usage_value" ) // Valid indicates whether the value is a known member of the NotificationRuleBalanceThresholdValueType enum. func (e NotificationRuleBalanceThresholdValueType) Valid() bool { switch e { case NotificationRuleBalanceThresholdValueTypeBalanceValue: return true case NotificationRuleBalanceThresholdValueTypeNumber: return true case NotificationRuleBalanceThresholdValueTypePercent: return true case NotificationRuleBalanceThresholdValueTypeUsagePercentage: return true case NotificationRuleBalanceThresholdValueTypeUsageValue: return true default: return false } } // Defines values for NotificationRuleEntitlementResetType. const ( NotificationRuleEntitlementResetTypeEntitlementsReset NotificationRuleEntitlementResetType = "entitlements.reset" ) // Valid indicates whether the value is a known member of the NotificationRuleEntitlementResetType enum. func (e NotificationRuleEntitlementResetType) Valid() bool { switch e { case NotificationRuleEntitlementResetTypeEntitlementsReset: return true default: return false } } // Defines values for NotificationRuleEntitlementResetCreateRequestType. const ( NotificationRuleEntitlementResetCreateRequestTypeEntitlementsReset NotificationRuleEntitlementResetCreateRequestType = "entitlements.reset" ) // Valid indicates whether the value is a known member of the NotificationRuleEntitlementResetCreateRequestType enum. func (e NotificationRuleEntitlementResetCreateRequestType) Valid() bool { switch e { case NotificationRuleEntitlementResetCreateRequestTypeEntitlementsReset: return true default: return false } } // Defines values for NotificationRuleInvoiceCreatedType. const ( NotificationRuleInvoiceCreatedTypeInvoiceCreated NotificationRuleInvoiceCreatedType = "invoice.created" ) // Valid indicates whether the value is a known member of the NotificationRuleInvoiceCreatedType enum. func (e NotificationRuleInvoiceCreatedType) Valid() bool { switch e { case NotificationRuleInvoiceCreatedTypeInvoiceCreated: return true default: return false } } // Defines values for NotificationRuleInvoiceCreatedCreateRequestType. const ( NotificationRuleInvoiceCreatedCreateRequestTypeInvoiceCreated NotificationRuleInvoiceCreatedCreateRequestType = "invoice.created" ) // Valid indicates whether the value is a known member of the NotificationRuleInvoiceCreatedCreateRequestType enum. func (e NotificationRuleInvoiceCreatedCreateRequestType) Valid() bool { switch e { case NotificationRuleInvoiceCreatedCreateRequestTypeInvoiceCreated: return true default: return false } } // Defines values for NotificationRuleInvoiceUpdatedType. const ( NotificationRuleInvoiceUpdatedTypeInvoiceUpdated NotificationRuleInvoiceUpdatedType = "invoice.updated" ) // Valid indicates whether the value is a known member of the NotificationRuleInvoiceUpdatedType enum. func (e NotificationRuleInvoiceUpdatedType) Valid() bool { switch e { case NotificationRuleInvoiceUpdatedTypeInvoiceUpdated: return true default: return false } } // Defines values for NotificationRuleInvoiceUpdatedCreateRequestType. const ( NotificationRuleInvoiceUpdatedCreateRequestTypeInvoiceUpdated NotificationRuleInvoiceUpdatedCreateRequestType = "invoice.updated" ) // Valid indicates whether the value is a known member of the NotificationRuleInvoiceUpdatedCreateRequestType enum. func (e NotificationRuleInvoiceUpdatedCreateRequestType) Valid() bool { switch e { case NotificationRuleInvoiceUpdatedCreateRequestTypeInvoiceUpdated: return true default: return false } } // Defines values for NotificationRuleOrderBy. const ( NotificationRuleOrderByCreatedAt NotificationRuleOrderBy = "createdAt" NotificationRuleOrderById NotificationRuleOrderBy = "id" NotificationRuleOrderByType NotificationRuleOrderBy = "type" NotificationRuleOrderByUpdatedAt NotificationRuleOrderBy = "updatedAt" ) // Valid indicates whether the value is a known member of the NotificationRuleOrderBy enum. func (e NotificationRuleOrderBy) Valid() bool { switch e { case NotificationRuleOrderByCreatedAt: return true case NotificationRuleOrderById: return true case NotificationRuleOrderByType: return true case NotificationRuleOrderByUpdatedAt: return true default: return false } } // Defines values for OAuth2AuthorizationCodeGrantErrorType. 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" ) // Valid indicates whether the value is a known member of the OAuth2AuthorizationCodeGrantErrorType enum. func (e OAuth2AuthorizationCodeGrantErrorType) Valid() bool { switch e { case OAuth2AuthorizationCodeGrantErrorTypeAccessDenied: return true case OAuth2AuthorizationCodeGrantErrorTypeInvalidRequest: return true case OAuth2AuthorizationCodeGrantErrorTypeInvalidScope: return true case OAuth2AuthorizationCodeGrantErrorTypeServerError: return true case OAuth2AuthorizationCodeGrantErrorTypeTemporarilyUnavailable: return true case OAuth2AuthorizationCodeGrantErrorTypeUnauthorizedClient: return true case OAuth2AuthorizationCodeGrantErrorTypeUnsupportedResponseType: return true default: return false } } // Defines values for PackagePriceWithCommitmentsType. const ( PackagePriceWithCommitmentsTypePackage PackagePriceWithCommitmentsType = "package" ) // Valid indicates whether the value is a known member of the PackagePriceWithCommitmentsType enum. func (e PackagePriceWithCommitmentsType) Valid() bool { switch e { case PackagePriceWithCommitmentsTypePackage: return true default: return false } } // Defines values for PaymentTermDueDateType. const ( PaymentTermDueDateTypeDueDate PaymentTermDueDateType = "due_date" ) // Valid indicates whether the value is a known member of the PaymentTermDueDateType enum. func (e PaymentTermDueDateType) Valid() bool { switch e { case PaymentTermDueDateTypeDueDate: return true default: return false } } // Defines values for PaymentTermInstantType. const ( PaymentTermInstantTypeInstant PaymentTermInstantType = "instant" ) // Valid indicates whether the value is a known member of the PaymentTermInstantType enum. func (e PaymentTermInstantType) Valid() bool { switch e { case PaymentTermInstantTypeInstant: return true default: return false } } // Defines values for PlanAddonOrderBy. const ( PlanAddonOrderByCreatedAt PlanAddonOrderBy = "created_at" PlanAddonOrderById PlanAddonOrderBy = "id" PlanAddonOrderByKey PlanAddonOrderBy = "key" PlanAddonOrderByUpdatedAt PlanAddonOrderBy = "updated_at" PlanAddonOrderByVersion PlanAddonOrderBy = "version" ) // Valid indicates whether the value is a known member of the PlanAddonOrderBy enum. func (e PlanAddonOrderBy) Valid() bool { switch e { case PlanAddonOrderByCreatedAt: return true case PlanAddonOrderById: return true case PlanAddonOrderByKey: return true case PlanAddonOrderByUpdatedAt: return true case PlanAddonOrderByVersion: return true default: return false } } // Defines values for PlanOrderBy. const ( PlanOrderByCreatedAt PlanOrderBy = "created_at" PlanOrderById PlanOrderBy = "id" PlanOrderByKey PlanOrderBy = "key" PlanOrderByUpdatedAt PlanOrderBy = "updated_at" PlanOrderByVersion PlanOrderBy = "version" ) // Valid indicates whether the value is a known member of the PlanOrderBy enum. func (e PlanOrderBy) Valid() bool { switch e { case PlanOrderByCreatedAt: return true case PlanOrderById: return true case PlanOrderByKey: return true case PlanOrderByUpdatedAt: return true case PlanOrderByVersion: return true default: return false } } // Defines values for PlanStatus. const ( PlanStatusActive PlanStatus = "active" PlanStatusArchived PlanStatus = "archived" PlanStatusDraft PlanStatus = "draft" PlanStatusScheduled PlanStatus = "scheduled" ) // Valid indicates whether the value is a known member of the PlanStatus enum. func (e PlanStatus) Valid() bool { switch e { case PlanStatusActive: return true case PlanStatusArchived: return true case PlanStatusDraft: return true case PlanStatusScheduled: return true default: return false } } // Defines values for PricePaymentTerm. const ( PricePaymentTermInAdvance PricePaymentTerm = "in_advance" PricePaymentTermInArrears PricePaymentTerm = "in_arrears" ) // Valid indicates whether the value is a known member of the PricePaymentTerm enum. func (e PricePaymentTerm) Valid() bool { switch e { case PricePaymentTermInAdvance: return true case PricePaymentTermInArrears: return true default: return false } } // Defines values for ProRatingMode. const ( ProRatingModeProratePrices ProRatingMode = "prorate_prices" ) // Valid indicates whether the value is a known member of the ProRatingMode enum. func (e ProRatingMode) Valid() bool { switch e { case ProRatingModeProratePrices: return true default: return false } } // Defines values for RateCardBooleanEntitlementType. const ( RateCardBooleanEntitlementTypeBoolean RateCardBooleanEntitlementType = "boolean" ) // Valid indicates whether the value is a known member of the RateCardBooleanEntitlementType enum. func (e RateCardBooleanEntitlementType) Valid() bool { switch e { case RateCardBooleanEntitlementTypeBoolean: return true default: return false } } // Defines values for RateCardFlatFeeType. const ( RateCardFlatFeeTypeFlatFee RateCardFlatFeeType = "flat_fee" ) // Valid indicates whether the value is a known member of the RateCardFlatFeeType enum. func (e RateCardFlatFeeType) Valid() bool { switch e { case RateCardFlatFeeTypeFlatFee: return true default: return false } } // Defines values for RateCardMeteredEntitlementType. const ( RateCardMeteredEntitlementTypeMetered RateCardMeteredEntitlementType = "metered" ) // Valid indicates whether the value is a known member of the RateCardMeteredEntitlementType enum. func (e RateCardMeteredEntitlementType) Valid() bool { switch e { case RateCardMeteredEntitlementTypeMetered: return true default: return false } } // Defines values for RateCardStaticEntitlementType. const ( RateCardStaticEntitlementTypeStatic RateCardStaticEntitlementType = "static" ) // Valid indicates whether the value is a known member of the RateCardStaticEntitlementType enum. func (e RateCardStaticEntitlementType) Valid() bool { switch e { case RateCardStaticEntitlementTypeStatic: return true default: return false } } // Defines values for RateCardUsageBasedType. const ( RateCardUsageBasedTypeUsageBased RateCardUsageBasedType = "usage_based" ) // Valid indicates whether the value is a known member of the RateCardUsageBasedType enum. func (e RateCardUsageBasedType) Valid() bool { switch e { case RateCardUsageBasedTypeUsageBased: return true default: return false } } // Defines values for RecurringPeriodIntervalEnum. const ( RecurringPeriodIntervalEnumDAY RecurringPeriodIntervalEnum = "DAY" RecurringPeriodIntervalEnumMONTH RecurringPeriodIntervalEnum = "MONTH" RecurringPeriodIntervalEnumWEEK RecurringPeriodIntervalEnum = "WEEK" RecurringPeriodIntervalEnumYEAR RecurringPeriodIntervalEnum = "YEAR" ) // Valid indicates whether the value is a known member of the RecurringPeriodIntervalEnum enum. func (e RecurringPeriodIntervalEnum) Valid() bool { switch e { case RecurringPeriodIntervalEnumDAY: return true case RecurringPeriodIntervalEnumMONTH: return true case RecurringPeriodIntervalEnumWEEK: return true case RecurringPeriodIntervalEnumYEAR: return true default: return false } } // Defines values for RemovePhaseShifting. const ( RemovePhaseShiftingNext RemovePhaseShifting = "next" RemovePhaseShiftingPrev RemovePhaseShifting = "prev" ) // Valid indicates whether the value is a known member of the RemovePhaseShifting enum. func (e RemovePhaseShifting) Valid() bool { switch e { case RemovePhaseShiftingNext: return true case RemovePhaseShiftingPrev: return true default: return false } } // Defines values for SandboxAppType. const ( SandboxAppTypeSandbox SandboxAppType = "sandbox" ) // Valid indicates whether the value is a known member of the SandboxAppType enum. func (e SandboxAppType) Valid() bool { switch e { case SandboxAppTypeSandbox: return true default: return false } } // Defines values for SandboxAppReplaceUpdateType. const ( SandboxAppReplaceUpdateTypeSandbox SandboxAppReplaceUpdateType = "sandbox" ) // Valid indicates whether the value is a known member of the SandboxAppReplaceUpdateType enum. func (e SandboxAppReplaceUpdateType) Valid() bool { switch e { case SandboxAppReplaceUpdateTypeSandbox: return true default: return false } } // Defines values for SandboxCustomerAppDataType. const ( SandboxCustomerAppDataTypeSandbox SandboxCustomerAppDataType = "sandbox" ) // Valid indicates whether the value is a known member of the SandboxCustomerAppDataType enum. func (e SandboxCustomerAppDataType) Valid() bool { switch e { case SandboxCustomerAppDataTypeSandbox: return true default: return false } } // Defines values for SortOrder. const ( SortOrderASC SortOrder = "ASC" SortOrderDESC SortOrder = "DESC" ) // Valid indicates whether the value is a known member of the SortOrder enum. func (e SortOrder) Valid() bool { switch e { case SortOrderASC: return true case SortOrderDESC: return true default: return false } } // Defines values for StripeAppType. const ( StripeAppTypeStripe StripeAppType = "stripe" ) // Valid indicates whether the value is a known member of the StripeAppType enum. func (e StripeAppType) Valid() bool { switch e { case StripeAppTypeStripe: return true default: return false } } // Defines values for StripeAppReplaceUpdateType. const ( StripeAppReplaceUpdateTypeStripe StripeAppReplaceUpdateType = "stripe" ) // Valid indicates whether the value is a known member of the StripeAppReplaceUpdateType enum. func (e StripeAppReplaceUpdateType) Valid() bool { switch e { case StripeAppReplaceUpdateTypeStripe: return true default: return false } } // Defines values for StripeCheckoutSessionMode. const ( StripeCheckoutSessionModeSetup StripeCheckoutSessionMode = "setup" ) // Valid indicates whether the value is a known member of the StripeCheckoutSessionMode enum. func (e StripeCheckoutSessionMode) Valid() bool { switch e { case StripeCheckoutSessionModeSetup: return true default: return false } } // Defines values for StripeCustomerAppDataType. const ( StripeCustomerAppDataTypeStripe StripeCustomerAppDataType = "stripe" ) // Valid indicates whether the value is a known member of the StripeCustomerAppDataType enum. func (e StripeCustomerAppDataType) Valid() bool { switch e { case StripeCustomerAppDataTypeStripe: return true default: return false } } // Defines values for StripeCustomerAppDataCreateOrUpdateItemType. const ( StripeCustomerAppDataCreateOrUpdateItemTypeStripe StripeCustomerAppDataCreateOrUpdateItemType = "stripe" ) // Valid indicates whether the value is a known member of the StripeCustomerAppDataCreateOrUpdateItemType enum. func (e StripeCustomerAppDataCreateOrUpdateItemType) Valid() bool { switch e { case StripeCustomerAppDataCreateOrUpdateItemTypeStripe: return true default: return false } } // Defines values for SubscriptionStatus. const ( SubscriptionStatusActive SubscriptionStatus = "active" SubscriptionStatusCanceled SubscriptionStatus = "canceled" SubscriptionStatusInactive SubscriptionStatus = "inactive" SubscriptionStatusScheduled SubscriptionStatus = "scheduled" ) // Valid indicates whether the value is a known member of the SubscriptionStatus enum. func (e SubscriptionStatus) Valid() bool { switch e { case SubscriptionStatusActive: return true case SubscriptionStatusCanceled: return true case SubscriptionStatusInactive: return true case SubscriptionStatusScheduled: return true default: return false } } // Defines values for SubscriptionTimingEnum. const ( SubscriptionTimingEnumImmediate SubscriptionTimingEnum = "immediate" SubscriptionTimingEnumNextBillingCycle SubscriptionTimingEnum = "next_billing_cycle" ) // Valid indicates whether the value is a known member of the SubscriptionTimingEnum enum. func (e SubscriptionTimingEnum) Valid() bool { switch e { case SubscriptionTimingEnumImmediate: return true case SubscriptionTimingEnumNextBillingCycle: return true default: return false } } // Defines values for TaxBehavior. const ( TaxBehaviorExclusive TaxBehavior = "exclusive" TaxBehaviorInclusive TaxBehavior = "inclusive" ) // Valid indicates whether the value is a known member of the TaxBehavior enum. func (e TaxBehavior) Valid() bool { switch e { case TaxBehaviorExclusive: return true case TaxBehaviorInclusive: return true default: return false } } // Defines values for TieredPriceMode. const ( TieredPriceModeGraduated TieredPriceMode = "graduated" TieredPriceModeVolume TieredPriceMode = "volume" ) // Valid indicates whether the value is a known member of the TieredPriceMode enum. func (e TieredPriceMode) Valid() bool { switch e { case TieredPriceModeGraduated: return true case TieredPriceModeVolume: return true default: return false } } // Defines values for TieredPriceWithCommitmentsType. const ( TieredPriceWithCommitmentsTypeTiered TieredPriceWithCommitmentsType = "tiered" ) // Valid indicates whether the value is a known member of the TieredPriceWithCommitmentsType enum. func (e TieredPriceWithCommitmentsType) Valid() bool { switch e { case TieredPriceWithCommitmentsTypeTiered: return true default: return false } } // Defines values for UnitPriceType. const ( UnitPriceTypeUnit UnitPriceType = "unit" ) // Valid indicates whether the value is a known member of the UnitPriceType enum. func (e UnitPriceType) Valid() bool { switch e { case UnitPriceTypeUnit: return true default: return false } } // Defines values for UnitPriceWithCommitmentsType. const ( UnitPriceWithCommitmentsTypeUnit UnitPriceWithCommitmentsType = "unit" ) // Valid indicates whether the value is a known member of the UnitPriceWithCommitmentsType enum. func (e UnitPriceWithCommitmentsType) Valid() bool { switch e { case UnitPriceWithCommitmentsTypeUnit: return true default: return false } } // Defines values for ValidationIssueSeverity. const ( ValidationIssueSeverityCritical ValidationIssueSeverity = "critical" ValidationIssueSeverityWarning ValidationIssueSeverity = "warning" ) // Valid indicates whether the value is a known member of the ValidationIssueSeverity enum. func (e ValidationIssueSeverity) Valid() bool { switch e { case ValidationIssueSeverityCritical: return true case ValidationIssueSeverityWarning: return true default: return false } } // Defines values for VoidInvoiceLineDiscardActionType. const ( VoidInvoiceLineDiscardActionTypeDiscard VoidInvoiceLineDiscardActionType = "discard" ) // Valid indicates whether the value is a known member of the VoidInvoiceLineDiscardActionType enum. func (e VoidInvoiceLineDiscardActionType) Valid() bool { switch e { case VoidInvoiceLineDiscardActionTypeDiscard: return true default: return false } } // Defines values for VoidInvoiceLinePendingActionCreateType. const ( VoidInvoiceLinePendingActionCreateTypePending VoidInvoiceLinePendingActionCreateType = "pending" ) // Valid indicates whether the value is a known member of the VoidInvoiceLinePendingActionCreateType enum. func (e VoidInvoiceLinePendingActionCreateType) Valid() bool { switch e { case VoidInvoiceLinePendingActionCreateTypePending: return true default: return false } } // Defines values for VoidInvoiceLinePendingActionCreateItemType. const ( VoidInvoiceLinePendingActionCreateItemTypePending VoidInvoiceLinePendingActionCreateItemType = "pending" ) // Valid indicates whether the value is a known member of the VoidInvoiceLinePendingActionCreateItemType enum. func (e VoidInvoiceLinePendingActionCreateItemType) Valid() bool { switch e { case VoidInvoiceLinePendingActionCreateItemTypePending: return true default: return false } } // Defines values for WindowSize. const ( WindowSizeDay WindowSize = "DAY" WindowSizeHour WindowSize = "HOUR" WindowSizeMinute WindowSize = "MINUTE" WindowSizeMonth WindowSize = "MONTH" ) // Valid indicates whether the value is a known member of the WindowSize enum. func (e WindowSize) Valid() bool { switch e { case WindowSizeDay: return true case WindowSizeHour: return true case WindowSizeMinute: return true case WindowSizeMonth: return true default: return false } } // Addon Add-on allows extending subscriptions with compatible plans with additional ratecards. 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,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // RateCards The rate cards of the add-on. RateCards []RateCard `json:"rateCards"` // Status The status of the add-on. // Computed based on the effective start and end dates: // - draft = no effectiveFrom // - active = effectiveFrom <= now < effectiveTo // - archived = effectiveTo <= now Status AddonStatus `json:"status"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // ValidationErrors List of validation errors. ValidationErrors *[]ValidationError `json:"validationErrors"` // Version Version of the add-on. Incremented when the add-on is updated. Version int `json:"version"` } // AddonCreate Resource create operation model. 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,omitempty"` // 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"` } // 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. type AddonInstanceType string // AddonOrderBy Order by options for add-ons. type AddonOrderBy string // AddonPaginatedResponse Paginated response 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"` } // AddonReplaceUpdate Resource update operation model. 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,omitempty"` // 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"` } // AddonStatus The status of the add-on defined by the effectiveFrom and effectiveTo properties. type AddonStatus string // Address 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"` } // Alignment Alignment configuration for a plan or subscription. type Alignment struct { // BillablesMustAlign Whether all Billable items and RateCards must align. // Alignment means the Price's BillingCadence must align for both duration and anchor time. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set BillablesMustAlign *bool `json:"billablesMustAlign,omitempty"` } // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. type Annotations map[string]interface{} // App App. // One of: stripe type App struct { union json.RawMessage } // AppCapability App capability. // // Capabilities only exist in config so they don't extend the Resource model. 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"` } // AppCapabilityType App capability type. type AppCapabilityType string // AppPaginatedResponse Paginated response 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"` } // AppReference App reference // // Can be used as a short reference to an app if the full app object is not needed. type AppReference struct { // Id The ID of the app. Id string `json:"id"` } // AppReplaceUpdate App ReplaceUpdate Model type AppReplaceUpdate struct { union json.RawMessage } // AppStatus App installed status. type AppStatus string // AppType Type of the app. type AppType string // BadRequestProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type BadRequestProblemResponse = UnexpectedProblemResponse // BalanceHistoryWindow The balance history window. 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"` } // 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 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"` } // BillingDiscountPercentage A percentage discount. type BillingDiscountPercentage struct { // CorrelationId Correlation ID for the discount. // // This is used to link discounts across different invoices (progressive billing use case). // // If not provided, the invoicing engine will auto-generate one. When editing an invoice line, // please make sure to keep the same correlation ID of the discount or in progressive billing // setups the discount amounts might be incorrect. CorrelationId *string `json:"correlationId,omitempty"` // Percentage The percentage of the discount. Percentage Percentage `json:"percentage"` } // BillingDiscountReason The reason for the discount. type BillingDiscountReason struct { union json.RawMessage } // BillingDiscountUsage A usage discount. type BillingDiscountUsage struct { // CorrelationId Correlation ID for the discount. // // This is used to link discounts across different invoices (progressive billing use case). // // If not provided, the invoicing engine will auto-generate one. When editing an invoice line, // please make sure to keep the same correlation ID of the discount or in progressive billing // setups the discount amounts might be incorrect. CorrelationId *string `json:"correlationId,omitempty"` // Quantity The quantity of the usage discount. // // Must be positive. Quantity Numeric `json:"quantity"` } // BillingDiscounts A discount by type. type BillingDiscounts struct { // Percentage The percentage discount. Percentage *BillingDiscountPercentage `json:"percentage,omitempty"` // Usage The usage discount. Usage *BillingDiscountUsage `json:"usage,omitempty"` } // BillingInvoiceCustomerExtendedDetails BillingInvoiceCustomerExtendedDetails is a collection of fields that are used to extend the billing party details for invoices. // // These fields contain the OpenMeter specific details for the customer, that are not strictly required for the invoice itself. type BillingInvoiceCustomerExtendedDetails struct { // Addresses Regular post addresses for where information should be sent if needed. Addresses *[]Address `json:"addresses,omitempty"` // Id Unique identifier for the party (if available) Id *string `json:"id,omitempty"` // Key An optional unique key of the party (if available) Key *string `json:"key,omitempty"` // Name Legal name or representation of the organization. Name *string `json:"name,omitempty"` // TaxId The entity's legal ID code used for tax purposes. They may have // other numbers, but we're only interested in those valid for tax purposes. TaxId *BillingPartyTaxIdentity `json:"taxId,omitempty"` // UsageAttribution Mapping to attribute metered usage to the customer UsageAttribution CustomerUsageAttribution `json:"usageAttribution"` } // BillingParty Party represents a person or business entity. type BillingParty struct { // Addresses Regular post addresses for where information should be sent if needed. Addresses *[]Address `json:"addresses,omitempty"` // Id Unique identifier for the party (if available) Id *string `json:"id,omitempty"` // Key An optional unique key of the party (if available) Key *string `json:"key,omitempty"` // Name Legal name or representation of the organization. Name *string `json:"name,omitempty"` // TaxId The entity's legal ID code used for tax purposes. They may have // other numbers, but we're only interested in those valid for tax purposes. TaxId *BillingPartyTaxIdentity `json:"taxId,omitempty"` } // BillingPartyReplaceUpdate Resource update operation model. type BillingPartyReplaceUpdate struct { // Addresses Regular post addresses for where information should be sent if needed. Addresses *[]Address `json:"addresses,omitempty"` // Key An optional unique key of the party (if available) Key *string `json:"key,omitempty"` // Name Legal name or representation of the organization. Name *string `json:"name,omitempty"` // TaxId The entity's legal ID code used for tax purposes. They may have // other numbers, but we're only interested in those valid for tax purposes. TaxId *BillingPartyTaxIdentity `json:"taxId,omitempty"` } // BillingPartyTaxIdentity Identity stores the details required to identify an entity for tax purposes in a specific country. type BillingPartyTaxIdentity struct { // Code Normalized tax code shown on the original identity document. Code *BillingTaxIdentificationCode `json:"code,omitempty"` } // BillingProfile BillingProfile represents a billing profile 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,omitempty"` // 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"` } // BillingProfileAppReferences BillingProfileAppReferences represents the references (id, type) to the apps used by a billing profile 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"` } // BillingProfileApps BillingProfileApps represents the applications used by a billing profile 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"` } // BillingProfileAppsCreate BillingProfileAppsCreate represents the input for creating a billing profile's apps 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"` } // BillingProfileAppsOrReference ProfileAppsOrReference represents the union of ProfileApps and ProfileAppReferences // for a billing profile. type BillingProfileAppsOrReference struct { union json.RawMessage } // BillingProfileCreate BillingProfileCreate represents the input for creating a billing profile 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,omitempty"` // 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"` } // BillingProfileCustomerOverride Customer override values. 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"` } // BillingProfileCustomerOverrideCreate Payload for creating a new or updating an existing customer override. 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"` } // BillingProfileCustomerOverrideExpand CustomerOverrideExpand specifies the parts of the profile to expand. type BillingProfileCustomerOverrideExpand string // BillingProfileCustomerOverrideOrderBy Order by options for customers. type BillingProfileCustomerOverrideOrderBy string // BillingProfileCustomerOverrideWithDetails Customer specific workflow overrides. 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"` } // BillingProfileCustomerOverrideWithDetailsPaginatedResponse Paginated response 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"` } // BillingProfileExpand BillingProfileExpand details what profile fields to expand type BillingProfileExpand string // BillingProfileOrderBy BillingProfileOrderBy specifies the ordering options for profiles type BillingProfileOrderBy string // BillingProfilePaginatedResponse Paginated response 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"` } // 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 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,omitempty"` // 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"` } // BillingSettlementMode The settlement mode of a plan. // It determines how the billing system generates invoices and credits for the subscriptions using this plan. // - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. This is the default and most common settlement mode. // - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription. type BillingSettlementMode string // BillingTaxIdentificationCode TaxIdentificationCode is a normalized tax code shown on the original identity document. type BillingTaxIdentificationCode = string // BillingWorkflow BillingWorkflow represents the settings for a billing workflow. type BillingWorkflow struct { // Collection The collection settings for this workflow Collection *BillingWorkflowCollectionSettings `json:"collection,omitempty"` // Invoicing The invoicing settings for this workflow Invoicing *BillingWorkflowInvoicingSettings `json:"invoicing,omitempty"` // Payment The payment settings for this workflow Payment *BillingWorkflowPaymentSettings `json:"payment,omitempty"` // Tax The tax settings for this workflow Tax *BillingWorkflowTaxSettings `json:"tax,omitempty"` } // BillingWorkflowCollectionAlignment The alignment for collecting the pending line items into an invoice. // // Defaults to subscription, which means that we are to create a new invoice every time the // a subscription period starts (for in advance items) or ends (for in arrears items). type BillingWorkflowCollectionAlignment struct { union json.RawMessage } // BillingWorkflowCollectionAlignmentAnchored BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items // into an invoice. type BillingWorkflowCollectionAlignmentAnchored struct { // RecurringPeriod The recurring period for the alignment. RecurringPeriod RecurringPeriodV2 `json:"recurringPeriod"` // Type The type of alignment. Type BillingWorkflowCollectionAlignmentAnchoredType `json:"type"` } // BillingWorkflowCollectionAlignmentAnchoredType The type of alignment. type BillingWorkflowCollectionAlignmentAnchoredType string // BillingWorkflowCollectionAlignmentSubscription BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items // into an invoice. type BillingWorkflowCollectionAlignmentSubscription struct { // Type The type of alignment. Type BillingWorkflowCollectionAlignmentSubscriptionType `json:"type"` } // BillingWorkflowCollectionAlignmentSubscriptionType The type of alignment. type BillingWorkflowCollectionAlignmentSubscriptionType string // BillingWorkflowCollectionSettings Workflow collection specifies how to collect the pending line items for an invoice 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"` } // BillingWorkflowCreate Resource create operation model. type BillingWorkflowCreate struct { // Collection The collection settings for this workflow Collection *BillingWorkflowCollectionSettings `json:"collection,omitempty"` // Invoicing The invoicing settings for this workflow Invoicing *BillingWorkflowInvoicingSettings `json:"invoicing,omitempty"` // Payment The payment settings for this workflow Payment *BillingWorkflowPaymentSettings `json:"payment,omitempty"` // Tax The tax settings for this workflow Tax *BillingWorkflowTaxSettings `json:"tax,omitempty"` } // BillingWorkflowInvoicingSettings BillingWorkflowInvoicingSettings represents the invoice settings for a billing workflow 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. // // Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is // deprecated and can no longer be added or changed: the organization default tax code is // used instead. Existing tax-code values may still be removed, and `behavior` remains // fully supported. DefaultTaxConfig *TaxConfig `json:"defaultTaxConfig,omitempty"` // DraftPeriod The period for the invoice to be kept in draft status for manual reviews. DraftPeriod *string `json:"draftPeriod,omitempty"` // DueAfter The period after which the invoice is due. // With some payment solutions it's only applicable for manual collection method. DueAfter *string `json:"dueAfter,omitempty"` // ProgressiveBilling Should progressive billing be allowed for this workflow? ProgressiveBilling *bool `json:"progressiveBilling,omitempty"` // SubscriptionEndProrationMode Controls how subscription-ending shortened service periods are billed. SubscriptionEndProrationMode *BillingWorkflowInvoicingSubscriptionEndProrationMode `json:"subscriptionEndProrationMode,omitempty"` } // BillingWorkflowInvoicingSubscriptionEndProrationMode Billing workflow subscription end proration mode. type BillingWorkflowInvoicingSubscriptionEndProrationMode string // BillingWorkflowPaymentSettings BillingWorkflowPaymentSettings represents the payment settings for a billing workflow type BillingWorkflowPaymentSettings struct { // CollectionMethod The payment method for the invoice. CollectionMethod *CollectionMethod `json:"collectionMethod,omitempty"` } // BillingWorkflowTaxSettings BillingWorkflowTaxSettings represents the tax settings for a billing workflow type BillingWorkflowTaxSettings struct { // Enabled Enable automatic tax calculation when tax is supported by the app. // For example, with Stripe Invoicing when enabled, tax is calculated via Stripe Tax. Enabled *bool `json:"enabled,omitempty"` // Enforced Enforce tax calculation when tax is supported by the app. // When enabled, OpenMeter will not allow to create an invoice without tax calculation. // Enforcement is different per apps, for example, Stripe app requires customer // to have a tax location when starting a paid subscription. Enforced *bool `json:"enforced,omitempty"` } // CheckoutSessionCustomTextAfterSubmitParams Stripe CheckoutSession.custom_text 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"` } // CheckoutSessionUIMode Stripe CheckoutSession.ui_mode type CheckoutSessionUIMode string // ClientAppStartResponse Response from the client app (OpenMeter backend) to start the OAuth2 flow. type ClientAppStartResponse struct { // Url The URL to start the OAuth2 authorization code grant flow. Url string `json:"url"` } // CollectionMethod CollectionMethod specifies how the invoice should be collected (automatic vs manual) type CollectionMethod string // ConflictProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type ConflictProblemResponse = UnexpectedProblemResponse // 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 CountryCode = string // CreateCheckoutSessionTaxIdCollection Create Stripe checkout session tax ID collection. 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"` } // CreateCheckoutSessionTaxIdCollectionRequired Create Stripe checkout session tax ID collection required. type CreateCheckoutSessionTaxIdCollectionRequired string // CreateStripeCheckoutSessionBillingAddressCollection Specify whether Checkout should collect the customer’s billing address. type CreateStripeCheckoutSessionBillingAddressCollection string // CreateStripeCheckoutSessionConsentCollection Configure fields for the Checkout Session to gather active consent from customers. 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"` } // CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreement Create Stripe checkout session payment method reuse agreement. type CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreement struct { // Position Create Stripe checkout session consent collection agreement position. Position *CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition `json:"position,omitempty"` } // CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition Create Stripe checkout session consent collection agreement position. type CreateStripeCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition string // CreateStripeCheckoutSessionConsentCollectionPromotions Create Stripe checkout session consent collection promotions. type CreateStripeCheckoutSessionConsentCollectionPromotions string // CreateStripeCheckoutSessionConsentCollectionTermsOfService Create Stripe checkout session consent collection terms of service. type CreateStripeCheckoutSessionConsentCollectionTermsOfService string // CreateStripeCheckoutSessionCustomerUpdate Controls what fields on Customer can be updated by the Checkout Session. 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"` } // CreateStripeCheckoutSessionCustomerUpdateBehavior Create Stripe checkout session customer update behavior. type CreateStripeCheckoutSessionCustomerUpdateBehavior string // CreateStripeCheckoutSessionRedirectOnCompletion Create Stripe checkout session redirect on completion. type CreateStripeCheckoutSessionRedirectOnCompletion string // CreateStripeCheckoutSessionRequest Create Stripe checkout session request. 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_Customer Provide a customer ID or key to use an existing OpenMeter customer. // or provide a customer object to create a new customer. type CreateStripeCheckoutSessionRequest_Customer struct { union json.RawMessage } // CreateStripeCheckoutSessionRequestOptions Create Stripe checkout session options // See https://docs.stripe.com/api/checkout/sessions/create 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"` } // CreateStripeCheckoutSessionResult Create Stripe Checkout Session response. 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"` } // CreateStripeCustomerPortalSessionParams Stripe customer portal request params. type CreateStripeCustomerPortalSessionParams struct { // ConfigurationId The ID of an existing configuration to use for this session, // describing its functionality and features. // If not specified, the session uses the default configuration. // // See https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-configuration ConfigurationId *string `json:"configurationId,omitempty"` // Locale The IETF language tag of the locale customer portal is displayed in. // If blank or auto, the customer’s preferred_locales or browser’s locale is used. // // See: https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-locale Locale *string `json:"locale,omitempty"` // ReturnUrl The URL to redirect the customer to after they have completed // their requested actions. // // See: https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url ReturnUrl *string `json:"returnUrl,omitempty"` } // 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 CreditNoteOriginalInvoiceRef = InvoiceGenericDocumentRef // Currency Currency describes a currency supported by OpenMeter. 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"` } // 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 CurrencyCode = string // CustomInvoicingApp Custom Invoicing app can be used for interface with any invoicing or payment system. // // This app provides ways to manipulate invoices and payments, however the integration // must rely on Notifications API to get notified about invoice changes. type CustomInvoicingApp struct { // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // EnableDraftSyncHook Enable draft.sync hook. // // If the hook is not enabled, the invoice will be progressed to the next state automatically. EnableDraftSyncHook bool `json:"enableDraftSyncHook"` // EnableIssuingSyncHook Enable issuing.sync hook. // // If the hook is not enabled, the invoice will be progressed to the next state automatically. EnableIssuingSyncHook bool `json:"enableIssuingSyncHook"` // Id A unique identifier for the resource. Id string `json:"id"` // Listing The marketplace listing that this installed app is based on. Listing MarketplaceListing `json:"listing"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Status Status of the app connection. Status AppStatus `json:"status"` // Type The app's type is CustomInvoicing. Type CustomInvoicingAppType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // CustomInvoicingAppType The app's type is CustomInvoicing. type CustomInvoicingAppType string // CustomInvoicingAppReplaceUpdate Resource update operation model. type CustomInvoicingAppReplaceUpdate struct { // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // EnableDraftSyncHook Enable draft.sync hook. // // If the hook is not enabled, the invoice will be progressed to the next state automatically. EnableDraftSyncHook bool `json:"enableDraftSyncHook"` // EnableIssuingSyncHook Enable issuing.sync hook. // // If the hook is not enabled, the invoice will be progressed to the next state automatically. EnableIssuingSyncHook bool `json:"enableIssuingSyncHook"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Type The app's type is CustomInvoicing. Type CustomInvoicingAppReplaceUpdateType `json:"type"` } // CustomInvoicingAppReplaceUpdateType The app's type is CustomInvoicing. type CustomInvoicingAppReplaceUpdateType string // CustomInvoicingCustomerAppData Custom Invoicing Customer App Data. type CustomInvoicingCustomerAppData struct { // App The installed custom invoicing app this data belongs to. App *CustomInvoicingApp `json:"app,omitempty"` // Id The app ID. // If not provided, it will use the global default for the app type. Id *string `json:"id,omitempty"` // Metadata Metadata to be used by the custom invoicing provider. Metadata *Metadata `json:"metadata,omitempty"` // Type The app name. Type CustomInvoicingCustomerAppDataType `json:"type"` } // CustomInvoicingCustomerAppDataType The app name. type CustomInvoicingCustomerAppDataType string // CustomInvoicingDraftSynchronizedRequest Information to finalize the draft details of an invoice. type CustomInvoicingDraftSynchronizedRequest struct { // Invoicing The result of the synchronization. Invoicing *CustomInvoicingSyncResult `json:"invoicing,omitempty"` } // CustomInvoicingFinalizedInvoicingRequest Information to finalize the invoicing details of an invoice. type CustomInvoicingFinalizedInvoicingRequest struct { // InvoiceNumber If set the invoice's number will be set to this value. InvoiceNumber *InvoiceNumber `json:"invoiceNumber,omitempty"` // SentToCustomerAt If set the invoice's sent to customer at will be set to this value. SentToCustomerAt *time.Time `json:"sentToCustomerAt,omitempty"` } // CustomInvoicingFinalizedPaymentRequest Information to finalize the payment details of an invoice. type CustomInvoicingFinalizedPaymentRequest struct { // ExternalId If set the invoice's payment external ID will be set to this value. ExternalId *string `json:"externalId,omitempty"` } // CustomInvoicingFinalizedRequest Information to finalize the invoice. // // If invoicing.invoiceNumber is not set, then a new invoice number will be generated (INV- prefix). type CustomInvoicingFinalizedRequest struct { // Invoicing The result of the synchronization. Invoicing *CustomInvoicingFinalizedInvoicingRequest `json:"invoicing,omitempty"` // Payment The result of the payment synchronization. Payment *CustomInvoicingFinalizedPaymentRequest `json:"payment,omitempty"` } // CustomInvoicingLineDiscountExternalIdMapping Mapping between line discounts and external IDs. type CustomInvoicingLineDiscountExternalIdMapping struct { // ExternalId The external ID (e.g. custom invoicing system's ID). ExternalId string `json:"externalId"` // LineDiscountId The line discount ID. LineDiscountId string `json:"lineDiscountId"` } // CustomInvoicingLineExternalIdMapping Mapping between lines and external IDs. type CustomInvoicingLineExternalIdMapping struct { // ExternalId The external ID (e.g. custom invoicing system's ID). ExternalId string `json:"externalId"` // LineId The line ID. LineId string `json:"lineId"` } // CustomInvoicingPaymentTrigger Payment trigger to execute on a finalized invoice. type CustomInvoicingPaymentTrigger string // CustomInvoicingSyncResult Information to synchronize the invoice. // // Can be used to store external app's IDs on the invoice or lines. type CustomInvoicingSyncResult struct { // ExternalId If set the invoice's invoicing external ID will be set to this value. ExternalId *string `json:"externalId,omitempty"` // InvoiceNumber If set the invoice's number will be set to this value. InvoiceNumber *InvoiceNumber `json:"invoiceNumber,omitempty"` // LineDiscountExternalIds If set the invoice's line discount external IDs will be set to this value. // // This can be used to reference the external system's entities in the // invoice. LineDiscountExternalIds *[]CustomInvoicingLineDiscountExternalIdMapping `json:"lineDiscountExternalIds,omitempty"` // LineExternalIds If set the invoice's line external IDs will be set to this value. // // This can be used to reference the external system's entities in the // invoice. LineExternalIds *[]CustomInvoicingLineExternalIdMapping `json:"lineExternalIds,omitempty"` } // CustomInvoicingTaxConfig Custom invoicing tax config. type CustomInvoicingTaxConfig struct { // Code Tax code. // // The tax code should be interpreted by the custom invoicing provider. Code string `json:"code"` } // CustomInvoicingUpdatePaymentStatusRequest Update payment status request. // // Can be used to manipulate invoice's payment status (when custominvoicing app is being used). type CustomInvoicingUpdatePaymentStatusRequest struct { // Trigger The trigger to be executed on the invoice. Trigger CustomInvoicingPaymentTrigger `json:"trigger"` } // CustomPlanInput The template for omitting properties. type CustomPlanInput struct { // Alignment Alignment configuration for the plan. Alignment *Alignment `json:"alignment,omitempty"` // BillingCadence The default billing cadence for subscriptions using this plan. // Defines how often customers are billed using ISO8601 duration format. // Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually). BillingCadence string `json:"billingCadence"` // Currency The currency code of the plan. Currency CurrencyCode `json:"currency"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Phases The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses. // A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices. Phases []PlanPhase `json:"phases"` // ProRatingConfig Default pro-rating configuration for subscriptions using this plan. ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"` // SettlementMode The settlement mode of the plan. // It determines how the billing system generates invoices and credits for the subscriptions using this plan. // - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. // - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription. // This is the default and most common settlement mode. SettlementMode *BillingSettlementMode `json:"settlementMode,omitempty"` } // CustomSubscriptionChange Change a custom subscription. type CustomSubscriptionChange struct { // BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the previous subscription billing anchor will be used. BillingAnchor *time.Time `json:"billingAnchor,omitempty"` // CustomPlan The custom plan description which defines the Subscription. CustomPlan CustomPlanInput `json:"customPlan"` // Timing Timing configuration for the change, when the change should take effect. // For changing a subscription, the accepted values depend on the subscription configuration. Timing SubscriptionTiming `json:"timing"` } // CustomSubscriptionCreate Create a custom subscription. type CustomSubscriptionCreate struct { // BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the subscription start time will be used. BillingAnchor *time.Time `json:"billingAnchor,omitempty"` // CustomPlan The custom plan description which defines the Subscription. CustomPlan CustomPlanInput `json:"customPlan"` // CustomerId The ID of the customer. Provide either the key or ID. Has presedence over the key. CustomerId *string `json:"customerId,omitempty"` // CustomerKey The key of the customer. Provide either the key or ID. CustomerKey *string `json:"customerKey,omitempty"` // Timing Timing configuration for the change, when the change should take effect. // The default is immediate. Timing *SubscriptionTiming `json:"timing,omitempty"` } // Customer A customer object. type Customer struct { // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // BillingAddress The billing address of the customer. // Used for tax and invoicing. BillingAddress *Address `json:"billingAddress,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // Currency Currency of the customer. // Used for billing, tax and invoicing. Currency *CurrencyCode `json:"currency,omitempty"` // CurrentSubscriptionId The ID of the Subscription if the customer has one. CurrentSubscriptionId *string `json:"currentSubscriptionId,omitempty"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // Key An optional unique key of the customer. // Either key or usageAttribution.subjectKeys must be provided. // 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,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // PrimaryEmail The primary email address of the customer. PrimaryEmail *string `json:"primaryEmail,omitempty"` // Subscriptions The subscriptions of the customer. // Only with the `subscriptions` expand option. Subscriptions *[]Subscription `json:"subscriptions,omitempty"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // UsageAttribution Mapping to attribute metered usage to the customer // Either key or usageAttribution.subjectKeys must be provided. UsageAttribution *CustomerUsageAttribution `json:"usageAttribution,omitempty"` } // CustomerAccess CustomerAccess describes what features the customer has access to. 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"` } // CustomerAppData CustomerAppData // Stores the app specific data for the customer. // One of: stripe, sandbox, custom_invoicing type CustomerAppData struct { union json.RawMessage } // CustomerAppDataCreateOrUpdateItem CustomerAppData // Stores the app specific data for the customer. // One of: stripe, sandbox, custom_invoicing type CustomerAppDataCreateOrUpdateItem struct { union json.RawMessage } // CustomerAppDataPaginatedResponse Paginated response 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"` } // CustomerCreate Resource create operation model. 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. // Either key or usageAttribution.subjectKeys must be provided. // 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,omitempty"` // 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 // Either key or usageAttribution.subjectKeys must be provided. UsageAttribution *CustomerUsageAttribution `json:"usageAttribution,omitempty"` } // CustomerExpand CustomerExpand specifies the parts of the customer to expand in the list output. type CustomerExpand string // CustomerId Create Stripe checkout session with customer ID. type CustomerId struct { // Id ULID (Universally Unique Lexicographically Sortable Identifier). Id string `json:"id"` } // CustomerKey Create Stripe checkout session with customer key. type CustomerKey struct { Key string `json:"key"` } // CustomerOrderBy Order by options for customers. type CustomerOrderBy string // CustomerPaginatedResponse Paginated response 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"` } // CustomerReplaceUpdate Resource update operation model. 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. // Either key or usageAttribution.subjectKeys must be provided. // 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,omitempty"` // 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 // Either key or usageAttribution.subjectKeys must be provided. UsageAttribution *CustomerUsageAttribution `json:"usageAttribution,omitempty"` } // CustomerSubscriptionOrderBy Order by options for customer subscriptions. type CustomerSubscriptionOrderBy string // CustomerUsageAttribution Mapping to attribute metered usage to the customer. // One customer can have zero or more subjects, // but one subject can only belong to one customer. type CustomerUsageAttribution struct { // SubjectKeys The subjects that are attributed to the customer. // Can be empty when no subjects are associated with the customer. SubjectKeys []string `json:"subjectKeys"` } // DiscountPercentage Percentage discount. type DiscountPercentage struct { // Percentage The percentage of the discount. Percentage Percentage `json:"percentage"` } // DiscountReasonMaximumSpend The reason for the discount is a maximum spend. type DiscountReasonMaximumSpend struct { Type DiscountReasonMaximumSpendType `json:"type"` } // DiscountReasonMaximumSpendType defines model for DiscountReasonMaximumSpend.Type. type DiscountReasonMaximumSpendType string // DiscountReasonRatecardPercentage The reason for the discount is a ratecard percentage. type DiscountReasonRatecardPercentage struct { // CorrelationId Correlation ID for the discount. // // This is used to link discounts across different invoices (progressive billing use case). // // If not provided, the invoicing engine will auto-generate one. When editing an invoice line, // please make sure to keep the same correlation ID of the discount or in progressive billing // setups the discount amounts might be incorrect. CorrelationId *string `json:"correlationId,omitempty"` // Percentage The percentage of the discount. Percentage Percentage `json:"percentage"` Type DiscountReasonRatecardPercentageType `json:"type"` } // DiscountReasonRatecardPercentageType defines model for DiscountReasonRatecardPercentage.Type. type DiscountReasonRatecardPercentageType string // DiscountReasonRatecardUsage The reason for the discount is a ratecard usage. type DiscountReasonRatecardUsage struct { // CorrelationId Correlation ID for the discount. // // This is used to link discounts across different invoices (progressive billing use case). // // If not provided, the invoicing engine will auto-generate one. When editing an invoice line, // please make sure to keep the same correlation ID of the discount or in progressive billing // setups the discount amounts might be incorrect. CorrelationId *string `json:"correlationId,omitempty"` // Quantity The quantity of the usage discount. // // Must be positive. Quantity Numeric `json:"quantity"` Type DiscountReasonRatecardUsageType `json:"type"` } // DiscountReasonRatecardUsageType defines model for DiscountReasonRatecardUsage.Type. type DiscountReasonRatecardUsageType string // 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 DiscountUsage struct { // Quantity The quantity of the usage discount. // // Must be positive. Quantity Numeric `json:"quantity"` } // Discounts Discount by type on a price type Discounts struct { // Percentage The percentage discount. Percentage *DiscountPercentage `json:"percentage,omitempty"` // Usage The usage discount. Usage *DiscountUsage `json:"usage,omitempty"` } // DynamicPriceWithCommitments Dynamic price with spend commitments. 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"` } // DynamicPriceWithCommitmentsType The type of the price. type DynamicPriceWithCommitmentsType string // EditSubscriptionAddItem Add a new item to a phase. 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"` } // EditSubscriptionAddItemOp defines model for EditSubscriptionAddItem.Op. type EditSubscriptionAddItemOp string // EditSubscriptionAddPhase Add a new phase type EditSubscriptionAddPhase struct { Op EditSubscriptionAddPhaseOp `json:"op"` // Phase Subscription phase create input. Phase SubscriptionPhaseCreate `json:"phase"` } // EditSubscriptionAddPhaseOp defines model for EditSubscriptionAddPhase.Op. type EditSubscriptionAddPhaseOp string // EditSubscriptionRemoveItem Remove an item from a phase. type EditSubscriptionRemoveItem struct { ItemKey string `json:"itemKey"` Op EditSubscriptionRemoveItemOp `json:"op"` PhaseKey string `json:"phaseKey"` } // EditSubscriptionRemoveItemOp defines model for EditSubscriptionRemoveItem.Op. type EditSubscriptionRemoveItemOp string // EditSubscriptionRemovePhase Remove a phase 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"` } // EditSubscriptionRemovePhaseOp defines model for EditSubscriptionRemovePhase.Op. type EditSubscriptionRemovePhaseOp string // EditSubscriptionStretchPhase Stretch a phase type EditSubscriptionStretchPhase struct { ExtendBy string `json:"extendBy"` Op EditSubscriptionStretchPhaseOp `json:"op"` PhaseKey string `json:"phaseKey"` } // EditSubscriptionStretchPhaseOp defines model for EditSubscriptionStretchPhase.Op. type EditSubscriptionStretchPhaseOp string // EditSubscriptionUnscheduleEdit Unschedules any edits from the current phase. type EditSubscriptionUnscheduleEdit struct { Op EditSubscriptionUnscheduleEditOp `json:"op"` } // EditSubscriptionUnscheduleEditOp defines model for EditSubscriptionUnscheduleEdit.Op. type EditSubscriptionUnscheduleEditOp string // 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. type Entitlement struct { union json.RawMessage } // EntitlementBoolean Entitlement template of a boolean entitlement. type EntitlementBoolean struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // Annotations The annotations of the entitlement. Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CurrentUsagePeriod The current usage period. CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // FeatureId The feature the subject is entitled to use. FeatureId string `json:"featureId"` // FeatureKey The feature the subject is entitled to use. FeatureKey string `json:"featureKey"` // Id Readonly unique ULID identifier. Id string `json:"id"` // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` // SubjectKey The identifier key unique to the subject. // NOTE: Subjects are being deprecated, please use the new customer APIs. SubjectKey string `json:"subjectKey"` Type EntitlementBooleanType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // UsagePeriod The defined usage period of the entitlement UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"` } // EntitlementBooleanType defines model for EntitlementBoolean.Type. type EntitlementBooleanType string // EntitlementBooleanCreateInputs Create inputs for boolean entitlement 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"` } // EntitlementBooleanCreateInputsType defines model for EntitlementBooleanCreateInputs.Type. type EntitlementBooleanCreateInputsType string // EntitlementBooleanV2 Entitlement template of a boolean entitlement. type EntitlementBooleanV2 struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // Annotations The annotations of the entitlement. Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CurrentUsagePeriod The current usage period. CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"` // CustomerId The identifier unique to the customer CustomerId string `json:"customerId"` // CustomerKey The identifier key unique to the customer CustomerKey *string `json:"customerKey,omitempty"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // FeatureId The feature the subject is entitled to use. FeatureId string `json:"featureId"` // FeatureKey The feature the subject is entitled to use. FeatureKey string `json:"featureKey"` // Id Readonly unique ULID identifier. Id string `json:"id"` // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` Type EntitlementBooleanV2Type `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // UsagePeriod The defined usage period of the entitlement UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"` } // EntitlementBooleanV2Type defines model for EntitlementBooleanV2.Type. type EntitlementBooleanV2Type string // EntitlementCreateInputs Create inputs for entitlement type EntitlementCreateInputs struct { union json.RawMessage } // EntitlementGrant The grant. type EntitlementGrant struct { // Amount The amount to grant. Should be a positive number. Amount float64 `json:"amount"` // Annotations Grant annotations Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute). EffectiveAt time.Time `json:"effectiveAt"` // EntitlementId The unique entitlement ULID that the grant is associated with. EntitlementId string `json:"entitlementId"` // Expiration The grant expiration definition Expiration ExpirationPeriod `json:"expiration"` // ExpiresAt The time the grant expires. ExpiresAt *time.Time `json:"expiresAt,omitempty"` // Id Readonly unique ULID identifier. Id string `json:"id"` // MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. // Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount)) MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"` // Metadata The grant metadata. Metadata *Metadata `json:"metadata,omitempty"` // MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. // Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount)) MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"` // NextRecurrence The next time the grant will recurr. NextRecurrence *time.Time `json:"nextRecurrence,omitempty"` // Priority The priority of the grant. Grants with higher priority are applied first. // Priority is a positive decimal numbers. With lower numbers indicating higher importance. // For example, a priority of 1 is more urgent than a priority of 2. // When there are several grants available for the same subject, the system selects the grant with the highest priority. // In cases where grants share the same priority level, the grant closest to its expiration will be used first. // In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first. Priority *uint8 `json:"priority,omitempty"` // Recurrence The recurrence period of the grant. Recurrence *RecurringPeriod `json:"recurrence,omitempty"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // VoidedAt The time the grant was voided. VoidedAt *time.Time `json:"voidedAt,omitempty"` } // EntitlementGrantCreateInput The grant creation input. 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"` } // EntitlementGrantCreateInputV2 The grant creation input. type EntitlementGrantCreateInputV2 struct { // Amount The amount to grant. Should be a positive number. Amount float64 `json:"amount"` // Annotations Grant annotations Annotations *Annotations `json:"annotations,omitempty"` // EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute). EffectiveAt time.Time `json:"effectiveAt"` // Expiration The grant expiration definition. If no expiration is provided, the grant can be active indefinitely. Expiration *ExpirationPeriod `json:"expiration,omitempty"` // MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount. // Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount)) MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"` // Metadata The grant metadata. Metadata *Metadata `json:"metadata,omitempty"` // MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. // Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount)) MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"` // Priority The priority of the grant. Grants with higher priority are applied first. // Priority is a positive decimal numbers. With lower numbers indicating higher importance. // For example, a priority of 1 is more urgent than a priority of 2. // When there are several grants available for the same subject, the system selects the grant with the highest priority. // In cases where grants share the same priority level, the grant closest to its expiration will be used first. // In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first. Priority *uint8 `json:"priority,omitempty"` // Recurrence The subject of the grant. Recurrence *RecurringPeriodCreateInput `json:"recurrence,omitempty"` } // EntitlementGrantV2 The grant. type EntitlementGrantV2 struct { // Amount The amount to grant. Should be a positive number. Amount float64 `json:"amount"` // Annotations Grant annotations Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // EffectiveAt Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute). EffectiveAt time.Time `json:"effectiveAt"` // EntitlementId The unique entitlement ULID that the grant is associated with. EntitlementId string `json:"entitlementId"` // Expiration The grant expiration definition. If no expiration is provided, the grant can be active indefinitely. Expiration *ExpirationPeriod `json:"expiration,omitempty"` // ExpiresAt The time the grant expires. ExpiresAt *time.Time `json:"expiresAt,omitempty"` // Id Readonly unique ULID identifier. Id string `json:"id"` // MaxRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount. // Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount)) MaxRolloverAmount *float64 `json:"maxRolloverAmount,omitempty"` // Metadata The grant metadata. Metadata *Metadata `json:"metadata,omitempty"` // MinRolloverAmount Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. // Balance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount)) MinRolloverAmount *float64 `json:"minRolloverAmount,omitempty"` // NextRecurrence The next time the grant will recurr. NextRecurrence *time.Time `json:"nextRecurrence,omitempty"` // Priority The priority of the grant. Grants with higher priority are applied first. // Priority is a positive decimal numbers. With lower numbers indicating higher importance. // For example, a priority of 1 is more urgent than a priority of 2. // When there are several grants available for the same subject, the system selects the grant with the highest priority. // In cases where grants share the same priority level, the grant closest to its expiration will be used first. // In the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first. Priority *uint8 `json:"priority,omitempty"` // Recurrence The recurrence period of the grant. Recurrence *RecurringPeriod `json:"recurrence,omitempty"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // VoidedAt The time the grant was voided. VoidedAt *time.Time `json:"voidedAt,omitempty"` } // 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 EntitlementMetered struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // Annotations The annotations of the entitlement. Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CurrentUsagePeriod The current usage period. CurrentUsagePeriod Period `json:"currentUsagePeriod"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // FeatureId The feature the subject is entitled to use. FeatureId string `json:"featureId"` // FeatureKey The feature the subject is entitled to use. FeatureKey string `json:"featureKey"` // Id Readonly unique ULID identifier. Id string `json:"id"` // IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true. IsSoftLimit *bool `json:"isSoftLimit,omitempty"` // IsUnlimited Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set IsUnlimited *bool `json:"isUnlimited,omitempty"` // IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance. // If an amount is specified here, a grant will be created alongside the entitlement with the specified amount. // That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here. // Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same. IssueAfterReset *float64 `json:"issueAfterReset,omitempty"` // IssueAfterResetPriority Defines the grant priority for the default grant. IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"` // LastReset The time the last reset happened. LastReset time.Time `json:"lastReset"` // MeasureUsageFrom The time from which usage is measured. If not specified on creation, defaults to entitlement creation time. MeasureUsageFrom time.Time `json:"measureUsageFrom"` // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` // PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0. PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"` // SubjectKey The identifier key unique to the subject. // NOTE: Subjects are being deprecated, please use the new customer APIs. SubjectKey string `json:"subjectKey"` Type EntitlementMeteredType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // UsagePeriod THe usage period of the entitlement. UsagePeriod RecurringPeriod `json:"usagePeriod"` } // EntitlementMeteredType defines model for EntitlementMetered.Type. type EntitlementMeteredType string // EntitlementMeteredCreateInputs Create inpurs for metered entitlement type EntitlementMeteredCreateInputs struct { // FeatureId The feature the subject is entitled to use. // Either featureKey or featureId is required. FeatureId *string `json:"featureId,omitempty"` // FeatureKey The feature the subject is entitled to use. // Either featureKey or featureId is required. FeatureKey *string `json:"featureKey,omitempty"` // IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true. IsSoftLimit *bool `json:"isSoftLimit,omitempty"` // IsUnlimited Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set IsUnlimited *bool `json:"isUnlimited,omitempty"` // IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance. // If an amount is specified here, a grant will be created alongside the entitlement with the specified amount. // That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here. // Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same. IssueAfterReset *float64 `json:"issueAfterReset,omitempty"` // IssueAfterResetPriority Defines the grant priority for the default grant. IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"` // MeasureUsageFrom Defines the time from which usage is measured. If not specified on creation, defaults to entitlement creation time. MeasureUsageFrom *MeasureUsageFrom `json:"measureUsageFrom,omitempty"` // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` // PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0. PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"` Type EntitlementMeteredCreateInputsType `json:"type"` // UsagePeriod The usage period associated with the entitlement. UsagePeriod RecurringPeriodCreateInput `json:"usagePeriod"` } // EntitlementMeteredCreateInputsType defines model for EntitlementMeteredCreateInputs.Type. type EntitlementMeteredCreateInputsType string // EntitlementMeteredV2 Metered entitlements are useful for many different use cases, from setting up usage based access to implementing complex credit systems. // Access is determined based on feature usage using a balance calculation (the "usage allowance" provided by the issued grants is "burnt down" by the usage). type EntitlementMeteredV2 struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // Annotations The annotations of the entitlement. Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CurrentUsagePeriod The current usage period. CurrentUsagePeriod Period `json:"currentUsagePeriod"` // CustomerId The identifier unique to the customer CustomerId string `json:"customerId"` // CustomerKey The identifier key unique to the customer CustomerKey *string `json:"customerKey,omitempty"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // FeatureId The feature the subject is entitled to use. FeatureId string `json:"featureId"` // FeatureKey The feature the subject is entitled to use. FeatureKey string `json:"featureKey"` // Id Readonly unique ULID identifier. Id string `json:"id"` // IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true. IsSoftLimit *bool `json:"isSoftLimit,omitempty"` // Issue Issue after reset Issue *IssueAfterReset `json:"issue,omitempty"` // IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance. // If an amount is specified here, a grant will be created alongside the entitlement with the specified amount. // That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here. // Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set IssueAfterReset *float64 `json:"issueAfterReset,omitempty"` // IssueAfterResetPriority Defines the grant priority for the default grant. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"` // LastReset The time the last reset happened. LastReset time.Time `json:"lastReset"` // MeasureUsageFrom The time from which usage is measured. If not specified on creation, defaults to entitlement creation time. MeasureUsageFrom time.Time `json:"measureUsageFrom"` // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` // PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0. PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"` Type EntitlementMeteredV2Type `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // UsagePeriod THe usage period of the entitlement. UsagePeriod RecurringPeriod `json:"usagePeriod"` } // EntitlementMeteredV2Type defines model for EntitlementMeteredV2.Type. type EntitlementMeteredV2Type string // EntitlementMeteredV2CreateInputs Create inputs for metered entitlement type EntitlementMeteredV2CreateInputs struct { // FeatureId The feature the subject is entitled to use. // Either featureKey or featureId is required. FeatureId *string `json:"featureId,omitempty"` // FeatureKey The feature the subject is entitled to use. // Either featureKey or featureId is required. FeatureKey *string `json:"featureKey,omitempty"` // Grants Grants Grants *[]EntitlementGrantCreateInputV2 `json:"grants,omitempty"` // IsSoftLimit If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true. IsSoftLimit *bool `json:"isSoftLimit,omitempty"` // Issue Issue after reset Issue *IssueAfterReset `json:"issue,omitempty"` // IssueAfterReset You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance. // If an amount is specified here, a grant will be created alongside the entitlement with the specified amount. // That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here. // Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set IssueAfterReset *float64 `json:"issueAfterReset,omitempty"` // IssueAfterResetPriority Defines the grant priority for the default grant. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set IssueAfterResetPriority *uint8 `json:"issueAfterResetPriority,omitempty"` // MeasureUsageFrom Defines the time from which usage is measured. If not specified on creation, defaults to entitlement creation time. MeasureUsageFrom *MeasureUsageFrom `json:"measureUsageFrom,omitempty"` // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` // PreserveOverageAtReset If true, the overage is preserved at reset. If false, the usage is reset to 0. PreserveOverageAtReset *bool `json:"preserveOverageAtReset,omitempty"` Type EntitlementMeteredV2CreateInputsType `json:"type"` // UsagePeriod The usage period associated with the entitlement. UsagePeriod RecurringPeriodCreateInput `json:"usagePeriod"` } // EntitlementMeteredV2CreateInputsType defines model for EntitlementMeteredV2CreateInputs.Type. type EntitlementMeteredV2CreateInputsType string // EntitlementOrderBy Order by options for entitlements. type EntitlementOrderBy string // EntitlementPaginatedResponse Paginated response 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"` } // EntitlementStatic A static entitlement. type EntitlementStatic struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // Annotations The annotations of the entitlement. Annotations *Annotations `json:"annotations,omitempty"` // Config The JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object. Config json.RawMessage `json:"config"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CurrentUsagePeriod The current usage period. CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // FeatureId The feature the subject is entitled to use. FeatureId string `json:"featureId"` // FeatureKey The feature the subject is entitled to use. FeatureKey string `json:"featureKey"` // Id Readonly unique ULID identifier. Id string `json:"id"` // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` // SubjectKey The identifier key unique to the subject. // NOTE: Subjects are being deprecated, please use the new customer APIs. SubjectKey string `json:"subjectKey"` Type EntitlementStaticType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // UsagePeriod The defined usage period of the entitlement UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"` } // EntitlementStaticType defines model for EntitlementStatic.Type. type EntitlementStaticType string // EntitlementStaticCreateInputs Create inputs for static entitlement 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"` } // EntitlementStaticCreateInputsType defines model for EntitlementStaticCreateInputs.Type. type EntitlementStaticCreateInputsType string // EntitlementStaticV2 A static entitlement. type EntitlementStaticV2 struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // Annotations The annotations of the entitlement. Annotations *Annotations `json:"annotations,omitempty"` // Config The JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object. Config json.RawMessage `json:"config"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CurrentUsagePeriod The current usage period. CurrentUsagePeriod *Period `json:"currentUsagePeriod,omitempty"` // CustomerId The identifier unique to the customer CustomerId string `json:"customerId"` // CustomerKey The identifier key unique to the customer CustomerKey *string `json:"customerKey,omitempty"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // FeatureId The feature the subject is entitled to use. FeatureId string `json:"featureId"` // FeatureKey The feature the subject is entitled to use. FeatureKey string `json:"featureKey"` // Id Readonly unique ULID identifier. Id string `json:"id"` // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` Type EntitlementStaticV2Type `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // UsagePeriod The defined usage period of the entitlement UsagePeriod *RecurringPeriod `json:"usagePeriod,omitempty"` } // EntitlementStaticV2Type defines model for EntitlementStaticV2.Type. type EntitlementStaticV2Type string // EntitlementType Type of the entitlement. type EntitlementType = string // EntitlementV2 Entitlement templates are used to define the entitlements of a plan. // Features are omitted from the entitlement template, as they are defined in the rate card. type EntitlementV2 struct { union json.RawMessage } // EntitlementV2CreateInputs Create inputs for entitlement type EntitlementV2CreateInputs struct { union json.RawMessage } // EntitlementV2PaginatedResponse Paginated response type EntitlementV2PaginatedResponse struct { // Items The items in the current page. Items []EntitlementV2 `json:"items"` // Page The page index. Page int `json:"page"` // PageSize The maximum number of items per page. PageSize int `json:"pageSize"` // TotalCount The total number of items. TotalCount int `json:"totalCount"` } // EntitlementValue Entitlements are the core of OpenMeter access management. They define access to features for subjects. Entitlements can be metered, boolean, or static. 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"` // TotalAvailableGrantAmount Only available for metered entitlements. The summed amount of all grant active at query time PLUS the used amount of since inactive grants. TotalAvailableGrantAmount *float64 `json:"totalAvailableGrantAmount,omitempty"` // Usage Only available for metered entitlements. Returns the total feature usage in the current period. Usage *float64 `json:"usage,omitempty"` } // EntitlementValueV2 EntitlementValueV2 returns entitlement access state and value fields for customer-scoped V2 APIs. type EntitlementValueV2 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"` // GrantBalances Only available for metered entitlements. The closing balance of each active grant at query time. // The key is the grant ID and the value is the remaining balance. GrantBalances *map[string]float64 `json:"grantBalances,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"` // TotalAvailableGrantAmount Only available for metered entitlements. The summed amount of all grant active at query time PLUS the used amount of since inactive grants. TotalAvailableGrantAmount *float64 `json:"totalAvailableGrantAmount,omitempty"` // Usage Only available for metered entitlements. Returns the total feature usage in the current period. Usage *float64 `json:"usage,omitempty"` } // ErrorExtension Generic ErrorExtension as part of HTTPProblem.Extensions.[StatusCode] type ErrorExtension struct { // Code The machine readable description of the error. Code string `json:"code"` // Field The path to the field. Field string `json:"field"` // Message The human readable description of the error. Message string `json:"message"` AdditionalProperties map[string]interface{} `json:"-"` } // 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 Event = event.Event // EventDeliveryAttemptResponse The response of the event delivery attempt. type EventDeliveryAttemptResponse struct { // Body The body of the response. Body string `json:"body"` // DurationMs The duration of the response in milliseconds. DurationMs int `json:"durationMs"` // StatusCode Status code of the response if available. StatusCode *int `json:"statusCode,omitempty"` // Url URL where the event was sent in case of notification channel with webhook type. Url *string `json:"url,omitempty"` } // ExpirationDuration The expiration duration enum type ExpirationDuration string // ExpirationPeriod The grant expiration definition type ExpirationPeriod struct { // Count The number of time units in the expiration period. Count uint32 `json:"count"` // Duration The unit of time for the expiration period. Duration ExpirationDuration `json:"duration"` } // Feature Represents a feature that can be enabled or disabled for a plan. // Used both for product catalog and entitlements. type Feature struct { // AdvancedMeterGroupByFilters Optional advanced meter group by filters. // You can use this to filter for values of the meter groupBy fields. AdvancedMeterGroupByFilters *map[string]FilterString `json:"advancedMeterGroupByFilters,omitempty"` // ArchivedAt Timestamp of when the resource was archived. ArchivedAt *time.Time `json:"archivedAt,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Id Readonly unique ULID identifier. Id string `json:"id"` // Key A key is a unique string that is used to identify a resource. Key string `json:"key"` Metadata *Metadata `json:"metadata,omitempty"` // MeterGroupByFilters Optional meter group by filters. // Useful if the meter scope is broader than what feature tracks. // Example scenario would be a meter tracking all token use with groupBy fields for the model, // then the feature could filter for model=gpt-4. // // ⚠️ __Deprecated__: Use advancedMeterGroupByFilters instead // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set MeterGroupByFilters *map[string]string `json:"meterGroupByFilters,omitempty"` // MeterSlug A key is a unique string that is used to identify a resource. MeterSlug *string `json:"meterSlug,omitempty"` Name string `json:"name"` // UnitCost Optional per-unit cost configuration. // Use "manual" for a fixed per-unit cost, or "llm" to look up cost // from the LLM cost database based on meter group-by properties. UnitCost *FeatureUnitCost `json:"unitCost,omitempty"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // FeatureCreateInputs Represents a feature that can be enabled or disabled for a plan. // Used both for product catalog and entitlements. type FeatureCreateInputs struct { // AdvancedMeterGroupByFilters Optional advanced meter group by filters. // You can use this to filter for values of the meter groupBy fields. AdvancedMeterGroupByFilters *map[string]FilterString `json:"advancedMeterGroupByFilters,omitempty"` // Key A key is a unique string that is used to identify a resource. Key string `json:"key"` Metadata *Metadata `json:"metadata,omitempty"` // MeterGroupByFilters Optional meter group by filters. // Useful if the meter scope is broader than what feature tracks. // Example scenario would be a meter tracking all token use with groupBy fields for the model, // then the feature could filter for model=gpt-4. // // ⚠️ __Deprecated__: Use advancedMeterGroupByFilters instead // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set MeterGroupByFilters *map[string]string `json:"meterGroupByFilters,omitempty"` // MeterSlug A key is a unique string that is used to identify a resource. MeterSlug *string `json:"meterSlug,omitempty"` Name string `json:"name"` // UnitCost Optional per-unit cost configuration. // Use "manual" for a fixed per-unit cost, or "llm" to look up cost // from the LLM cost database based on meter group-by properties. UnitCost *FeatureUnitCost `json:"unitCost,omitempty"` } // FeatureLLMUnitCost LLM cost lookup configuration. // Maps meter group-by dimensions to LLM cost database fields. type FeatureLLMUnitCost struct { // Model Static model ID value (e.g., "gpt-4", "claude-3-5-sonnet"). // Use this when the feature tracks a single model. // Mutually exclusive with `modelProperty`. Model *string `json:"model,omitempty"` // ModelProperty Meter group-by property that holds the model ID. // Use this when the meter has a group-by dimension for model. // Mutually exclusive with `model`. ModelProperty *string `json:"modelProperty,omitempty"` // Pricing Resolved per-token pricing from the LLM cost database. // Only populated in responses when the feature's meter group-by filters // specify exact provider and model values. Pricing *FeatureLLMUnitCostPricing `json:"pricing,omitempty"` // Provider Static LLM provider value (e.g., "openai", "anthropic"). // Use this when the feature tracks a single provider. // Mutually exclusive with `providerProperty`. Provider *string `json:"provider,omitempty"` // ProviderProperty Meter group-by property that holds the LLM provider. // Use this when the meter has a group-by dimension for provider. // Mutually exclusive with `provider`. ProviderProperty *string `json:"providerProperty,omitempty"` // TokenType Static token type value. // Use this when the feature tracks a single token type (e.g., only input tokens). // Expected values: input, output, cache_read, reasoning, cache_write, request, response. // `request` is an alias for `input`, `response` is an alias for `output`. // Mutually exclusive with `tokenTypeProperty`. TokenType *string `json:"tokenType,omitempty"` // TokenTypeProperty Meter group-by property that holds the token type. // Use this when the meter has a group-by dimension for token type. // Mutually exclusive with `tokenType`. TokenTypeProperty *string `json:"tokenTypeProperty,omitempty"` Type FeatureLLMUnitCostType `json:"type"` } // FeatureLLMUnitCostType defines model for FeatureLLMUnitCost.Type. type FeatureLLMUnitCostType string // FeatureLLMUnitCostPricing Resolved per-token pricing from the LLM cost database. type FeatureLLMUnitCostPricing struct { // CacheReadPerToken Cost per cache read token in USD. CacheReadPerToken *Numeric `json:"cacheReadPerToken,omitempty"` // CacheWritePerToken Cost per cache write token in USD. CacheWritePerToken *Numeric `json:"cacheWritePerToken,omitempty"` // InputPerToken Cost per input token in USD. InputPerToken Numeric `json:"inputPerToken"` // OutputPerToken Cost per output token in USD. OutputPerToken Numeric `json:"outputPerToken"` // ReasoningPerToken Cost per reasoning token in USD. ReasoningPerToken *Numeric `json:"reasoningPerToken,omitempty"` } // FeatureManualUnitCost A fixed per-unit cost amount. type FeatureManualUnitCost struct { // Amount Fixed per-unit cost amount in USD. Amount Numeric `json:"amount"` Type FeatureManualUnitCostType `json:"type"` } // FeatureManualUnitCostType defines model for FeatureManualUnitCost.Type. type FeatureManualUnitCostType string // FeatureMeta Limited representation of a feature resource which includes only its unique identifiers (id, key). 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"` } // FeatureOrderBy Order by options for features. type FeatureOrderBy string // FeaturePaginatedResponse Paginated response 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"` } // FeatureUnitCost Per-unit cost configuration for a feature. // Either a fixed manual amount or a dynamic LLM cost lookup. type FeatureUnitCost struct { union json.RawMessage } // FilterIDExact A filter for a ID (ULID) field allowing only equality or inclusion. type FilterIDExact struct { // In The field must be in the provided list of values. In *[]string `json:"$in,omitempty"` } // FilterString A filter for a string field. type FilterString struct { // And Provide a list of filters to be combined with a logical AND. And *[]FilterString `json:"$and,omitempty"` // Eq The field must be equal to the provided value. Eq *string `json:"$eq,omitempty"` // Gt The field must be greater than the provided value. Gt *string `json:"$gt,omitempty"` // Gte The field must be greater than or equal to the provided value. Gte *string `json:"$gte,omitempty"` // Ilike The field must match the provided value, ignoring case. Ilike *string `json:"$ilike,omitempty"` // In The field must be in the provided list of values. In *[]string `json:"$in,omitempty"` // Like The field must match the provided value. Like *string `json:"$like,omitempty"` // Lt The field must be less than the provided value. Lt *string `json:"$lt,omitempty"` // Lte The field must be less than or equal to the provided value. Lte *string `json:"$lte,omitempty"` // Ne The field must not be equal to the provided value. Ne *string `json:"$ne,omitempty"` // Nilike The field must not match the provided value, ignoring case. Nilike *string `json:"$nilike,omitempty"` // Nin The field must not be in the provided list of values. Nin *[]string `json:"$nin,omitempty"` // Nlike The field must not match the provided value. Nlike *string `json:"$nlike,omitempty"` // Or Provide a list of filters to be combined with a logical OR. Or *[]FilterString `json:"$or,omitempty"` } // FilterTime A filter for a time field. type FilterTime struct { // And Provide a list of filters to be combined with a logical AND. And *[]FilterTime `json:"$and,omitempty"` // Gt The field must be greater than the provided value. Gt *time.Time `json:"$gt,omitempty"` // Gte The field must be greater than or equal to the provided value. Gte *time.Time `json:"$gte,omitempty"` // Lt The field must be less than the provided value. Lt *time.Time `json:"$lt,omitempty"` // Lte The field must be less than or equal to the provided value. Lte *time.Time `json:"$lte,omitempty"` // Or Provide a list of filters to be combined with a logical OR. Or *[]FilterTime `json:"$or,omitempty"` } // FlatPrice Flat price. type FlatPrice struct { // Amount The amount of the flat price. Amount Numeric `json:"amount"` // Type The type of the price. Type FlatPriceType `json:"type"` } // FlatPriceType The type of the price. type FlatPriceType string // FlatPriceWithPaymentTerm Flat price with payment term. 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"` } // FlatPriceWithPaymentTermType The type of the price. type FlatPriceWithPaymentTermType string // ForbiddenProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type ForbiddenProblemResponse = UnexpectedProblemResponse // 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 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"` } // GrantOrderBy Order by options for grants. type GrantOrderBy string // GrantPaginatedResponse Paginated response 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"` } // GrantUsageRecord Usage Record type GrantUsageRecord struct { // GrantId The id of the grant GrantId string `json:"grantId"` // Usage The usage in the period Usage float64 `json:"usage"` } // GrantV2PaginatedResponse Paginated response type GrantV2PaginatedResponse struct { // Items The items in the current page. Items []EntitlementGrantV2 `json:"items"` // Page The page index. Page int `json:"page"` // PageSize The maximum number of items per page. PageSize int `json:"pageSize"` // TotalCount The total number of items. TotalCount int `json:"totalCount"` } // IDResource IDResource is a resouce with an ID. type IDResource struct { // Id A unique identifier for the resource. Id string `json:"id"` } // IngestEventsBody The body of the events request. // Either a single event or a batch of events. type IngestEventsBody struct { union json.RawMessage } // IngestEventsBody1 defines model for . type IngestEventsBody1 = []Event // IngestedEvent An ingested event with optional validation error. type IngestedEvent struct { // CustomerId The customer ID if the event is associated with a customer. CustomerId *string `json:"customerId,omitempty"` // Event The original event ingested. Event Event `json:"event"` // IngestedAt The date and time the event was ingested. IngestedAt time.Time `json:"ingestedAt"` // StoredAt The date and time the event was stored. StoredAt time.Time `json:"storedAt"` // ValidationError The validation error if the event failed validation. ValidationError *string `json:"validationError,omitempty"` } // IngestedEventCursorPaginatedResponse A response for cursor pagination. 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"` } // InstallMethod Install method of the application. type InstallMethod string // InternalServerErrorProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type InternalServerErrorProblemResponse = UnexpectedProblemResponse // Invoice Invoice represents an invoice in the system. type Invoice struct { // CollectionAt The time when the invoice will be/has been collected. CollectionAt *time.Time `json:"collectionAt,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // Currency Currency for all invoice line items. // // Multi currency invoices are not supported yet. Currency CurrencyCode `json:"currency"` // Customer Legal entity receiving the goods or services. Customer BillingInvoiceCustomerExtendedDetails `json:"customer"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // DraftUntil The time until the invoice is in draft status. // // On draft invoice creation it is calculated from the workflow settings. // // If manual approval is required, the draftUntil time is set. DraftUntil *time.Time `json:"draftUntil,omitempty"` // DueAt Due time of the fulfillment of the invoice (if available). DueAt *time.Time `json:"dueAt,omitempty"` // ExternalIds External IDs of the invoice in other apps such as Stripe. ExternalIds *InvoiceAppExternalIds `json:"externalIds,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // IssuedAt The time the invoice was issued. // // Depending on the status of the invoice this can mean multiple things: // - draft, gathering: The time the invoice will be issued based on the workflow settings. // - issued: The time the invoice was issued. IssuedAt *time.Time `json:"issuedAt,omitempty"` // Lines List of invoice lines representing each of the items sold to the customer. Lines *[]InvoiceLine `json:"lines,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Number Number specifies the human readable key used to reference this Invoice. // // The invoice number can change in the draft phases, as we are allocating temporary draft // invoice numbers, but it's final as soon as the invoice gets finalized (issued state). // // Please note that the number is (depending on the upstream settings) either unique for the // whole organization or unique for the customer, or in multi (stripe) account setups unique for the // account. Number InvoiceNumber `json:"number"` // Payment Information on when, how, and to whom the invoice should be paid. Payment *InvoicePaymentTerms `json:"payment,omitempty"` // Period The period the invoice covers. If the invoice has no line items, it's not set. Period *Period `json:"period,omitempty"` // Preceding Key information regarding previous invoices and potentially details as to why they were corrected. Preceding *[]InvoiceDocumentRef `json:"preceding,omitempty"` // QuantitySnapshotedAt The time when the quantity snapshots on the invoice lines were taken. QuantitySnapshotedAt *time.Time `json:"quantitySnapshotedAt,omitempty"` // SentToCustomerAt The time the invoice was sent to customer. SentToCustomerAt *time.Time `json:"sentToCustomerAt,omitempty"` // Status The status of the invoice. // // This field only conatins a simplified status, for more detailed information use the statusDetails field. Status InvoiceStatus `json:"status"` // StatusDetails The details of the current invoice status. StatusDetails InvoiceStatusDetails `json:"statusDetails"` // Supplier The taxable entity supplying the goods or services. Supplier BillingParty `json:"supplier"` // Totals Summary of all the invoice totals, including taxes (calculated). Totals InvoiceTotals `json:"totals"` // Type Type of the invoice. // // The type of invoice determines the purpose of the invoice and how it should be handled. // // Supported types: // - standard: A regular commercial invoice document between a supplier and customer. // - credit_note: Reflects a refund either partial or complete of the preceding document. A credit note effectively *extends* the previous document. Type InvoiceType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // ValidationIssues Validation issues reported by the invoice workflow. ValidationIssues *[]ValidationIssue `json:"validationIssues,omitempty"` // VoidedAt The time the invoice was voided. // // If the invoice was voided, this field will be set to the time the invoice was voided. VoidedAt *time.Time `json:"voidedAt,omitempty"` // Workflow The workflow associated with the invoice. // // It is always a snapshot of the workflow settings at the time of invoice creation. The // field is optional as it should be explicitly requested with expand options. Workflow InvoiceWorkflowSettings `json:"workflow"` } // InvoiceAppExternalIds InvoiceAppExternalIds contains the external IDs of the invoice in other apps such as Stripe. 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"` } // InvoiceAvailableActionDetails InvoiceAvailableActionInvoiceDetails represents the details of the invoice action for // non-gathering invoices. 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"` } // InvoiceAvailableActionInvoiceDetails InvoiceAvailableActionInvoiceDetails represents the details of the invoice action for // gathering invoices. type InvoiceAvailableActionInvoiceDetails = map[string]interface{} // InvoiceAvailableActions InvoiceAvailableActions represents the actions that can be performed on the invoice. type InvoiceAvailableActions struct { // Advance Advance the invoice to the next status. Advance *InvoiceAvailableActionDetails `json:"advance,omitempty"` // Approve Approve an invoice that requires manual approval. Approve *InvoiceAvailableActionDetails `json:"approve,omitempty"` // Delete Delete the invoice (only non-issued invoices can be deleted). Delete *InvoiceAvailableActionDetails `json:"delete,omitempty"` // Invoice Invoice a gathering invoice Invoice *InvoiceAvailableActionInvoiceDetails `json:"invoice,omitempty"` // Retry Retry an invoice issuing step that failed. Retry *InvoiceAvailableActionDetails `json:"retry,omitempty"` // SnapshotQuantities Snapshot quantities for usage based line items. SnapshotQuantities *InvoiceAvailableActionDetails `json:"snapshotQuantities,omitempty"` // Void Void an already issued invoice. Void *InvoiceAvailableActionDetails `json:"void,omitempty"` } // InvoiceDetailedLine InvoiceDetailedLine represents a line item that is sold to the customer as a manually added fee. type InvoiceDetailedLine struct { // Category Category of the flat fee. Category *InvoiceDetailedLineCostCategory `json:"category,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CreditAllocations Credit allocations applied to this line. // // Credits are deducted from the line total before taxes are applied. CreditAllocations *[]InvoiceLineCreditAllocation `json:"creditAllocations,omitempty"` // Currency The currency of this line. Currency CurrencyCode `json:"currency"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Discounts Discounts detailes applied to this line. // // New discounts can be added via the invoice's discounts API, to facilitate // discounts that are affecting multiple lines. Discounts *InvoiceLineDiscounts `json:"discounts,omitempty"` // ExternalIds External IDs of the invoice in other apps such as Stripe. ExternalIds *InvoiceLineAppExternalIds `json:"externalIds,omitempty"` // Id ID of the line. Id string `json:"id"` // Invoice The invoice this item belongs to. Invoice *InvoiceReference `json:"invoice,omitempty"` // InvoiceAt The time this line item should be invoiced. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set InvoiceAt time.Time `json:"invoiceAt"` // ManagedBy managedBy specifies if the line is manually added via the api or managed by OpenMeter. ManagedBy InvoiceLineManagedBy `json:"managedBy"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // PaymentTerm Payment term of the line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set PaymentTerm *PricePaymentTerm `json:"paymentTerm,omitempty"` // PerUnitAmount Price of the item being sold. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set PerUnitAmount *Numeric `json:"perUnitAmount,omitempty"` // Period Period of the line item applies to for revenue recognition pruposes. // // Billing always treats periods as start being inclusive and end being exclusive. Period Period `json:"period"` // Quantity Quantity of the item being sold. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Quantity *Numeric `json:"quantity,omitempty"` // RateCard The rate card that is used for this line. RateCard *InvoiceDetailedLineRateCard `json:"rateCard,omitempty"` // Status Status of the line. // // External calls always create valid lines, other line types are managed by the // billing engine of OpenMeter. Status InvoiceLineStatus `json:"status"` // Subscription Subscription are the references to the subscritpions that this line is related to. Subscription *InvoiceLineSubscriptionReference `json:"subscription,omitempty"` // TaxConfig Tax config specify the tax configuration for this line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set TaxConfig *TaxConfig `json:"taxConfig,omitempty"` // Taxes Taxes applied to the invoice totals. Taxes *[]InvoiceLineTaxItem `json:"taxes,omitempty"` // Totals Totals for this line. Totals InvoiceTotals `json:"totals"` // Type Type of the line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Type InvoiceDetailedLineType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // InvoiceDetailedLineType Type of the line. type InvoiceDetailedLineType string // InvoiceDetailedLineCostCategory InvoiceDetailedLineCostCategory determines if the flat fee is a regular fee due to use due to a // commitment. type InvoiceDetailedLineCostCategory string // InvoiceDetailedLineRateCard InvoiceDetailedLineRateCard represents the rate card (intent) for a flat fee line. type InvoiceDetailedLineRateCard struct { // Discounts The discounts that are applied to the line. Discounts *BillingDiscounts `json:"discounts,omitempty"` // Price The price of the rate card. // When null, the feature or service is free. Price *FlatPriceWithPaymentTerm `json:"price"` // Quantity Quantity of the item being sold. // // Default: 1 Quantity *Numeric `json:"quantity,omitempty"` // TaxConfig The tax config of the rate card. // When undefined, the tax config of the feature or the default tax config of the plan is used. TaxConfig *TaxConfig `json:"taxConfig,omitempty"` } // InvoiceDocumentRef CreditNoteOriginalInvoiceRef is used to reference the original invoice that a credit note is based on. type InvoiceDocumentRef = CreditNoteOriginalInvoiceRef // InvoiceDocumentRefType InvoiceDocumentRefType defines the type of document that is being referenced. type InvoiceDocumentRefType string // InvoiceExpand InvoiceExpand specifies the parts of the invoice to expand in the list output. type InvoiceExpand string // 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 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"` } // InvoiceLine InvoiceUsageBasedLine represents a line item that is sold to the customer based on usage. type InvoiceLine struct { // Children The lines detailing the item or service sold. Children *[]InvoiceDetailedLine `json:"children,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CreditAllocations Credit allocations applied to this line. // // Credits are deducted from the line total before taxes are applied. CreditAllocations *[]InvoiceLineCreditAllocation `json:"creditAllocations,omitempty"` // Currency The currency of this line. Currency CurrencyCode `json:"currency"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Discounts Discounts detailes applied to this line. // // New discounts can be added via the invoice's discounts API, to facilitate // discounts that are affecting multiple lines. Discounts *InvoiceLineDiscounts `json:"discounts,omitempty"` // ExternalIds External IDs of the invoice in other apps such as Stripe. ExternalIds *InvoiceLineAppExternalIds `json:"externalIds,omitempty"` // FeatureKey The feature that the usage is based on. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set FeatureKey *string `json:"featureKey,omitempty"` // Id ID of the line. Id string `json:"id"` // Invoice The invoice this item belongs to. Invoice *InvoiceReference `json:"invoice,omitempty"` // InvoiceAt The time this line item should be invoiced. InvoiceAt time.Time `json:"invoiceAt"` // ManagedBy managedBy specifies if the line is manually added via the api or managed by OpenMeter. ManagedBy InvoiceLineManagedBy `json:"managedBy"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // MeteredPreLinePeriodQuantity The metered quantity of the item used in before this line's period without any discounts applied. // // It is non-zero in case of progressive billing, when this shows how much of the usage was already billed. MeteredPreLinePeriodQuantity *Numeric `json:"meteredPreLinePeriodQuantity,omitempty"` // MeteredQuantity The quantity of the item that has been metered for the period before any discounts were applied. MeteredQuantity *Numeric `json:"meteredQuantity,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Period Period of the line item applies to for revenue recognition pruposes. // // Billing always treats periods as start being inclusive and end being exclusive. Period Period `json:"period"` // PreLinePeriodQuantity The quantity of the item used before this line's period. // // It is non-zero in case of progressive billing, when this shows how much of the usage was already billed. // // Any usage discounts applied previously are deducted from this quantity. PreLinePeriodQuantity *Numeric `json:"preLinePeriodQuantity,omitempty"` // Price Price of the usage-based item being sold. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Price *RateCardUsageBasedPrice `json:"price,omitempty"` // Quantity The quantity of the item being sold. // // Any usage discounts applied previously are deducted from this quantity. Quantity *Numeric `json:"quantity,omitempty"` // RateCard The rate card that is used for this line. // // The rate card captures the intent of the price and discounts for the usage-based item. RateCard *InvoiceUsageBasedRateCard `json:"rateCard,omitempty"` // Status Status of the line. // // External calls always create valid lines, other line types are managed by the // billing engine of OpenMeter. Status InvoiceLineStatus `json:"status"` // Subscription Subscription are the references to the subscritpions that this line is related to. Subscription *InvoiceLineSubscriptionReference `json:"subscription,omitempty"` // TaxConfig Tax config specify the tax configuration for this line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set TaxConfig *TaxConfig `json:"taxConfig,omitempty"` // Taxes Taxes applied to the invoice totals. Taxes *[]InvoiceLineTaxItem `json:"taxes,omitempty"` // Totals Totals for this line. Totals InvoiceTotals `json:"totals"` // Type Type of the line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Type InvoiceLineType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // InvoiceLineType Type of the line. type InvoiceLineType string // InvoiceLineAmountDiscount InvoiceLineAmountDiscount represents an amount deducted from the line, and will be applied before taxes. type InvoiceLineAmountDiscount struct { // Amount Fixed discount amount to apply (calculated if percent present). Amount Numeric `json:"amount"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Text description as to why the discount was applied. Description *string `json:"description,omitempty"` // ExternalIds External IDs of the invoice in other apps such as Stripe. ExternalIds *InvoiceLineAppExternalIds `json:"externalIds,omitempty"` // Id ID of the charge or discount. Id string `json:"id"` // Reason Reason code. Reason BillingDiscountReason `json:"reason"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // InvoiceLineAppExternalIds InvoiceLineAppExternalIds contains the external IDs of the invoice in other apps such as Stripe. 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"` } // InvoiceLineCreditAllocation InvoiceLineCreditAllocation represents a credit amount allocated to the line before taxes are applied. type InvoiceLineCreditAllocation struct { // Amount Amount allocated from credits. Amount Numeric `json:"amount"` // Description Text description as to why the credit was allocated. Description *string `json:"description,omitempty"` } // InvoiceLineDiscounts InvoiceLineDiscounts represents the discounts applied to the invoice line by type. type InvoiceLineDiscounts struct { // Amount Amount based discounts applied to the line. // // Amount based discounts are deduced from the total price of the line. Amount *[]InvoiceLineAmountDiscount `json:"amount,omitempty"` // Usage Usage based discounts applied to the line. // // Usage based discounts are deduced from the usage of the line before price calculations are applied. Usage *[]InvoiceLineUsageDiscount `json:"usage,omitempty"` } // InvoiceLineManagedBy InvoiceLineManagedBy specifies who manages the line. type InvoiceLineManagedBy string // InvoiceLineReplaceUpdate InvoiceLineReplaceUpdate represents the update model for an UBP invoice line. // // This type makes ID optional to allow for creating new lines as part of the update. type InvoiceLineReplaceUpdate struct { // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // FeatureKey The feature that the usage is based on. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set FeatureKey *string `json:"featureKey,omitempty"` // Id The ID of the line. Id *string `json:"id,omitempty"` // InvoiceAt The time this line item should be invoiced. InvoiceAt time.Time `json:"invoiceAt"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,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"` // Price Price of the usage-based item being sold. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Price *RateCardUsageBasedPrice `json:"price,omitempty"` // RateCard The rate card that is used for this line. // // The rate card captures the intent of the price and discounts for the usage-based item. RateCard *InvoiceUsageBasedRateCard `json:"rateCard,omitempty"` // TaxConfig Tax config specify the tax configuration for this line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set TaxConfig *TaxConfig `json:"taxConfig,omitempty"` } // InvoiceLineStatus Line status specifies the status of the line. type InvoiceLineStatus string // InvoiceLineSubscriptionReference InvoiceLineSubscriptionReference contains the references to the subscription that this line is related to. type InvoiceLineSubscriptionReference struct { // BillingPeriod The billing period of the subscription. In case the subscription item's billing period is different // from the subscription's billing period, this field will contain the billing period of the subscription itself. // // For example, in case of: // - A monthly billed subscription anchored to 2025-01-01 // - A subscription item billed daily // // An example line would have the period of 2025-01-02 to 2025-01-03 as the item is billed daily, but the subscription's billing period // will be 2025-01-01 to 2025-01-31. BillingPeriod Period `json:"billingPeriod"` // Item The item this line is related to. Item IDResource `json:"item"` // Phase The phase of the subscription. Phase IDResource `json:"phase"` // Subscription The subscription. Subscription IDResource `json:"subscription"` } // 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. type InvoiceLineTaxBehavior string // InvoiceLineTaxItem TaxConfig stores the configuration for a tax line relative to an invoice line. 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"` } // InvoiceLineUsageDiscount InvoiceLineUsageDiscount represents an usage-based discount applied to the line. // // The deduction is done before the pricing algorithm is applied. type InvoiceLineUsageDiscount struct { // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Text description as to why the discount was applied. Description *string `json:"description,omitempty"` // ExternalIds External IDs of the invoice in other apps such as Stripe. ExternalIds *InvoiceLineAppExternalIds `json:"externalIds,omitempty"` // Id ID of the charge or discount. Id string `json:"id"` // PreLinePeriodQuantity The usage discount already applied to the previous split lines. // // Only set if progressive billing is enabled and the line is a split line. PreLinePeriodQuantity *Numeric `json:"preLinePeriodQuantity,omitempty"` // Quantity The usage to apply. Quantity Numeric `json:"quantity"` // Reason Reason code. Reason BillingDiscountReason `json:"reason"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // 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 InvoiceNumber = string // InvoiceOrderBy InvoiceOrderBy specifies the ordering options for invoice listing. type InvoiceOrderBy string // InvoicePaginatedResponse Paginated response 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"` } // InvoicePaymentTerms Payment contains details as to how the invoice should be paid. type InvoicePaymentTerms struct { // Terms The terms of payment for the invoice. Terms *PaymentTerms `json:"terms,omitempty"` } // InvoicePendingLineCreate InvoicePendingLineCreate represents the create model for an invoice line that is sold to the customer based on usage. type InvoicePendingLineCreate struct { // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // FeatureKey The feature that the usage is based on. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set FeatureKey *string `json:"featureKey,omitempty"` // InvoiceAt The time this line item should be invoiced. InvoiceAt time.Time `json:"invoiceAt"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,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"` // Price Price of the usage-based item being sold. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Price *RateCardUsageBasedPrice `json:"price,omitempty"` // RateCard The rate card that is used for this line. // // The rate card captures the intent of the price and discounts for the usage-based item. RateCard *InvoiceUsageBasedRateCard `json:"rateCard,omitempty"` // TaxConfig Tax config specify the tax configuration for this line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set TaxConfig *TaxConfig `json:"taxConfig,omitempty"` } // InvoicePendingLineCreateInput InvoicePendingLineCreate represents the create model for a pending invoice line. type InvoicePendingLineCreateInput struct { // Currency The currency of the lines to be created. Currency CurrencyCode `json:"currency"` // Lines The lines to be created. Lines []InvoicePendingLineCreate `json:"lines"` } // InvoicePendingLineCreateResponse InvoicePendingLineCreateResponse represents the response from the create pending line endpoint. type InvoicePendingLineCreateResponse struct { // Invoice The invoice containing the created lines. Invoice Invoice `json:"invoice"` // IsInvoiceNew Whether the invoice was newly created. IsInvoiceNew bool `json:"isInvoiceNew"` // Lines The lines that were created. Lines []InvoiceLine `json:"lines"` } // InvoicePendingLinesActionFiltersInput InvoicePendingLinesActionFiltersInput specifies which lines to include in the invoice. 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"` } // 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 InvoicePendingLinesActionInput struct { // AsOf The time as of which the invoice is created. // // If not provided, the current time is used. AsOf *time.Time `json:"asOf,omitempty"` // CustomerId The customer ID for which to create the invoice. CustomerId string `json:"customerId"` // Filters Filters to apply when creating the invoice. Filters *InvoicePendingLinesActionFiltersInput `json:"filters,omitempty"` // ProgressiveBillingOverride Override the progressive billing setting of the customer. // // Can be used to disable/enable progressive billing in case the business logic // requires it, if not provided the billing profile's progressive billing setting will be used. ProgressiveBillingOverride *bool `json:"progressiveBillingOverride,omitempty"` } // InvoiceReference Reference to an invoice. type InvoiceReference struct { // Id The ID of the invoice. Id string `json:"id"` // Number The number of the invoice. Number *InvoiceNumber `json:"number,omitempty"` } // InvoiceReplaceUpdate InvoiceReplaceUpdate represents the update model for an invoice. type InvoiceReplaceUpdate struct { // Customer The customer the invoice is sent to. Customer BillingPartyReplaceUpdate `json:"customer"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Lines The lines included in the invoice. Lines []InvoiceLineReplaceUpdate `json:"lines"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // InvoiceSimulationInput InvoiceSimulationInput is the input for simulating an invoice. 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"` } // InvoiceSimulationLine InvoiceSimulationLine represents a usage-based line item that can be input to the simulation endpoint. type InvoiceSimulationLine struct { // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // FeatureKey The feature that the usage is based on. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set FeatureKey *string `json:"featureKey,omitempty"` // Id ID of the line. If not specified it will be auto-generated. // // When discounts are specified, this must be provided, so that the discount can reference it. Id *string `json:"id,omitempty"` // InvoiceAt The time this line item should be invoiced. InvoiceAt time.Time `json:"invoiceAt"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Period Period of the line item applies to for revenue recognition pruposes. // // Billing always treats periods as start being inclusive and end being exclusive. Period Period `json:"period"` // PreLinePeriodQuantity The quantity of the item used before this line's period, if the line is billed progressively. PreLinePeriodQuantity *Numeric `json:"preLinePeriodQuantity,omitempty"` // Price Price of the usage-based item being sold. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Price *RateCardUsageBasedPrice `json:"price,omitempty"` // Quantity The quantity of the item being sold. Quantity Numeric `json:"quantity"` // RateCard The rate card that is used for this line. // // The rate card captures the intent of the price and discounts for the usage-based item. RateCard *InvoiceUsageBasedRateCard `json:"rateCard,omitempty"` // TaxConfig Tax config specify the tax configuration for this line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set TaxConfig *TaxConfig `json:"taxConfig,omitempty"` } // InvoiceStatus InvoiceStatus describes the status of an invoice. type InvoiceStatus string // 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 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"` } // InvoiceTotals Totals contains the summaries of all calculations for the invoice. 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"` // CreditsTotal The amount of value of the line that are due to credits. CreditsTotal Numeric `json:"creditsTotal"` // 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"` } // InvoiceType InvoiceType represents the type of invoice. // // The type of invoice determines the purpose of the invoice and how it should be handled. type InvoiceType string // InvoiceUsageBasedRateCard InvoiceUsageBasedRateCard represents the rate card (intent) for an usage-based line. type InvoiceUsageBasedRateCard struct { // Discounts The discounts that are applied to the line. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Discounts *BillingDiscounts `json:"discounts,omitempty"` // FeatureKey The feature the customer is entitled to use. FeatureKey *string `json:"featureKey,omitempty"` // Price The price of the rate card. // When null, the feature or service is free. Price *RateCardUsageBasedPrice `json:"price"` // TaxConfig The tax config of the rate card. // When undefined, the tax config of the feature or the default tax config of the plan is used. TaxConfig *TaxConfig `json:"taxConfig,omitempty"` } // InvoiceWorkflowInvoicingSettingsReplaceUpdate InvoiceWorkflowInvoicingSettingsReplaceUpdate represents the update model for the invoicing settings of an invoice workflow. 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. // // Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is // deprecated and can no longer be added or changed: the organization default tax code is // used instead. Existing tax-code values may still be removed, and `behavior` remains // fully supported. DefaultTaxConfig *TaxConfig `json:"defaultTaxConfig,omitempty"` // DraftPeriod The period for the invoice to be kept in draft status for manual reviews. DraftPeriod *string `json:"draftPeriod,omitempty"` // DueAfter The period after which the invoice is due. // With some payment solutions it's only applicable for manual collection method. DueAfter *string `json:"dueAfter,omitempty"` // SubscriptionEndProrationMode Controls how subscription-ending shortened service periods are billed. SubscriptionEndProrationMode *BillingWorkflowInvoicingSubscriptionEndProrationMode `json:"subscriptionEndProrationMode,omitempty"` } // 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 InvoiceWorkflowReplaceUpdate struct { // Workflow The workflow used for this invoice. Workflow InvoiceWorkflowSettingsReplaceUpdate `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 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"` } // 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 InvoiceWorkflowSettingsReplaceUpdate struct { // Invoicing The invoicing settings for this workflow Invoicing InvoiceWorkflowInvoicingSettingsReplaceUpdate `json:"invoicing"` // Payment The payment settings for this workflow Payment BillingWorkflowPaymentSettings `json:"payment"` } // IssueAfterReset Issue after reset type IssueAfterReset struct { // Amount The initial grant amount Amount float64 `json:"amount"` // Priority The priority of the issue after reset Priority *uint8 `json:"priority,omitempty"` } // ListEntitlementsResult List entitlements result type ListEntitlementsResult struct { union json.RawMessage } // ListEntitlementsResult0 defines model for . type ListEntitlementsResult0 = []Entitlement // ListFeaturesResult List features result type ListFeaturesResult struct { union json.RawMessage } // ListFeaturesResult0 defines model for . type ListFeaturesResult0 = []Feature // MarketplaceInstallRequestPayload Marketplace install request payload. type MarketplaceInstallRequestPayload struct { // CreateBillingProfile If true, a billing profile will be created for the app. // The Stripe app will be also set as the default billing profile if the current default is a Sandbox app. CreateBillingProfile *bool `json:"createBillingProfile,omitempty"` // Name Name of the application to install. // // If name is not provided defaults to the marketplace listing's name. Name *string `json:"name,omitempty"` } // MarketplaceInstallResponse Marketplace install response. type MarketplaceInstallResponse struct { // App App. // One of: stripe App App `json:"app"` // DefaultForCapabilityTypes Default for capabilities DefaultForCapabilityTypes []AppCapabilityType `json:"defaultForCapabilityTypes"` } // 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 MarketplaceListing struct { // Capabilities The app's capabilities. Capabilities []AppCapability `json:"capabilities"` // Description The app's description. Description string `json:"description"` // InstallMethods Install methods. // // List of methods to install the app. InstallMethods []InstallMethod `json:"installMethods"` // Name The app's name. Name string `json:"name"` // Type The app's type Type AppType `json:"type"` } // MarketplaceListingPaginatedResponse Paginated response 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"` } // MeasureUsageFrom Measure usage from type MeasureUsageFrom struct { union json.RawMessage } // MeasureUsageFromPreset Start of measurement options type MeasureUsageFromPreset string // MeasureUsageFromTime [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC. type MeasureUsageFromTime = time.Time // Metadata Set of key-value pairs. // Metadata can be used to store additional information about a resource. type Metadata = map[string]string // Meter A meter is a configuration that defines how to match and aggregate events. type Meter struct { // Aggregation The aggregation type to use for the meter. Aggregation MeterAggregation `json:"aggregation"` // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // EventFrom The date since the meter should include events. // Useful to skip old events. // If not specified, all historical events are included. EventFrom *time.Time `json:"eventFrom,omitempty"` // EventType The event type to aggregate. EventType string `json:"eventType"` // GroupBy Named JSONPath expressions to extract the group by values from the event data. // // Keys must be unique and consist only alphanumeric and underscore characters. GroupBy *map[string]string `json:"groupBy,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // MeterAggregation The aggregation type to use for the meter. type MeterAggregation string // MeterCreate A meter create model. type MeterCreate struct { // Aggregation The aggregation type to use for the meter. Aggregation MeterAggregation `json:"aggregation"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // EventFrom The date since the meter should include events. // Useful to skip old events. // If not specified, all historical events are included. EventFrom *time.Time `json:"eventFrom,omitempty"` // EventType The event type to aggregate. EventType string `json:"eventType"` // GroupBy Named JSONPath expressions to extract the group by values from the event data. // // Keys must be unique and consist only alphanumeric and underscore characters. GroupBy *map[string]string `json:"groupBy,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // MeterOrderBy Order by options for meters. type MeterOrderBy string // MeterQueryRequest A meter query request. type MeterQueryRequest struct { // AdvancedMeterGroupByFilters Optional advanced meter group by filters. // You can use this to filter for values of the meter groupBy fields. AdvancedMeterGroupByFilters *map[string]FilterString `json:"advancedMeterGroupByFilters,omitempty"` // ClientId Client ID // Useful to track progress of a query. ClientId *string `json:"clientId,omitempty"` // FilterCustomerId Filtering by multiple customers. FilterCustomerId *[]string `json:"filterCustomerId,omitempty"` // FilterGroupBy Simple filter for group bys with exact match. FilterGroupBy *map[string][]string `json:"filterGroupBy,omitempty"` // From Start date-time in RFC 3339 format. // // Inclusive. From *time.Time `json:"from,omitempty"` // GroupBy If not specified a single aggregate will be returned for each subject and time window. // `subject` is a reserved group by value. GroupBy *[]string `json:"groupBy,omitempty"` // Subject Filtering by multiple subjects. Subject *[]string `json:"subject,omitempty"` // To End date-time in RFC 3339 format. // // Inclusive. To *time.Time `json:"to,omitempty"` // WindowSize If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group. WindowSize *WindowSize `json:"windowSize,omitempty"` // WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones). // If not specified, the UTC timezone will be used. WindowTimeZone *string `json:"windowTimeZone,omitempty"` } // MeterQueryResult The result of a meter query. 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"` } // MeterQueryRow A row in the result of a meter query. type MeterQueryRow struct { // CustomerId The customer ID the value is aggregated over. CustomerId *string `json:"customerId,omitempty"` // GroupBy The group by values the value is aggregated over. GroupBy map[string]*string `json:"groupBy"` // Subject The subject the value is aggregated over. // If not specified, the value is aggregated over all subjects. Subject *string `json:"subject"` // Value The aggregated value. Value float64 `json:"value"` // WindowEnd The end of the window the value is aggregated over. WindowEnd time.Time `json:"windowEnd"` // WindowStart The start of the window the value is aggregated over. WindowStart time.Time `json:"windowStart"` } // MeterUpdate A meter update model. // // Only the properties that can be updated are included. // For example, the slug and aggregation cannot be updated. type MeterUpdate struct { // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // GroupBy Named JSONPath expressions to extract the group by values from the event data. // // Keys must be unique and consist only alphanumeric and underscore characters. GroupBy *map[string]string `json:"groupBy,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. // Defaults to the slug if not specified. Name *string `json:"name,omitempty"` } // NotFoundProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type NotFoundProblemResponse = UnexpectedProblemResponse // NotificationChannel Notification channel with webhook type. type NotificationChannel = NotificationChannelWebhook // NotificationChannelCreateRequest Request with input parameters for creating new notification channel with webhook type. type NotificationChannelCreateRequest = NotificationChannelWebhookCreateRequest // NotificationChannelMeta Metadata only fields of a notification channel. type NotificationChannelMeta struct { // Id Identifies the notification channel. Id string `json:"id"` // Type Notification channel type. Type NotificationChannelType `json:"type"` } // NotificationChannelOrderBy Order by options for notification channels. type NotificationChannelOrderBy string // NotificationChannelPaginatedResponse Paginated response 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"` } // NotificationChannelType Type of the notification channel. type NotificationChannelType string // NotificationChannelWebhook Notification channel with webhook type. type NotificationChannelWebhook struct { // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CustomHeaders Custom HTTP headers sent as part of the webhook request. CustomHeaders *map[string]string `json:"customHeaders,omitempty"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Disabled Whether the channel is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Id Identifies the notification channel. Id string `json:"id"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,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 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"` } // NotificationChannelWebhookType Notification channel type. type NotificationChannelWebhookType string // NotificationChannelWebhookCreateRequest Request with input parameters for creating new notification channel with webhook type. type NotificationChannelWebhookCreateRequest struct { // CustomHeaders Custom HTTP headers sent as part of the webhook request. CustomHeaders *map[string]string `json:"customHeaders,omitempty"` // Disabled Whether the channel is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,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"` } // NotificationChannelWebhookCreateRequestType Notification channel type. type NotificationChannelWebhookCreateRequestType string // NotificationEvent Type of the notification event. 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"` } // NotificationEventBalanceThresholdPayload Payload for notification event with `entitlements.balance.threshold` type. 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"` } // NotificationEventBalanceThresholdPayloadType Type of the notification event. type NotificationEventBalanceThresholdPayloadType string // NotificationEventBalanceThresholdPayloadData Data of the payload for notification event with `entitlements.balance.threshold` type. type NotificationEventBalanceThresholdPayloadData struct { Customer *Customer `json:"customer,omitempty"` Entitlement EntitlementMetered `json:"entitlement"` Feature Feature `json:"feature"` Subject Subject `json:"subject"` Threshold NotificationRuleBalanceThresholdValue `json:"threshold"` Value EntitlementValue `json:"value"` } // NotificationEventDeliveryAttempt The delivery attempt of the notification event. type NotificationEventDeliveryAttempt struct { // Response Response returned by the notification event recipient. Response EventDeliveryAttemptResponse `json:"response"` // State State of teh delivery attempt. State NotificationEventDeliveryStatusState `json:"state"` // Timestamp Timestamp of the delivery attempt. Timestamp time.Time `json:"timestamp"` } // NotificationEventDeliveryStatus The delivery status of the notification event. type NotificationEventDeliveryStatus struct { // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // Attempts List of delivery attempts. Attempts []NotificationEventDeliveryAttempt `json:"attempts"` // Channel Notification channel the delivery status associated with. Channel NotificationChannelMeta `json:"channel"` // NextAttempt Timestamp of the next delivery attempt. If null it means there will be no more delivery attempts. NextAttempt *time.Time `json:"nextAttempt,omitempty"` // Reason The reason of the last deliverry state update. Reason string `json:"reason"` // State Delivery state of the notification event to the channel. State NotificationEventDeliveryStatusState `json:"state"` // UpdatedAt Timestamp of when the status was last updated in RFC 3339 format. UpdatedAt time.Time `json:"updatedAt"` } // NotificationEventDeliveryStatusState The delivery state of the notification event to the channel. type NotificationEventDeliveryStatusState string // NotificationEventEntitlementValuePayloadBase Base data for any payload with entitlement entitlement value. type NotificationEventEntitlementValuePayloadBase struct { Customer *Customer `json:"customer,omitempty"` Entitlement EntitlementMetered `json:"entitlement"` Feature Feature `json:"feature"` Subject Subject `json:"subject"` Value EntitlementValue `json:"value"` } // NotificationEventInvoiceCreatedPayload Payload for notification event with `invoice.created` type. type NotificationEventInvoiceCreatedPayload struct { // Data The data of the payload. Data Invoice `json:"data"` // Id A unique identifier for the notification event the payload belongs to. Id string `json:"id"` // Timestamp Timestamp when the notification event was created in RFC 3339 format. Timestamp time.Time `json:"timestamp"` // Type Type of the notification event. Type NotificationEventInvoiceCreatedPayloadType `json:"type"` } // NotificationEventInvoiceCreatedPayloadType Type of the notification event. type NotificationEventInvoiceCreatedPayloadType string // NotificationEventInvoiceUpdatedPayload Payload for notification event with `invoice.updated` type. type NotificationEventInvoiceUpdatedPayload struct { // Data The data of the payload. Data Invoice `json:"data"` // Id A unique identifier for the notification event the payload belongs to. Id string `json:"id"` // Timestamp Timestamp when the notification event was created in RFC 3339 format. Timestamp time.Time `json:"timestamp"` // Type Type of the notification event. Type NotificationEventInvoiceUpdatedPayloadType `json:"type"` } // NotificationEventInvoiceUpdatedPayloadType Type of the notification event. type NotificationEventInvoiceUpdatedPayloadType string // NotificationEventOrderBy Order by options for notification channels. type NotificationEventOrderBy string // NotificationEventPaginatedResponse Paginated response 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"` } // NotificationEventPayload The delivery status of the notification event. type NotificationEventPayload struct { union json.RawMessage } // NotificationEventResendRequest A notification event that will be re-sent. type NotificationEventResendRequest struct { // Channels Notification channels to which the event should be re-sent. Channels *[]string `json:"channels,omitempty"` } // NotificationEventResetPayload Payload for notification event with `entitlements.reset` type. type NotificationEventResetPayload struct { // Data The data of the payload. Data NotificationEventEntitlementValuePayloadBase `json:"data"` // Id A unique identifier for the notification event the payload belongs to. Id string `json:"id"` // Timestamp Timestamp when the notification event was created in RFC 3339 format. Timestamp time.Time `json:"timestamp"` // Type Type of the notification event. Type NotificationEventResetPayloadType `json:"type"` } // NotificationEventResetPayloadType Type of the notification event. type NotificationEventResetPayloadType string // NotificationEventType Type of the notification event. type NotificationEventType string // NotificationRule Notification Rule. type NotificationRule struct { union json.RawMessage } // NotificationRuleBalanceThreshold Notification rule with entitlements.balance.threshold type. type NotificationRuleBalanceThreshold struct { // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // Channels List of notification channels the rule applies to. Channels []NotificationChannelMeta `json:"channels"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Disabled Whether the rule is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Features Optional field containing list of features the rule applies to. Features *[]FeatureMeta `json:"features,omitempty"` // Id Identifies the notification rule. Id string `json:"id"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,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 NotificationRuleBalanceThresholdType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // NotificationRuleBalanceThresholdType Notification rule type. type NotificationRuleBalanceThresholdType string // NotificationRuleBalanceThresholdCreateRequest Request with input parameters for creating new notification rule with entitlements.balance.threshold type. type NotificationRuleBalanceThresholdCreateRequest struct { // Channels List of notification channels the rule is applied to. Channels []string `json:"channels"` // Disabled Whether the rule is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Features Optional field for defining the scope of notification by feature. It may contain features by id or key. Features *[]string `json:"features,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,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"` } // NotificationRuleBalanceThresholdCreateRequestType Notification rule type. type NotificationRuleBalanceThresholdCreateRequestType string // NotificationRuleBalanceThresholdValue Threshold value with multiple supported types. type NotificationRuleBalanceThresholdValue struct { // Type Type of the threshold. Type NotificationRuleBalanceThresholdValueType `json:"type"` // Value Value of the threshold. Value float64 `json:"value"` } // NotificationRuleBalanceThresholdValueType Type of the rule in the balance threshold specification: // * `balance_value`: threshold defined by the remaining balance value based on usage and the total of grants in the current usage period // * `usage_percentage`: threshold defined by the usage percentage compared to the total of grants in the current usage period // * `usage_value`: threshold defined by the usage value in the current usage period // * `NUMBER` (**deprecated**): see `usage_value` // * `PERCENT` (**deprecated**): see `usage_percentage` type NotificationRuleBalanceThresholdValueType string // NotificationRuleCreateRequest Union type for requests creating new notification rule with certain type. type NotificationRuleCreateRequest struct { union json.RawMessage } // NotificationRuleEntitlementReset Notification rule with entitlements.reset type. type NotificationRuleEntitlementReset struct { // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // Channels List of notification channels the rule applies to. Channels []NotificationChannelMeta `json:"channels"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Disabled Whether the rule is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Features Optional field containing list of features the rule applies to. Features *[]FeatureMeta `json:"features,omitempty"` // Id Identifies the notification rule. Id string `json:"id"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name The user friendly name of the notification rule. Name string `json:"name"` // Type Notification rule type. Type NotificationRuleEntitlementResetType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // NotificationRuleEntitlementResetType Notification rule type. type NotificationRuleEntitlementResetType string // NotificationRuleEntitlementResetCreateRequest Request with input parameters for creating new notification rule with entitlements.reset type. type NotificationRuleEntitlementResetCreateRequest struct { // Channels List of notification channels the rule is applied to. Channels []string `json:"channels"` // Disabled Whether the rule is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Features Optional field for defining the scope of notification by feature. It may contain features by id or key. Features *[]string `json:"features,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name The user friendly name of the notification rule. Name string `json:"name"` // Type Notification rule type. Type NotificationRuleEntitlementResetCreateRequestType `json:"type"` } // NotificationRuleEntitlementResetCreateRequestType Notification rule type. type NotificationRuleEntitlementResetCreateRequestType string // NotificationRuleInvoiceCreated Notification rule with invoice.created type. type NotificationRuleInvoiceCreated struct { // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // Channels List of notification channels the rule applies to. Channels []NotificationChannelMeta `json:"channels"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Disabled Whether the rule is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Id Identifies the notification rule. Id string `json:"id"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name The user friendly name of the notification rule. Name string `json:"name"` // Type Notification rule type. Type NotificationRuleInvoiceCreatedType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // NotificationRuleInvoiceCreatedType Notification rule type. type NotificationRuleInvoiceCreatedType string // NotificationRuleInvoiceCreatedCreateRequest Request with input parameters for creating new notification rule with invoice.created type. type NotificationRuleInvoiceCreatedCreateRequest struct { // Channels List of notification channels the rule is applied to. Channels []string `json:"channels"` // Disabled Whether the rule is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name The user friendly name of the notification rule. Name string `json:"name"` // Type Notification rule type. Type NotificationRuleInvoiceCreatedCreateRequestType `json:"type"` } // NotificationRuleInvoiceCreatedCreateRequestType Notification rule type. type NotificationRuleInvoiceCreatedCreateRequestType string // NotificationRuleInvoiceUpdated Notification rule with invoice.updated type. type NotificationRuleInvoiceUpdated struct { // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // Channels List of notification channels the rule applies to. Channels []NotificationChannelMeta `json:"channels"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Disabled Whether the rule is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Id Identifies the notification rule. Id string `json:"id"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name The user friendly name of the notification rule. Name string `json:"name"` // Type Notification rule type. Type NotificationRuleInvoiceUpdatedType `json:"type"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // NotificationRuleInvoiceUpdatedType Notification rule type. type NotificationRuleInvoiceUpdatedType string // NotificationRuleInvoiceUpdatedCreateRequest Request with input parameters for creating new notification rule with invoice.updated type. type NotificationRuleInvoiceUpdatedCreateRequest struct { // Channels List of notification channels the rule is applied to. Channels []string `json:"channels"` // Disabled Whether the rule is disabled or not. Disabled *bool `json:"disabled,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name The user friendly name of the notification rule. Name string `json:"name"` // Type Notification rule type. Type NotificationRuleInvoiceUpdatedCreateRequestType `json:"type"` } // NotificationRuleInvoiceUpdatedCreateRequestType Notification rule type. type NotificationRuleInvoiceUpdatedCreateRequestType string // NotificationRuleOrderBy Order by options for notification channels. type NotificationRuleOrderBy string // NotificationRulePaginatedResponse Paginated response 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"` } // Numeric Numeric represents an arbitrary precision number. type Numeric = string // OAuth2AuthorizationCodeGrantErrorType OAuth2 authorization code grant error types. type OAuth2AuthorizationCodeGrantErrorType string // PackagePriceWithCommitments Package price with spend commitments. 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"` } // PackagePriceWithCommitmentsType The type of the price. type PackagePriceWithCommitmentsType string // PaymentDueDate PaymentDueDate contains an amount that should be paid by the given date. 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"` } // PaymentTermDueDate PaymentTermDueDate defines the terms for payment on a specific date. 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"` } // PaymentTermDueDateType Type of terms to be applied. type PaymentTermDueDateType string // PaymentTermInstant PaymentTermInstant defines the terms for payment on receipt of invoice. 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"` } // PaymentTermInstantType Type of terms to be applied. type PaymentTermInstantType string // PaymentTerms PaymentTerms defines the terms for payment. type PaymentTerms struct { union json.RawMessage } // Percentage Numeric representation of a percentage // // 50% is represented as 50 type Percentage = models.Percentage // Period A period with a start and end time. type Period struct { // From Period start time. From time.Time `json:"from"` // To Period end time. To time.Time `json:"to"` } // Plan Plans provide a template for subscriptions. type Plan struct { // Alignment Alignment configuration for the plan. Alignment *Alignment `json:"alignment,omitempty"` // BillingCadence The default billing cadence for subscriptions using this plan. // Defines how often customers are billed using ISO8601 duration format. // Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually). BillingCadence string `json:"billingCadence"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // Currency The currency code of the plan. Currency CurrencyCode `json:"currency"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // EffectiveFrom The date and time when the plan becomes effective. When not specified, the plan is a draft. EffectiveFrom *time.Time `json:"effectiveFrom,omitempty"` // EffectiveTo The date and time when the plan is no longer effective. When not specified, the plan is effective indefinitely. EffectiveTo *time.Time `json:"effectiveTo,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // Key A semi-unique identifier for the resource. Key string `json:"key"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Phases The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses. // A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices. Phases []PlanPhase `json:"phases"` // ProRatingConfig Default pro-rating configuration for subscriptions using this plan. ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"` // SettlementMode The settlement mode of the plan. // It determines how the billing system generates invoices and credits for the subscriptions using this plan. // - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. // - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription. // This is the default and most common settlement mode. SettlementMode *BillingSettlementMode `json:"settlementMode,omitempty"` // Status The status of the plan. // Computed based on the effective start and end dates: // - draft = no effectiveFrom // - active = effectiveFrom <= now < effectiveTo // - archived / inactive = effectiveTo <= now // - scheduled = now < effectiveFrom < effectiveTo Status PlanStatus `json:"status"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // ValidationErrors List of validation errors. ValidationErrors *[]ValidationError `json:"validationErrors"` // Version Version of the plan. Incremented when the plan is updated. Version int `json:"version"` } // PlanAddon The PlanAddon describes the association between a plan and add-on. type PlanAddon struct { // Addon Add-on object. Addon Addon `json:"addon"` // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // FromPlanPhase The key of the plan phase from the add-on becomes available for purchase. FromPlanPhase string `json:"fromPlanPhase"` // MaxQuantity The maximum number of times the add-on can be purchased for the plan. // It is not applicable for add-ons with single instance type. MaxQuantity *int `json:"maxQuantity,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` // ValidationErrors List of validation errors. ValidationErrors *[]ValidationError `json:"validationErrors"` } // PlanAddonCreate A plan add-on assignment create request. type PlanAddonCreate struct { // AddonId The add-on unique identifier in ULID format. AddonId string `json:"addonId"` // FromPlanPhase The key of the plan phase from the add-on becomes available for purchase. FromPlanPhase string `json:"fromPlanPhase"` // MaxQuantity The maximum number of times the add-on can be purchased for the plan. // It is not applicable for add-ons with single instance type. MaxQuantity *int `json:"maxQuantity,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` } // PlanAddonOrderBy Order by options for plan add-on assignments. type PlanAddonOrderBy string // PlanAddonPaginatedResponse Paginated response type PlanAddonPaginatedResponse struct { // Items The items in the current page. Items []PlanAddon `json:"items"` // Page The page index. Page int `json:"page"` // PageSize The maximum number of items per page. PageSize int `json:"pageSize"` // TotalCount The total number of items. TotalCount int `json:"totalCount"` } // PlanAddonReplaceUpdate Resource update operation model. type PlanAddonReplaceUpdate struct { // FromPlanPhase The key of the plan phase from the add-on becomes available for purchase. FromPlanPhase string `json:"fromPlanPhase"` // MaxQuantity The maximum number of times the add-on can be purchased for the plan. // It is not applicable for add-ons with single instance type. MaxQuantity *int `json:"maxQuantity,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` } // PlanCreate Resource create operation model. type PlanCreate struct { // Alignment Alignment configuration for the plan. Alignment *Alignment `json:"alignment,omitempty"` // BillingCadence The default billing cadence for subscriptions using this plan. // Defines how often customers are billed using ISO8601 duration format. // Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually). BillingCadence string `json:"billingCadence"` // Currency The currency code of the plan. Currency CurrencyCode `json:"currency"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Key A semi-unique identifier for the resource. Key string `json:"key"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Phases The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses. // A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices. Phases []PlanPhase `json:"phases"` // ProRatingConfig Default pro-rating configuration for subscriptions using this plan. ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"` // SettlementMode The settlement mode of the plan. // It determines how the billing system generates invoices and credits for the subscriptions using this plan. // - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. // - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription. // This is the default and most common settlement mode. SettlementMode *BillingSettlementMode `json:"settlementMode,omitempty"` } // PlanOrderBy Order by options for plans. type PlanOrderBy string // PlanPaginatedResponse Paginated response 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"` } // PlanPhase The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses. 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,omitempty"` // 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"` } // PlanReference References an exact plan. 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"` } // PlanReferenceInput References an exact plan defaulting to the current active version. type PlanReferenceInput struct { // Key The plan key. Key string `json:"key"` // Version The plan version. Version *int `json:"version,omitempty"` } // PlanReplaceUpdate Resource update operation model. type PlanReplaceUpdate struct { // Alignment Alignment configuration for the plan. Alignment *Alignment `json:"alignment,omitempty"` // BillingCadence The default billing cadence for subscriptions using this plan. // Defines how often customers are billed using ISO8601 duration format. // Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually). BillingCadence string `json:"billingCadence"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Phases The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses. // A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices. Phases []PlanPhase `json:"phases"` // ProRatingConfig Default pro-rating configuration for subscriptions using this plan. ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"` // SettlementMode The settlement mode of the plan. // It determines how the billing system generates invoices and credits for the subscriptions using this plan. // - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. // - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription. // This is the default and most common settlement mode. SettlementMode *BillingSettlementMode `json:"settlementMode,omitempty"` } // PlanStatus The status of a plan. type PlanStatus string // PlanSubscriptionChange Change subscription based on plan. type PlanSubscriptionChange struct { // Alignment What alignment settings the subscription should have. Alignment *Alignment `json:"alignment,omitempty"` // BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the previous subscription billing anchor will be used. BillingAnchor *time.Time `json:"billingAnchor,omitempty"` // Description Description for the Subscription. Description *string `json:"description,omitempty"` // Metadata Arbitrary metadata associated with the subscription. Metadata *Metadata `json:"metadata,omitempty"` // Name The name of the Subscription. If not provided the plan name is used. Name *string `json:"name,omitempty"` // Plan The plan reference to change to. Plan PlanReferenceInput `json:"plan"` // SettlementMode The settlement mode of the subscription. SettlementMode *BillingSettlementMode `json:"settlementMode,omitempty"` // StartingPhase The key of the phase to start the subscription in. // If not provided, the subscription will start in the first phase of the plan. StartingPhase *string `json:"startingPhase,omitempty"` // 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"` } // PlanSubscriptionCreate Create subscription based on plan. type PlanSubscriptionCreate struct { // Alignment What alignment settings the subscription should have. Alignment *Alignment `json:"alignment,omitempty"` // BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the subscription start time will be used. BillingAnchor *time.Time `json:"billingAnchor,omitempty"` // CustomerId The ID of the customer. Provide either the key or ID. Has presedence over the key. CustomerId *string `json:"customerId,omitempty"` // CustomerKey The key of the customer. Provide either the key or ID. CustomerKey *string `json:"customerKey,omitempty"` // Description Description for the Subscription. Description *string `json:"description,omitempty"` // Metadata Arbitrary metadata associated with the subscription. Metadata *Metadata `json:"metadata,omitempty"` // Name The name of the Subscription. If not provided the plan name is used. Name *string `json:"name,omitempty"` // Plan The plan reference to change to. Plan PlanReferenceInput `json:"plan"` // SettlementMode The settlement mode of the subscription. SettlementMode *BillingSettlementMode `json:"settlementMode,omitempty"` // StartingPhase The key of the phase to start the subscription in. // If not provided, the subscription will start in the first phase of the plan. StartingPhase *string `json:"startingPhase,omitempty"` // Timing Timing configuration for the change, when the change should take effect. // The default is immediate. Timing *SubscriptionTiming `json:"timing,omitempty"` } // PortalToken A consumer portal token. // // Validator doesn't obey required for readOnly properties // See: https://github.com/stoplightio/spectral/issues/1274 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"` } // PreconditionFailedProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type PreconditionFailedProblemResponse = UnexpectedProblemResponse // PricePaymentTerm The payment term of a flat price. // One of: in_advance or in_arrears. type PricePaymentTerm string // PriceTier A price tier. // At least one price component is required in each tier. 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"` } // ProRatingConfig Configuration for pro-rating behavior. type ProRatingConfig struct { // Enabled Whether pro-rating is enabled for this plan. Enabled bool `json:"enabled"` // Mode How to handle pro-rating for billing period changes. Mode ProRatingMode `json:"mode"` } // ProRatingMode Pro-rating mode options for handling billing period changes. type ProRatingMode string // Progress Progress describes a progress of a task. 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"` } // RateCard A rate card defines the pricing and entitlement of a feature or service. type RateCard struct { union json.RawMessage } // RateCardBooleanEntitlement Entitlement template of a boolean entitlement. type RateCardBooleanEntitlement struct { // Metadata Additional metadata for the feature. Metadata *Metadata `json:"metadata,omitempty"` Type RateCardBooleanEntitlementType `json:"type"` } // RateCardBooleanEntitlementType defines model for RateCardBooleanEntitlement.Type. type RateCardBooleanEntitlementType string // 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. type RateCardEntitlement struct { union json.RawMessage } // RateCardFlatFee A flat fee rate card defines a one-time purchase or a recurring fee. type RateCardFlatFee struct { // BillingCadence The billing cadence of the rate card. // When null it means it is a one time fee. BillingCadence *string `json:"billingCadence"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Discounts The discount of the rate card. For flat fee rate cards only percentage discounts are supported. // Only available when price is set. Discounts *Discounts `json:"discounts,omitempty"` // EntitlementTemplate The entitlement of the rate card. // Only available when featureKey is set. EntitlementTemplate *RateCardEntitlement `json:"entitlementTemplate,omitempty"` // FeatureKey The feature the customer is entitled to use. FeatureKey *string `json:"featureKey,omitempty"` // Key A semi-unique identifier for the resource. Key string `json:"key"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // RateCardFlatFeeType The type of the RateCard. type RateCardFlatFeeType string // RateCardMeteredEntitlement The entitlement template with a metered entitlement. 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"` } // RateCardMeteredEntitlementType defines model for RateCardMeteredEntitlement.Type. type RateCardMeteredEntitlementType string // RateCardStaticEntitlement Entitlement template of a static entitlement. 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"` } // RateCardStaticEntitlementType defines model for RateCardStaticEntitlement.Type. type RateCardStaticEntitlementType string // RateCardUsageBased A usage-based rate card defines a price based on usage. type RateCardUsageBased struct { // BillingCadence The billing cadence of the rate card. BillingCadence string `json:"billingCadence"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Discounts The discounts of the rate card. // // Flat fee rate cards only support percentage discounts. Discounts *Discounts `json:"discounts,omitempty"` // EntitlementTemplate The entitlement of the rate card. // Only available when featureKey is set. EntitlementTemplate *RateCardEntitlement `json:"entitlementTemplate,omitempty"` // FeatureKey The feature the customer is entitled to use. FeatureKey *string `json:"featureKey,omitempty"` // Key A semi-unique identifier for the resource. Key string `json:"key"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // RateCardUsageBasedType The type of the RateCard. type RateCardUsageBasedType string // RateCardUsageBasedPrice The price of the usage based rate card. type RateCardUsageBasedPrice struct { union json.RawMessage } // RecurringPeriod Recurring period with an interval and an anchor. 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"` } // RecurringPeriodCreateInput Recurring period with an interval and an anchor. 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"` } // RecurringPeriodInterval Period duration for the recurrence type RecurringPeriodInterval struct { union json.RawMessage } // RecurringPeriodInterval0 defines model for . type RecurringPeriodInterval0 = string // RecurringPeriodIntervalEnum The unit of time for the interval. // One of: `day`, `week`, `month`, or `year`. type RecurringPeriodIntervalEnum string // RecurringPeriodV2 Recurring period with an interval and an anchor. type RecurringPeriodV2 struct { // Anchor A date-time anchor to base the recurring period on. Anchor time.Time `json:"anchor"` // Interval The unit of time for the interval. Heuristically maps ISO duraitons to enum values or returns the ISO duration. Interval RecurringPeriodInterval `json:"interval"` } // RemovePhaseShifting The direction of the phase shift when a phase is removed. type RemovePhaseShifting string // ResetEntitlementUsageInput Reset parameters 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"` } // 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 SandboxApp struct { // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // Listing The marketplace listing that this installed app is based on. Listing MarketplaceListing `json:"listing"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // SandboxAppType The app's type is Sandbox. type SandboxAppType string // SandboxAppReplaceUpdate Resource update operation model. type SandboxAppReplaceUpdate struct { // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Type The app's type is Sandbox. Type SandboxAppReplaceUpdateType `json:"type"` } // SandboxAppReplaceUpdateType The app's type is Sandbox. type SandboxAppReplaceUpdateType string // SandboxCustomerAppData Sandbox Customer App Data. 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"` } // SandboxCustomerAppDataType The app name. type SandboxCustomerAppDataType string // ServiceUnavailableProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type ServiceUnavailableProblemResponse = UnexpectedProblemResponse // SortOrder The order direction. type SortOrder string // StripeAPIKeyInput The Stripe API key input. // Used to authenticate with the Stripe API. type StripeAPIKeyInput struct { SecretAPIKey string `json:"secretAPIKey"` } // StripeApp A installed Stripe app object. type StripeApp struct { // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // Listing The marketplace listing that this installed app is based on. Listing MarketplaceListing `json:"listing"` // Livemode Livemode, true if the app is in production mode. Livemode bool `json:"livemode"` // MaskedAPIKey The masked API key. // Only shows the first 8 and last 3 characters. MaskedAPIKey string `json:"maskedAPIKey"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // StripeAppType The app's type is Stripe. type StripeAppType string // StripeAppReplaceUpdate Resource update operation model. type StripeAppReplaceUpdate struct { // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // SecretAPIKey The Stripe API key. SecretAPIKey *string `json:"secretAPIKey,omitempty"` // Type The app's type is Stripe. Type StripeAppReplaceUpdateType `json:"type"` } // StripeAppReplaceUpdateType The app's type is Stripe. type StripeAppReplaceUpdateType string // StripeCheckoutSessionMode Stripe CheckoutSession.mode type StripeCheckoutSessionMode string // StripeCustomerAppData Stripe Customer App Data. 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"` } // StripeCustomerAppDataType The app name. type StripeCustomerAppDataType string // StripeCustomerAppDataBase Stripe Customer App Data Base. type StripeCustomerAppDataBase struct { // StripeCustomerId The Stripe customer ID. StripeCustomerId string `json:"stripeCustomerId"` // StripeDefaultPaymentMethodId The Stripe default payment method ID. StripeDefaultPaymentMethodId *string `json:"stripeDefaultPaymentMethodId,omitempty"` } // StripeCustomerAppDataCreateOrUpdateItem Stripe Customer App Data. type StripeCustomerAppDataCreateOrUpdateItem struct { // Id The app ID. // If not provided, it will use the global default for the app type. Id *string `json:"id,omitempty"` // StripeCustomerId The Stripe customer ID. StripeCustomerId string `json:"stripeCustomerId"` // StripeDefaultPaymentMethodId The Stripe default payment method ID. StripeDefaultPaymentMethodId *string `json:"stripeDefaultPaymentMethodId,omitempty"` // Type The app name. Type StripeCustomerAppDataCreateOrUpdateItemType `json:"type"` } // StripeCustomerAppDataCreateOrUpdateItemType The app name. type StripeCustomerAppDataCreateOrUpdateItemType string // StripeCustomerPortalSession Stripe customer portal session. // // See: https://docs.stripe.com/api/customer_portal/sessions/object type StripeCustomerPortalSession struct { // ConfigurationId Configuration used to customize the customer portal. // // See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-configuration ConfigurationId string `json:"configurationId"` // CreatedAt Created at. // // See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-created CreatedAt time.Time `json:"createdAt"` // Id The ID of the customer portal session. // // See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-id Id string `json:"id"` // Livemode Livemode. // // See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-livemode Livemode bool `json:"livemode"` // Locale Status. // /** // The IETF language tag of the locale customer portal is displayed in. // // See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-locale Locale string `json:"locale"` // ReturnUrl Return URL. // // See: https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-return_url ReturnUrl string `json:"returnUrl"` // StripeCustomerId The ID of the stripe customer. StripeCustomerId string `json:"stripeCustomerId"` // Url /** // The ID of the customer.The URL to redirect the customer to after they have completed // their requested actions. Url string `json:"url"` } // StripeTaxConfig The tax config for Stripe. type StripeTaxConfig struct { // Code Product tax code. // // See: https://docs.stripe.com/tax/tax-codes Code string `json:"code"` } // StripeWebhookEvent Stripe webhook event. 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"` } // StripeWebhookResponse Stripe webhook response. 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"` } // Subject A subject is a unique identifier for a usage attribution by its key. // Subjects only exist in the concept of metering. // Subjects are optional to create and work as an enrichment for the subject key like displayName, metadata, etc. // Subjects are useful when you are reporting usage events with your own database ID but want to enrich the subject with a human-readable name or metadata. // For most use cases, a subject is equivalent to a customer. // // ⚠️ __Deprecated__: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead. type Subject struct { // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // CurrentPeriodEnd The end of the current period for the subject. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set CurrentPeriodEnd *time.Time `json:"currentPeriodEnd,omitempty"` // CurrentPeriodStart The start of the current period for the subject. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set CurrentPeriodStart *time.Time `json:"currentPeriodStart,omitempty"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // DisplayName A human-readable display name for the subject. DisplayName *string `json:"displayName,omitempty"` // Id A unique identifier for the subject. Id string `json:"id"` // Key A unique, human-readable identifier for the subject. // This is typically a database ID or a customer key. Key string `json:"key"` // Metadata Metadata for the subject. Metadata *map[string]interface{} `json:"metadata,omitempty"` // StripeCustomerId The Stripe customer ID for the subject. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set StripeCustomerId *string `json:"stripeCustomerId,omitempty"` // UpdatedAt Timestamp of when the resource was last updated. UpdatedAt time.Time `json:"updatedAt"` } // SubjectUpsert A subject is a unique identifier for a user or entity. // // ⚠️ __Deprecated__: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead. type SubjectUpsert struct { // CurrentPeriodEnd The end of the current period for the subject. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set CurrentPeriodEnd *time.Time `json:"currentPeriodEnd,omitempty"` // CurrentPeriodStart The start of the current period for the subject. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set CurrentPeriodStart *time.Time `json:"currentPeriodStart,omitempty"` // DisplayName A human-readable display name for the subject. DisplayName *string `json:"displayName,omitempty"` // Key A unique, human-readable identifier for the subject. // This is typically a database ID or a customer key. Key string `json:"key"` // Metadata Metadata for the subject. Metadata *map[string]interface{} `json:"metadata,omitempty"` // StripeCustomerId The Stripe customer ID for the subject. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set StripeCustomerId *string `json:"stripeCustomerId,omitempty"` } // Subscription Subscription is an exact subscription instance. type Subscription struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // Alignment Alignment configuration for the plan. Alignment *Alignment `json:"alignment,omitempty"` // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // BillingAnchor The normalizedbilling anchor of the subscription. BillingAnchor time.Time `json:"billingAnchor"` // BillingCadence The billing cadence for the subscriptions. // Defines how often customers are billed using ISO8601 duration format. // Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually). BillingCadence string `json:"billingCadence"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // Currency The currency code of the subscription. // Will be revised once we add multi currency support. Currency CurrencyCode `json:"currency"` // CustomerId The customer ID of the subscription. CustomerId string `json:"customerId"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Plan The plan of the subscription. Plan *PlanReference `json:"plan,omitempty"` // ProRatingConfig The pro-rating configuration for the subscriptions. ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"` // SettlementMode The settlement mode of the subscription. // - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. // - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription. // This is the default and most common settlement mode. SettlementMode BillingSettlementMode `json:"settlementMode"` // Status The status of the subscription. Status SubscriptionStatus `json:"status"` // 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 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,omitempty"` // 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"` } // SubscriptionAddonCreate A subscription add-on create body. type SubscriptionAddonCreate struct { // Addon The add-on to create. Addon struct { // Id The ID of the add-on. Id string `json:"id"` } `json:"addon"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // SubscriptionAddonRateCard A rate card for a subscription add-on. 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"` } // SubscriptionAddonTimelineSegment A subscription add-on event. 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"` } // SubscriptionAddonUpdate Resource create or update operation model. type SubscriptionAddonUpdate struct { // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // SubscriptionAlignment Alignment details enriched with the current billing period. type SubscriptionAlignment struct { // BillablesMustAlign Whether all Billable items and RateCards must align. // Alignment means the Price's BillingCadence must align for both duration and anchor time. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set BillablesMustAlign *bool `json:"billablesMustAlign,omitempty"` // CurrentAlignedBillingPeriod The current billing period. Only has value if the subscription is aligned and active. CurrentAlignedBillingPeriod *Period `json:"currentAlignedBillingPeriod,omitempty"` } // SubscriptionBadRequestErrorResponse The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). Variants with ErrorExtensions specific to subscriptions. type SubscriptionBadRequestErrorResponse struct { // Detail A human-readable explanation specific to this occurrence of the problem. Detail string `json:"detail"` // Extensions Additional properties specific to the problem type may be present. Extensions *SubscriptionErrorExtensions `json:"extensions,omitempty"` // Instance A URI reference that identifies the specific occurrence of the problem. Instance string `json:"instance"` // Status The HTTP status code generated by the origin server for this occurrence of the problem. Status *int16 `json:"status,omitempty"` // Title A a short, human-readable summary of the problem type. Title string `json:"title"` // Type Type contains a URI that identifies the problem type. Type string `json:"type"` } // SubscriptionChange Change a subscription. type SubscriptionChange struct { union json.RawMessage } // SubscriptionChangeResponseBody Response body for subscription change. 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"` } // SubscriptionConflictErrorResponse The request could not be completed due to a conflict with the current state of the target resource. // Variants with ErrorExtensions specific to subscriptions. type SubscriptionConflictErrorResponse struct { // Detail A human-readable explanation specific to this occurrence of the problem. Detail string `json:"detail"` // Extensions Additional properties specific to the problem type may be present. Extensions *SubscriptionErrorExtensions `json:"extensions,omitempty"` // Instance A URI reference that identifies the specific occurrence of the problem. Instance string `json:"instance"` // Status The HTTP status code generated by the origin server for this occurrence of the problem. Status *int16 `json:"status,omitempty"` // Title A a short, human-readable summary of the problem type. Title string `json:"title"` // Type Type contains a URI that identifies the problem type. Type string `json:"type"` } // SubscriptionCreate Create a subscription. type SubscriptionCreate struct { union json.RawMessage } // SubscriptionEdit Subscription edit input. 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"` } // SubscriptionEditOperation The operation to be performed on the subscription. type SubscriptionEditOperation struct { union json.RawMessage } // SubscriptionErrorExtensions Error extensions for the Subscription Errors. type SubscriptionErrorExtensions struct { ValidationErrors []ErrorExtension `json:"validationErrors"` } // SubscriptionExpanded Expanded subscription type SubscriptionExpanded struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // Alignment Alignment details enriched with the current billing period. Alignment *SubscriptionAlignment `json:"alignment,omitempty"` // Annotations Set of key-value pairs managed by the system. Cannot be modified by user. Annotations *Annotations `json:"annotations,omitempty"` // BillingAnchor The normalizedbilling anchor of the subscription. BillingAnchor time.Time `json:"billingAnchor"` // BillingCadence The billing cadence for the subscriptions. // Defines how often customers are billed using ISO8601 duration format. // Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually). BillingCadence string `json:"billingCadence"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // Currency The currency code of the subscription. // Will be revised once we add multi currency support. Currency CurrencyCode `json:"currency"` // CustomerId The customer ID of the subscription. CustomerId string `json:"customerId"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // Name Human-readable name for the resource. Between 1 and 256 characters. Name string `json:"name"` // Phases The phases of the subscription. Phases []SubscriptionPhaseExpanded `json:"phases"` // Plan The plan of the subscription. Plan *PlanReference `json:"plan,omitempty"` // ProRatingConfig The pro-rating configuration for the subscriptions. ProRatingConfig *ProRatingConfig `json:"proRatingConfig,omitempty"` // SettlementMode The settlement mode of the subscription. // - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. // - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription. // This is the default and most common settlement mode. SettlementMode BillingSettlementMode `json:"settlementMode"` // Status The status of the subscription. Status SubscriptionStatus `json:"status"` // 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 SubscriptionItem struct { // ActiveFrom The cadence start of the resource. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The cadence end of the resource. ActiveTo *time.Time `json:"activeTo,omitempty"` // BillingCadence The billing cadence of the rate card. // When null, the rate card is a one-time purchase. BillingCadence *string `json:"billingCadence"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Discounts The discounts applied to the rate card. Discounts *Discounts `json:"discounts,omitempty"` // FeatureKey The feature's key (if present). FeatureKey *string `json:"featureKey,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // Included Describes what access is gained via the SubscriptionItem Included *SubscriptionItemIncluded `json:"included,omitempty"` // Key The identifier of the RateCard. // SubscriptionItem/RateCard can be identified, it has a reference: // // 1. If a Feature is associated with the SubscriptionItem, it is identified by the Feature // 1.1 It can be an ID reference, for an exact version of the Feature (Features can change across versions) // 1.2 It can be a Key reference, which always refers to the latest (active or inactive) version of a Feature // // 2. If a Feature is not associated with the SubscriptionItem, it is referenced by the Price // // We say "referenced by the Price" regardless of how a price itself is referenced, it colloquially makes sense to say "paying the same price for the same thing". In practice this should be derived from what's printed on the invoice line-item. Key string `json:"key"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // SubscriptionItemIncluded Included contents like Entitlement, or the Feature. 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"` } // SubscriptionPaginatedResponse Paginated response 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"` } // SubscriptionPhaseCreate Subscription phase create input. type SubscriptionPhaseCreate struct { // Description The description of the phase. Description *string `json:"description,omitempty"` // Discounts The discounts on the plan. Discounts *Discounts `json:"discounts,omitempty"` // Duration The intended duration of the new phase. // Duration is required when the phase will not be the last phase. Duration *string `json:"duration,omitempty"` // Key A locally unique identifier for the phase. Key string `json:"key"` // Name The name of the phase. Name string `json:"name"` // StartAfter Interval after the subscription starts to transition to the phase. // When null, the phase starts immediately after the subscription starts. StartAfter *string `json:"startAfter"` } // SubscriptionPhaseExpanded Expanded subscription phase type SubscriptionPhaseExpanded struct { // ActiveFrom The time from which the phase is active. ActiveFrom time.Time `json:"activeFrom"` // ActiveTo The until which the Phase is active. ActiveTo *time.Time `json:"activeTo,omitempty"` // CreatedAt Timestamp of when the resource was created. CreatedAt time.Time `json:"createdAt"` // DeletedAt Timestamp of when the resource was permanently deleted. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Description Optional description of the resource. Maximum 1024 characters. Description *string `json:"description,omitempty"` // Discounts The discounts on the plan. Discounts *Discounts `json:"discounts,omitempty"` // Id A unique identifier for the resource. Id string `json:"id"` // ItemTimelines Includes all versions of the items on each key, including all edits, scheduled changes, etc... ItemTimelines map[string][]SubscriptionItem `json:"itemTimelines"` // Items The items of the phase. The structure is flattened to better conform to the Plan API. // The timelines are flattened according to the following rules: // - for the current phase, the `items` contains only the active item for each key // - for past phases, the `items` contains only the last item for each key // - for future phases, the `items` contains only the first version of the item for each key Items []SubscriptionItem `json:"items"` // Key A locally unique identifier for the resource. Key string `json:"key"` // Metadata Additional metadata for the resource. Metadata *Metadata `json:"metadata,omitempty"` // 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"` } // SubscriptionStatus Subscription status. type SubscriptionStatus string // 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. type SubscriptionTiming struct { union json.RawMessage } // SubscriptionTiming1 [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC. type SubscriptionTiming1 = time.Time // SubscriptionTimingEnum Subscription edit timing. // When immediate, the requested changes take effect immediately. // When nextBillingCycle, the requested changes take effect at the next billing cycle. type SubscriptionTimingEnum string // TaxBehavior Tax behavior. // // This enum is used to specify whether tax is included in the price or excluded from the price. type TaxBehavior string // TaxConfig Set of provider specific tax configs. type TaxConfig struct { // Behavior Tax behavior. // // If not specified the billing profile is used to determine the tax behavior. // If not specified in the billing profile, the provider's default behavior is used. Behavior *TaxBehavior `json:"behavior,omitempty"` // CustomInvoicing Custom invoicing tax config. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set CustomInvoicing *CustomInvoicingTaxConfig `json:"customInvoicing,omitempty"` // Stripe Stripe tax config. // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Stripe *StripeTaxConfig `json:"stripe,omitempty"` // TaxCodeId Tax code reference. // // When both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence: // the referenced tax code entity is used and `stripe.code` is ignored. TaxCodeId *string `json:"taxCodeId,omitempty"` } // TieredPriceMode The mode of the tiered price. type TieredPriceMode string // TieredPriceWithCommitments Tiered price with spend commitments. 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"` } // TieredPriceWithCommitmentsType The type of the price. // // One of: flat, unit, or tiered. type TieredPriceWithCommitmentsType string // ULIDOrExternalKey ULID (Universally Unique Lexicographically Sortable Identifier) or external unique key. type ULIDOrExternalKey = string // UnauthorizedProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type UnauthorizedProblemResponse = UnexpectedProblemResponse // UnexpectedProblemResponse A Problem Details object (RFC 7807). // Additional properties specific to the problem type may be present. type UnexpectedProblemResponse = models.StatusProblem // UnitPrice Unit price. type UnitPrice struct { // Amount The amount of the unit price. Amount Numeric `json:"amount"` // Type The type of the price. Type UnitPriceType `json:"type"` } // UnitPriceType The type of the price. type UnitPriceType string // UnitPriceWithCommitments Unit price with spend commitments. 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"` } // UnitPriceWithCommitmentsType The type of the price. type UnitPriceWithCommitmentsType string // ValidationError Validation errors providing detailed description of the issue. type ValidationError struct { // Attributes Additional attributes. Attributes *Annotations `json:"attributes,omitempty"` // Code The machine readable description of the error. Code string `json:"code"` // Field The path to the field. Field string `json:"field"` // Message The human readable description of the error. Message string `json:"message"` } // ValidationIssue ValidationIssue captures any validation issues related to the invoice. // // Issues with severity "critical" will prevent the invoice from being issued. 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"` } // ValidationIssueSeverity ValidationIssueSeverity describes the severity of a validation issue. // // Issues with severity "critical" will prevent the invoice from being issued. type ValidationIssueSeverity string // VoidInvoiceActionCreate InvoiceVoidAction describes how to handle the voided line items. 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"` } // VoidInvoiceActionCreateItem InvoiceVoidAction describes how to handle the voided line items. 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"` } // VoidInvoiceActionInput Request to void an invoice 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,omitempty"` // Reason The reason for voiding the invoice. Reason string `json:"reason"` } // VoidInvoiceActionLineOverride VoidInvoiceLineOverride describes how to handle a specific line item in the invoice when voiding. 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"` } // VoidInvoiceLineActionCreate VoidInvoiceLineAction describes how to handle a specific line item in the invoice when voiding. type VoidInvoiceLineActionCreate struct { union json.RawMessage } // VoidInvoiceLineActionCreateItem VoidInvoiceLineAction describes how to handle a specific line item in the invoice when voiding. type VoidInvoiceLineActionCreateItem struct { union json.RawMessage } // VoidInvoiceLineDiscardAction VoidInvoiceLineDiscardAction describes how to handle the voidied line item in the invoice. type VoidInvoiceLineDiscardAction struct { // Type The action to take on the line item. Type VoidInvoiceLineDiscardActionType `json:"type"` } // VoidInvoiceLineDiscardActionType The action to take on the line item. type VoidInvoiceLineDiscardActionType string // VoidInvoiceLinePendingActionCreate VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice. 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"` } // VoidInvoiceLinePendingActionCreateType The action to take on the line item. type VoidInvoiceLinePendingActionCreateType string // VoidInvoiceLinePendingActionCreateItem VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice. 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"` } // VoidInvoiceLinePendingActionCreateItemType The action to take on the line item. type VoidInvoiceLinePendingActionCreateItemType string // WindowSize Aggregation window size. type WindowSize string // WindowedBalanceHistory The windowed balance history. 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"` } // AddonOrderByOrderingOrder The order direction. type AddonOrderByOrderingOrder = SortOrder // AddonOrderByOrderingOrderBy Order by options for add-ons. type AddonOrderByOrderingOrderBy = AddonOrderBy // BillingProfileCustomerOverrideOrderByOrderingOrder The order direction. type BillingProfileCustomerOverrideOrderByOrderingOrder = SortOrder // BillingProfileCustomerOverrideOrderByOrderingOrderBy Order by options for customers. type BillingProfileCustomerOverrideOrderByOrderingOrderBy = BillingProfileCustomerOverrideOrderBy // BillingProfileListCustomerOverridesParamsBillingProfile defines model for BillingProfileListCustomerOverridesParams.billingProfile. type BillingProfileListCustomerOverridesParamsBillingProfile = []string // BillingProfileListCustomerOverridesParamsCustomerId defines model for BillingProfileListCustomerOverridesParams.customerId. type BillingProfileListCustomerOverridesParamsCustomerId = []string // BillingProfileListCustomerOverridesParamsCustomerKey defines model for BillingProfileListCustomerOverridesParams.customerKey. type BillingProfileListCustomerOverridesParamsCustomerKey = string // BillingProfileListCustomerOverridesParamsCustomerName defines model for BillingProfileListCustomerOverridesParams.customerName. type BillingProfileListCustomerOverridesParamsCustomerName = string // BillingProfileListCustomerOverridesParamsCustomerPrimaryEmail defines model for BillingProfileListCustomerOverridesParams.customerPrimaryEmail. type BillingProfileListCustomerOverridesParamsCustomerPrimaryEmail = string // BillingProfileListCustomerOverridesParamsCustomersWithoutPinnedProfile defines model for BillingProfileListCustomerOverridesParams.customersWithoutPinnedProfile. type BillingProfileListCustomerOverridesParamsCustomersWithoutPinnedProfile = bool // BillingProfileListCustomerOverridesParamsExpand defines model for BillingProfileListCustomerOverridesParams.expand. type BillingProfileListCustomerOverridesParamsExpand = []BillingProfileCustomerOverrideExpand // BillingProfileListCustomerOverridesParamsIncludeAllCustomers defines model for BillingProfileListCustomerOverridesParams.includeAllCustomers. type BillingProfileListCustomerOverridesParamsIncludeAllCustomers = bool // BillingProfileOrderByOrderingOrder The order direction. type BillingProfileOrderByOrderingOrder = SortOrder // BillingProfileOrderByOrderingOrderBy BillingProfileOrderBy specifies the ordering options for profiles type BillingProfileOrderByOrderingOrderBy = BillingProfileOrderBy // CursorPaginationCursor defines model for CursorPagination.cursor. type CursorPaginationCursor = string // CursorPaginationLimit defines model for CursorPagination.limit. type CursorPaginationLimit = int // CustomerOrderByOrderingOrder The order direction. type CustomerOrderByOrderingOrder = SortOrder // CustomerOrderByOrderingOrderBy Order by options for customers. type CustomerOrderByOrderingOrderBy = CustomerOrderBy // CustomerSubscriptionOrderByOrderingOrder The order direction. type CustomerSubscriptionOrderByOrderingOrder = SortOrder // CustomerSubscriptionOrderByOrderingOrderBy Order by options for customer subscriptions. type CustomerSubscriptionOrderByOrderingOrderBy = CustomerSubscriptionOrderBy // EntitlementOrderByOrderingOrder The order direction. type EntitlementOrderByOrderingOrder = SortOrder // EntitlementOrderByOrderingOrderBy Order by options for entitlements. type EntitlementOrderByOrderingOrderBy = EntitlementOrderBy // FeatureOrderByOrderingOrder The order direction. type FeatureOrderByOrderingOrder = SortOrder // FeatureOrderByOrderingOrderBy Order by options for features. type FeatureOrderByOrderingOrderBy = FeatureOrderBy // GrantOrderByOrderingOrder The order direction. type GrantOrderByOrderingOrder = SortOrder // GrantOrderByOrderingOrderBy Order by options for grants. type GrantOrderByOrderingOrderBy = GrantOrderBy // InvoiceListParamsCreatedAfter defines model for InvoiceListParams.createdAfter. type InvoiceListParamsCreatedAfter = time.Time // InvoiceListParamsCreatedBefore defines model for InvoiceListParams.createdBefore. type InvoiceListParamsCreatedBefore = time.Time // InvoiceListParamsCustomers defines model for InvoiceListParams.customers. type InvoiceListParamsCustomers = []string // InvoiceListParamsExpand defines model for InvoiceListParams.expand. type InvoiceListParamsExpand = []InvoiceExpand // InvoiceListParamsExtendedStatuses defines model for InvoiceListParams.extendedStatuses. type InvoiceListParamsExtendedStatuses = []string // InvoiceListParamsIncludeDeleted defines model for InvoiceListParams.includeDeleted. type InvoiceListParamsIncludeDeleted = bool // InvoiceListParamsIssuedAfter defines model for InvoiceListParams.issuedAfter. type InvoiceListParamsIssuedAfter = time.Time // InvoiceListParamsIssuedBefore defines model for InvoiceListParams.issuedBefore. type InvoiceListParamsIssuedBefore = time.Time // InvoiceListParamsPeriodStartAfter defines model for InvoiceListParams.periodStartAfter. type InvoiceListParamsPeriodStartAfter = time.Time // InvoiceListParamsPeriodStartBefore defines model for InvoiceListParams.periodStartBefore. type InvoiceListParamsPeriodStartBefore = time.Time // InvoiceListParamsStatuses defines model for InvoiceListParams.statuses. type InvoiceListParamsStatuses = []InvoiceStatus // InvoiceOrderByOrderingOrder The order direction. type InvoiceOrderByOrderingOrder = SortOrder // InvoiceOrderByOrderingOrderBy InvoiceOrderBy specifies the ordering options for invoice listing. type InvoiceOrderByOrderingOrderBy = InvoiceOrderBy // LimitOffsetLimit defines model for LimitOffset.limit. type LimitOffsetLimit = int // LimitOffsetOffset defines model for LimitOffset.offset. type LimitOffsetOffset = int // MarketplaceApiKeyInstallRequestType Type of the app. type MarketplaceApiKeyInstallRequestType = AppType // MarketplaceInstallRequestType Type of the app. type MarketplaceInstallRequestType = AppType // MarketplaceOAuth2InstallAuthorizeRequestType Type of the app. type MarketplaceOAuth2InstallAuthorizeRequestType = AppType // MeterOrderByOrderingOrder The order direction. type MeterOrderByOrderingOrder = SortOrder // MeterOrderByOrderingOrderBy Order by options for meters. type MeterOrderByOrderingOrderBy = MeterOrderBy // MeterQueryAdvancedMeterGroupByFilters defines model for MeterQuery.advancedMeterGroupByFilters. type MeterQueryAdvancedMeterGroupByFilters map[string]FilterString // MeterQueryClientId defines model for MeterQuery.clientId. type MeterQueryClientId = string // MeterQueryFilterCustomerId defines model for MeterQuery.filterCustomerId. type MeterQueryFilterCustomerId = []string // MeterQueryFilterGroupBy defines model for MeterQuery.filterGroupBy. type MeterQueryFilterGroupBy map[string]string // MeterQueryFrom defines model for MeterQuery.from. type MeterQueryFrom = time.Time // MeterQueryGroupBy defines model for MeterQuery.groupBy. type MeterQueryGroupBy = []string // MeterQuerySubject defines model for MeterQuery.subject. type MeterQuerySubject = []string // MeterQueryTo defines model for MeterQuery.to. type MeterQueryTo = time.Time // MeterQueryWindowSize Aggregation window size. type MeterQueryWindowSize = WindowSize // MeterQueryWindowTimeZone defines model for MeterQuery.windowTimeZone. type MeterQueryWindowTimeZone = string // NotificationChannelOrderByOrderingOrder The order direction. type NotificationChannelOrderByOrderingOrder = SortOrder // NotificationChannelOrderByOrderingOrderBy Order by options for notification channels. type NotificationChannelOrderByOrderingOrderBy = NotificationChannelOrderBy // NotificationEventOrderByOrderingOrder The order direction. type NotificationEventOrderByOrderingOrder = SortOrder // NotificationEventOrderByOrderingOrderBy Order by options for notification channels. type NotificationEventOrderByOrderingOrderBy = NotificationEventOrderBy // NotificationRuleOrderByOrderingOrder The order direction. type NotificationRuleOrderByOrderingOrder = SortOrder // NotificationRuleOrderByOrderingOrderBy Order by options for notification channels. type NotificationRuleOrderByOrderingOrderBy = NotificationRuleOrderBy // OAuth2AuthorizationCodeGrantErrorParamsError OAuth2 authorization code grant error types. type OAuth2AuthorizationCodeGrantErrorParamsError = OAuth2AuthorizationCodeGrantErrorType // OAuth2AuthorizationCodeGrantErrorParamsErrorDescription defines model for OAuth2AuthorizationCodeGrantErrorParams.error_description. type OAuth2AuthorizationCodeGrantErrorParamsErrorDescription = string // OAuth2AuthorizationCodeGrantErrorParamsErrorUri defines model for OAuth2AuthorizationCodeGrantErrorParams.error_uri. type OAuth2AuthorizationCodeGrantErrorParamsErrorUri = string // OAuth2AuthorizationCodeGrantSuccessParamsCode defines model for OAuth2AuthorizationCodeGrantSuccessParams.code. type OAuth2AuthorizationCodeGrantSuccessParamsCode = string // OAuth2AuthorizationCodeGrantSuccessParamsState defines model for OAuth2AuthorizationCodeGrantSuccessParams.state. type OAuth2AuthorizationCodeGrantSuccessParamsState = string // PaginationPage defines model for Pagination.page. type PaginationPage = int // PaginationPageSize defines model for Pagination.pageSize. type PaginationPageSize = int // PlanAddonOrderByOrderingOrder The order direction. type PlanAddonOrderByOrderingOrder = SortOrder // PlanAddonOrderByOrderingOrderBy Order by options for plan add-on assignments. type PlanAddonOrderByOrderingOrderBy = PlanAddonOrderBy // PlanOrderByOrderingOrder The order direction. type PlanOrderByOrderingOrder = SortOrder // PlanOrderByOrderingOrderBy Order by options for plans. type PlanOrderByOrderingOrderBy = PlanOrderBy // ListCustomerAppDataParamsType Type of the app. type ListCustomerAppDataParamsType = AppType // QueryCustomerGet defines model for queryCustomerGet. type QueryCustomerGet = []CustomerExpand // QueryCustomerListExpand defines model for queryCustomerList.expand. type QueryCustomerListExpand = []CustomerExpand // QueryCustomerListIncludeDeleted defines model for queryCustomerList.includeDeleted. type QueryCustomerListIncludeDeleted = bool // QueryCustomerListKey defines model for queryCustomerList.key. type QueryCustomerListKey = string // QueryCustomerListName defines model for queryCustomerList.name. type QueryCustomerListName = string // QueryCustomerListPlanKey defines model for queryCustomerList.planKey. type QueryCustomerListPlanKey = string // QueryCustomerListPrimaryEmail defines model for queryCustomerList.primaryEmail. type QueryCustomerListPrimaryEmail = string // QueryCustomerListSubject defines model for queryCustomerList.subject. type QueryCustomerListSubject = string // QueryMeterListIncludeDeleted defines model for queryMeterList.includeDeleted. type QueryMeterListIncludeDeleted = bool // cloudCookieAuthContextKey is the context key for CloudCookieAuth security scheme type cloudCookieAuthContextKey string // cloudPortalTokenAuthContextKey is the context key for CloudPortalTokenAuth security scheme type cloudPortalTokenAuthContextKey string // cloudTokenAuthContextKey is the context key for CloudTokenAuth security scheme type cloudTokenAuthContextKey string // ListAddonsParams defines parameters for ListAddons. 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"` } // GetAddonParams defines parameters for GetAddon. 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"` } // ListAppsParams defines parameters for ListApps. 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"` } // ListBillingProfileCustomerOverridesParams defines parameters for ListBillingProfileCustomerOverrides. type ListBillingProfileCustomerOverridesParams struct { // BillingProfile Filter by billing profile. BillingProfile *BillingProfileListCustomerOverridesParamsBillingProfile `form:"billingProfile,omitempty" json:"billingProfile,omitempty"` // CustomersWithoutPinnedProfile Only return customers without pinned billing profiles. This implicitly sets includeAllCustomers to true. CustomersWithoutPinnedProfile *BillingProfileListCustomerOverridesParamsCustomersWithoutPinnedProfile `form:"customersWithoutPinnedProfile,omitempty" json:"customersWithoutPinnedProfile,omitempty"` // IncludeAllCustomers Include customers without customer overrides. // // If set to false only the customers specifically associated with a billing profile will be returned. // // If set to true, in case of the default billing profile, all customers will be returned. IncludeAllCustomers *BillingProfileListCustomerOverridesParamsIncludeAllCustomers `form:"includeAllCustomers,omitempty" json:"includeAllCustomers,omitempty"` // CustomerId Filter by customer id. CustomerId *BillingProfileListCustomerOverridesParamsCustomerId `form:"customerId,omitempty" json:"customerId,omitempty"` // CustomerName Filter by customer name. CustomerName *BillingProfileListCustomerOverridesParamsCustomerName `form:"customerName,omitempty" json:"customerName,omitempty"` // CustomerKey Filter by customer key CustomerKey *BillingProfileListCustomerOverridesParamsCustomerKey `form:"customerKey,omitempty" json:"customerKey,omitempty"` // CustomerPrimaryEmail Filter by customer primary email CustomerPrimaryEmail *BillingProfileListCustomerOverridesParamsCustomerPrimaryEmail `form:"customerPrimaryEmail,omitempty" json:"customerPrimaryEmail,omitempty"` // Expand Expand the response with additional details. Expand *BillingProfileListCustomerOverridesParamsExpand `form:"expand,omitempty" json:"expand,omitempty"` // Order The order direction. Order *BillingProfileCustomerOverrideOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *BillingProfileCustomerOverrideOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` } // GetBillingProfileCustomerOverrideParams defines parameters for GetBillingProfileCustomerOverride. type GetBillingProfileCustomerOverrideParams struct { Expand *[]BillingProfileCustomerOverrideExpand `form:"expand,omitempty" json:"expand,omitempty"` } // ListInvoicesParams defines parameters for ListInvoices. type ListInvoicesParams struct { // Statuses Filter by the invoice status. Statuses *InvoiceListParamsStatuses `form:"statuses,omitempty" json:"statuses,omitempty"` // ExtendedStatuses Filter by invoice extended statuses ExtendedStatuses *InvoiceListParamsExtendedStatuses `form:"extendedStatuses,omitempty" json:"extendedStatuses,omitempty"` // IssuedAfter Filter by invoice issued time. // Inclusive. IssuedAfter *InvoiceListParamsIssuedAfter `form:"issuedAfter,omitempty" json:"issuedAfter,omitempty"` // IssuedBefore Filter by invoice issued time. // Inclusive. IssuedBefore *InvoiceListParamsIssuedBefore `form:"issuedBefore,omitempty" json:"issuedBefore,omitempty"` // PeriodStartAfter Filter by period start time. // Inclusive. PeriodStartAfter *InvoiceListParamsPeriodStartAfter `form:"periodStartAfter,omitempty" json:"periodStartAfter,omitempty"` // PeriodStartBefore Filter by period start time. // Inclusive. PeriodStartBefore *InvoiceListParamsPeriodStartBefore `form:"periodStartBefore,omitempty" json:"periodStartBefore,omitempty"` // CreatedAfter Filter by invoice created time. // Inclusive. CreatedAfter *InvoiceListParamsCreatedAfter `form:"createdAfter,omitempty" json:"createdAfter,omitempty"` // CreatedBefore Filter by invoice created time. // Inclusive. CreatedBefore *InvoiceListParamsCreatedBefore `form:"createdBefore,omitempty" json:"createdBefore,omitempty"` // Expand What parts of the list output to expand in listings Expand *InvoiceListParamsExpand `form:"expand,omitempty" json:"expand,omitempty"` // Customers Filter by customer ID Customers *InvoiceListParamsCustomers `form:"customers,omitempty" json:"customers,omitempty"` // IncludeDeleted Include deleted invoices IncludeDeleted *InvoiceListParamsIncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Order The order direction. Order *InvoiceOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *InvoiceOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` } // GetInvoiceParams defines parameters for GetInvoice. type GetInvoiceParams struct { Expand *[]InvoiceExpand `form:"expand,omitempty" json:"expand,omitempty"` IncludeDeletedLines *bool `form:"includeDeletedLines,omitempty" json:"includeDeletedLines,omitempty"` } // ListBillingProfilesParams defines parameters for ListBillingProfiles. 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"` } // GetBillingProfileParams defines parameters for GetBillingProfile. type GetBillingProfileParams struct { Expand *[]BillingProfileExpand `form:"expand,omitempty" json:"expand,omitempty"` } // ListCustomersParams defines parameters for ListCustomers. type ListCustomersParams struct { // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Order The order direction. Order *CustomerOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *CustomerOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` // IncludeDeleted Include deleted customers. IncludeDeleted *QueryCustomerListIncludeDeleted `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"` // Key Filter customers by key. // Case-insensitive partial match. Key *QueryCustomerListKey `form:"key,omitempty" json:"key,omitempty"` // Name Filter customers by name. // Case-insensitive partial match. Name *QueryCustomerListName `form:"name,omitempty" json:"name,omitempty"` // PrimaryEmail Filter customers by primary email. // Case-insensitive partial match. PrimaryEmail *QueryCustomerListPrimaryEmail `form:"primaryEmail,omitempty" json:"primaryEmail,omitempty"` // Subject Filter customers by usage attribution subject. // Case-insensitive partial match. Subject *QueryCustomerListSubject `form:"subject,omitempty" json:"subject,omitempty"` // PlanKey Filter customers by the plan key of their susbcription. PlanKey *QueryCustomerListPlanKey `form:"planKey,omitempty" json:"planKey,omitempty"` // Expand What parts of the list output to expand in listings Expand *QueryCustomerListExpand `form:"expand,omitempty" json:"expand,omitempty"` } // GetCustomerParams defines parameters for GetCustomer. type GetCustomerParams struct { // Expand What parts of the customer output to expand Expand *QueryCustomerGet `form:"expand,omitempty" json:"expand,omitempty"` } // ListCustomerAppDataParams defines parameters for ListCustomerAppData. type ListCustomerAppDataParams struct { // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Type Filter customer data by app type. Type *ListCustomerAppDataParamsType `form:"type,omitempty" json:"type,omitempty"` } // UpsertCustomerAppDataJSONBody defines parameters for UpsertCustomerAppData. type UpsertCustomerAppDataJSONBody = []CustomerAppDataCreateOrUpdateItem // GetCustomerEntitlementValueParams defines parameters for GetCustomerEntitlementValue. type GetCustomerEntitlementValueParams struct { Time *time.Time `form:"time,omitempty" json:"time,omitempty"` } // ListCustomerSubscriptionsParams defines parameters for ListCustomerSubscriptions. type ListCustomerSubscriptionsParams struct { Status *[]SubscriptionStatus `form:"status,omitempty" json:"status,omitempty"` // Order The order direction. Order *CustomerSubscriptionOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *CustomerSubscriptionOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` } // ListEntitlementsParams defines parameters for ListEntitlements. 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"` } // ListEventsParams defines parameters for ListEvents. type ListEventsParams struct { // ClientId Client ID // Useful to track progress of a query. ClientId *string `form:"clientId,omitempty" json:"clientId,omitempty"` // IngestedAtFrom Start date-time in RFC 3339 format. // // Inclusive. IngestedAtFrom *time.Time `form:"ingestedAtFrom,omitempty" json:"ingestedAtFrom,omitempty"` // IngestedAtTo End date-time in RFC 3339 format. // // Inclusive. IngestedAtTo *time.Time `form:"ingestedAtTo,omitempty" json:"ingestedAtTo,omitempty"` // Id The event ID. // // Accepts partial ID. Id *string `form:"id,omitempty" json:"id,omitempty"` // Subject The event subject. // // Accepts partial subject. Subject *string `form:"subject,omitempty" json:"subject,omitempty"` // CustomerId The event customer ID. CustomerId *[]string `form:"customerId,omitempty" json:"customerId,omitempty"` // From Start date-time in RFC 3339 format. // // Inclusive. From *time.Time `form:"from,omitempty" json:"from,omitempty"` // To End date-time in RFC 3339 format. // // Inclusive. To *time.Time `form:"to,omitempty" json:"to,omitempty"` // Limit Number of events to return. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` } // IngestEventsApplicationCloudeventsBatchPlusJSONBody defines parameters for IngestEvents. type IngestEventsApplicationCloudeventsBatchPlusJSONBody = []Event // ListFeaturesParams defines parameters for ListFeatures. type ListFeaturesParams struct { // MeterSlug Filter by meterSlug MeterSlug *[]string `form:"meterSlug,omitempty" json:"meterSlug,omitempty"` // IncludeArchived Include archived features in response. IncludeArchived *bool `form:"includeArchived,omitempty" json:"includeArchived,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Offset Number of items to skip. // // Default is 0. Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"` // Limit Number of items to return. // // Default is 100. Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"` // Order The order direction. Order *FeatureOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *FeatureOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` } // ListGrantsParams defines parameters for ListGrants. 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"` } // VoidGrantParams defines parameters for VoidGrant. type VoidGrantParams struct { // At The time at which the grant should be voided. // Must not be in the future and must be within the current usage period of the entitlement. // Defaults to the current time if not specified. At *time.Time `form:"at,omitempty" json:"at,omitempty"` } // ListMarketplaceListingsParams defines parameters for ListMarketplaceListings. 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"` } // MarketplaceAppAPIKeyInstallJSONBody defines parameters for MarketplaceAppAPIKeyInstall. type MarketplaceAppAPIKeyInstallJSONBody struct { // ApiKey The API key for the provider. // For example, the Stripe API key. ApiKey string `json:"apiKey"` // CreateBillingProfile If true, a billing profile will be created for the app. // The Stripe app will be also set as the default billing profile if the current default is a Sandbox app. CreateBillingProfile *bool `json:"createBillingProfile,omitempty"` // Name Name of the application to install. // // If name is not provided defaults to the marketplace listing's name. Name *string `json:"name,omitempty"` } // MarketplaceOAuth2InstallAuthorizeParams defines parameters for MarketplaceOAuth2InstallAuthorize. 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"` } // ListMetersParams defines parameters for ListMeters. 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"` } // ListMeterGroupByValuesParams defines parameters for ListMeterGroupByValues. type ListMeterGroupByValuesParams struct { // From Start date-time in RFC 3339 format. // // Inclusive. Defaults to 24 hours ago. // // For example: ?from=2025-01-01T00%3A00%3A00.000Z From *time.Time `form:"from,omitempty" json:"from,omitempty"` // To End date-time in RFC 3339 format. // // Inclusive. // // For example: ?to=2025-02-01T00%3A00%3A00.000Z To *time.Time `form:"to,omitempty" json:"to,omitempty"` } // QueryMeterParams defines parameters for QueryMeter. type QueryMeterParams struct { // ClientId Client ID // Useful to track progress of a query. ClientId *MeterQueryClientId `form:"clientId,omitempty" json:"clientId,omitempty"` // From Start date-time in RFC 3339 format. // // Inclusive. // // For example: ?from=2025-01-01T00%3A00%3A00.000Z From *MeterQueryFrom `form:"from,omitempty" json:"from,omitempty"` // To End date-time in RFC 3339 format. // // Inclusive. // // For example: ?to=2025-02-01T00%3A00%3A00.000Z To *MeterQueryTo `form:"to,omitempty" json:"to,omitempty"` // WindowSize If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group. // // For example: ?windowSize=DAY WindowSize *MeterQueryWindowSize `form:"windowSize,omitempty" json:"windowSize,omitempty"` // WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones). // If not specified, the UTC timezone will be used. // // For example: ?windowTimeZone=UTC WindowTimeZone *MeterQueryWindowTimeZone `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"` // Subject Filtering by multiple subjects. // // For example: ?subject=subject-1&subject=subject-2 Subject *MeterQuerySubject `form:"subject,omitempty" json:"subject,omitempty"` // FilterCustomerId Filtering by multiple customers. // // For example: ?filterCustomerId=customer-1&filterCustomerId=customer-2 FilterCustomerId *MeterQueryFilterCustomerId `form:"filterCustomerId,omitempty" json:"filterCustomerId,omitempty"` // FilterGroupBy Simple filter for group bys with exact match. // // For example: ?filterGroupBy[vendor]=openai&filterGroupBy[model]=gpt-4-turbo // // ⚠️ __Deprecated__: Use `advancedMeterGroupByFilters` instead FilterGroupBy *MeterQueryFilterGroupBy `json:"filterGroupBy,omitempty"` // AdvancedMeterGroupByFilters Optional advanced meter group by filters. // You can use this to filter for values of the meter groupBy fields. AdvancedMeterGroupByFilters *MeterQueryAdvancedMeterGroupByFilters `form:"advancedMeterGroupByFilters,omitempty" json:"advancedMeterGroupByFilters,omitempty"` // GroupBy If not specified a single aggregate will be returned for each subject and time window. // `subject` is a reserved group by value. // // For example: ?groupBy=subject&groupBy=model GroupBy *MeterQueryGroupBy `form:"groupBy,omitempty" json:"groupBy,omitempty"` } // ListMeterSubjectsParams defines parameters for ListMeterSubjects. type ListMeterSubjectsParams struct { // From Start date-time in RFC 3339 format. // // Inclusive. Defaults to the beginning of time. // // For example: ?from=2025-01-01T00%3A00%3A00.000Z From *time.Time `form:"from,omitempty" json:"from,omitempty"` // To End date-time in RFC 3339 format. // // Inclusive. // // For example: ?to=2025-02-01T00%3A00%3A00.000Z To *time.Time `form:"to,omitempty" json:"to,omitempty"` } // ListNotificationChannelsParams defines parameters for ListNotificationChannels. 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"` } // ListNotificationEventsParams defines parameters for ListNotificationEvents. 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"` } // ListNotificationRulesParams defines parameters for ListNotificationRules. 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"` } // ListPlansParams defines parameters for ListPlans. 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"` } // GetPlanParams defines parameters for GetPlan. 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"` } // ListPlanAddonsParams defines parameters for ListPlanAddons. type ListPlanAddonsParams struct { // IncludeDeleted Include deleted plan add-on assignments. // // Usage: `?includeDeleted=true` IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"` // Id Filter by addon.id attribute. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // Key Filter by addon.key attribute. Key *[]string `form:"key,omitempty" json:"key,omitempty"` // KeyVersion Filter by addon.key and addon.version attributes. KeyVersion *map[string][]int `json:"keyVersion,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Order The order direction. Order *PlanAddonOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *PlanAddonOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` } // QueryPortalMeterParams defines parameters for QueryPortalMeter. type QueryPortalMeterParams struct { // ClientId Client ID // Useful to track progress of a query. ClientId *MeterQueryClientId `form:"clientId,omitempty" json:"clientId,omitempty"` // From Start date-time in RFC 3339 format. // // Inclusive. // // For example: ?from=2025-01-01T00%3A00%3A00.000Z From *MeterQueryFrom `form:"from,omitempty" json:"from,omitempty"` // To End date-time in RFC 3339 format. // // Inclusive. // // For example: ?to=2025-02-01T00%3A00%3A00.000Z To *MeterQueryTo `form:"to,omitempty" json:"to,omitempty"` // WindowSize If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group. // // For example: ?windowSize=DAY WindowSize *MeterQueryWindowSize `form:"windowSize,omitempty" json:"windowSize,omitempty"` // WindowTimeZone The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones). // If not specified, the UTC timezone will be used. // // For example: ?windowTimeZone=UTC WindowTimeZone *MeterQueryWindowTimeZone `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"` // FilterCustomerId Filtering by multiple customers. // // For example: ?filterCustomerId=customer-1&filterCustomerId=customer-2 FilterCustomerId *MeterQueryFilterCustomerId `form:"filterCustomerId,omitempty" json:"filterCustomerId,omitempty"` // FilterGroupBy Simple filter for group bys with exact match. // // For example: ?filterGroupBy[vendor]=openai&filterGroupBy[model]=gpt-4-turbo // // ⚠️ __Deprecated__: Use `advancedMeterGroupByFilters` instead FilterGroupBy *MeterQueryFilterGroupBy `json:"filterGroupBy,omitempty"` // AdvancedMeterGroupByFilters Optional advanced meter group by filters. // You can use this to filter for values of the meter groupBy fields. AdvancedMeterGroupByFilters *MeterQueryAdvancedMeterGroupByFilters `form:"advancedMeterGroupByFilters,omitempty" json:"advancedMeterGroupByFilters,omitempty"` // GroupBy If not specified a single aggregate will be returned for each subject and time window. // `subject` is a reserved group by value. // // For example: ?groupBy=subject&groupBy=model GroupBy *MeterQueryGroupBy `form:"groupBy,omitempty" json:"groupBy,omitempty"` } // ListPortalTokensParams defines parameters for ListPortalTokens. type ListPortalTokensParams struct { Limit *int `form:"limit,omitempty" json:"limit,omitempty"` } // InvalidatePortalTokensJSONBody defines parameters for InvalidatePortalTokens. 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"` } // UpsertSubjectJSONBody defines parameters for UpsertSubject. type UpsertSubjectJSONBody = []SubjectUpsert // ListSubjectEntitlementsParams defines parameters for ListSubjectEntitlements. type ListSubjectEntitlementsParams struct { IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"` } // ListEntitlementGrantsParams defines parameters for ListEntitlementGrants. type ListEntitlementGrantsParams struct { IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"` OrderBy *GrantOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` } // GetEntitlementValueParams defines parameters for GetEntitlementValue. type GetEntitlementValueParams struct { Time *time.Time `form:"time,omitempty" json:"time,omitempty"` } // GetEntitlementHistoryParams defines parameters for GetEntitlementHistory. 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"` } // GetSubscriptionParams defines parameters for GetSubscription. 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"` } // CancelSubscriptionJSONBody defines parameters for CancelSubscription. type CancelSubscriptionJSONBody struct { // Timing If not provided the subscription is canceled immediately. Timing *SubscriptionTiming `json:"timing,omitempty"` } // MigrateSubscriptionJSONBody defines parameters for MigrateSubscription. type MigrateSubscriptionJSONBody struct { // BillingAnchor The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the previous subscription billing anchor will be used. BillingAnchor *time.Time `json:"billingAnchor,omitempty"` // StartingPhase The key of the phase to start the subscription in. // If not provided, the subscription will start in the first phase of the plan. StartingPhase *string `json:"startingPhase,omitempty"` // TargetVersion The version of the plan to migrate to. // If not provided, the subscription will migrate to the latest version of the current plan. TargetVersion *int `json:"targetVersion,omitempty"` // Timing Timing configuration for the migration, when the migration should take effect. // If not supported by the subscription, 400 will be returned. Timing *SubscriptionTiming `json:"timing,omitempty"` } // ListCustomerEntitlementsV2Params defines parameters for ListCustomerEntitlementsV2. type ListCustomerEntitlementsV2Params struct { IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Order The order direction. Order *EntitlementOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *EntitlementOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` } // ListCustomerEntitlementGrantsV2Params defines parameters for ListCustomerEntitlementGrantsV2. type ListCustomerEntitlementGrantsV2Params struct { IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Offset Number of items to skip. // // Default is 0. Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"` // Limit Number of items to return. // // Default is 100. Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"` // Order The order direction. Order *GrantOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *GrantOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` } // GetCustomerEntitlementHistoryV2Params defines parameters for GetCustomerEntitlementHistoryV2. type GetCustomerEntitlementHistoryV2Params struct { // From Start of time range to query entitlement: date-time in RFC 3339 format. Defaults to the last reset. Gets truncated to the granularity of the underlying meter. From *time.Time `form:"from,omitempty" json:"from,omitempty"` // To End of time range to query entitlement: date-time in RFC 3339 format. Defaults to now. // If not now then gets truncated to the granularity of the underlying meter. To *time.Time `form:"to,omitempty" json:"to,omitempty"` // WindowSize Windowsize WindowSize WindowSize `form:"windowSize" json:"windowSize"` // WindowTimeZone The timezone used when calculating the windows. WindowTimeZone *string `form:"windowTimeZone,omitempty" json:"windowTimeZone,omitempty"` } // GetCustomerEntitlementValueV2Params defines parameters for GetCustomerEntitlementValueV2. type GetCustomerEntitlementValueV2Params struct { Time *time.Time `form:"time,omitempty" json:"time,omitempty"` } // ListEntitlementsV2Params defines parameters for ListEntitlementsV2. type ListEntitlementsV2Params struct { // Feature Filtering by multiple features. // // Usage: `?feature=feature-1&feature=feature-2` Feature *[]string `form:"feature,omitempty" json:"feature,omitempty"` // CustomerKeys Filtering by multiple customers. // // Usage: `?customerKeys=customer-1&customerKeys=customer-3` CustomerKeys *[]string `form:"customerKeys,omitempty" json:"customerKeys,omitempty"` // CustomerIds Filtering by multiple customers. // // Usage: `?customerIds=01K4WAQ0J99ZZ0MD75HXR112H8&customerIds=01K4WAQ0J99ZZ0MD75HXR112H9` CustomerIds *[]string `form:"customerIds,omitempty" json:"customerIds,omitempty"` // EntitlementType Filtering by multiple entitlement types. // // Usage: `?entitlementType=metered&entitlementType=boolean` EntitlementType *[]EntitlementType `form:"entitlementType,omitempty" json:"entitlementType,omitempty"` // ExcludeInactive Exclude inactive entitlements in the response (those scheduled for later or earlier) ExcludeInactive *bool `form:"excludeInactive,omitempty" json:"excludeInactive,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Offset Number of items to skip. // // Default is 0. Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"` // Limit Number of items to return. // // Default is 100. Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"` // Order The order direction. Order *EntitlementOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *EntitlementOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` } // ListEventsV2Params defines parameters for ListEventsV2. type ListEventsV2Params struct { // Cursor The cursor after which to start the pagination. Cursor *CursorPaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"` // Limit The limit of the pagination. Limit *CursorPaginationLimit `form:"limit,omitempty" json:"limit,omitempty"` // ClientId Client ID // Useful to track progress of a query. ClientId *string `form:"clientId,omitempty" json:"clientId,omitempty"` // Filter The filter for the events encoded as JSON string. Filter *struct { // CustomerId A filter for a ID (ULID) field allowing only equality or inclusion. CustomerId *FilterIDExact `json:"customerId,omitempty"` // Id A filter for a string field. Id *FilterString `json:"id,omitempty"` // IngestedAt A filter for a time field. IngestedAt *FilterTime `json:"ingestedAt,omitempty"` // Source A filter for a string field. Source *FilterString `json:"source,omitempty"` // Subject A filter for a string field. Subject *FilterString `json:"subject,omitempty"` // Time A filter for a time field. Time *FilterTime `json:"time,omitempty"` // Type A filter for a string field. Type *FilterString `json:"type,omitempty"` } `form:"filter,omitempty" json:"filter,omitempty"` } // ListGrantsV2Params defines parameters for ListGrantsV2. type ListGrantsV2Params struct { // Feature Filtering by multiple features. // // Usage: `?feature=feature-1&feature=feature-2` Feature *[]string `form:"feature,omitempty" json:"feature,omitempty"` // Customer Filtering by multiple customers (either by ID or key). // // Usage: `?customer=customer-1&customer=customer-2` Customer *[]ULIDOrExternalKey `form:"customer,omitempty" json:"customer,omitempty"` // IncludeDeleted Include deleted IncludeDeleted *bool `form:"includeDeleted,omitempty" json:"includeDeleted,omitempty"` // Page Page index. // // Default is 1. Page *PaginationPage `form:"page,omitempty" json:"page,omitempty"` // PageSize The maximum number of items per page. // // Default is 100. PageSize *PaginationPageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` // Offset Number of items to skip. // // Default is 0. Offset *LimitOffsetOffset `form:"offset,omitempty" json:"offset,omitempty"` // Limit Number of items to return. // // Default is 100. Limit *LimitOffsetLimit `form:"limit,omitempty" json:"limit,omitempty"` // Order The order direction. Order *GrantOrderByOrderingOrder `form:"order,omitempty" json:"order,omitempty"` // OrderBy The order by field. OrderBy *GrantOrderByOrderingOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"` } // CreateAddonJSONRequestBody defines body for CreateAddon for application/json ContentType. type CreateAddonJSONRequestBody = AddonCreate // UpdateAddonJSONRequestBody defines body for UpdateAddon for application/json ContentType. type UpdateAddonJSONRequestBody = AddonReplaceUpdate // AppCustomInvoicingDraftSynchronizedJSONRequestBody defines body for AppCustomInvoicingDraftSynchronized for application/json ContentType. type AppCustomInvoicingDraftSynchronizedJSONRequestBody = CustomInvoicingDraftSynchronizedRequest // AppCustomInvoicingIssuingSynchronizedJSONRequestBody defines body for AppCustomInvoicingIssuingSynchronized for application/json ContentType. type AppCustomInvoicingIssuingSynchronizedJSONRequestBody = CustomInvoicingFinalizedRequest // AppCustomInvoicingUpdatePaymentStatusJSONRequestBody defines body for AppCustomInvoicingUpdatePaymentStatus for application/json ContentType. type AppCustomInvoicingUpdatePaymentStatusJSONRequestBody = CustomInvoicingUpdatePaymentStatusRequest // UpdateAppJSONRequestBody defines body for UpdateApp for application/json ContentType. type UpdateAppJSONRequestBody = AppReplaceUpdate // UpdateStripeAPIKeyJSONRequestBody defines body for UpdateStripeAPIKey for application/json ContentType. type UpdateStripeAPIKeyJSONRequestBody = StripeAPIKeyInput // AppStripeWebhookJSONRequestBody defines body for AppStripeWebhook for application/json ContentType. type AppStripeWebhookJSONRequestBody = StripeWebhookEvent // UpsertBillingProfileCustomerOverrideJSONRequestBody defines body for UpsertBillingProfileCustomerOverride for application/json ContentType. type UpsertBillingProfileCustomerOverrideJSONRequestBody = BillingProfileCustomerOverrideCreate // CreatePendingInvoiceLineJSONRequestBody defines body for CreatePendingInvoiceLine for application/json ContentType. type CreatePendingInvoiceLineJSONRequestBody = InvoicePendingLineCreateInput // SimulateInvoiceJSONRequestBody defines body for SimulateInvoice for application/json ContentType. type SimulateInvoiceJSONRequestBody = InvoiceSimulationInput // InvoicePendingLinesActionJSONRequestBody defines body for InvoicePendingLinesAction for application/json ContentType. type InvoicePendingLinesActionJSONRequestBody = InvoicePendingLinesActionInput // UpdateInvoiceJSONRequestBody defines body for UpdateInvoice for application/json ContentType. type UpdateInvoiceJSONRequestBody = InvoiceReplaceUpdate // VoidInvoiceActionJSONRequestBody defines body for VoidInvoiceAction for application/json ContentType. type VoidInvoiceActionJSONRequestBody = VoidInvoiceActionInput // CreateBillingProfileJSONRequestBody defines body for CreateBillingProfile for application/json ContentType. type CreateBillingProfileJSONRequestBody = BillingProfileCreate // UpdateBillingProfileJSONRequestBody defines body for UpdateBillingProfile for application/json ContentType. type UpdateBillingProfileJSONRequestBody = BillingProfileReplaceUpdateWithWorkflow // CreateCustomerJSONRequestBody defines body for CreateCustomer for application/json ContentType. type CreateCustomerJSONRequestBody = CustomerCreate // UpdateCustomerJSONRequestBody defines body for UpdateCustomer for application/json ContentType. type UpdateCustomerJSONRequestBody = CustomerReplaceUpdate // UpsertCustomerAppDataJSONRequestBody defines body for UpsertCustomerAppData for application/json ContentType. type UpsertCustomerAppDataJSONRequestBody = UpsertCustomerAppDataJSONBody // UpsertCustomerStripeAppDataJSONRequestBody defines body for UpsertCustomerStripeAppData for application/json ContentType. type UpsertCustomerStripeAppDataJSONRequestBody = StripeCustomerAppDataBase // CreateCustomerStripePortalSessionJSONRequestBody defines body for CreateCustomerStripePortalSession for application/json ContentType. type CreateCustomerStripePortalSessionJSONRequestBody = CreateStripeCustomerPortalSessionParams // IngestEventsApplicationCloudeventsPlusJSONRequestBody defines body for IngestEvents for application/cloudevents+json ContentType. type IngestEventsApplicationCloudeventsPlusJSONRequestBody = Event // IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody defines body for IngestEvents for application/cloudevents-batch+json ContentType. type IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody = IngestEventsApplicationCloudeventsBatchPlusJSONBody // IngestEventsJSONRequestBody defines body for IngestEvents for application/json ContentType. type IngestEventsJSONRequestBody = IngestEventsBody // CreateFeatureJSONRequestBody defines body for CreateFeature for application/json ContentType. type CreateFeatureJSONRequestBody = FeatureCreateInputs // MarketplaceAppInstallJSONRequestBody defines body for MarketplaceAppInstall for application/json ContentType. type MarketplaceAppInstallJSONRequestBody = MarketplaceInstallRequestPayload // MarketplaceAppAPIKeyInstallJSONRequestBody defines body for MarketplaceAppAPIKeyInstall for application/json ContentType. type MarketplaceAppAPIKeyInstallJSONRequestBody MarketplaceAppAPIKeyInstallJSONBody // CreateMeterJSONRequestBody defines body for CreateMeter for application/json ContentType. type CreateMeterJSONRequestBody = MeterCreate // UpdateMeterJSONRequestBody defines body for UpdateMeter for application/json ContentType. type UpdateMeterJSONRequestBody = MeterUpdate // QueryMeterPostJSONRequestBody defines body for QueryMeterPost for application/json ContentType. type QueryMeterPostJSONRequestBody = MeterQueryRequest // CreateNotificationChannelJSONRequestBody defines body for CreateNotificationChannel for application/json ContentType. type CreateNotificationChannelJSONRequestBody = NotificationChannelCreateRequest // UpdateNotificationChannelJSONRequestBody defines body for UpdateNotificationChannel for application/json ContentType. type UpdateNotificationChannelJSONRequestBody = NotificationChannelCreateRequest // ResendNotificationEventJSONRequestBody defines body for ResendNotificationEvent for application/json ContentType. type ResendNotificationEventJSONRequestBody = NotificationEventResendRequest // CreateNotificationRuleJSONRequestBody defines body for CreateNotificationRule for application/json ContentType. type CreateNotificationRuleJSONRequestBody = NotificationRuleCreateRequest // UpdateNotificationRuleJSONRequestBody defines body for UpdateNotificationRule for application/json ContentType. type UpdateNotificationRuleJSONRequestBody = NotificationRuleCreateRequest // CreatePlanJSONRequestBody defines body for CreatePlan for application/json ContentType. type CreatePlanJSONRequestBody = PlanCreate // UpdatePlanJSONRequestBody defines body for UpdatePlan for application/json ContentType. type UpdatePlanJSONRequestBody = PlanReplaceUpdate // CreatePlanAddonJSONRequestBody defines body for CreatePlanAddon for application/json ContentType. type CreatePlanAddonJSONRequestBody = PlanAddonCreate // UpdatePlanAddonJSONRequestBody defines body for UpdatePlanAddon for application/json ContentType. type UpdatePlanAddonJSONRequestBody = PlanAddonReplaceUpdate // CreatePortalTokenJSONRequestBody defines body for CreatePortalToken for application/json ContentType. type CreatePortalTokenJSONRequestBody = PortalToken // InvalidatePortalTokensJSONRequestBody defines body for InvalidatePortalTokens for application/json ContentType. type InvalidatePortalTokensJSONRequestBody InvalidatePortalTokensJSONBody // CreateStripeCheckoutSessionJSONRequestBody defines body for CreateStripeCheckoutSession for application/json ContentType. type CreateStripeCheckoutSessionJSONRequestBody = CreateStripeCheckoutSessionRequest // UpsertSubjectJSONRequestBody defines body for UpsertSubject for application/json ContentType. type UpsertSubjectJSONRequestBody = UpsertSubjectJSONBody // CreateEntitlementJSONRequestBody defines body for CreateEntitlement for application/json ContentType. type CreateEntitlementJSONRequestBody = EntitlementCreateInputs // CreateGrantJSONRequestBody defines body for CreateGrant for application/json ContentType. type CreateGrantJSONRequestBody = EntitlementGrantCreateInput // OverrideEntitlementJSONRequestBody defines body for OverrideEntitlement for application/json ContentType. type OverrideEntitlementJSONRequestBody = EntitlementCreateInputs // ResetEntitlementUsageJSONRequestBody defines body for ResetEntitlementUsage for application/json ContentType. type ResetEntitlementUsageJSONRequestBody = ResetEntitlementUsageInput // CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType. type CreateSubscriptionJSONRequestBody = SubscriptionCreate // EditSubscriptionJSONRequestBody defines body for EditSubscription for application/json ContentType. type EditSubscriptionJSONRequestBody = SubscriptionEdit // CreateSubscriptionAddonJSONRequestBody defines body for CreateSubscriptionAddon for application/json ContentType. type CreateSubscriptionAddonJSONRequestBody = SubscriptionAddonCreate // UpdateSubscriptionAddonJSONRequestBody defines body for UpdateSubscriptionAddon for application/json ContentType. type UpdateSubscriptionAddonJSONRequestBody = SubscriptionAddonUpdate // CancelSubscriptionJSONRequestBody defines body for CancelSubscription for application/json ContentType. type CancelSubscriptionJSONRequestBody CancelSubscriptionJSONBody // ChangeSubscriptionJSONRequestBody defines body for ChangeSubscription for application/json ContentType. type ChangeSubscriptionJSONRequestBody = SubscriptionChange // MigrateSubscriptionJSONRequestBody defines body for MigrateSubscription for application/json ContentType. type MigrateSubscriptionJSONRequestBody MigrateSubscriptionJSONBody // CreateCustomerEntitlementV2JSONRequestBody defines body for CreateCustomerEntitlementV2 for application/json ContentType. type CreateCustomerEntitlementV2JSONRequestBody = EntitlementV2CreateInputs // CreateCustomerEntitlementGrantV2JSONRequestBody defines body for CreateCustomerEntitlementGrantV2 for application/json ContentType. type CreateCustomerEntitlementGrantV2JSONRequestBody = EntitlementGrantCreateInputV2 // OverrideCustomerEntitlementV2JSONRequestBody defines body for OverrideCustomerEntitlementV2 for application/json ContentType. type OverrideCustomerEntitlementV2JSONRequestBody = EntitlementV2CreateInputs // ResetCustomerEntitlementUsageV2JSONRequestBody defines body for ResetCustomerEntitlementUsageV2 for application/json ContentType. type ResetCustomerEntitlementUsageV2JSONRequestBody = ResetEntitlementUsageInput // Getter for additional properties for ErrorExtension. Returns the specified // element and whether it was found func (a ErrorExtension) Get(fieldName string) (value interface{}, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } // Setter for additional properties for ErrorExtension func (a *ErrorExtension) Set(fieldName string, value interface{}) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]interface{}) } a.AdditionalProperties[fieldName] = value } // Override default JSON handling for ErrorExtension to handle AdditionalProperties func (a *ErrorExtension) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { return err } if raw, found := object["code"]; found { err = json.Unmarshal(raw, &a.Code) if err != nil { return fmt.Errorf("error reading 'code': %w", err) } delete(object, "code") } if raw, found := object["field"]; found { err = json.Unmarshal(raw, &a.Field) if err != nil { return fmt.Errorf("error reading 'field': %w", err) } delete(object, "field") } if raw, found := object["message"]; found { err = json.Unmarshal(raw, &a.Message) if err != nil { return fmt.Errorf("error reading 'message': %w", err) } delete(object, "message") } if len(object) != 0 { a.AdditionalProperties = make(map[string]interface{}) for fieldName, fieldBuf := range object { var fieldVal interface{} err := json.Unmarshal(fieldBuf, &fieldVal) if err != nil { return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) } a.AdditionalProperties[fieldName] = fieldVal } } return nil } // Override default JSON handling for ErrorExtension to handle AdditionalProperties func (a ErrorExtension) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) object["code"], err = json.Marshal(a.Code) if err != nil { return nil, fmt.Errorf("error marshaling 'code': %w", err) } object["field"], err = json.Marshal(a.Field) if err != nil { return nil, fmt.Errorf("error marshaling 'field': %w", err) } object["message"], err = json.Marshal(a.Message) if err != nil { return nil, fmt.Errorf("error marshaling 'message': %w", err) } for fieldName, field := range a.AdditionalProperties { object[fieldName], err = json.Marshal(field) if err != nil { return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) } } return json.Marshal(object) } // AsStripeApp returns the union data inside the App as a StripeApp func (t App) AsStripeApp() (StripeApp, error) { var body StripeApp err := json.Unmarshal(t.union, &body) return body, err } // FromStripeApp overwrites any union data inside the App as the provided StripeApp func (t *App) FromStripeApp(v StripeApp) error { v.Type = "stripe" b, err := json.Marshal(v) t.union = b return err } // MergeStripeApp performs a merge with any union data inside the App, using the provided StripeApp func (t *App) MergeStripeApp(v StripeApp) error { v.Type = "stripe" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsSandboxApp returns the union data inside the App as a SandboxApp func (t App) AsSandboxApp() (SandboxApp, error) { var body SandboxApp err := json.Unmarshal(t.union, &body) return body, err } // FromSandboxApp overwrites any union data inside the App as the provided SandboxApp func (t *App) FromSandboxApp(v SandboxApp) error { v.Type = "sandbox" b, err := json.Marshal(v) t.union = b return err } // MergeSandboxApp performs a merge with any union data inside the App, using the provided SandboxApp func (t *App) MergeSandboxApp(v SandboxApp) error { v.Type = "sandbox" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsCustomInvoicingApp returns the union data inside the App as a CustomInvoicingApp func (t App) AsCustomInvoicingApp() (CustomInvoicingApp, error) { var body CustomInvoicingApp err := json.Unmarshal(t.union, &body) return body, err } // FromCustomInvoicingApp overwrites any union data inside the App as the provided CustomInvoicingApp func (t *App) FromCustomInvoicingApp(v CustomInvoicingApp) error { v.Type = "custom_invoicing" b, err := json.Marshal(v) t.union = b return err } // MergeCustomInvoicingApp performs a merge with any union data inside the App, using the provided CustomInvoicingApp func (t *App) MergeCustomInvoicingApp(v CustomInvoicingApp) error { v.Type = "custom_invoicing" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t App) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t App) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "custom_invoicing": return t.AsCustomInvoicingApp() case "sandbox": return t.AsSandboxApp() case "stripe": return t.AsStripeApp() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t App) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *App) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsStripeAppReplaceUpdate returns the union data inside the AppReplaceUpdate as a StripeAppReplaceUpdate func (t AppReplaceUpdate) AsStripeAppReplaceUpdate() (StripeAppReplaceUpdate, error) { var body StripeAppReplaceUpdate err := json.Unmarshal(t.union, &body) return body, err } // FromStripeAppReplaceUpdate overwrites any union data inside the AppReplaceUpdate as the provided StripeAppReplaceUpdate func (t *AppReplaceUpdate) FromStripeAppReplaceUpdate(v StripeAppReplaceUpdate) error { v.Type = "stripe" b, err := json.Marshal(v) t.union = b return err } // MergeStripeAppReplaceUpdate performs a merge with any union data inside the AppReplaceUpdate, using the provided StripeAppReplaceUpdate func (t *AppReplaceUpdate) MergeStripeAppReplaceUpdate(v StripeAppReplaceUpdate) error { v.Type = "stripe" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsSandboxAppReplaceUpdate returns the union data inside the AppReplaceUpdate as a SandboxAppReplaceUpdate func (t AppReplaceUpdate) AsSandboxAppReplaceUpdate() (SandboxAppReplaceUpdate, error) { var body SandboxAppReplaceUpdate err := json.Unmarshal(t.union, &body) return body, err } // FromSandboxAppReplaceUpdate overwrites any union data inside the AppReplaceUpdate as the provided SandboxAppReplaceUpdate func (t *AppReplaceUpdate) FromSandboxAppReplaceUpdate(v SandboxAppReplaceUpdate) error { v.Type = "sandbox" b, err := json.Marshal(v) t.union = b return err } // MergeSandboxAppReplaceUpdate performs a merge with any union data inside the AppReplaceUpdate, using the provided SandboxAppReplaceUpdate func (t *AppReplaceUpdate) MergeSandboxAppReplaceUpdate(v SandboxAppReplaceUpdate) error { v.Type = "sandbox" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsCustomInvoicingAppReplaceUpdate returns the union data inside the AppReplaceUpdate as a CustomInvoicingAppReplaceUpdate func (t AppReplaceUpdate) AsCustomInvoicingAppReplaceUpdate() (CustomInvoicingAppReplaceUpdate, error) { var body CustomInvoicingAppReplaceUpdate err := json.Unmarshal(t.union, &body) return body, err } // FromCustomInvoicingAppReplaceUpdate overwrites any union data inside the AppReplaceUpdate as the provided CustomInvoicingAppReplaceUpdate func (t *AppReplaceUpdate) FromCustomInvoicingAppReplaceUpdate(v CustomInvoicingAppReplaceUpdate) error { v.Type = "custom_invoicing" b, err := json.Marshal(v) t.union = b return err } // MergeCustomInvoicingAppReplaceUpdate performs a merge with any union data inside the AppReplaceUpdate, using the provided CustomInvoicingAppReplaceUpdate func (t *AppReplaceUpdate) MergeCustomInvoicingAppReplaceUpdate(v CustomInvoicingAppReplaceUpdate) error { v.Type = "custom_invoicing" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t AppReplaceUpdate) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t AppReplaceUpdate) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "custom_invoicing": return t.AsCustomInvoicingAppReplaceUpdate() case "sandbox": return t.AsSandboxAppReplaceUpdate() case "stripe": return t.AsStripeAppReplaceUpdate() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t AppReplaceUpdate) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *AppReplaceUpdate) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsDiscountReasonMaximumSpend returns the union data inside the BillingDiscountReason as a DiscountReasonMaximumSpend func (t BillingDiscountReason) AsDiscountReasonMaximumSpend() (DiscountReasonMaximumSpend, error) { var body DiscountReasonMaximumSpend err := json.Unmarshal(t.union, &body) return body, err } // FromDiscountReasonMaximumSpend overwrites any union data inside the BillingDiscountReason as the provided DiscountReasonMaximumSpend func (t *BillingDiscountReason) FromDiscountReasonMaximumSpend(v DiscountReasonMaximumSpend) error { v.Type = "maximum_spend" b, err := json.Marshal(v) t.union = b return err } // MergeDiscountReasonMaximumSpend performs a merge with any union data inside the BillingDiscountReason, using the provided DiscountReasonMaximumSpend func (t *BillingDiscountReason) MergeDiscountReasonMaximumSpend(v DiscountReasonMaximumSpend) error { v.Type = "maximum_spend" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsDiscountReasonRatecardPercentage returns the union data inside the BillingDiscountReason as a DiscountReasonRatecardPercentage func (t BillingDiscountReason) AsDiscountReasonRatecardPercentage() (DiscountReasonRatecardPercentage, error) { var body DiscountReasonRatecardPercentage err := json.Unmarshal(t.union, &body) return body, err } // FromDiscountReasonRatecardPercentage overwrites any union data inside the BillingDiscountReason as the provided DiscountReasonRatecardPercentage func (t *BillingDiscountReason) FromDiscountReasonRatecardPercentage(v DiscountReasonRatecardPercentage) error { v.Type = "ratecard_percentage" b, err := json.Marshal(v) t.union = b return err } // MergeDiscountReasonRatecardPercentage performs a merge with any union data inside the BillingDiscountReason, using the provided DiscountReasonRatecardPercentage func (t *BillingDiscountReason) MergeDiscountReasonRatecardPercentage(v DiscountReasonRatecardPercentage) error { v.Type = "ratecard_percentage" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsDiscountReasonRatecardUsage returns the union data inside the BillingDiscountReason as a DiscountReasonRatecardUsage func (t BillingDiscountReason) AsDiscountReasonRatecardUsage() (DiscountReasonRatecardUsage, error) { var body DiscountReasonRatecardUsage err := json.Unmarshal(t.union, &body) return body, err } // FromDiscountReasonRatecardUsage overwrites any union data inside the BillingDiscountReason as the provided DiscountReasonRatecardUsage func (t *BillingDiscountReason) FromDiscountReasonRatecardUsage(v DiscountReasonRatecardUsage) error { v.Type = "ratecard_usage" b, err := json.Marshal(v) t.union = b return err } // MergeDiscountReasonRatecardUsage performs a merge with any union data inside the BillingDiscountReason, using the provided DiscountReasonRatecardUsage func (t *BillingDiscountReason) MergeDiscountReasonRatecardUsage(v DiscountReasonRatecardUsage) error { v.Type = "ratecard_usage" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t BillingDiscountReason) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t BillingDiscountReason) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "maximum_spend": return t.AsDiscountReasonMaximumSpend() case "ratecard_percentage": return t.AsDiscountReasonRatecardPercentage() case "ratecard_usage": return t.AsDiscountReasonRatecardUsage() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t BillingDiscountReason) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *BillingDiscountReason) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsBillingProfileApps returns the union data inside the BillingProfileAppsOrReference as a BillingProfileApps func (t BillingProfileAppsOrReference) AsBillingProfileApps() (BillingProfileApps, error) { var body BillingProfileApps err := json.Unmarshal(t.union, &body) return body, err } // FromBillingProfileApps overwrites any union data inside the BillingProfileAppsOrReference as the provided BillingProfileApps func (t *BillingProfileAppsOrReference) FromBillingProfileApps(v BillingProfileApps) error { b, err := json.Marshal(v) t.union = b return err } // MergeBillingProfileApps performs a merge with any union data inside the BillingProfileAppsOrReference, using the provided BillingProfileApps func (t *BillingProfileAppsOrReference) MergeBillingProfileApps(v BillingProfileApps) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsBillingProfileAppReferences returns the union data inside the BillingProfileAppsOrReference as a BillingProfileAppReferences func (t BillingProfileAppsOrReference) AsBillingProfileAppReferences() (BillingProfileAppReferences, error) { var body BillingProfileAppReferences err := json.Unmarshal(t.union, &body) return body, err } // FromBillingProfileAppReferences overwrites any union data inside the BillingProfileAppsOrReference as the provided BillingProfileAppReferences func (t *BillingProfileAppsOrReference) FromBillingProfileAppReferences(v BillingProfileAppReferences) error { b, err := json.Marshal(v) t.union = b return err } // MergeBillingProfileAppReferences performs a merge with any union data inside the BillingProfileAppsOrReference, using the provided BillingProfileAppReferences func (t *BillingProfileAppsOrReference) MergeBillingProfileAppReferences(v BillingProfileAppReferences) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t BillingProfileAppsOrReference) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *BillingProfileAppsOrReference) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsBillingWorkflowCollectionAlignmentSubscription returns the union data inside the BillingWorkflowCollectionAlignment as a BillingWorkflowCollectionAlignmentSubscription func (t BillingWorkflowCollectionAlignment) AsBillingWorkflowCollectionAlignmentSubscription() (BillingWorkflowCollectionAlignmentSubscription, error) { var body BillingWorkflowCollectionAlignmentSubscription err := json.Unmarshal(t.union, &body) return body, err } // FromBillingWorkflowCollectionAlignmentSubscription overwrites any union data inside the BillingWorkflowCollectionAlignment as the provided BillingWorkflowCollectionAlignmentSubscription func (t *BillingWorkflowCollectionAlignment) FromBillingWorkflowCollectionAlignmentSubscription(v BillingWorkflowCollectionAlignmentSubscription) error { v.Type = "subscription" b, err := json.Marshal(v) t.union = b return err } // MergeBillingWorkflowCollectionAlignmentSubscription performs a merge with any union data inside the BillingWorkflowCollectionAlignment, using the provided BillingWorkflowCollectionAlignmentSubscription func (t *BillingWorkflowCollectionAlignment) MergeBillingWorkflowCollectionAlignmentSubscription(v BillingWorkflowCollectionAlignmentSubscription) error { v.Type = "subscription" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsBillingWorkflowCollectionAlignmentAnchored returns the union data inside the BillingWorkflowCollectionAlignment as a BillingWorkflowCollectionAlignmentAnchored func (t BillingWorkflowCollectionAlignment) AsBillingWorkflowCollectionAlignmentAnchored() (BillingWorkflowCollectionAlignmentAnchored, error) { var body BillingWorkflowCollectionAlignmentAnchored err := json.Unmarshal(t.union, &body) return body, err } // FromBillingWorkflowCollectionAlignmentAnchored overwrites any union data inside the BillingWorkflowCollectionAlignment as the provided BillingWorkflowCollectionAlignmentAnchored func (t *BillingWorkflowCollectionAlignment) FromBillingWorkflowCollectionAlignmentAnchored(v BillingWorkflowCollectionAlignmentAnchored) error { v.Type = "anchored" b, err := json.Marshal(v) t.union = b return err } // MergeBillingWorkflowCollectionAlignmentAnchored performs a merge with any union data inside the BillingWorkflowCollectionAlignment, using the provided BillingWorkflowCollectionAlignmentAnchored func (t *BillingWorkflowCollectionAlignment) MergeBillingWorkflowCollectionAlignmentAnchored(v BillingWorkflowCollectionAlignmentAnchored) error { v.Type = "anchored" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t BillingWorkflowCollectionAlignment) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t BillingWorkflowCollectionAlignment) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "anchored": return t.AsBillingWorkflowCollectionAlignmentAnchored() case "subscription": return t.AsBillingWorkflowCollectionAlignmentSubscription() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t BillingWorkflowCollectionAlignment) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *BillingWorkflowCollectionAlignment) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsCustomerId returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerId func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerId() (CustomerId, error) { var body CustomerId err := json.Unmarshal(t.union, &body) return body, err } // FromCustomerId overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerId func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerId(v CustomerId) error { b, err := json.Marshal(v) t.union = b return err } // MergeCustomerId performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerId func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerId(v CustomerId) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsCustomerKey returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerKey func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerKey() (CustomerKey, error) { var body CustomerKey err := json.Unmarshal(t.union, &body) return body, err } // FromCustomerKey overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerKey func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerKey(v CustomerKey) error { b, err := json.Marshal(v) t.union = b return err } // MergeCustomerKey performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerKey func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerKey(v CustomerKey) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsCustomerCreate returns the union data inside the CreateStripeCheckoutSessionRequest_Customer as a CustomerCreate func (t CreateStripeCheckoutSessionRequest_Customer) AsCustomerCreate() (CustomerCreate, error) { var body CustomerCreate err := json.Unmarshal(t.union, &body) return body, err } // FromCustomerCreate overwrites any union data inside the CreateStripeCheckoutSessionRequest_Customer as the provided CustomerCreate func (t *CreateStripeCheckoutSessionRequest_Customer) FromCustomerCreate(v CustomerCreate) error { b, err := json.Marshal(v) t.union = b return err } // MergeCustomerCreate performs a merge with any union data inside the CreateStripeCheckoutSessionRequest_Customer, using the provided CustomerCreate func (t *CreateStripeCheckoutSessionRequest_Customer) MergeCustomerCreate(v CustomerCreate) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t CreateStripeCheckoutSessionRequest_Customer) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *CreateStripeCheckoutSessionRequest_Customer) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsStripeCustomerAppData returns the union data inside the CustomerAppData as a StripeCustomerAppData func (t CustomerAppData) AsStripeCustomerAppData() (StripeCustomerAppData, error) { var body StripeCustomerAppData err := json.Unmarshal(t.union, &body) return body, err } // FromStripeCustomerAppData overwrites any union data inside the CustomerAppData as the provided StripeCustomerAppData func (t *CustomerAppData) FromStripeCustomerAppData(v StripeCustomerAppData) error { v.Type = "stripe" b, err := json.Marshal(v) t.union = b return err } // MergeStripeCustomerAppData performs a merge with any union data inside the CustomerAppData, using the provided StripeCustomerAppData func (t *CustomerAppData) MergeStripeCustomerAppData(v StripeCustomerAppData) error { v.Type = "stripe" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsSandboxCustomerAppData returns the union data inside the CustomerAppData as a SandboxCustomerAppData func (t CustomerAppData) AsSandboxCustomerAppData() (SandboxCustomerAppData, error) { var body SandboxCustomerAppData err := json.Unmarshal(t.union, &body) return body, err } // FromSandboxCustomerAppData overwrites any union data inside the CustomerAppData as the provided SandboxCustomerAppData func (t *CustomerAppData) FromSandboxCustomerAppData(v SandboxCustomerAppData) error { v.Type = "sandbox" b, err := json.Marshal(v) t.union = b return err } // MergeSandboxCustomerAppData performs a merge with any union data inside the CustomerAppData, using the provided SandboxCustomerAppData func (t *CustomerAppData) MergeSandboxCustomerAppData(v SandboxCustomerAppData) error { v.Type = "sandbox" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsCustomInvoicingCustomerAppData returns the union data inside the CustomerAppData as a CustomInvoicingCustomerAppData func (t CustomerAppData) AsCustomInvoicingCustomerAppData() (CustomInvoicingCustomerAppData, error) { var body CustomInvoicingCustomerAppData err := json.Unmarshal(t.union, &body) return body, err } // FromCustomInvoicingCustomerAppData overwrites any union data inside the CustomerAppData as the provided CustomInvoicingCustomerAppData func (t *CustomerAppData) FromCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error { v.Type = "custom_invoicing" b, err := json.Marshal(v) t.union = b return err } // MergeCustomInvoicingCustomerAppData performs a merge with any union data inside the CustomerAppData, using the provided CustomInvoicingCustomerAppData func (t *CustomerAppData) MergeCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error { v.Type = "custom_invoicing" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t CustomerAppData) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t CustomerAppData) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "custom_invoicing": return t.AsCustomInvoicingCustomerAppData() case "sandbox": return t.AsSandboxCustomerAppData() case "stripe": return t.AsStripeCustomerAppData() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t CustomerAppData) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *CustomerAppData) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsStripeCustomerAppDataCreateOrUpdateItem returns the union data inside the CustomerAppDataCreateOrUpdateItem as a StripeCustomerAppDataCreateOrUpdateItem func (t CustomerAppDataCreateOrUpdateItem) AsStripeCustomerAppDataCreateOrUpdateItem() (StripeCustomerAppDataCreateOrUpdateItem, error) { var body StripeCustomerAppDataCreateOrUpdateItem err := json.Unmarshal(t.union, &body) return body, err } // FromStripeCustomerAppDataCreateOrUpdateItem overwrites any union data inside the CustomerAppDataCreateOrUpdateItem as the provided StripeCustomerAppDataCreateOrUpdateItem func (t *CustomerAppDataCreateOrUpdateItem) FromStripeCustomerAppDataCreateOrUpdateItem(v StripeCustomerAppDataCreateOrUpdateItem) error { v.Type = "stripe" b, err := json.Marshal(v) t.union = b return err } // MergeStripeCustomerAppDataCreateOrUpdateItem performs a merge with any union data inside the CustomerAppDataCreateOrUpdateItem, using the provided StripeCustomerAppDataCreateOrUpdateItem func (t *CustomerAppDataCreateOrUpdateItem) MergeStripeCustomerAppDataCreateOrUpdateItem(v StripeCustomerAppDataCreateOrUpdateItem) error { v.Type = "stripe" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsSandboxCustomerAppData returns the union data inside the CustomerAppDataCreateOrUpdateItem as a SandboxCustomerAppData func (t CustomerAppDataCreateOrUpdateItem) AsSandboxCustomerAppData() (SandboxCustomerAppData, error) { var body SandboxCustomerAppData err := json.Unmarshal(t.union, &body) return body, err } // FromSandboxCustomerAppData overwrites any union data inside the CustomerAppDataCreateOrUpdateItem as the provided SandboxCustomerAppData func (t *CustomerAppDataCreateOrUpdateItem) FromSandboxCustomerAppData(v SandboxCustomerAppData) error { v.Type = "sandbox" b, err := json.Marshal(v) t.union = b return err } // MergeSandboxCustomerAppData performs a merge with any union data inside the CustomerAppDataCreateOrUpdateItem, using the provided SandboxCustomerAppData func (t *CustomerAppDataCreateOrUpdateItem) MergeSandboxCustomerAppData(v SandboxCustomerAppData) error { v.Type = "sandbox" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsCustomInvoicingCustomerAppData returns the union data inside the CustomerAppDataCreateOrUpdateItem as a CustomInvoicingCustomerAppData func (t CustomerAppDataCreateOrUpdateItem) AsCustomInvoicingCustomerAppData() (CustomInvoicingCustomerAppData, error) { var body CustomInvoicingCustomerAppData err := json.Unmarshal(t.union, &body) return body, err } // FromCustomInvoicingCustomerAppData overwrites any union data inside the CustomerAppDataCreateOrUpdateItem as the provided CustomInvoicingCustomerAppData func (t *CustomerAppDataCreateOrUpdateItem) FromCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error { v.Type = "custom_invoicing" b, err := json.Marshal(v) t.union = b return err } // MergeCustomInvoicingCustomerAppData performs a merge with any union data inside the CustomerAppDataCreateOrUpdateItem, using the provided CustomInvoicingCustomerAppData func (t *CustomerAppDataCreateOrUpdateItem) MergeCustomInvoicingCustomerAppData(v CustomInvoicingCustomerAppData) error { v.Type = "custom_invoicing" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t CustomerAppDataCreateOrUpdateItem) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t CustomerAppDataCreateOrUpdateItem) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "custom_invoicing": return t.AsCustomInvoicingCustomerAppData() case "sandbox": return t.AsSandboxCustomerAppData() case "stripe": return t.AsStripeCustomerAppDataCreateOrUpdateItem() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t CustomerAppDataCreateOrUpdateItem) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *CustomerAppDataCreateOrUpdateItem) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsEntitlementMetered returns the union data inside the Entitlement as a EntitlementMetered func (t Entitlement) AsEntitlementMetered() (EntitlementMetered, error) { var body EntitlementMetered err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementMetered overwrites any union data inside the Entitlement as the provided EntitlementMetered func (t *Entitlement) FromEntitlementMetered(v EntitlementMetered) error { v.Type = "metered" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementMetered performs a merge with any union data inside the Entitlement, using the provided EntitlementMetered func (t *Entitlement) MergeEntitlementMetered(v EntitlementMetered) error { v.Type = "metered" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementStatic returns the union data inside the Entitlement as a EntitlementStatic func (t Entitlement) AsEntitlementStatic() (EntitlementStatic, error) { var body EntitlementStatic err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementStatic overwrites any union data inside the Entitlement as the provided EntitlementStatic func (t *Entitlement) FromEntitlementStatic(v EntitlementStatic) error { v.Type = "static" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementStatic performs a merge with any union data inside the Entitlement, using the provided EntitlementStatic func (t *Entitlement) MergeEntitlementStatic(v EntitlementStatic) error { v.Type = "static" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementBoolean returns the union data inside the Entitlement as a EntitlementBoolean func (t Entitlement) AsEntitlementBoolean() (EntitlementBoolean, error) { var body EntitlementBoolean err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementBoolean overwrites any union data inside the Entitlement as the provided EntitlementBoolean func (t *Entitlement) FromEntitlementBoolean(v EntitlementBoolean) error { v.Type = "boolean" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementBoolean performs a merge with any union data inside the Entitlement, using the provided EntitlementBoolean func (t *Entitlement) MergeEntitlementBoolean(v EntitlementBoolean) error { v.Type = "boolean" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t Entitlement) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t Entitlement) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "boolean": return t.AsEntitlementBoolean() case "metered": return t.AsEntitlementMetered() case "static": return t.AsEntitlementStatic() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t Entitlement) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *Entitlement) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsEntitlementMeteredCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementMeteredCreateInputs func (t EntitlementCreateInputs) AsEntitlementMeteredCreateInputs() (EntitlementMeteredCreateInputs, error) { var body EntitlementMeteredCreateInputs err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementMeteredCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementMeteredCreateInputs func (t *EntitlementCreateInputs) FromEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error { v.Type = "metered" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementMeteredCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementMeteredCreateInputs func (t *EntitlementCreateInputs) MergeEntitlementMeteredCreateInputs(v EntitlementMeteredCreateInputs) error { v.Type = "metered" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementStaticCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementStaticCreateInputs func (t EntitlementCreateInputs) AsEntitlementStaticCreateInputs() (EntitlementStaticCreateInputs, error) { var body EntitlementStaticCreateInputs err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementStaticCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementStaticCreateInputs func (t *EntitlementCreateInputs) FromEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error { v.Type = "static" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementStaticCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementStaticCreateInputs func (t *EntitlementCreateInputs) MergeEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error { v.Type = "static" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementBooleanCreateInputs returns the union data inside the EntitlementCreateInputs as a EntitlementBooleanCreateInputs func (t EntitlementCreateInputs) AsEntitlementBooleanCreateInputs() (EntitlementBooleanCreateInputs, error) { var body EntitlementBooleanCreateInputs err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementBooleanCreateInputs overwrites any union data inside the EntitlementCreateInputs as the provided EntitlementBooleanCreateInputs func (t *EntitlementCreateInputs) FromEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error { v.Type = "boolean" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementBooleanCreateInputs performs a merge with any union data inside the EntitlementCreateInputs, using the provided EntitlementBooleanCreateInputs func (t *EntitlementCreateInputs) MergeEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error { v.Type = "boolean" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t EntitlementCreateInputs) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t EntitlementCreateInputs) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "boolean": return t.AsEntitlementBooleanCreateInputs() case "metered": return t.AsEntitlementMeteredCreateInputs() case "static": return t.AsEntitlementStaticCreateInputs() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t EntitlementCreateInputs) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *EntitlementCreateInputs) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsEntitlementMeteredV2 returns the union data inside the EntitlementV2 as a EntitlementMeteredV2 func (t EntitlementV2) AsEntitlementMeteredV2() (EntitlementMeteredV2, error) { var body EntitlementMeteredV2 err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementMeteredV2 overwrites any union data inside the EntitlementV2 as the provided EntitlementMeteredV2 func (t *EntitlementV2) FromEntitlementMeteredV2(v EntitlementMeteredV2) error { v.Type = "metered" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementMeteredV2 performs a merge with any union data inside the EntitlementV2, using the provided EntitlementMeteredV2 func (t *EntitlementV2) MergeEntitlementMeteredV2(v EntitlementMeteredV2) error { v.Type = "metered" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementStaticV2 returns the union data inside the EntitlementV2 as a EntitlementStaticV2 func (t EntitlementV2) AsEntitlementStaticV2() (EntitlementStaticV2, error) { var body EntitlementStaticV2 err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementStaticV2 overwrites any union data inside the EntitlementV2 as the provided EntitlementStaticV2 func (t *EntitlementV2) FromEntitlementStaticV2(v EntitlementStaticV2) error { v.Type = "static" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementStaticV2 performs a merge with any union data inside the EntitlementV2, using the provided EntitlementStaticV2 func (t *EntitlementV2) MergeEntitlementStaticV2(v EntitlementStaticV2) error { v.Type = "static" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementBooleanV2 returns the union data inside the EntitlementV2 as a EntitlementBooleanV2 func (t EntitlementV2) AsEntitlementBooleanV2() (EntitlementBooleanV2, error) { var body EntitlementBooleanV2 err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementBooleanV2 overwrites any union data inside the EntitlementV2 as the provided EntitlementBooleanV2 func (t *EntitlementV2) FromEntitlementBooleanV2(v EntitlementBooleanV2) error { v.Type = "boolean" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementBooleanV2 performs a merge with any union data inside the EntitlementV2, using the provided EntitlementBooleanV2 func (t *EntitlementV2) MergeEntitlementBooleanV2(v EntitlementBooleanV2) error { v.Type = "boolean" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t EntitlementV2) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t EntitlementV2) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "boolean": return t.AsEntitlementBooleanV2() case "metered": return t.AsEntitlementMeteredV2() case "static": return t.AsEntitlementStaticV2() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t EntitlementV2) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *EntitlementV2) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsEntitlementMeteredV2CreateInputs returns the union data inside the EntitlementV2CreateInputs as a EntitlementMeteredV2CreateInputs func (t EntitlementV2CreateInputs) AsEntitlementMeteredV2CreateInputs() (EntitlementMeteredV2CreateInputs, error) { var body EntitlementMeteredV2CreateInputs err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementMeteredV2CreateInputs overwrites any union data inside the EntitlementV2CreateInputs as the provided EntitlementMeteredV2CreateInputs func (t *EntitlementV2CreateInputs) FromEntitlementMeteredV2CreateInputs(v EntitlementMeteredV2CreateInputs) error { v.Type = "metered" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementMeteredV2CreateInputs performs a merge with any union data inside the EntitlementV2CreateInputs, using the provided EntitlementMeteredV2CreateInputs func (t *EntitlementV2CreateInputs) MergeEntitlementMeteredV2CreateInputs(v EntitlementMeteredV2CreateInputs) error { v.Type = "metered" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementStaticCreateInputs returns the union data inside the EntitlementV2CreateInputs as a EntitlementStaticCreateInputs func (t EntitlementV2CreateInputs) AsEntitlementStaticCreateInputs() (EntitlementStaticCreateInputs, error) { var body EntitlementStaticCreateInputs err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementStaticCreateInputs overwrites any union data inside the EntitlementV2CreateInputs as the provided EntitlementStaticCreateInputs func (t *EntitlementV2CreateInputs) FromEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error { v.Type = "static" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementStaticCreateInputs performs a merge with any union data inside the EntitlementV2CreateInputs, using the provided EntitlementStaticCreateInputs func (t *EntitlementV2CreateInputs) MergeEntitlementStaticCreateInputs(v EntitlementStaticCreateInputs) error { v.Type = "static" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementBooleanCreateInputs returns the union data inside the EntitlementV2CreateInputs as a EntitlementBooleanCreateInputs func (t EntitlementV2CreateInputs) AsEntitlementBooleanCreateInputs() (EntitlementBooleanCreateInputs, error) { var body EntitlementBooleanCreateInputs err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementBooleanCreateInputs overwrites any union data inside the EntitlementV2CreateInputs as the provided EntitlementBooleanCreateInputs func (t *EntitlementV2CreateInputs) FromEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error { v.Type = "boolean" b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementBooleanCreateInputs performs a merge with any union data inside the EntitlementV2CreateInputs, using the provided EntitlementBooleanCreateInputs func (t *EntitlementV2CreateInputs) MergeEntitlementBooleanCreateInputs(v EntitlementBooleanCreateInputs) error { v.Type = "boolean" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t EntitlementV2CreateInputs) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t EntitlementV2CreateInputs) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "boolean": return t.AsEntitlementBooleanCreateInputs() case "metered": return t.AsEntitlementMeteredV2CreateInputs() case "static": return t.AsEntitlementStaticCreateInputs() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t EntitlementV2CreateInputs) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *EntitlementV2CreateInputs) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsFeatureManualUnitCost returns the union data inside the FeatureUnitCost as a FeatureManualUnitCost func (t FeatureUnitCost) AsFeatureManualUnitCost() (FeatureManualUnitCost, error) { var body FeatureManualUnitCost err := json.Unmarshal(t.union, &body) return body, err } // FromFeatureManualUnitCost overwrites any union data inside the FeatureUnitCost as the provided FeatureManualUnitCost func (t *FeatureUnitCost) FromFeatureManualUnitCost(v FeatureManualUnitCost) error { v.Type = "manual" b, err := json.Marshal(v) t.union = b return err } // MergeFeatureManualUnitCost performs a merge with any union data inside the FeatureUnitCost, using the provided FeatureManualUnitCost func (t *FeatureUnitCost) MergeFeatureManualUnitCost(v FeatureManualUnitCost) error { v.Type = "manual" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsFeatureLLMUnitCost returns the union data inside the FeatureUnitCost as a FeatureLLMUnitCost func (t FeatureUnitCost) AsFeatureLLMUnitCost() (FeatureLLMUnitCost, error) { var body FeatureLLMUnitCost err := json.Unmarshal(t.union, &body) return body, err } // FromFeatureLLMUnitCost overwrites any union data inside the FeatureUnitCost as the provided FeatureLLMUnitCost func (t *FeatureUnitCost) FromFeatureLLMUnitCost(v FeatureLLMUnitCost) error { v.Type = "llm" b, err := json.Marshal(v) t.union = b return err } // MergeFeatureLLMUnitCost performs a merge with any union data inside the FeatureUnitCost, using the provided FeatureLLMUnitCost func (t *FeatureUnitCost) MergeFeatureLLMUnitCost(v FeatureLLMUnitCost) error { v.Type = "llm" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t FeatureUnitCost) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t FeatureUnitCost) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "llm": return t.AsFeatureLLMUnitCost() case "manual": return t.AsFeatureManualUnitCost() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t FeatureUnitCost) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *FeatureUnitCost) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsEvent returns the union data inside the IngestEventsBody as a Event func (t IngestEventsBody) AsEvent() (Event, error) { var body Event err := json.Unmarshal(t.union, &body) return body, err } // FromEvent overwrites any union data inside the IngestEventsBody as the provided Event func (t *IngestEventsBody) FromEvent(v Event) error { b, err := json.Marshal(v) t.union = b return err } // MergeEvent performs a merge with any union data inside the IngestEventsBody, using the provided Event func (t *IngestEventsBody) MergeEvent(v Event) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsIngestEventsBody1 returns the union data inside the IngestEventsBody as a IngestEventsBody1 func (t IngestEventsBody) AsIngestEventsBody1() (IngestEventsBody1, error) { var body IngestEventsBody1 err := json.Unmarshal(t.union, &body) return body, err } // FromIngestEventsBody1 overwrites any union data inside the IngestEventsBody as the provided IngestEventsBody1 func (t *IngestEventsBody) FromIngestEventsBody1(v IngestEventsBody1) error { b, err := json.Marshal(v) t.union = b return err } // MergeIngestEventsBody1 performs a merge with any union data inside the IngestEventsBody, using the provided IngestEventsBody1 func (t *IngestEventsBody) MergeIngestEventsBody1(v IngestEventsBody1) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t IngestEventsBody) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *IngestEventsBody) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsListEntitlementsResult0 returns the union data inside the ListEntitlementsResult as a ListEntitlementsResult0 func (t ListEntitlementsResult) AsListEntitlementsResult0() (ListEntitlementsResult0, error) { var body ListEntitlementsResult0 err := json.Unmarshal(t.union, &body) return body, err } // FromListEntitlementsResult0 overwrites any union data inside the ListEntitlementsResult as the provided ListEntitlementsResult0 func (t *ListEntitlementsResult) FromListEntitlementsResult0(v ListEntitlementsResult0) error { b, err := json.Marshal(v) t.union = b return err } // MergeListEntitlementsResult0 performs a merge with any union data inside the ListEntitlementsResult, using the provided ListEntitlementsResult0 func (t *ListEntitlementsResult) MergeListEntitlementsResult0(v ListEntitlementsResult0) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEntitlementPaginatedResponse returns the union data inside the ListEntitlementsResult as a EntitlementPaginatedResponse func (t ListEntitlementsResult) AsEntitlementPaginatedResponse() (EntitlementPaginatedResponse, error) { var body EntitlementPaginatedResponse err := json.Unmarshal(t.union, &body) return body, err } // FromEntitlementPaginatedResponse overwrites any union data inside the ListEntitlementsResult as the provided EntitlementPaginatedResponse func (t *ListEntitlementsResult) FromEntitlementPaginatedResponse(v EntitlementPaginatedResponse) error { b, err := json.Marshal(v) t.union = b return err } // MergeEntitlementPaginatedResponse performs a merge with any union data inside the ListEntitlementsResult, using the provided EntitlementPaginatedResponse func (t *ListEntitlementsResult) MergeEntitlementPaginatedResponse(v EntitlementPaginatedResponse) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t ListEntitlementsResult) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *ListEntitlementsResult) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsListFeaturesResult0 returns the union data inside the ListFeaturesResult as a ListFeaturesResult0 func (t ListFeaturesResult) AsListFeaturesResult0() (ListFeaturesResult0, error) { var body ListFeaturesResult0 err := json.Unmarshal(t.union, &body) return body, err } // FromListFeaturesResult0 overwrites any union data inside the ListFeaturesResult as the provided ListFeaturesResult0 func (t *ListFeaturesResult) FromListFeaturesResult0(v ListFeaturesResult0) error { b, err := json.Marshal(v) t.union = b return err } // MergeListFeaturesResult0 performs a merge with any union data inside the ListFeaturesResult, using the provided ListFeaturesResult0 func (t *ListFeaturesResult) MergeListFeaturesResult0(v ListFeaturesResult0) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsFeaturePaginatedResponse returns the union data inside the ListFeaturesResult as a FeaturePaginatedResponse func (t ListFeaturesResult) AsFeaturePaginatedResponse() (FeaturePaginatedResponse, error) { var body FeaturePaginatedResponse err := json.Unmarshal(t.union, &body) return body, err } // FromFeaturePaginatedResponse overwrites any union data inside the ListFeaturesResult as the provided FeaturePaginatedResponse func (t *ListFeaturesResult) FromFeaturePaginatedResponse(v FeaturePaginatedResponse) error { b, err := json.Marshal(v) t.union = b return err } // MergeFeaturePaginatedResponse performs a merge with any union data inside the ListFeaturesResult, using the provided FeaturePaginatedResponse func (t *ListFeaturesResult) MergeFeaturePaginatedResponse(v FeaturePaginatedResponse) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t ListFeaturesResult) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *ListFeaturesResult) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsMeasureUsageFromPreset returns the union data inside the MeasureUsageFrom as a MeasureUsageFromPreset func (t MeasureUsageFrom) AsMeasureUsageFromPreset() (MeasureUsageFromPreset, error) { var body MeasureUsageFromPreset err := json.Unmarshal(t.union, &body) return body, err } // FromMeasureUsageFromPreset overwrites any union data inside the MeasureUsageFrom as the provided MeasureUsageFromPreset func (t *MeasureUsageFrom) FromMeasureUsageFromPreset(v MeasureUsageFromPreset) error { b, err := json.Marshal(v) t.union = b return err } // MergeMeasureUsageFromPreset performs a merge with any union data inside the MeasureUsageFrom, using the provided MeasureUsageFromPreset func (t *MeasureUsageFrom) MergeMeasureUsageFromPreset(v MeasureUsageFromPreset) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsMeasureUsageFromTime returns the union data inside the MeasureUsageFrom as a MeasureUsageFromTime func (t MeasureUsageFrom) AsMeasureUsageFromTime() (MeasureUsageFromTime, error) { var body MeasureUsageFromTime err := json.Unmarshal(t.union, &body) return body, err } // FromMeasureUsageFromTime overwrites any union data inside the MeasureUsageFrom as the provided MeasureUsageFromTime func (t *MeasureUsageFrom) FromMeasureUsageFromTime(v MeasureUsageFromTime) error { b, err := json.Marshal(v) t.union = b return err } // MergeMeasureUsageFromTime performs a merge with any union data inside the MeasureUsageFrom, using the provided MeasureUsageFromTime func (t *MeasureUsageFrom) MergeMeasureUsageFromTime(v MeasureUsageFromTime) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t MeasureUsageFrom) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *MeasureUsageFrom) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsNotificationEventResetPayload returns the union data inside the NotificationEventPayload as a NotificationEventResetPayload func (t NotificationEventPayload) AsNotificationEventResetPayload() (NotificationEventResetPayload, error) { var body NotificationEventResetPayload err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationEventResetPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventResetPayload func (t *NotificationEventPayload) FromNotificationEventResetPayload(v NotificationEventResetPayload) error { v.Type = "entitlements.reset" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationEventResetPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventResetPayload func (t *NotificationEventPayload) MergeNotificationEventResetPayload(v NotificationEventResetPayload) error { v.Type = "entitlements.reset" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationEventBalanceThresholdPayload returns the union data inside the NotificationEventPayload as a NotificationEventBalanceThresholdPayload func (t NotificationEventPayload) AsNotificationEventBalanceThresholdPayload() (NotificationEventBalanceThresholdPayload, error) { var body NotificationEventBalanceThresholdPayload err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationEventBalanceThresholdPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventBalanceThresholdPayload func (t *NotificationEventPayload) FromNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error { v.Type = "entitlements.balance.threshold" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationEventBalanceThresholdPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventBalanceThresholdPayload func (t *NotificationEventPayload) MergeNotificationEventBalanceThresholdPayload(v NotificationEventBalanceThresholdPayload) error { v.Type = "entitlements.balance.threshold" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationEventInvoiceCreatedPayload returns the union data inside the NotificationEventPayload as a NotificationEventInvoiceCreatedPayload func (t NotificationEventPayload) AsNotificationEventInvoiceCreatedPayload() (NotificationEventInvoiceCreatedPayload, error) { var body NotificationEventInvoiceCreatedPayload err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationEventInvoiceCreatedPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventInvoiceCreatedPayload func (t *NotificationEventPayload) FromNotificationEventInvoiceCreatedPayload(v NotificationEventInvoiceCreatedPayload) error { v.Type = "invoice.created" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationEventInvoiceCreatedPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventInvoiceCreatedPayload func (t *NotificationEventPayload) MergeNotificationEventInvoiceCreatedPayload(v NotificationEventInvoiceCreatedPayload) error { v.Type = "invoice.created" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationEventInvoiceUpdatedPayload returns the union data inside the NotificationEventPayload as a NotificationEventInvoiceUpdatedPayload func (t NotificationEventPayload) AsNotificationEventInvoiceUpdatedPayload() (NotificationEventInvoiceUpdatedPayload, error) { var body NotificationEventInvoiceUpdatedPayload err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationEventInvoiceUpdatedPayload overwrites any union data inside the NotificationEventPayload as the provided NotificationEventInvoiceUpdatedPayload func (t *NotificationEventPayload) FromNotificationEventInvoiceUpdatedPayload(v NotificationEventInvoiceUpdatedPayload) error { v.Type = "invoice.updated" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationEventInvoiceUpdatedPayload performs a merge with any union data inside the NotificationEventPayload, using the provided NotificationEventInvoiceUpdatedPayload func (t *NotificationEventPayload) MergeNotificationEventInvoiceUpdatedPayload(v NotificationEventInvoiceUpdatedPayload) error { v.Type = "invoice.updated" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t NotificationEventPayload) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t NotificationEventPayload) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "entitlements.balance.threshold": return t.AsNotificationEventBalanceThresholdPayload() case "entitlements.reset": return t.AsNotificationEventResetPayload() case "invoice.created": return t.AsNotificationEventInvoiceCreatedPayload() case "invoice.updated": return t.AsNotificationEventInvoiceUpdatedPayload() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t NotificationEventPayload) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *NotificationEventPayload) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsNotificationRuleBalanceThreshold returns the union data inside the NotificationRule as a NotificationRuleBalanceThreshold func (t NotificationRule) AsNotificationRuleBalanceThreshold() (NotificationRuleBalanceThreshold, error) { var body NotificationRuleBalanceThreshold err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationRuleBalanceThreshold overwrites any union data inside the NotificationRule as the provided NotificationRuleBalanceThreshold func (t *NotificationRule) FromNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error { v.Type = "entitlements.balance.threshold" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationRuleBalanceThreshold performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleBalanceThreshold func (t *NotificationRule) MergeNotificationRuleBalanceThreshold(v NotificationRuleBalanceThreshold) error { v.Type = "entitlements.balance.threshold" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationRuleEntitlementReset returns the union data inside the NotificationRule as a NotificationRuleEntitlementReset func (t NotificationRule) AsNotificationRuleEntitlementReset() (NotificationRuleEntitlementReset, error) { var body NotificationRuleEntitlementReset err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationRuleEntitlementReset overwrites any union data inside the NotificationRule as the provided NotificationRuleEntitlementReset func (t *NotificationRule) FromNotificationRuleEntitlementReset(v NotificationRuleEntitlementReset) error { v.Type = "entitlements.reset" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationRuleEntitlementReset performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleEntitlementReset func (t *NotificationRule) MergeNotificationRuleEntitlementReset(v NotificationRuleEntitlementReset) error { v.Type = "entitlements.reset" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationRuleInvoiceCreated returns the union data inside the NotificationRule as a NotificationRuleInvoiceCreated func (t NotificationRule) AsNotificationRuleInvoiceCreated() (NotificationRuleInvoiceCreated, error) { var body NotificationRuleInvoiceCreated err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationRuleInvoiceCreated overwrites any union data inside the NotificationRule as the provided NotificationRuleInvoiceCreated func (t *NotificationRule) FromNotificationRuleInvoiceCreated(v NotificationRuleInvoiceCreated) error { v.Type = "invoice.created" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationRuleInvoiceCreated performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleInvoiceCreated func (t *NotificationRule) MergeNotificationRuleInvoiceCreated(v NotificationRuleInvoiceCreated) error { v.Type = "invoice.created" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationRuleInvoiceUpdated returns the union data inside the NotificationRule as a NotificationRuleInvoiceUpdated func (t NotificationRule) AsNotificationRuleInvoiceUpdated() (NotificationRuleInvoiceUpdated, error) { var body NotificationRuleInvoiceUpdated err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationRuleInvoiceUpdated overwrites any union data inside the NotificationRule as the provided NotificationRuleInvoiceUpdated func (t *NotificationRule) FromNotificationRuleInvoiceUpdated(v NotificationRuleInvoiceUpdated) error { v.Type = "invoice.updated" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationRuleInvoiceUpdated performs a merge with any union data inside the NotificationRule, using the provided NotificationRuleInvoiceUpdated func (t *NotificationRule) MergeNotificationRuleInvoiceUpdated(v NotificationRuleInvoiceUpdated) error { v.Type = "invoice.updated" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t NotificationRule) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t NotificationRule) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "entitlements.balance.threshold": return t.AsNotificationRuleBalanceThreshold() case "entitlements.reset": return t.AsNotificationRuleEntitlementReset() case "invoice.created": return t.AsNotificationRuleInvoiceCreated() case "invoice.updated": return t.AsNotificationRuleInvoiceUpdated() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t NotificationRule) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *NotificationRule) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsNotificationRuleBalanceThresholdCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleBalanceThresholdCreateRequest func (t NotificationRuleCreateRequest) AsNotificationRuleBalanceThresholdCreateRequest() (NotificationRuleBalanceThresholdCreateRequest, error) { var body NotificationRuleBalanceThresholdCreateRequest err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationRuleBalanceThresholdCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleBalanceThresholdCreateRequest func (t *NotificationRuleCreateRequest) FromNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error { v.Type = "entitlements.balance.threshold" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationRuleBalanceThresholdCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleBalanceThresholdCreateRequest func (t *NotificationRuleCreateRequest) MergeNotificationRuleBalanceThresholdCreateRequest(v NotificationRuleBalanceThresholdCreateRequest) error { v.Type = "entitlements.balance.threshold" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationRuleEntitlementResetCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleEntitlementResetCreateRequest func (t NotificationRuleCreateRequest) AsNotificationRuleEntitlementResetCreateRequest() (NotificationRuleEntitlementResetCreateRequest, error) { var body NotificationRuleEntitlementResetCreateRequest err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationRuleEntitlementResetCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleEntitlementResetCreateRequest func (t *NotificationRuleCreateRequest) FromNotificationRuleEntitlementResetCreateRequest(v NotificationRuleEntitlementResetCreateRequest) error { v.Type = "entitlements.reset" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationRuleEntitlementResetCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleEntitlementResetCreateRequest func (t *NotificationRuleCreateRequest) MergeNotificationRuleEntitlementResetCreateRequest(v NotificationRuleEntitlementResetCreateRequest) error { v.Type = "entitlements.reset" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationRuleInvoiceCreatedCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleInvoiceCreatedCreateRequest func (t NotificationRuleCreateRequest) AsNotificationRuleInvoiceCreatedCreateRequest() (NotificationRuleInvoiceCreatedCreateRequest, error) { var body NotificationRuleInvoiceCreatedCreateRequest err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationRuleInvoiceCreatedCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleInvoiceCreatedCreateRequest func (t *NotificationRuleCreateRequest) FromNotificationRuleInvoiceCreatedCreateRequest(v NotificationRuleInvoiceCreatedCreateRequest) error { v.Type = "invoice.created" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationRuleInvoiceCreatedCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleInvoiceCreatedCreateRequest func (t *NotificationRuleCreateRequest) MergeNotificationRuleInvoiceCreatedCreateRequest(v NotificationRuleInvoiceCreatedCreateRequest) error { v.Type = "invoice.created" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsNotificationRuleInvoiceUpdatedCreateRequest returns the union data inside the NotificationRuleCreateRequest as a NotificationRuleInvoiceUpdatedCreateRequest func (t NotificationRuleCreateRequest) AsNotificationRuleInvoiceUpdatedCreateRequest() (NotificationRuleInvoiceUpdatedCreateRequest, error) { var body NotificationRuleInvoiceUpdatedCreateRequest err := json.Unmarshal(t.union, &body) return body, err } // FromNotificationRuleInvoiceUpdatedCreateRequest overwrites any union data inside the NotificationRuleCreateRequest as the provided NotificationRuleInvoiceUpdatedCreateRequest func (t *NotificationRuleCreateRequest) FromNotificationRuleInvoiceUpdatedCreateRequest(v NotificationRuleInvoiceUpdatedCreateRequest) error { v.Type = "invoice.updated" b, err := json.Marshal(v) t.union = b return err } // MergeNotificationRuleInvoiceUpdatedCreateRequest performs a merge with any union data inside the NotificationRuleCreateRequest, using the provided NotificationRuleInvoiceUpdatedCreateRequest func (t *NotificationRuleCreateRequest) MergeNotificationRuleInvoiceUpdatedCreateRequest(v NotificationRuleInvoiceUpdatedCreateRequest) error { v.Type = "invoice.updated" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t NotificationRuleCreateRequest) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t NotificationRuleCreateRequest) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "entitlements.balance.threshold": return t.AsNotificationRuleBalanceThresholdCreateRequest() case "entitlements.reset": return t.AsNotificationRuleEntitlementResetCreateRequest() case "invoice.created": return t.AsNotificationRuleInvoiceCreatedCreateRequest() case "invoice.updated": return t.AsNotificationRuleInvoiceUpdatedCreateRequest() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t NotificationRuleCreateRequest) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *NotificationRuleCreateRequest) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsPaymentTermInstant returns the union data inside the PaymentTerms as a PaymentTermInstant func (t PaymentTerms) AsPaymentTermInstant() (PaymentTermInstant, error) { var body PaymentTermInstant err := json.Unmarshal(t.union, &body) return body, err } // FromPaymentTermInstant overwrites any union data inside the PaymentTerms as the provided PaymentTermInstant func (t *PaymentTerms) FromPaymentTermInstant(v PaymentTermInstant) error { b, err := json.Marshal(v) t.union = b return err } // MergePaymentTermInstant performs a merge with any union data inside the PaymentTerms, using the provided PaymentTermInstant func (t *PaymentTerms) MergePaymentTermInstant(v PaymentTermInstant) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsPaymentTermDueDate returns the union data inside the PaymentTerms as a PaymentTermDueDate func (t PaymentTerms) AsPaymentTermDueDate() (PaymentTermDueDate, error) { var body PaymentTermDueDate err := json.Unmarshal(t.union, &body) return body, err } // FromPaymentTermDueDate overwrites any union data inside the PaymentTerms as the provided PaymentTermDueDate func (t *PaymentTerms) FromPaymentTermDueDate(v PaymentTermDueDate) error { b, err := json.Marshal(v) t.union = b return err } // MergePaymentTermDueDate performs a merge with any union data inside the PaymentTerms, using the provided PaymentTermDueDate func (t *PaymentTerms) MergePaymentTermDueDate(v PaymentTermDueDate) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t PaymentTerms) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *PaymentTerms) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsRateCardFlatFee returns the union data inside the RateCard as a RateCardFlatFee func (t RateCard) AsRateCardFlatFee() (RateCardFlatFee, error) { var body RateCardFlatFee err := json.Unmarshal(t.union, &body) return body, err } // FromRateCardFlatFee overwrites any union data inside the RateCard as the provided RateCardFlatFee func (t *RateCard) FromRateCardFlatFee(v RateCardFlatFee) error { v.Type = "flat_fee" b, err := json.Marshal(v) t.union = b return err } // MergeRateCardFlatFee performs a merge with any union data inside the RateCard, using the provided RateCardFlatFee func (t *RateCard) MergeRateCardFlatFee(v RateCardFlatFee) error { v.Type = "flat_fee" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsRateCardUsageBased returns the union data inside the RateCard as a RateCardUsageBased func (t RateCard) AsRateCardUsageBased() (RateCardUsageBased, error) { var body RateCardUsageBased err := json.Unmarshal(t.union, &body) return body, err } // FromRateCardUsageBased overwrites any union data inside the RateCard as the provided RateCardUsageBased func (t *RateCard) FromRateCardUsageBased(v RateCardUsageBased) error { v.Type = "usage_based" b, err := json.Marshal(v) t.union = b return err } // MergeRateCardUsageBased performs a merge with any union data inside the RateCard, using the provided RateCardUsageBased func (t *RateCard) MergeRateCardUsageBased(v RateCardUsageBased) error { v.Type = "usage_based" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t RateCard) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t RateCard) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "flat_fee": return t.AsRateCardFlatFee() case "usage_based": return t.AsRateCardUsageBased() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t RateCard) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *RateCard) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsRateCardMeteredEntitlement returns the union data inside the RateCardEntitlement as a RateCardMeteredEntitlement func (t RateCardEntitlement) AsRateCardMeteredEntitlement() (RateCardMeteredEntitlement, error) { var body RateCardMeteredEntitlement err := json.Unmarshal(t.union, &body) return body, err } // FromRateCardMeteredEntitlement overwrites any union data inside the RateCardEntitlement as the provided RateCardMeteredEntitlement func (t *RateCardEntitlement) FromRateCardMeteredEntitlement(v RateCardMeteredEntitlement) error { v.Type = "metered" b, err := json.Marshal(v) t.union = b return err } // MergeRateCardMeteredEntitlement performs a merge with any union data inside the RateCardEntitlement, using the provided RateCardMeteredEntitlement func (t *RateCardEntitlement) MergeRateCardMeteredEntitlement(v RateCardMeteredEntitlement) error { v.Type = "metered" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsRateCardStaticEntitlement returns the union data inside the RateCardEntitlement as a RateCardStaticEntitlement func (t RateCardEntitlement) AsRateCardStaticEntitlement() (RateCardStaticEntitlement, error) { var body RateCardStaticEntitlement err := json.Unmarshal(t.union, &body) return body, err } // FromRateCardStaticEntitlement overwrites any union data inside the RateCardEntitlement as the provided RateCardStaticEntitlement func (t *RateCardEntitlement) FromRateCardStaticEntitlement(v RateCardStaticEntitlement) error { v.Type = "static" b, err := json.Marshal(v) t.union = b return err } // MergeRateCardStaticEntitlement performs a merge with any union data inside the RateCardEntitlement, using the provided RateCardStaticEntitlement func (t *RateCardEntitlement) MergeRateCardStaticEntitlement(v RateCardStaticEntitlement) error { v.Type = "static" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsRateCardBooleanEntitlement returns the union data inside the RateCardEntitlement as a RateCardBooleanEntitlement func (t RateCardEntitlement) AsRateCardBooleanEntitlement() (RateCardBooleanEntitlement, error) { var body RateCardBooleanEntitlement err := json.Unmarshal(t.union, &body) return body, err } // FromRateCardBooleanEntitlement overwrites any union data inside the RateCardEntitlement as the provided RateCardBooleanEntitlement func (t *RateCardEntitlement) FromRateCardBooleanEntitlement(v RateCardBooleanEntitlement) error { v.Type = "boolean" b, err := json.Marshal(v) t.union = b return err } // MergeRateCardBooleanEntitlement performs a merge with any union data inside the RateCardEntitlement, using the provided RateCardBooleanEntitlement func (t *RateCardEntitlement) MergeRateCardBooleanEntitlement(v RateCardBooleanEntitlement) error { v.Type = "boolean" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t RateCardEntitlement) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t RateCardEntitlement) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "boolean": return t.AsRateCardBooleanEntitlement() case "metered": return t.AsRateCardMeteredEntitlement() case "static": return t.AsRateCardStaticEntitlement() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t RateCardEntitlement) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *RateCardEntitlement) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsFlatPriceWithPaymentTerm returns the union data inside the RateCardUsageBasedPrice as a FlatPriceWithPaymentTerm func (t RateCardUsageBasedPrice) AsFlatPriceWithPaymentTerm() (FlatPriceWithPaymentTerm, error) { var body FlatPriceWithPaymentTerm err := json.Unmarshal(t.union, &body) return body, err } // FromFlatPriceWithPaymentTerm overwrites any union data inside the RateCardUsageBasedPrice as the provided FlatPriceWithPaymentTerm func (t *RateCardUsageBasedPrice) FromFlatPriceWithPaymentTerm(v FlatPriceWithPaymentTerm) error { v.Type = "flat" b, err := json.Marshal(v) t.union = b return err } // MergeFlatPriceWithPaymentTerm performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided FlatPriceWithPaymentTerm func (t *RateCardUsageBasedPrice) MergeFlatPriceWithPaymentTerm(v FlatPriceWithPaymentTerm) error { v.Type = "flat" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsUnitPriceWithCommitments returns the union data inside the RateCardUsageBasedPrice as a UnitPriceWithCommitments func (t RateCardUsageBasedPrice) AsUnitPriceWithCommitments() (UnitPriceWithCommitments, error) { var body UnitPriceWithCommitments err := json.Unmarshal(t.union, &body) return body, err } // FromUnitPriceWithCommitments overwrites any union data inside the RateCardUsageBasedPrice as the provided UnitPriceWithCommitments func (t *RateCardUsageBasedPrice) FromUnitPriceWithCommitments(v UnitPriceWithCommitments) error { v.Type = "unit" b, err := json.Marshal(v) t.union = b return err } // MergeUnitPriceWithCommitments performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided UnitPriceWithCommitments func (t *RateCardUsageBasedPrice) MergeUnitPriceWithCommitments(v UnitPriceWithCommitments) error { v.Type = "unit" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsTieredPriceWithCommitments returns the union data inside the RateCardUsageBasedPrice as a TieredPriceWithCommitments func (t RateCardUsageBasedPrice) AsTieredPriceWithCommitments() (TieredPriceWithCommitments, error) { var body TieredPriceWithCommitments err := json.Unmarshal(t.union, &body) return body, err } // FromTieredPriceWithCommitments overwrites any union data inside the RateCardUsageBasedPrice as the provided TieredPriceWithCommitments func (t *RateCardUsageBasedPrice) FromTieredPriceWithCommitments(v TieredPriceWithCommitments) error { v.Type = "tiered" b, err := json.Marshal(v) t.union = b return err } // MergeTieredPriceWithCommitments performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided TieredPriceWithCommitments func (t *RateCardUsageBasedPrice) MergeTieredPriceWithCommitments(v TieredPriceWithCommitments) error { v.Type = "tiered" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsDynamicPriceWithCommitments returns the union data inside the RateCardUsageBasedPrice as a DynamicPriceWithCommitments func (t RateCardUsageBasedPrice) AsDynamicPriceWithCommitments() (DynamicPriceWithCommitments, error) { var body DynamicPriceWithCommitments err := json.Unmarshal(t.union, &body) return body, err } // FromDynamicPriceWithCommitments overwrites any union data inside the RateCardUsageBasedPrice as the provided DynamicPriceWithCommitments func (t *RateCardUsageBasedPrice) FromDynamicPriceWithCommitments(v DynamicPriceWithCommitments) error { v.Type = "dynamic" b, err := json.Marshal(v) t.union = b return err } // MergeDynamicPriceWithCommitments performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided DynamicPriceWithCommitments func (t *RateCardUsageBasedPrice) MergeDynamicPriceWithCommitments(v DynamicPriceWithCommitments) error { v.Type = "dynamic" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsPackagePriceWithCommitments returns the union data inside the RateCardUsageBasedPrice as a PackagePriceWithCommitments func (t RateCardUsageBasedPrice) AsPackagePriceWithCommitments() (PackagePriceWithCommitments, error) { var body PackagePriceWithCommitments err := json.Unmarshal(t.union, &body) return body, err } // FromPackagePriceWithCommitments overwrites any union data inside the RateCardUsageBasedPrice as the provided PackagePriceWithCommitments func (t *RateCardUsageBasedPrice) FromPackagePriceWithCommitments(v PackagePriceWithCommitments) error { v.Type = "package" b, err := json.Marshal(v) t.union = b return err } // MergePackagePriceWithCommitments performs a merge with any union data inside the RateCardUsageBasedPrice, using the provided PackagePriceWithCommitments func (t *RateCardUsageBasedPrice) MergePackagePriceWithCommitments(v PackagePriceWithCommitments) error { v.Type = "package" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t RateCardUsageBasedPrice) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t RateCardUsageBasedPrice) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "dynamic": return t.AsDynamicPriceWithCommitments() case "flat": return t.AsFlatPriceWithPaymentTerm() case "package": return t.AsPackagePriceWithCommitments() case "tiered": return t.AsTieredPriceWithCommitments() case "unit": return t.AsUnitPriceWithCommitments() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t RateCardUsageBasedPrice) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *RateCardUsageBasedPrice) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsRecurringPeriodInterval0 returns the union data inside the RecurringPeriodInterval as a RecurringPeriodInterval0 func (t RecurringPeriodInterval) AsRecurringPeriodInterval0() (RecurringPeriodInterval0, error) { var body RecurringPeriodInterval0 err := json.Unmarshal(t.union, &body) return body, err } // FromRecurringPeriodInterval0 overwrites any union data inside the RecurringPeriodInterval as the provided RecurringPeriodInterval0 func (t *RecurringPeriodInterval) FromRecurringPeriodInterval0(v RecurringPeriodInterval0) error { b, err := json.Marshal(v) t.union = b return err } // MergeRecurringPeriodInterval0 performs a merge with any union data inside the RecurringPeriodInterval, using the provided RecurringPeriodInterval0 func (t *RecurringPeriodInterval) MergeRecurringPeriodInterval0(v RecurringPeriodInterval0) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsRecurringPeriodIntervalEnum returns the union data inside the RecurringPeriodInterval as a RecurringPeriodIntervalEnum func (t RecurringPeriodInterval) AsRecurringPeriodIntervalEnum() (RecurringPeriodIntervalEnum, error) { var body RecurringPeriodIntervalEnum err := json.Unmarshal(t.union, &body) return body, err } // FromRecurringPeriodIntervalEnum overwrites any union data inside the RecurringPeriodInterval as the provided RecurringPeriodIntervalEnum func (t *RecurringPeriodInterval) FromRecurringPeriodIntervalEnum(v RecurringPeriodIntervalEnum) error { b, err := json.Marshal(v) t.union = b return err } // MergeRecurringPeriodIntervalEnum performs a merge with any union data inside the RecurringPeriodInterval, using the provided RecurringPeriodIntervalEnum func (t *RecurringPeriodInterval) MergeRecurringPeriodIntervalEnum(v RecurringPeriodIntervalEnum) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t RecurringPeriodInterval) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *RecurringPeriodInterval) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsPlanSubscriptionChange returns the union data inside the SubscriptionChange as a PlanSubscriptionChange func (t SubscriptionChange) AsPlanSubscriptionChange() (PlanSubscriptionChange, error) { var body PlanSubscriptionChange err := json.Unmarshal(t.union, &body) return body, err } // FromPlanSubscriptionChange overwrites any union data inside the SubscriptionChange as the provided PlanSubscriptionChange func (t *SubscriptionChange) FromPlanSubscriptionChange(v PlanSubscriptionChange) error { b, err := json.Marshal(v) t.union = b return err } // MergePlanSubscriptionChange performs a merge with any union data inside the SubscriptionChange, using the provided PlanSubscriptionChange func (t *SubscriptionChange) MergePlanSubscriptionChange(v PlanSubscriptionChange) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsCustomSubscriptionChange returns the union data inside the SubscriptionChange as a CustomSubscriptionChange func (t SubscriptionChange) AsCustomSubscriptionChange() (CustomSubscriptionChange, error) { var body CustomSubscriptionChange err := json.Unmarshal(t.union, &body) return body, err } // FromCustomSubscriptionChange overwrites any union data inside the SubscriptionChange as the provided CustomSubscriptionChange func (t *SubscriptionChange) FromCustomSubscriptionChange(v CustomSubscriptionChange) error { b, err := json.Marshal(v) t.union = b return err } // MergeCustomSubscriptionChange performs a merge with any union data inside the SubscriptionChange, using the provided CustomSubscriptionChange func (t *SubscriptionChange) MergeCustomSubscriptionChange(v CustomSubscriptionChange) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t SubscriptionChange) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *SubscriptionChange) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsPlanSubscriptionCreate returns the union data inside the SubscriptionCreate as a PlanSubscriptionCreate func (t SubscriptionCreate) AsPlanSubscriptionCreate() (PlanSubscriptionCreate, error) { var body PlanSubscriptionCreate err := json.Unmarshal(t.union, &body) return body, err } // FromPlanSubscriptionCreate overwrites any union data inside the SubscriptionCreate as the provided PlanSubscriptionCreate func (t *SubscriptionCreate) FromPlanSubscriptionCreate(v PlanSubscriptionCreate) error { b, err := json.Marshal(v) t.union = b return err } // MergePlanSubscriptionCreate performs a merge with any union data inside the SubscriptionCreate, using the provided PlanSubscriptionCreate func (t *SubscriptionCreate) MergePlanSubscriptionCreate(v PlanSubscriptionCreate) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsCustomSubscriptionCreate returns the union data inside the SubscriptionCreate as a CustomSubscriptionCreate func (t SubscriptionCreate) AsCustomSubscriptionCreate() (CustomSubscriptionCreate, error) { var body CustomSubscriptionCreate err := json.Unmarshal(t.union, &body) return body, err } // FromCustomSubscriptionCreate overwrites any union data inside the SubscriptionCreate as the provided CustomSubscriptionCreate func (t *SubscriptionCreate) FromCustomSubscriptionCreate(v CustomSubscriptionCreate) error { b, err := json.Marshal(v) t.union = b return err } // MergeCustomSubscriptionCreate performs a merge with any union data inside the SubscriptionCreate, using the provided CustomSubscriptionCreate func (t *SubscriptionCreate) MergeCustomSubscriptionCreate(v CustomSubscriptionCreate) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t SubscriptionCreate) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *SubscriptionCreate) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsEditSubscriptionAddItem returns the union data inside the SubscriptionEditOperation as a EditSubscriptionAddItem func (t SubscriptionEditOperation) AsEditSubscriptionAddItem() (EditSubscriptionAddItem, error) { var body EditSubscriptionAddItem err := json.Unmarshal(t.union, &body) return body, err } // FromEditSubscriptionAddItem overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionAddItem func (t *SubscriptionEditOperation) FromEditSubscriptionAddItem(v EditSubscriptionAddItem) error { v.Op = "add_item" b, err := json.Marshal(v) t.union = b return err } // MergeEditSubscriptionAddItem performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionAddItem func (t *SubscriptionEditOperation) MergeEditSubscriptionAddItem(v EditSubscriptionAddItem) error { v.Op = "add_item" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEditSubscriptionRemoveItem returns the union data inside the SubscriptionEditOperation as a EditSubscriptionRemoveItem func (t SubscriptionEditOperation) AsEditSubscriptionRemoveItem() (EditSubscriptionRemoveItem, error) { var body EditSubscriptionRemoveItem err := json.Unmarshal(t.union, &body) return body, err } // FromEditSubscriptionRemoveItem overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionRemoveItem func (t *SubscriptionEditOperation) FromEditSubscriptionRemoveItem(v EditSubscriptionRemoveItem) error { v.Op = "remove_item" b, err := json.Marshal(v) t.union = b return err } // MergeEditSubscriptionRemoveItem performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionRemoveItem func (t *SubscriptionEditOperation) MergeEditSubscriptionRemoveItem(v EditSubscriptionRemoveItem) error { v.Op = "remove_item" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEditSubscriptionAddPhase returns the union data inside the SubscriptionEditOperation as a EditSubscriptionAddPhase func (t SubscriptionEditOperation) AsEditSubscriptionAddPhase() (EditSubscriptionAddPhase, error) { var body EditSubscriptionAddPhase err := json.Unmarshal(t.union, &body) return body, err } // FromEditSubscriptionAddPhase overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionAddPhase func (t *SubscriptionEditOperation) FromEditSubscriptionAddPhase(v EditSubscriptionAddPhase) error { v.Op = "add_phase" b, err := json.Marshal(v) t.union = b return err } // MergeEditSubscriptionAddPhase performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionAddPhase func (t *SubscriptionEditOperation) MergeEditSubscriptionAddPhase(v EditSubscriptionAddPhase) error { v.Op = "add_phase" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEditSubscriptionRemovePhase returns the union data inside the SubscriptionEditOperation as a EditSubscriptionRemovePhase func (t SubscriptionEditOperation) AsEditSubscriptionRemovePhase() (EditSubscriptionRemovePhase, error) { var body EditSubscriptionRemovePhase err := json.Unmarshal(t.union, &body) return body, err } // FromEditSubscriptionRemovePhase overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionRemovePhase func (t *SubscriptionEditOperation) FromEditSubscriptionRemovePhase(v EditSubscriptionRemovePhase) error { v.Op = "remove_phase" b, err := json.Marshal(v) t.union = b return err } // MergeEditSubscriptionRemovePhase performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionRemovePhase func (t *SubscriptionEditOperation) MergeEditSubscriptionRemovePhase(v EditSubscriptionRemovePhase) error { v.Op = "remove_phase" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEditSubscriptionStretchPhase returns the union data inside the SubscriptionEditOperation as a EditSubscriptionStretchPhase func (t SubscriptionEditOperation) AsEditSubscriptionStretchPhase() (EditSubscriptionStretchPhase, error) { var body EditSubscriptionStretchPhase err := json.Unmarshal(t.union, &body) return body, err } // FromEditSubscriptionStretchPhase overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionStretchPhase func (t *SubscriptionEditOperation) FromEditSubscriptionStretchPhase(v EditSubscriptionStretchPhase) error { v.Op = "stretch_phase" b, err := json.Marshal(v) t.union = b return err } // MergeEditSubscriptionStretchPhase performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionStretchPhase func (t *SubscriptionEditOperation) MergeEditSubscriptionStretchPhase(v EditSubscriptionStretchPhase) error { v.Op = "stretch_phase" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsEditSubscriptionUnscheduleEdit returns the union data inside the SubscriptionEditOperation as a EditSubscriptionUnscheduleEdit func (t SubscriptionEditOperation) AsEditSubscriptionUnscheduleEdit() (EditSubscriptionUnscheduleEdit, error) { var body EditSubscriptionUnscheduleEdit err := json.Unmarshal(t.union, &body) return body, err } // FromEditSubscriptionUnscheduleEdit overwrites any union data inside the SubscriptionEditOperation as the provided EditSubscriptionUnscheduleEdit func (t *SubscriptionEditOperation) FromEditSubscriptionUnscheduleEdit(v EditSubscriptionUnscheduleEdit) error { v.Op = "unschedule_edit" b, err := json.Marshal(v) t.union = b return err } // MergeEditSubscriptionUnscheduleEdit performs a merge with any union data inside the SubscriptionEditOperation, using the provided EditSubscriptionUnscheduleEdit func (t *SubscriptionEditOperation) MergeEditSubscriptionUnscheduleEdit(v EditSubscriptionUnscheduleEdit) error { v.Op = "unschedule_edit" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t SubscriptionEditOperation) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"op"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t SubscriptionEditOperation) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "add_item": return t.AsEditSubscriptionAddItem() case "add_phase": return t.AsEditSubscriptionAddPhase() case "remove_item": return t.AsEditSubscriptionRemoveItem() case "remove_phase": return t.AsEditSubscriptionRemovePhase() case "stretch_phase": return t.AsEditSubscriptionStretchPhase() case "unschedule_edit": return t.AsEditSubscriptionUnscheduleEdit() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t SubscriptionEditOperation) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *SubscriptionEditOperation) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsSubscriptionTimingEnum returns the union data inside the SubscriptionTiming as a SubscriptionTimingEnum func (t SubscriptionTiming) AsSubscriptionTimingEnum() (SubscriptionTimingEnum, error) { var body SubscriptionTimingEnum err := json.Unmarshal(t.union, &body) return body, err } // FromSubscriptionTimingEnum overwrites any union data inside the SubscriptionTiming as the provided SubscriptionTimingEnum func (t *SubscriptionTiming) FromSubscriptionTimingEnum(v SubscriptionTimingEnum) error { b, err := json.Marshal(v) t.union = b return err } // MergeSubscriptionTimingEnum performs a merge with any union data inside the SubscriptionTiming, using the provided SubscriptionTimingEnum func (t *SubscriptionTiming) MergeSubscriptionTimingEnum(v SubscriptionTimingEnum) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsSubscriptionTiming1 returns the union data inside the SubscriptionTiming as a SubscriptionTiming1 func (t SubscriptionTiming) AsSubscriptionTiming1() (SubscriptionTiming1, error) { var body SubscriptionTiming1 err := json.Unmarshal(t.union, &body) return body, err } // FromSubscriptionTiming1 overwrites any union data inside the SubscriptionTiming as the provided SubscriptionTiming1 func (t *SubscriptionTiming) FromSubscriptionTiming1(v SubscriptionTiming1) error { b, err := json.Marshal(v) t.union = b return err } // MergeSubscriptionTiming1 performs a merge with any union data inside the SubscriptionTiming, using the provided SubscriptionTiming1 func (t *SubscriptionTiming) MergeSubscriptionTiming1(v SubscriptionTiming1) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t SubscriptionTiming) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *SubscriptionTiming) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsVoidInvoiceLineDiscardAction returns the union data inside the VoidInvoiceLineActionCreate as a VoidInvoiceLineDiscardAction func (t VoidInvoiceLineActionCreate) AsVoidInvoiceLineDiscardAction() (VoidInvoiceLineDiscardAction, error) { var body VoidInvoiceLineDiscardAction err := json.Unmarshal(t.union, &body) return body, err } // FromVoidInvoiceLineDiscardAction overwrites any union data inside the VoidInvoiceLineActionCreate as the provided VoidInvoiceLineDiscardAction func (t *VoidInvoiceLineActionCreate) FromVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error { v.Type = "discard" b, err := json.Marshal(v) t.union = b return err } // MergeVoidInvoiceLineDiscardAction performs a merge with any union data inside the VoidInvoiceLineActionCreate, using the provided VoidInvoiceLineDiscardAction func (t *VoidInvoiceLineActionCreate) MergeVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error { v.Type = "discard" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsVoidInvoiceLinePendingActionCreate returns the union data inside the VoidInvoiceLineActionCreate as a VoidInvoiceLinePendingActionCreate func (t VoidInvoiceLineActionCreate) AsVoidInvoiceLinePendingActionCreate() (VoidInvoiceLinePendingActionCreate, error) { var body VoidInvoiceLinePendingActionCreate err := json.Unmarshal(t.union, &body) return body, err } // FromVoidInvoiceLinePendingActionCreate overwrites any union data inside the VoidInvoiceLineActionCreate as the provided VoidInvoiceLinePendingActionCreate func (t *VoidInvoiceLineActionCreate) FromVoidInvoiceLinePendingActionCreate(v VoidInvoiceLinePendingActionCreate) error { v.Type = "pending" b, err := json.Marshal(v) t.union = b return err } // MergeVoidInvoiceLinePendingActionCreate performs a merge with any union data inside the VoidInvoiceLineActionCreate, using the provided VoidInvoiceLinePendingActionCreate func (t *VoidInvoiceLineActionCreate) MergeVoidInvoiceLinePendingActionCreate(v VoidInvoiceLinePendingActionCreate) error { v.Type = "pending" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t VoidInvoiceLineActionCreate) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t VoidInvoiceLineActionCreate) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "discard": return t.AsVoidInvoiceLineDiscardAction() case "pending": return t.AsVoidInvoiceLinePendingActionCreate() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t VoidInvoiceLineActionCreate) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *VoidInvoiceLineActionCreate) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // AsVoidInvoiceLineDiscardAction returns the union data inside the VoidInvoiceLineActionCreateItem as a VoidInvoiceLineDiscardAction func (t VoidInvoiceLineActionCreateItem) AsVoidInvoiceLineDiscardAction() (VoidInvoiceLineDiscardAction, error) { var body VoidInvoiceLineDiscardAction err := json.Unmarshal(t.union, &body) return body, err } // FromVoidInvoiceLineDiscardAction overwrites any union data inside the VoidInvoiceLineActionCreateItem as the provided VoidInvoiceLineDiscardAction func (t *VoidInvoiceLineActionCreateItem) FromVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error { v.Type = "discard" b, err := json.Marshal(v) t.union = b return err } // MergeVoidInvoiceLineDiscardAction performs a merge with any union data inside the VoidInvoiceLineActionCreateItem, using the provided VoidInvoiceLineDiscardAction func (t *VoidInvoiceLineActionCreateItem) MergeVoidInvoiceLineDiscardAction(v VoidInvoiceLineDiscardAction) error { v.Type = "discard" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsVoidInvoiceLinePendingActionCreateItem returns the union data inside the VoidInvoiceLineActionCreateItem as a VoidInvoiceLinePendingActionCreateItem func (t VoidInvoiceLineActionCreateItem) AsVoidInvoiceLinePendingActionCreateItem() (VoidInvoiceLinePendingActionCreateItem, error) { var body VoidInvoiceLinePendingActionCreateItem err := json.Unmarshal(t.union, &body) return body, err } // FromVoidInvoiceLinePendingActionCreateItem overwrites any union data inside the VoidInvoiceLineActionCreateItem as the provided VoidInvoiceLinePendingActionCreateItem func (t *VoidInvoiceLineActionCreateItem) FromVoidInvoiceLinePendingActionCreateItem(v VoidInvoiceLinePendingActionCreateItem) error { v.Type = "pending" b, err := json.Marshal(v) t.union = b return err } // MergeVoidInvoiceLinePendingActionCreateItem performs a merge with any union data inside the VoidInvoiceLineActionCreateItem, using the provided VoidInvoiceLinePendingActionCreateItem func (t *VoidInvoiceLineActionCreateItem) MergeVoidInvoiceLinePendingActionCreateItem(v VoidInvoiceLinePendingActionCreateItem) error { v.Type = "pending" b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t VoidInvoiceLineActionCreateItem) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } func (t VoidInvoiceLineActionCreateItem) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { case "discard": return t.AsVoidInvoiceLineDiscardAction() case "pending": return t.AsVoidInvoiceLinePendingActionCreateItem() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } func (t VoidInvoiceLineActionCreateItem) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *VoidInvoiceLineActionCreateItem) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } // RequestEditorFn is the function signature for the RequestEditor callback function type RequestEditorFn func(ctx context.Context, req *http.Request) error // Doer performs HTTP requests. // // The standard http.Client implements this interface. type HttpRequestDoer interface { Do(req *http.Request) (*http.Response, error) } // Client which conforms to the OpenAPI3 specification for this service. 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 } // ClientOption allows setting custom parameters during construction type ClientOption func(*Client) error // Creates a new Client, with reasonable defaults func NewClient(server string, opts ...ClientOption) (*Client, error) { // create a client with sane default values client := Client{ Server: server, } // mutate client and add all optional params for _, o := range opts { if err := o(&client); err != nil { return nil, err } } // ensure the server URL always has a trailing slash if !strings.HasSuffix(client.Server, "/") { client.Server += "/" } // create httpClient, if not already present if client.Client == nil { client.Client = &http.Client{} } return &client, nil } // WithHTTPClient allows overriding the default Doer, which is // automatically created using http.Client. This is useful for tests. func WithHTTPClient(doer HttpRequestDoer) ClientOption { return func(c *Client) error { c.Client = doer return nil } } // WithRequestEditorFn allows setting up a callback function, which will be // called right before sending the request. This can be used to mutate the request. func WithRequestEditorFn(fn RequestEditorFn) ClientOption { return func(c *Client) error { c.RequestEditors = append(c.RequestEditors, fn) return nil } } // The interface specification for the client above. type ClientInterface interface { // ListAddons request ListAddons(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateAddonWithBody request with any body CreateAddonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateAddon(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteAddon request DeleteAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAddon request GetAddon(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateAddonWithBody request with any body UpdateAddonWithBody(ctx context.Context, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateAddon(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ArchiveAddon request ArchiveAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) // PublishAddon request PublishAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListApps request ListApps(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // AppCustomInvoicingDraftSynchronizedWithBody request with any body AppCustomInvoicingDraftSynchronizedWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) AppCustomInvoicingDraftSynchronized(ctx context.Context, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // AppCustomInvoicingIssuingSynchronizedWithBody request with any body AppCustomInvoicingIssuingSynchronizedWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) AppCustomInvoicingIssuingSynchronized(ctx context.Context, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // AppCustomInvoicingUpdatePaymentStatusWithBody request with any body AppCustomInvoicingUpdatePaymentStatusWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) AppCustomInvoicingUpdatePaymentStatus(ctx context.Context, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // UninstallApp request UninstallApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApp request GetApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateAppWithBody request with any body UpdateAppWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateApp(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateStripeAPIKeyWithBody request with any body UpdateStripeAPIKeyWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateStripeAPIKey(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // AppStripeWebhookWithBody request with any body AppStripeWebhookWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) AppStripeWebhook(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListBillingProfileCustomerOverrides request ListBillingProfileCustomerOverrides(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteBillingProfileCustomerOverride request DeleteBillingProfileCustomerOverride(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBillingProfileCustomerOverride request GetBillingProfileCustomerOverride(ctx context.Context, customerId string, params *GetBillingProfileCustomerOverrideParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpsertBillingProfileCustomerOverrideWithBody request with any body UpsertBillingProfileCustomerOverrideWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpsertBillingProfileCustomerOverride(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CreatePendingInvoiceLineWithBody request with any body CreatePendingInvoiceLineWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreatePendingInvoiceLine(ctx context.Context, customerId string, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // SimulateInvoiceWithBody request with any body SimulateInvoiceWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SimulateInvoice(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListInvoices request ListInvoices(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // InvoicePendingLinesActionWithBody request with any body InvoicePendingLinesActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) InvoicePendingLinesAction(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteInvoice request DeleteInvoice(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetInvoice request GetInvoice(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateInvoiceWithBody request with any body UpdateInvoiceWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateInvoice(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // AdvanceInvoiceAction request AdvanceInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ApproveInvoiceAction request ApproveInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // RetryInvoiceAction request RetryInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // SnapshotQuantitiesInvoiceAction request SnapshotQuantitiesInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // RecalculateInvoiceTaxAction request RecalculateInvoiceTaxAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // VoidInvoiceActionWithBody request with any body VoidInvoiceActionWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) VoidInvoiceAction(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListBillingProfiles request ListBillingProfiles(ctx context.Context, params *ListBillingProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateBillingProfileWithBody request with any body CreateBillingProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateBillingProfile(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteBillingProfile request DeleteBillingProfile(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBillingProfile request GetBillingProfile(ctx context.Context, id string, params *GetBillingProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateBillingProfileWithBody request with any body UpdateBillingProfileWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateBillingProfile(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListCustomers request ListCustomers(ctx context.Context, params *ListCustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateCustomerWithBody request with any body CreateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateCustomer(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteCustomer request DeleteCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomer request GetCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateCustomerWithBody request with any body UpdateCustomerWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomerAccess request GetCustomerAccess(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error) // ListCustomerAppData request ListCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpsertCustomerAppDataWithBody request with any body UpsertCustomerAppDataWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpsertCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteCustomerAppData request DeleteCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomerEntitlementValue request GetCustomerEntitlementValue(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomerStripeAppData request GetCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error) // UpsertCustomerStripeAppDataWithBody request with any body UpsertCustomerStripeAppDataWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpsertCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateCustomerStripePortalSessionWithBody request with any body CreateCustomerStripePortalSessionWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateCustomerStripePortalSession(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListCustomerSubscriptions request ListCustomerSubscriptions(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDebugMetrics request GetDebugMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // ListEntitlements request ListEntitlements(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEntitlementById request GetEntitlementById(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListEvents request ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // IngestEventsWithBody request with any body IngestEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) IngestEvents(ctx context.Context, body IngestEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListFeatures request ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateFeatureWithBody request with any body CreateFeatureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteFeature request DeleteFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetFeature request GetFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListGrants request ListGrants(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // VoidGrant request VoidGrant(ctx context.Context, grantId string, params *VoidGrantParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListCurrencies request ListCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProgress request GetProgress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListMarketplaceListings request ListMarketplaceListings(ctx context.Context, params *ListMarketplaceListingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMarketplaceListing request GetMarketplaceListing(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error) // MarketplaceAppInstallWithBody request with any body MarketplaceAppInstallWithBody(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) MarketplaceAppInstall(ctx context.Context, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // MarketplaceAppAPIKeyInstallWithBody request with any body MarketplaceAppAPIKeyInstallWithBody(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) MarketplaceAppAPIKeyInstall(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // MarketplaceOAuth2InstallGetURL request MarketplaceOAuth2InstallGetURL(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error) // MarketplaceOAuth2InstallAuthorize request MarketplaceOAuth2InstallAuthorize(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListMeters request ListMeters(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateMeterWithBody request with any body CreateMeterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteMeter request DeleteMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMeter request GetMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateMeterWithBody request with any body UpdateMeterWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateMeter(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListMeterGroupByValues request ListMeterGroupByValues(ctx context.Context, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // QueryMeter request QueryMeter(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error) // QueryMeterPostWithBody request with any body QueryMeterPostWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) QueryMeterPost(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListMeterSubjects request ListMeterSubjects(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListNotificationChannels request ListNotificationChannels(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateNotificationChannelWithBody request with any body CreateNotificationChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteNotificationChannel request DeleteNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNotificationChannel request GetNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateNotificationChannelWithBody request with any body UpdateNotificationChannelWithBody(ctx context.Context, channelId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateNotificationChannel(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListNotificationEvents request ListNotificationEvents(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNotificationEvent request GetNotificationEvent(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ResendNotificationEventWithBody request with any body ResendNotificationEventWithBody(ctx context.Context, eventId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ResendNotificationEvent(ctx context.Context, eventId string, body ResendNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListNotificationRules request ListNotificationRules(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateNotificationRuleWithBody request with any body CreateNotificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteNotificationRule request DeleteNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNotificationRule request GetNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateNotificationRuleWithBody request with any body UpdateNotificationRuleWithBody(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateNotificationRule(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // TestNotificationRule request TestNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListPlans request ListPlans(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreatePlanWithBody request with any body CreatePlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreatePlan(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // NextPlan request NextPlan(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error) // DeletePlan request DeletePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetPlan request GetPlan(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdatePlanWithBody request with any body UpdatePlanWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdatePlan(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListPlanAddons request ListPlanAddons(ctx context.Context, planId string, params *ListPlanAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreatePlanAddonWithBody request with any body CreatePlanAddonWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreatePlanAddon(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeletePlanAddon request DeletePlanAddon(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetPlanAddon request GetPlanAddon(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdatePlanAddonWithBody request with any body UpdatePlanAddonWithBody(ctx context.Context, planId string, planAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdatePlanAddon(ctx context.Context, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ArchivePlan request ArchivePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) // PublishPlan request PublishPlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) // QueryPortalMeter request QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListPortalTokens request ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreatePortalTokenWithBody request with any body CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // InvalidatePortalTokensWithBody request with any body InvalidatePortalTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateStripeCheckoutSessionWithBody request with any body CreateStripeCheckoutSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateStripeCheckoutSession(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSubjects request ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // UpsertSubjectWithBody request with any body UpsertSubjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSubject request DeleteSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSubject request GetSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSubjectEntitlements request ListSubjectEntitlements(ctx context.Context, subjectIdOrKey string, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateEntitlementWithBody request with any body CreateEntitlementWithBody(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateEntitlement(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListEntitlementGrants request ListEntitlementGrants(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateGrantWithBody request with any body CreateGrantWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateGrant(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // OverrideEntitlementWithBody request with any body OverrideEntitlementWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) OverrideEntitlement(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEntitlementValue request GetEntitlementValue(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteEntitlement request DeleteEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEntitlement request GetEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEntitlementHistory request GetEntitlementHistory(ctx context.Context, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ResetEntitlementUsageWithBody request with any body ResetEntitlementUsageWithBody(ctx context.Context, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ResetEntitlementUsage(ctx context.Context, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSubscriptionWithBody request with any body CreateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateSubscription(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSubscription request DeleteSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSubscription request GetSubscription(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error) // EditSubscriptionWithBody request with any body EditSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) EditSubscription(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSubscriptionAddons request ListSubscriptionAddons(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSubscriptionAddonWithBody request with any body CreateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateSubscriptionAddon(ctx context.Context, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSubscriptionAddon request GetSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSubscriptionAddonWithBody request with any body UpdateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CancelSubscriptionWithBody request with any body CancelSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CancelSubscription(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ChangeSubscriptionWithBody request with any body ChangeSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ChangeSubscription(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // MigrateSubscriptionWithBody request with any body MigrateSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) MigrateSubscription(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // RestoreSubscription request RestoreSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UnscheduleCancelation request UnscheduleCancelation(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListCustomerEntitlementsV2 request ListCustomerEntitlementsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateCustomerEntitlementV2WithBody request with any body CreateCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteCustomerEntitlementV2 request DeleteCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomerEntitlementV2 request GetCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListCustomerEntitlementGrantsV2 request ListCustomerEntitlementGrantsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateCustomerEntitlementGrantV2WithBody request with any body CreateCustomerEntitlementGrantV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateCustomerEntitlementGrantV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomerEntitlementHistoryV2 request GetCustomerEntitlementHistoryV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) // OverrideCustomerEntitlementV2WithBody request with any body OverrideCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) OverrideCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ResetCustomerEntitlementUsageV2WithBody request with any body ResetCustomerEntitlementUsageV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ResetCustomerEntitlementUsageV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomerEntitlementValueV2 request GetCustomerEntitlementValueV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) // ListEntitlementsV2 request ListEntitlementsV2(ctx context.Context, params *ListEntitlementsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEntitlementByIdV2 request GetEntitlementByIdV2(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListEventsV2 request ListEventsV2(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) // ListGrantsV2 request ListGrantsV2(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) } func (c *Client) ListAddons(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListAddonsRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateAddonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateAddonRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateAddon(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateAddonRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteAddonRequest(c.Server, addonId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetAddon(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetAddonRequest(c.Server, addonId, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateAddonWithBody(ctx context.Context, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateAddonRequestWithBody(c.Server, addonId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateAddon(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateAddonRequest(c.Server, addonId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ArchiveAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewArchiveAddonRequest(c.Server, addonId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) PublishAddon(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewPublishAddonRequest(c.Server, addonId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListApps(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListAppsRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AppCustomInvoicingDraftSynchronizedWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAppCustomInvoicingDraftSynchronizedRequestWithBody(c.Server, invoiceId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AppCustomInvoicingDraftSynchronized(ctx context.Context, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAppCustomInvoicingDraftSynchronizedRequest(c.Server, invoiceId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AppCustomInvoicingIssuingSynchronizedWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAppCustomInvoicingIssuingSynchronizedRequestWithBody(c.Server, invoiceId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AppCustomInvoicingIssuingSynchronized(ctx context.Context, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAppCustomInvoicingIssuingSynchronizedRequest(c.Server, invoiceId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AppCustomInvoicingUpdatePaymentStatusWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAppCustomInvoicingUpdatePaymentStatusRequestWithBody(c.Server, invoiceId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AppCustomInvoicingUpdatePaymentStatus(ctx context.Context, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAppCustomInvoicingUpdatePaymentStatusRequest(c.Server, invoiceId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UninstallApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUninstallAppRequest(c.Server, id) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetApp(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetAppRequest(c.Server, id) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateAppWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateAppRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateApp(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateAppRequest(c.Server, id, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateStripeAPIKeyWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateStripeAPIKeyRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateStripeAPIKey(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateStripeAPIKeyRequest(c.Server, id, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AppStripeWebhookWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAppStripeWebhookRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AppStripeWebhook(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAppStripeWebhookRequest(c.Server, id, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListBillingProfileCustomerOverrides(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListBillingProfileCustomerOverridesRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteBillingProfileCustomerOverride(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteBillingProfileCustomerOverrideRequest(c.Server, customerId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetBillingProfileCustomerOverride(ctx context.Context, customerId string, params *GetBillingProfileCustomerOverrideParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetBillingProfileCustomerOverrideRequest(c.Server, customerId, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpsertBillingProfileCustomerOverrideWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpsertBillingProfileCustomerOverrideRequestWithBody(c.Server, customerId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpsertBillingProfileCustomerOverride(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpsertBillingProfileCustomerOverrideRequest(c.Server, customerId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreatePendingInvoiceLineWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePendingInvoiceLineRequestWithBody(c.Server, customerId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreatePendingInvoiceLine(ctx context.Context, customerId string, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePendingInvoiceLineRequest(c.Server, customerId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) SimulateInvoiceWithBody(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewSimulateInvoiceRequestWithBody(c.Server, customerId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) SimulateInvoice(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewSimulateInvoiceRequest(c.Server, customerId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListInvoices(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListInvoicesRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) InvoicePendingLinesActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewInvoicePendingLinesActionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) InvoicePendingLinesAction(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewInvoicePendingLinesActionRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteInvoice(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteInvoiceRequest(c.Server, invoiceId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetInvoice(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetInvoiceRequest(c.Server, invoiceId, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateInvoiceWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateInvoiceRequestWithBody(c.Server, invoiceId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateInvoice(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateInvoiceRequest(c.Server, invoiceId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) AdvanceInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAdvanceInvoiceActionRequest(c.Server, invoiceId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ApproveInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewApproveInvoiceActionRequest(c.Server, invoiceId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) RetryInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewRetryInvoiceActionRequest(c.Server, invoiceId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) SnapshotQuantitiesInvoiceAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewSnapshotQuantitiesInvoiceActionRequest(c.Server, invoiceId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) RecalculateInvoiceTaxAction(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewRecalculateInvoiceTaxActionRequest(c.Server, invoiceId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) VoidInvoiceActionWithBody(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewVoidInvoiceActionRequestWithBody(c.Server, invoiceId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) VoidInvoiceAction(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewVoidInvoiceActionRequest(c.Server, invoiceId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListBillingProfiles(ctx context.Context, params *ListBillingProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListBillingProfilesRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateBillingProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateBillingProfileRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateBillingProfile(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateBillingProfileRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteBillingProfile(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteBillingProfileRequest(c.Server, id) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetBillingProfile(ctx context.Context, id string, params *GetBillingProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetBillingProfileRequest(c.Server, id, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateBillingProfileWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateBillingProfileRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateBillingProfile(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateBillingProfileRequest(c.Server, id, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListCustomers(ctx context.Context, params *ListCustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListCustomersRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateCustomerRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateCustomer(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateCustomerRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteCustomerRequest(c.Server, customerIdOrKey) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetCustomerRequest(c.Server, customerIdOrKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateCustomerWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateCustomerRequestWithBody(c.Server, customerIdOrKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateCustomer(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateCustomerRequest(c.Server, customerIdOrKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetCustomerAccess(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetCustomerAccessRequest(c.Server, customerIdOrKey) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListCustomerAppDataRequest(c.Server, customerIdOrKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpsertCustomerAppDataWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpsertCustomerAppDataRequestWithBody(c.Server, customerIdOrKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpsertCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpsertCustomerAppDataRequest(c.Server, customerIdOrKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteCustomerAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteCustomerAppDataRequest(c.Server, customerIdOrKey, appId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetCustomerEntitlementValue(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetCustomerEntitlementValueRequest(c.Server, customerIdOrKey, featureKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetCustomerStripeAppDataRequest(c.Server, customerIdOrKey) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpsertCustomerStripeAppDataWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpsertCustomerStripeAppDataRequestWithBody(c.Server, customerIdOrKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpsertCustomerStripeAppData(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpsertCustomerStripeAppDataRequest(c.Server, customerIdOrKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateCustomerStripePortalSessionWithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateCustomerStripePortalSessionRequestWithBody(c.Server, customerIdOrKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateCustomerStripePortalSession(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateCustomerStripePortalSessionRequest(c.Server, customerIdOrKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListCustomerSubscriptions(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListCustomerSubscriptionsRequest(c.Server, customerIdOrKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetDebugMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetDebugMetricsRequest(c.Server) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListEntitlements(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListEntitlementsRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetEntitlementById(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetEntitlementByIdRequest(c.Server, entitlementId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListEventsRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) IngestEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewIngestEventsRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) IngestEvents(ctx context.Context, body IngestEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewIngestEventsRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListFeaturesRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateFeatureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateFeatureRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateFeature(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateFeatureRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteFeatureRequest(c.Server, featureId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetFeature(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetFeatureRequest(c.Server, featureId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListGrants(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListGrantsRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) VoidGrant(ctx context.Context, grantId string, params *VoidGrantParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewVoidGrantRequest(c.Server, grantId, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListCurrenciesRequest(c.Server) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetProgress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetProgressRequest(c.Server, id) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListMarketplaceListings(ctx context.Context, params *ListMarketplaceListingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListMarketplaceListingsRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetMarketplaceListing(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetMarketplaceListingRequest(c.Server, pType) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) MarketplaceAppInstallWithBody(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewMarketplaceAppInstallRequestWithBody(c.Server, pType, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) MarketplaceAppInstall(ctx context.Context, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewMarketplaceAppInstallRequest(c.Server, pType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) MarketplaceAppAPIKeyInstallWithBody(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewMarketplaceAppAPIKeyInstallRequestWithBody(c.Server, pType, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) MarketplaceAppAPIKeyInstall(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewMarketplaceAppAPIKeyInstallRequest(c.Server, pType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) MarketplaceOAuth2InstallGetURL(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewMarketplaceOAuth2InstallGetURLRequest(c.Server, pType) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) MarketplaceOAuth2InstallAuthorize(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewMarketplaceOAuth2InstallAuthorizeRequest(c.Server, pType, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListMeters(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListMetersRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateMeterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateMeterRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateMeter(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateMeterRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteMeterRequest(c.Server, meterIdOrSlug) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetMeter(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetMeterRequest(c.Server, meterIdOrSlug) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateMeterWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateMeterRequestWithBody(c.Server, meterIdOrSlug, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateMeter(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateMeterRequest(c.Server, meterIdOrSlug, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListMeterGroupByValues(ctx context.Context, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListMeterGroupByValuesRequest(c.Server, meterIdOrSlug, groupByKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) QueryMeter(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewQueryMeterRequest(c.Server, meterIdOrSlug, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) QueryMeterPostWithBody(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewQueryMeterPostRequestWithBody(c.Server, meterIdOrSlug, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) QueryMeterPost(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewQueryMeterPostRequest(c.Server, meterIdOrSlug, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListMeterSubjects(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListMeterSubjectsRequest(c.Server, meterIdOrSlug, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListNotificationChannels(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListNotificationChannelsRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateNotificationChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateNotificationChannelRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateNotificationChannel(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateNotificationChannelRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteNotificationChannelRequest(c.Server, channelId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetNotificationChannel(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetNotificationChannelRequest(c.Server, channelId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateNotificationChannelWithBody(ctx context.Context, channelId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateNotificationChannelRequestWithBody(c.Server, channelId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateNotificationChannel(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateNotificationChannelRequest(c.Server, channelId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListNotificationEvents(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListNotificationEventsRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetNotificationEvent(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetNotificationEventRequest(c.Server, eventId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ResendNotificationEventWithBody(ctx context.Context, eventId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewResendNotificationEventRequestWithBody(c.Server, eventId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ResendNotificationEvent(ctx context.Context, eventId string, body ResendNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewResendNotificationEventRequest(c.Server, eventId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListNotificationRules(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListNotificationRulesRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateNotificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateNotificationRuleRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateNotificationRule(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateNotificationRuleRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteNotificationRuleRequest(c.Server, ruleId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetNotificationRuleRequest(c.Server, ruleId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateNotificationRuleWithBody(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateNotificationRuleRequestWithBody(c.Server, ruleId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateNotificationRule(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateNotificationRuleRequest(c.Server, ruleId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) TestNotificationRule(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewTestNotificationRuleRequest(c.Server, ruleId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListPlans(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListPlansRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreatePlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePlanRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreatePlan(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePlanRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) NextPlan(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewNextPlanRequest(c.Server, planIdOrKey) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeletePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeletePlanRequest(c.Server, planId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetPlan(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetPlanRequest(c.Server, planId, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdatePlanWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdatePlanRequestWithBody(c.Server, planId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdatePlan(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdatePlanRequest(c.Server, planId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListPlanAddons(ctx context.Context, planId string, params *ListPlanAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListPlanAddonsRequest(c.Server, planId, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreatePlanAddonWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePlanAddonRequestWithBody(c.Server, planId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreatePlanAddon(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePlanAddonRequest(c.Server, planId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeletePlanAddon(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeletePlanAddonRequest(c.Server, planId, planAddonId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetPlanAddon(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetPlanAddonRequest(c.Server, planId, planAddonId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdatePlanAddonWithBody(ctx context.Context, planId string, planAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdatePlanAddonRequestWithBody(c.Server, planId, planAddonId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdatePlanAddon(ctx context.Context, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdatePlanAddonRequest(c.Server, planId, planAddonId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ArchivePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewArchivePlanRequest(c.Server, planId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) PublishPlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewPublishPlanRequest(c.Server, planId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewQueryPortalMeterRequest(c.Server, meterSlug, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListPortalTokensRequest(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePortalTokenRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreatePortalToken(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePortalTokenRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) InvalidatePortalTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewInvalidatePortalTokensRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) InvalidatePortalTokens(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewInvalidatePortalTokensRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateStripeCheckoutSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateStripeCheckoutSessionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateStripeCheckoutSession(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateStripeCheckoutSessionRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListSubjectsRequest(c.Server) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpsertSubjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpsertSubjectRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpsertSubject(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpsertSubjectRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteSubjectRequest(c.Server, subjectIdOrKey) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetSubject(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetSubjectRequest(c.Server, subjectIdOrKey) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListSubjectEntitlements(ctx context.Context, subjectIdOrKey string, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListSubjectEntitlementsRequest(c.Server, subjectIdOrKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateEntitlementWithBody(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateEntitlementRequestWithBody(c.Server, subjectIdOrKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateEntitlement(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateEntitlementRequest(c.Server, subjectIdOrKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListEntitlementGrants(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListEntitlementGrantsRequest(c.Server, subjectIdOrKey, entitlementIdOrFeatureKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateGrantWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateGrantRequestWithBody(c.Server, subjectIdOrKey, entitlementIdOrFeatureKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateGrant(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateGrantRequest(c.Server, subjectIdOrKey, entitlementIdOrFeatureKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) OverrideEntitlementWithBody(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewOverrideEntitlementRequestWithBody(c.Server, subjectIdOrKey, entitlementIdOrFeatureKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) OverrideEntitlement(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewOverrideEntitlementRequest(c.Server, subjectIdOrKey, entitlementIdOrFeatureKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetEntitlementValue(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetEntitlementValueRequest(c.Server, subjectIdOrKey, entitlementIdOrFeatureKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteEntitlementRequest(c.Server, subjectIdOrKey, entitlementId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetEntitlement(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetEntitlementRequest(c.Server, subjectIdOrKey, entitlementId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetEntitlementHistory(ctx context.Context, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetEntitlementHistoryRequest(c.Server, subjectIdOrKey, entitlementId, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ResetEntitlementUsageWithBody(ctx context.Context, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewResetEntitlementUsageRequestWithBody(c.Server, subjectIdOrKey, entitlementId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ResetEntitlementUsage(ctx context.Context, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewResetEntitlementUsageRequest(c.Server, subjectIdOrKey, entitlementId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateSubscriptionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateSubscription(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateSubscriptionRequest(c.Server, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteSubscriptionRequest(c.Server, subscriptionId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetSubscription(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetSubscriptionRequest(c.Server, subscriptionId, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) EditSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewEditSubscriptionRequestWithBody(c.Server, subscriptionId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) EditSubscription(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewEditSubscriptionRequest(c.Server, subscriptionId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListSubscriptionAddons(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListSubscriptionAddonsRequest(c.Server, subscriptionId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateSubscriptionAddonRequestWithBody(c.Server, subscriptionId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateSubscriptionAddon(ctx context.Context, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateSubscriptionAddonRequest(c.Server, subscriptionId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetSubscriptionAddonRequest(c.Server, subscriptionId, subscriptionAddonId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateSubscriptionAddonWithBody(ctx context.Context, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateSubscriptionAddonRequestWithBody(c.Server, subscriptionId, subscriptionAddonId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UpdateSubscriptionAddon(ctx context.Context, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateSubscriptionAddonRequest(c.Server, subscriptionId, subscriptionAddonId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CancelSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCancelSubscriptionRequestWithBody(c.Server, subscriptionId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CancelSubscription(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCancelSubscriptionRequest(c.Server, subscriptionId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ChangeSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewChangeSubscriptionRequestWithBody(c.Server, subscriptionId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ChangeSubscription(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewChangeSubscriptionRequest(c.Server, subscriptionId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) MigrateSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewMigrateSubscriptionRequestWithBody(c.Server, subscriptionId, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) MigrateSubscription(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewMigrateSubscriptionRequest(c.Server, subscriptionId, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) RestoreSubscription(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewRestoreSubscriptionRequest(c.Server, subscriptionId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) UnscheduleCancelation(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUnscheduleCancelationRequest(c.Server, subscriptionId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListCustomerEntitlementsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListCustomerEntitlementsV2Request(c.Server, customerIdOrKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateCustomerEntitlementV2RequestWithBody(c.Server, customerIdOrKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateCustomerEntitlementV2Request(c.Server, customerIdOrKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) DeleteCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteCustomerEntitlementV2Request(c.Server, customerIdOrKey, entitlementIdOrFeatureKey) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetCustomerEntitlementV2Request(c.Server, customerIdOrKey, entitlementIdOrFeatureKey) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListCustomerEntitlementGrantsV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListCustomerEntitlementGrantsV2Request(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateCustomerEntitlementGrantV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateCustomerEntitlementGrantV2RequestWithBody(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) CreateCustomerEntitlementGrantV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreateCustomerEntitlementGrantV2Request(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetCustomerEntitlementHistoryV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetCustomerEntitlementHistoryV2Request(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) OverrideCustomerEntitlementV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewOverrideCustomerEntitlementV2RequestWithBody(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) OverrideCustomerEntitlementV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewOverrideCustomerEntitlementV2Request(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ResetCustomerEntitlementUsageV2WithBody(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewResetCustomerEntitlementUsageV2RequestWithBody(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, contentType, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ResetCustomerEntitlementUsageV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewResetCustomerEntitlementUsageV2Request(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, body) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetCustomerEntitlementValueV2(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetCustomerEntitlementValueV2Request(c.Server, customerIdOrKey, entitlementIdOrFeatureKey, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListEntitlementsV2(ctx context.Context, params *ListEntitlementsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListEntitlementsV2Request(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) GetEntitlementByIdV2(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetEntitlementByIdV2Request(c.Server, entitlementId) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListEventsV2(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListEventsV2Request(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } func (c *Client) ListGrantsV2(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListGrantsV2Request(c.Server, params) if err != nil { return nil, err } req = req.WithContext(ctx) if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } return c.Client.Do(req) } // NewListAddonsRequest generates requests for ListAddons func NewListAddonsRequest(server string, params *ListAddonsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/addons") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Id != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "id", *params.Id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Key != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "key", *params.Key, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.KeyVersion != nil { if queryFrag, err := runtime.StyleParamWithOptions("deepObject", true, "keyVersion", *params.KeyVersion, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "object", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Status != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Currency != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "currency", *params.Currency, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateAddonRequest calls the generic CreateAddon builder with application/json body func NewCreateAddonRequest(server string, body CreateAddonJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateAddonRequestWithBody(server, "application/json", bodyReader) } // NewCreateAddonRequestWithBody generates requests for CreateAddon with any type of body func NewCreateAddonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/addons") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteAddonRequest generates requests for DeleteAddon func NewDeleteAddonRequest(server string, addonId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "addonId", addonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/addons/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetAddonRequest generates requests for GetAddon func NewGetAddonRequest(server string, addonId string, params *GetAddonParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "addonId", addonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/addons/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeLatest != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeLatest", *params.IncludeLatest, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateAddonRequest calls the generic UpdateAddon builder with application/json body func NewUpdateAddonRequest(server string, addonId string, body UpdateAddonJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateAddonRequestWithBody(server, addonId, "application/json", bodyReader) } // NewUpdateAddonRequestWithBody generates requests for UpdateAddon with any type of body func NewUpdateAddonRequestWithBody(server string, addonId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "addonId", addonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/addons/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewArchiveAddonRequest generates requests for ArchiveAddon func NewArchiveAddonRequest(server string, addonId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "addonId", addonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/addons/%s/archive", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewPublishAddonRequest generates requests for PublishAddon func NewPublishAddonRequest(server string, addonId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "addonId", addonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/addons/%s/publish", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListAppsRequest generates requests for ListApps func NewListAppsRequest(server string, params *ListAppsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewAppCustomInvoicingDraftSynchronizedRequest calls the generic AppCustomInvoicingDraftSynchronized builder with application/json body func NewAppCustomInvoicingDraftSynchronizedRequest(server string, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewAppCustomInvoicingDraftSynchronizedRequestWithBody(server, invoiceId, "application/json", bodyReader) } // NewAppCustomInvoicingDraftSynchronizedRequestWithBody generates requests for AppCustomInvoicingDraftSynchronized with any type of body func NewAppCustomInvoicingDraftSynchronizedRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps/custom-invoicing/%s/draft/synchronized", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewAppCustomInvoicingIssuingSynchronizedRequest calls the generic AppCustomInvoicingIssuingSynchronized builder with application/json body func NewAppCustomInvoicingIssuingSynchronizedRequest(server string, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewAppCustomInvoicingIssuingSynchronizedRequestWithBody(server, invoiceId, "application/json", bodyReader) } // NewAppCustomInvoicingIssuingSynchronizedRequestWithBody generates requests for AppCustomInvoicingIssuingSynchronized with any type of body func NewAppCustomInvoicingIssuingSynchronizedRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps/custom-invoicing/%s/issuing/synchronized", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewAppCustomInvoicingUpdatePaymentStatusRequest calls the generic AppCustomInvoicingUpdatePaymentStatus builder with application/json body func NewAppCustomInvoicingUpdatePaymentStatusRequest(server string, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewAppCustomInvoicingUpdatePaymentStatusRequestWithBody(server, invoiceId, "application/json", bodyReader) } // NewAppCustomInvoicingUpdatePaymentStatusRequestWithBody generates requests for AppCustomInvoicingUpdatePaymentStatus with any type of body func NewAppCustomInvoicingUpdatePaymentStatusRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps/custom-invoicing/%s/payment/status", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewUninstallAppRequest generates requests for UninstallApp func NewUninstallAppRequest(server string, id string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetAppRequest generates requests for GetApp func NewGetAppRequest(server string, id string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateAppRequest calls the generic UpdateApp builder with application/json body func NewUpdateAppRequest(server string, id string, body UpdateAppJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateAppRequestWithBody(server, id, "application/json", bodyReader) } // NewUpdateAppRequestWithBody generates requests for UpdateApp with any type of body func NewUpdateAppRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewUpdateStripeAPIKeyRequest calls the generic UpdateStripeAPIKey builder with application/json body func NewUpdateStripeAPIKeyRequest(server string, id string, body UpdateStripeAPIKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateStripeAPIKeyRequestWithBody(server, id, "application/json", bodyReader) } // NewUpdateStripeAPIKeyRequestWithBody generates requests for UpdateStripeAPIKey with any type of body func NewUpdateStripeAPIKeyRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps/%s/stripe/api-key", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewAppStripeWebhookRequest calls the generic AppStripeWebhook builder with application/json body func NewAppStripeWebhookRequest(server string, id string, body AppStripeWebhookJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewAppStripeWebhookRequestWithBody(server, id, "application/json", bodyReader) } // NewAppStripeWebhookRequestWithBody generates requests for AppStripeWebhook with any type of body func NewAppStripeWebhookRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/apps/%s/stripe/webhook", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListBillingProfileCustomerOverridesRequest generates requests for ListBillingProfileCustomerOverrides func NewListBillingProfileCustomerOverridesRequest(server string, params *ListBillingProfileCustomerOverridesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/customers") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.BillingProfile != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "billingProfile", *params.BillingProfile, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CustomersWithoutPinnedProfile != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "customersWithoutPinnedProfile", *params.CustomersWithoutPinnedProfile, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeAllCustomers != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeAllCustomers", *params.IncludeAllCustomers, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CustomerId != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "customerId", *params.CustomerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CustomerName != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "customerName", *params.CustomerName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CustomerKey != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "customerKey", *params.CustomerKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CustomerPrimaryEmail != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "customerPrimaryEmail", *params.CustomerPrimaryEmail, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Expand != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewDeleteBillingProfileCustomerOverrideRequest generates requests for DeleteBillingProfileCustomerOverride func NewDeleteBillingProfileCustomerOverrideRequest(server string, customerId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerId", customerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/customers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetBillingProfileCustomerOverrideRequest generates requests for GetBillingProfileCustomerOverride func NewGetBillingProfileCustomerOverrideRequest(server string, customerId string, params *GetBillingProfileCustomerOverrideParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerId", customerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/customers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Expand != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpsertBillingProfileCustomerOverrideRequest calls the generic UpsertBillingProfileCustomerOverride builder with application/json body func NewUpsertBillingProfileCustomerOverrideRequest(server string, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpsertBillingProfileCustomerOverrideRequestWithBody(server, customerId, "application/json", bodyReader) } // NewUpsertBillingProfileCustomerOverrideRequestWithBody generates requests for UpsertBillingProfileCustomerOverride with any type of body func NewUpsertBillingProfileCustomerOverrideRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerId", customerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/customers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewCreatePendingInvoiceLineRequest calls the generic CreatePendingInvoiceLine builder with application/json body func NewCreatePendingInvoiceLineRequest(server string, customerId string, body CreatePendingInvoiceLineJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreatePendingInvoiceLineRequestWithBody(server, customerId, "application/json", bodyReader) } // NewCreatePendingInvoiceLineRequestWithBody generates requests for CreatePendingInvoiceLine with any type of body func NewCreatePendingInvoiceLineRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerId", customerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/customers/%s/invoices/pending-lines", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewSimulateInvoiceRequest calls the generic SimulateInvoice builder with application/json body func NewSimulateInvoiceRequest(server string, customerId string, body SimulateInvoiceJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewSimulateInvoiceRequestWithBody(server, customerId, "application/json", bodyReader) } // NewSimulateInvoiceRequestWithBody generates requests for SimulateInvoice with any type of body func NewSimulateInvoiceRequestWithBody(server string, customerId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerId", customerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/customers/%s/invoices/simulate", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListInvoicesRequest generates requests for ListInvoices func NewListInvoicesRequest(server string, params *ListInvoicesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Statuses != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "statuses", *params.Statuses, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.ExtendedStatuses != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "extendedStatuses", *params.ExtendedStatuses, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IssuedAfter != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "issuedAfter", *params.IssuedAfter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IssuedBefore != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "issuedBefore", *params.IssuedBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PeriodStartAfter != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "periodStartAfter", *params.PeriodStartAfter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PeriodStartBefore != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "periodStartBefore", *params.PeriodStartBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CreatedAfter != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "createdAfter", *params.CreatedAfter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CreatedBefore != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "createdBefore", *params.CreatedBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Expand != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Customers != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "customers", *params.Customers, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewInvoicePendingLinesActionRequest calls the generic InvoicePendingLinesAction builder with application/json body func NewInvoicePendingLinesActionRequest(server string, body InvoicePendingLinesActionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewInvoicePendingLinesActionRequestWithBody(server, "application/json", bodyReader) } // NewInvoicePendingLinesActionRequestWithBody generates requests for InvoicePendingLinesAction with any type of body func NewInvoicePendingLinesActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/invoice") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteInvoiceRequest generates requests for DeleteInvoice func NewDeleteInvoiceRequest(server string, invoiceId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetInvoiceRequest generates requests for GetInvoice func NewGetInvoiceRequest(server string, invoiceId string, params *GetInvoiceParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Expand != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeDeletedLines != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeletedLines", *params.IncludeDeletedLines, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateInvoiceRequest calls the generic UpdateInvoice builder with application/json body func NewUpdateInvoiceRequest(server string, invoiceId string, body UpdateInvoiceJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateInvoiceRequestWithBody(server, invoiceId, "application/json", bodyReader) } // NewUpdateInvoiceRequestWithBody generates requests for UpdateInvoice with any type of body func NewUpdateInvoiceRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewAdvanceInvoiceActionRequest generates requests for AdvanceInvoiceAction func NewAdvanceInvoiceActionRequest(server string, invoiceId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s/advance", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewApproveInvoiceActionRequest generates requests for ApproveInvoiceAction func NewApproveInvoiceActionRequest(server string, invoiceId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s/approve", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewRetryInvoiceActionRequest generates requests for RetryInvoiceAction func NewRetryInvoiceActionRequest(server string, invoiceId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s/retry", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewSnapshotQuantitiesInvoiceActionRequest generates requests for SnapshotQuantitiesInvoiceAction func NewSnapshotQuantitiesInvoiceActionRequest(server string, invoiceId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s/snapshot-quantities", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewRecalculateInvoiceTaxActionRequest generates requests for RecalculateInvoiceTaxAction func NewRecalculateInvoiceTaxActionRequest(server string, invoiceId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s/taxes/recalculate", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewVoidInvoiceActionRequest calls the generic VoidInvoiceAction builder with application/json body func NewVoidInvoiceActionRequest(server string, invoiceId string, body VoidInvoiceActionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewVoidInvoiceActionRequestWithBody(server, invoiceId, "application/json", bodyReader) } // NewVoidInvoiceActionRequestWithBody generates requests for VoidInvoiceAction with any type of body func NewVoidInvoiceActionRequestWithBody(server string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/invoices/%s/void", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListBillingProfilesRequest generates requests for ListBillingProfiles func NewListBillingProfilesRequest(server string, params *ListBillingProfilesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/profiles") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeArchived != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeArchived", *params.IncludeArchived, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Expand != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateBillingProfileRequest calls the generic CreateBillingProfile builder with application/json body func NewCreateBillingProfileRequest(server string, body CreateBillingProfileJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateBillingProfileRequestWithBody(server, "application/json", bodyReader) } // NewCreateBillingProfileRequestWithBody generates requests for CreateBillingProfile with any type of body func NewCreateBillingProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/profiles") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteBillingProfileRequest generates requests for DeleteBillingProfile func NewDeleteBillingProfileRequest(server string, id string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/profiles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetBillingProfileRequest generates requests for GetBillingProfile func NewGetBillingProfileRequest(server string, id string, params *GetBillingProfileParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/profiles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Expand != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateBillingProfileRequest calls the generic UpdateBillingProfile builder with application/json body func NewUpdateBillingProfileRequest(server string, id string, body UpdateBillingProfileJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateBillingProfileRequestWithBody(server, id, "application/json", bodyReader) } // NewUpdateBillingProfileRequestWithBody generates requests for UpdateBillingProfile with any type of body func NewUpdateBillingProfileRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/billing/profiles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListCustomersRequest generates requests for ListCustomers func NewListCustomersRequest(server string, params *ListCustomersParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Key != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "key", *params.Key, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Name != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PrimaryEmail != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "primaryEmail", *params.PrimaryEmail, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Subject != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "subject", *params.Subject, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PlanKey != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "planKey", *params.PlanKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Expand != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateCustomerRequest calls the generic CreateCustomer builder with application/json body func NewCreateCustomerRequest(server string, body CreateCustomerJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateCustomerRequestWithBody(server, "application/json", bodyReader) } // NewCreateCustomerRequestWithBody generates requests for CreateCustomer with any type of body func NewCreateCustomerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteCustomerRequest generates requests for DeleteCustomer func NewDeleteCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetCustomerRequest generates requests for GetCustomer func NewGetCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Expand != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body func NewUpdateCustomerRequest(server string, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateCustomerRequestWithBody(server, customerIdOrKey, "application/json", bodyReader) } // NewUpdateCustomerRequestWithBody generates requests for UpdateCustomer with any type of body func NewUpdateCustomerRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewGetCustomerAccessRequest generates requests for GetCustomerAccess func NewGetCustomerAccessRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/access", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListCustomerAppDataRequest generates requests for ListCustomerAppData func NewListCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/apps", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Type != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "type", *params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpsertCustomerAppDataRequest calls the generic UpsertCustomerAppData builder with application/json body func NewUpsertCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpsertCustomerAppDataRequestWithBody(server, customerIdOrKey, "application/json", bodyReader) } // NewUpsertCustomerAppDataRequestWithBody generates requests for UpsertCustomerAppData with any type of body func NewUpsertCustomerAppDataRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/apps", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteCustomerAppDataRequest generates requests for DeleteCustomerAppData func NewDeleteCustomerAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, appId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "appId", appId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/apps/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetCustomerEntitlementValueRequest generates requests for GetCustomerEntitlementValue func NewGetCustomerEntitlementValueRequest(server string, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "featureKey", featureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/entitlements/%s/value", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Time != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "time", *params.Time, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetCustomerStripeAppDataRequest generates requests for GetCustomerStripeAppData func NewGetCustomerStripeAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/stripe", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpsertCustomerStripeAppDataRequest calls the generic UpsertCustomerStripeAppData builder with application/json body func NewUpsertCustomerStripeAppDataRequest(server string, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpsertCustomerStripeAppDataRequestWithBody(server, customerIdOrKey, "application/json", bodyReader) } // NewUpsertCustomerStripeAppDataRequestWithBody generates requests for UpsertCustomerStripeAppData with any type of body func NewUpsertCustomerStripeAppDataRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/stripe", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewCreateCustomerStripePortalSessionRequest calls the generic CreateCustomerStripePortalSession builder with application/json body func NewCreateCustomerStripePortalSessionRequest(server string, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateCustomerStripePortalSessionRequestWithBody(server, customerIdOrKey, "application/json", bodyReader) } // NewCreateCustomerStripePortalSessionRequestWithBody generates requests for CreateCustomerStripePortalSession with any type of body func NewCreateCustomerStripePortalSessionRequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/stripe/portal", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListCustomerSubscriptionsRequest generates requests for ListCustomerSubscriptions func NewListCustomerSubscriptionsRequest(server string, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/customers/%s/subscriptions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Status != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetDebugMetricsRequest generates requests for GetDebugMetrics func NewGetDebugMetricsRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/debug/metrics") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListEntitlementsRequest generates requests for ListEntitlements func NewListEntitlementsRequest(server string, params *ListEntitlementsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/entitlements") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Feature != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "feature", *params.Feature, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Subject != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subject", *params.Subject, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.EntitlementType != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "entitlementType", *params.EntitlementType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.ExcludeInactive != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "excludeInactive", *params.ExcludeInactive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Offset != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetEntitlementByIdRequest generates requests for GetEntitlementById func NewGetEntitlementByIdRequest(server string, entitlementId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "entitlementId", entitlementId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/entitlements/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListEventsRequest generates requests for ListEvents func NewListEventsRequest(server string, params *ListEventsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/events") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.ClientId != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "clientId", *params.ClientId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IngestedAtFrom != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ingestedAtFrom", *params.IngestedAtFrom, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IngestedAtTo != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ingestedAtTo", *params.IngestedAtTo, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Id != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "id", *params.Id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Subject != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "subject", *params.Subject, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CustomerId != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "customerId", *params.CustomerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.From != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.To != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody calls the generic IngestEvents builder with application/cloudevents+json body func NewIngestEventsRequestWithApplicationCloudeventsPlusJSONBody(server string, body IngestEventsApplicationCloudeventsPlusJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewIngestEventsRequestWithBody(server, "application/cloudevents+json", bodyReader) } // NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody calls the generic IngestEvents builder with application/cloudevents-batch+json body func NewIngestEventsRequestWithApplicationCloudeventsBatchPlusJSONBody(server string, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewIngestEventsRequestWithBody(server, "application/cloudevents-batch+json", bodyReader) } // NewIngestEventsRequest calls the generic IngestEvents builder with application/json body func NewIngestEventsRequest(server string, body IngestEventsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewIngestEventsRequestWithBody(server, "application/json", bodyReader) } // NewIngestEventsRequestWithBody generates requests for IngestEvents with any type of body func NewIngestEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/events") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListFeaturesRequest generates requests for ListFeatures func NewListFeaturesRequest(server string, params *ListFeaturesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/features") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.MeterSlug != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "meterSlug", *params.MeterSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeArchived != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeArchived", *params.IncludeArchived, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Offset != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateFeatureRequest calls the generic CreateFeature builder with application/json body func NewCreateFeatureRequest(server string, body CreateFeatureJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateFeatureRequestWithBody(server, "application/json", bodyReader) } // NewCreateFeatureRequestWithBody generates requests for CreateFeature with any type of body func NewCreateFeatureRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/features") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteFeatureRequest generates requests for DeleteFeature func NewDeleteFeatureRequest(server string, featureId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "featureId", featureId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/features/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetFeatureRequest generates requests for GetFeature func NewGetFeatureRequest(server string, featureId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "featureId", featureId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/features/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListGrantsRequest generates requests for ListGrants func NewListGrantsRequest(server string, params *ListGrantsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/grants") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Feature != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "feature", *params.Feature, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Subject != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subject", *params.Subject, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Offset != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewVoidGrantRequest generates requests for VoidGrant func NewVoidGrantRequest(server string, grantId string, params *VoidGrantParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "grantId", grantId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/grants/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.At != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "at", *params.At, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListCurrenciesRequest generates requests for ListCurrencies func NewListCurrenciesRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/info/currencies") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetProgressRequest generates requests for GetProgress func NewGetProgressRequest(server string, id string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/info/progress/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListMarketplaceListingsRequest generates requests for ListMarketplaceListings func NewListMarketplaceListingsRequest(server string, params *ListMarketplaceListingsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/marketplace/listings") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetMarketplaceListingRequest generates requests for GetMarketplaceListing func NewGetMarketplaceListingRequest(server string, pType AppType) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/marketplace/listings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewMarketplaceAppInstallRequest calls the generic MarketplaceAppInstall builder with application/json body func NewMarketplaceAppInstallRequest(server string, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewMarketplaceAppInstallRequestWithBody(server, pType, "application/json", bodyReader) } // NewMarketplaceAppInstallRequestWithBody generates requests for MarketplaceAppInstall with any type of body func NewMarketplaceAppInstallRequestWithBody(server string, pType MarketplaceInstallRequestType, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/marketplace/listings/%s/install", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewMarketplaceAppAPIKeyInstallRequest calls the generic MarketplaceAppAPIKeyInstall builder with application/json body func NewMarketplaceAppAPIKeyInstallRequest(server string, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewMarketplaceAppAPIKeyInstallRequestWithBody(server, pType, "application/json", bodyReader) } // NewMarketplaceAppAPIKeyInstallRequestWithBody generates requests for MarketplaceAppAPIKeyInstall with any type of body func NewMarketplaceAppAPIKeyInstallRequestWithBody(server string, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/marketplace/listings/%s/install/apikey", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewMarketplaceOAuth2InstallGetURLRequest generates requests for MarketplaceOAuth2InstallGetURL func NewMarketplaceOAuth2InstallGetURLRequest(server string, pType AppType) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/marketplace/listings/%s/install/oauth2", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewMarketplaceOAuth2InstallAuthorizeRequest generates requests for MarketplaceOAuth2InstallAuthorize func NewMarketplaceOAuth2InstallAuthorizeRequest(server string, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/marketplace/listings/%s/install/oauth2/authorize", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.State != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "state", *params.State, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Code != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "code", *params.Code, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Error != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "error", *params.Error, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.ErrorDescription != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "error_description", *params.ErrorDescription, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.ErrorUri != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "error_uri", *params.ErrorUri, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListMetersRequest generates requests for ListMeters func NewListMetersRequest(server string, params *ListMetersParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateMeterRequest calls the generic CreateMeter builder with application/json body func NewCreateMeterRequest(server string, body CreateMeterJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateMeterRequestWithBody(server, "application/json", bodyReader) } // NewCreateMeterRequestWithBody generates requests for CreateMeter with any type of body func NewCreateMeterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteMeterRequest generates requests for DeleteMeter func NewDeleteMeterRequest(server string, meterIdOrSlug string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "meterIdOrSlug", meterIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetMeterRequest generates requests for GetMeter func NewGetMeterRequest(server string, meterIdOrSlug string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "meterIdOrSlug", meterIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateMeterRequest calls the generic UpdateMeter builder with application/json body func NewUpdateMeterRequest(server string, meterIdOrSlug string, body UpdateMeterJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateMeterRequestWithBody(server, meterIdOrSlug, "application/json", bodyReader) } // NewUpdateMeterRequestWithBody generates requests for UpdateMeter with any type of body func NewUpdateMeterRequestWithBody(server string, meterIdOrSlug string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "meterIdOrSlug", meterIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListMeterGroupByValuesRequest generates requests for ListMeterGroupByValues func NewListMeterGroupByValuesRequest(server string, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "meterIdOrSlug", meterIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "groupByKey", groupByKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters/%s/group-by/%s/values", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.From != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.To != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewQueryMeterRequest generates requests for QueryMeter func NewQueryMeterRequest(server string, meterIdOrSlug string, params *QueryMeterParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "meterIdOrSlug", meterIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters/%s/query", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.ClientId != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "clientId", *params.ClientId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.From != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.To != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.WindowSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "windowSize", *params.WindowSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.WindowTimeZone != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "windowTimeZone", *params.WindowTimeZone, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Subject != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subject", *params.Subject, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.FilterCustomerId != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterCustomerId", *params.FilterCustomerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.FilterGroupBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("deepObject", true, "filterGroupBy", *params.FilterGroupBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "object", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.AdvancedMeterGroupByFilters != nil { if queryParamBuf, err := json.Marshal(*params.AdvancedMeterGroupByFilters); err != nil { return nil, err } else { queryValues.Add("advancedMeterGroupByFilters", string(queryParamBuf)) } } if params.GroupBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "groupBy", *params.GroupBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewQueryMeterPostRequest calls the generic QueryMeterPost builder with application/json body func NewQueryMeterPostRequest(server string, meterIdOrSlug string, body QueryMeterPostJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewQueryMeterPostRequestWithBody(server, meterIdOrSlug, "application/json", bodyReader) } // NewQueryMeterPostRequestWithBody generates requests for QueryMeterPost with any type of body func NewQueryMeterPostRequestWithBody(server string, meterIdOrSlug string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "meterIdOrSlug", meterIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters/%s/query", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListMeterSubjectsRequest generates requests for ListMeterSubjects func NewListMeterSubjectsRequest(server string, meterIdOrSlug string, params *ListMeterSubjectsParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "meterIdOrSlug", meterIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/meters/%s/subjects", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.From != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.To != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListNotificationChannelsRequest generates requests for ListNotificationChannels func NewListNotificationChannelsRequest(server string, params *ListNotificationChannelsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/channels") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeDisabled != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDisabled", *params.IncludeDisabled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateNotificationChannelRequest calls the generic CreateNotificationChannel builder with application/json body func NewCreateNotificationChannelRequest(server string, body CreateNotificationChannelJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateNotificationChannelRequestWithBody(server, "application/json", bodyReader) } // NewCreateNotificationChannelRequestWithBody generates requests for CreateNotificationChannel with any type of body func NewCreateNotificationChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/channels") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteNotificationChannelRequest generates requests for DeleteNotificationChannel func NewDeleteNotificationChannelRequest(server string, channelId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "channelId", channelId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/channels/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetNotificationChannelRequest generates requests for GetNotificationChannel func NewGetNotificationChannelRequest(server string, channelId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "channelId", channelId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/channels/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateNotificationChannelRequest calls the generic UpdateNotificationChannel builder with application/json body func NewUpdateNotificationChannelRequest(server string, channelId string, body UpdateNotificationChannelJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateNotificationChannelRequestWithBody(server, channelId, "application/json", bodyReader) } // NewUpdateNotificationChannelRequestWithBody generates requests for UpdateNotificationChannel with any type of body func NewUpdateNotificationChannelRequestWithBody(server string, channelId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "channelId", channelId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/channels/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListNotificationEventsRequest generates requests for ListNotificationEvents func NewListNotificationEventsRequest(server string, params *ListNotificationEventsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/events") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.From != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.To != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Feature != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "feature", *params.Feature, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Subject != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subject", *params.Subject, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Rule != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rule", *params.Rule, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Channel != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", *params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetNotificationEventRequest generates requests for GetNotificationEvent func NewGetNotificationEventRequest(server string, eventId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "eventId", eventId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/events/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewResendNotificationEventRequest calls the generic ResendNotificationEvent builder with application/json body func NewResendNotificationEventRequest(server string, eventId string, body ResendNotificationEventJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewResendNotificationEventRequestWithBody(server, eventId, "application/json", bodyReader) } // NewResendNotificationEventRequestWithBody generates requests for ResendNotificationEvent with any type of body func NewResendNotificationEventRequestWithBody(server string, eventId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "eventId", eventId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/events/%s/resend", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListNotificationRulesRequest generates requests for ListNotificationRules func NewListNotificationRulesRequest(server string, params *ListNotificationRulesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/rules") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeDisabled != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDisabled", *params.IncludeDisabled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Feature != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "feature", *params.Feature, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Channel != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", *params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateNotificationRuleRequest calls the generic CreateNotificationRule builder with application/json body func NewCreateNotificationRuleRequest(server string, body CreateNotificationRuleJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateNotificationRuleRequestWithBody(server, "application/json", bodyReader) } // NewCreateNotificationRuleRequestWithBody generates requests for CreateNotificationRule with any type of body func NewCreateNotificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/rules") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteNotificationRuleRequest generates requests for DeleteNotificationRule func NewDeleteNotificationRuleRequest(server string, ruleId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ruleId", ruleId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/rules/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetNotificationRuleRequest generates requests for GetNotificationRule func NewGetNotificationRuleRequest(server string, ruleId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ruleId", ruleId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/rules/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateNotificationRuleRequest calls the generic UpdateNotificationRule builder with application/json body func NewUpdateNotificationRuleRequest(server string, ruleId string, body UpdateNotificationRuleJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateNotificationRuleRequestWithBody(server, ruleId, "application/json", bodyReader) } // NewUpdateNotificationRuleRequestWithBody generates requests for UpdateNotificationRule with any type of body func NewUpdateNotificationRuleRequestWithBody(server string, ruleId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ruleId", ruleId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/rules/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewTestNotificationRuleRequest generates requests for TestNotificationRule func NewTestNotificationRuleRequest(server string, ruleId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ruleId", ruleId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/notification/rules/%s/test", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListPlansRequest generates requests for ListPlans func NewListPlansRequest(server string, params *ListPlansParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Id != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "id", *params.Id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Key != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "key", *params.Key, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.KeyVersion != nil { if queryFrag, err := runtime.StyleParamWithOptions("deepObject", true, "keyVersion", *params.KeyVersion, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "object", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Status != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Currency != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "currency", *params.Currency, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreatePlanRequest calls the generic CreatePlan builder with application/json body func NewCreatePlanRequest(server string, body CreatePlanJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreatePlanRequestWithBody(server, "application/json", bodyReader) } // NewCreatePlanRequestWithBody generates requests for CreatePlan with any type of body func NewCreatePlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewNextPlanRequest generates requests for NextPlan func NewNextPlanRequest(server string, planIdOrKey string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planIdOrKey", planIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s/next", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewDeletePlanRequest generates requests for DeletePlan func NewDeletePlanRequest(server string, planId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetPlanRequest generates requests for GetPlan func NewGetPlanRequest(server string, planId string, params *GetPlanParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeLatest != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeLatest", *params.IncludeLatest, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdatePlanRequest calls the generic UpdatePlan builder with application/json body func NewUpdatePlanRequest(server string, planId string, body UpdatePlanJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdatePlanRequestWithBody(server, planId, "application/json", bodyReader) } // NewUpdatePlanRequestWithBody generates requests for UpdatePlan with any type of body func NewUpdatePlanRequestWithBody(server string, planId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListPlanAddonsRequest generates requests for ListPlanAddons func NewListPlanAddonsRequest(server string, planId string, params *ListPlanAddonsParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s/addons", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Id != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "id", *params.Id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Key != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "key", *params.Key, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.KeyVersion != nil { if queryFrag, err := runtime.StyleParamWithOptions("deepObject", true, "keyVersion", *params.KeyVersion, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "object", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreatePlanAddonRequest calls the generic CreatePlanAddon builder with application/json body func NewCreatePlanAddonRequest(server string, planId string, body CreatePlanAddonJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreatePlanAddonRequestWithBody(server, planId, "application/json", bodyReader) } // NewCreatePlanAddonRequestWithBody generates requests for CreatePlanAddon with any type of body func NewCreatePlanAddonRequestWithBody(server string, planId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s/addons", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeletePlanAddonRequest generates requests for DeletePlanAddon func NewDeletePlanAddonRequest(server string, planId string, planAddonId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "planAddonId", planAddonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s/addons/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetPlanAddonRequest generates requests for GetPlanAddon func NewGetPlanAddonRequest(server string, planId string, planAddonId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "planAddonId", planAddonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s/addons/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdatePlanAddonRequest calls the generic UpdatePlanAddon builder with application/json body func NewUpdatePlanAddonRequest(server string, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdatePlanAddonRequestWithBody(server, planId, planAddonId, "application/json", bodyReader) } // NewUpdatePlanAddonRequestWithBody generates requests for UpdatePlanAddon with any type of body func NewUpdatePlanAddonRequestWithBody(server string, planId string, planAddonId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "planAddonId", planAddonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s/addons/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewArchivePlanRequest generates requests for ArchivePlan func NewArchivePlanRequest(server string, planId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s/archive", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewPublishPlanRequest generates requests for PublishPlan func NewPublishPlanRequest(server string, planId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/plans/%s/publish", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewQueryPortalMeterRequest generates requests for QueryPortalMeter func NewQueryPortalMeterRequest(server string, meterSlug string, params *QueryPortalMeterParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "meterSlug", meterSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/portal/meters/%s/query", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.ClientId != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "clientId", *params.ClientId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.From != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.To != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.WindowSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "windowSize", *params.WindowSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.WindowTimeZone != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "windowTimeZone", *params.WindowTimeZone, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.FilterCustomerId != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterCustomerId", *params.FilterCustomerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.FilterGroupBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("deepObject", true, "filterGroupBy", *params.FilterGroupBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "object", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.AdvancedMeterGroupByFilters != nil { if queryParamBuf, err := json.Marshal(*params.AdvancedMeterGroupByFilters); err != nil { return nil, err } else { queryValues.Add("advancedMeterGroupByFilters", string(queryParamBuf)) } } if params.GroupBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "groupBy", *params.GroupBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListPortalTokensRequest generates requests for ListPortalTokens func NewListPortalTokensRequest(server string, params *ListPortalTokensParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/portal/tokens") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreatePortalTokenRequest calls the generic CreatePortalToken builder with application/json body func NewCreatePortalTokenRequest(server string, body CreatePortalTokenJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreatePortalTokenRequestWithBody(server, "application/json", bodyReader) } // NewCreatePortalTokenRequestWithBody generates requests for CreatePortalToken with any type of body func NewCreatePortalTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/portal/tokens") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewInvalidatePortalTokensRequest calls the generic InvalidatePortalTokens builder with application/json body func NewInvalidatePortalTokensRequest(server string, body InvalidatePortalTokensJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewInvalidatePortalTokensRequestWithBody(server, "application/json", bodyReader) } // NewInvalidatePortalTokensRequestWithBody generates requests for InvalidatePortalTokens with any type of body func NewInvalidatePortalTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/portal/tokens/invalidate") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewCreateStripeCheckoutSessionRequest calls the generic CreateStripeCheckoutSession builder with application/json body func NewCreateStripeCheckoutSessionRequest(server string, body CreateStripeCheckoutSessionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateStripeCheckoutSessionRequestWithBody(server, "application/json", bodyReader) } // NewCreateStripeCheckoutSessionRequestWithBody generates requests for CreateStripeCheckoutSession with any type of body func NewCreateStripeCheckoutSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/stripe/checkout/sessions") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListSubjectsRequest generates requests for ListSubjects func NewListSubjectsRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpsertSubjectRequest calls the generic UpsertSubject builder with application/json body func NewUpsertSubjectRequest(server string, body UpsertSubjectJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpsertSubjectRequestWithBody(server, "application/json", bodyReader) } // NewUpsertSubjectRequestWithBody generates requests for UpsertSubject with any type of body func NewUpsertSubjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteSubjectRequest generates requests for DeleteSubject func NewDeleteSubjectRequest(server string, subjectIdOrKey string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetSubjectRequest generates requests for GetSubject func NewGetSubjectRequest(server string, subjectIdOrKey string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListSubjectEntitlementsRequest generates requests for ListSubjectEntitlements func NewListSubjectEntitlementsRequest(server string, subjectIdOrKey string, params *ListSubjectEntitlementsParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateEntitlementRequest calls the generic CreateEntitlement builder with application/json body func NewCreateEntitlementRequest(server string, subjectIdOrKey string, body CreateEntitlementJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateEntitlementRequestWithBody(server, subjectIdOrKey, "application/json", bodyReader) } // NewCreateEntitlementRequestWithBody generates requests for CreateEntitlement with any type of body func NewCreateEntitlementRequestWithBody(server string, subjectIdOrKey string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListEntitlementGrantsRequest generates requests for ListEntitlementGrants func NewListEntitlementGrantsRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements/%s/grants", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateGrantRequest calls the generic CreateGrant builder with application/json body func NewCreateGrantRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateGrantRequestWithBody(server, subjectIdOrKey, entitlementIdOrFeatureKey, "application/json", bodyReader) } // NewCreateGrantRequestWithBody generates requests for CreateGrant with any type of body func NewCreateGrantRequestWithBody(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements/%s/grants", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewOverrideEntitlementRequest calls the generic OverrideEntitlement builder with application/json body func NewOverrideEntitlementRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewOverrideEntitlementRequestWithBody(server, subjectIdOrKey, entitlementIdOrFeatureKey, "application/json", bodyReader) } // NewOverrideEntitlementRequestWithBody generates requests for OverrideEntitlement with any type of body func NewOverrideEntitlementRequestWithBody(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements/%s/override", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewGetEntitlementValueRequest generates requests for GetEntitlementValue func NewGetEntitlementValueRequest(server string, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements/%s/value", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Time != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "time", *params.Time, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewDeleteEntitlementRequest generates requests for DeleteEntitlement func NewDeleteEntitlementRequest(server string, subjectIdOrKey string, entitlementId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementId", entitlementId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetEntitlementRequest generates requests for GetEntitlement func NewGetEntitlementRequest(server string, subjectIdOrKey string, entitlementId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementId", entitlementId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetEntitlementHistoryRequest generates requests for GetEntitlementHistory func NewGetEntitlementHistoryRequest(server string, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementId", entitlementId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements/%s/history", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.From != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.To != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if queryFrag, err := runtime.StyleParamWithOptions("form", false, "windowSize", params.WindowSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } if params.WindowTimeZone != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "windowTimeZone", *params.WindowTimeZone, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewResetEntitlementUsageRequest calls the generic ResetEntitlementUsage builder with application/json body func NewResetEntitlementUsageRequest(server string, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewResetEntitlementUsageRequestWithBody(server, subjectIdOrKey, entitlementId, "application/json", bodyReader) } // NewResetEntitlementUsageRequestWithBody generates requests for ResetEntitlementUsage with any type of body func NewResetEntitlementUsageRequestWithBody(server string, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subjectIdOrKey", subjectIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementId", entitlementId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subjects/%s/entitlements/%s/reset", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body func NewCreateSubscriptionRequest(server string, body CreateSubscriptionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateSubscriptionRequestWithBody(server, "application/json", bodyReader) } // NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body func NewCreateSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteSubscriptionRequest generates requests for DeleteSubscription func NewDeleteSubscriptionRequest(server string, subscriptionId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetSubscriptionRequest generates requests for GetSubscription func NewGetSubscriptionRequest(server string, subscriptionId string, params *GetSubscriptionParams) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.At != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "at", *params.At, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewEditSubscriptionRequest calls the generic EditSubscription builder with application/json body func NewEditSubscriptionRequest(server string, subscriptionId string, body EditSubscriptionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewEditSubscriptionRequestWithBody(server, subscriptionId, "application/json", bodyReader) } // NewEditSubscriptionRequestWithBody generates requests for EditSubscription with any type of body func NewEditSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewListSubscriptionAddonsRequest generates requests for ListSubscriptionAddons func NewListSubscriptionAddonsRequest(server string, subscriptionId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/addons", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateSubscriptionAddonRequest calls the generic CreateSubscriptionAddon builder with application/json body func NewCreateSubscriptionAddonRequest(server string, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateSubscriptionAddonRequestWithBody(server, subscriptionId, "application/json", bodyReader) } // NewCreateSubscriptionAddonRequestWithBody generates requests for CreateSubscriptionAddon with any type of body func NewCreateSubscriptionAddonRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/addons", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewGetSubscriptionAddonRequest generates requests for GetSubscriptionAddon func NewGetSubscriptionAddonRequest(server string, subscriptionId string, subscriptionAddonId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subscriptionAddonId", subscriptionAddonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/addons/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUpdateSubscriptionAddonRequest calls the generic UpdateSubscriptionAddon builder with application/json body func NewUpdateSubscriptionAddonRequest(server string, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewUpdateSubscriptionAddonRequestWithBody(server, subscriptionId, subscriptionAddonId, "application/json", bodyReader) } // NewUpdateSubscriptionAddonRequestWithBody generates requests for UpdateSubscriptionAddon with any type of body func NewUpdateSubscriptionAddonRequestWithBody(server string, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subscriptionAddonId", subscriptionAddonId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/addons/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewCancelSubscriptionRequest calls the generic CancelSubscription builder with application/json body func NewCancelSubscriptionRequest(server string, subscriptionId string, body CancelSubscriptionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCancelSubscriptionRequestWithBody(server, subscriptionId, "application/json", bodyReader) } // NewCancelSubscriptionRequestWithBody generates requests for CancelSubscription with any type of body func NewCancelSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/cancel", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewChangeSubscriptionRequest calls the generic ChangeSubscription builder with application/json body func NewChangeSubscriptionRequest(server string, subscriptionId string, body ChangeSubscriptionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewChangeSubscriptionRequestWithBody(server, subscriptionId, "application/json", bodyReader) } // NewChangeSubscriptionRequestWithBody generates requests for ChangeSubscription with any type of body func NewChangeSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/change", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewMigrateSubscriptionRequest calls the generic MigrateSubscription builder with application/json body func NewMigrateSubscriptionRequest(server string, subscriptionId string, body MigrateSubscriptionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewMigrateSubscriptionRequestWithBody(server, subscriptionId, "application/json", bodyReader) } // NewMigrateSubscriptionRequestWithBody generates requests for MigrateSubscription with any type of body func NewMigrateSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/migrate", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewRestoreSubscriptionRequest generates requests for RestoreSubscription func NewRestoreSubscriptionRequest(server string, subscriptionId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/restore", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewUnscheduleCancelationRequest generates requests for UnscheduleCancelation func NewUnscheduleCancelationRequest(server string, subscriptionId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v1/subscriptions/%s/unschedule-cancelation", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListCustomerEntitlementsV2Request generates requests for ListCustomerEntitlementsV2 func NewListCustomerEntitlementsV2Request(server string, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateCustomerEntitlementV2Request calls the generic CreateCustomerEntitlementV2 builder with application/json body func NewCreateCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateCustomerEntitlementV2RequestWithBody(server, customerIdOrKey, "application/json", bodyReader) } // NewCreateCustomerEntitlementV2RequestWithBody generates requests for CreateCustomerEntitlementV2 with any type of body func NewCreateCustomerEntitlementV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewDeleteCustomerEntitlementV2Request generates requests for DeleteCustomerEntitlementV2 func NewDeleteCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetCustomerEntitlementV2Request generates requests for GetCustomerEntitlementV2 func NewGetCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListCustomerEntitlementGrantsV2Request generates requests for ListCustomerEntitlementGrantsV2 func NewListCustomerEntitlementGrantsV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements/%s/grants", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Offset != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewCreateCustomerEntitlementGrantV2Request calls the generic CreateCustomerEntitlementGrantV2 builder with application/json body func NewCreateCustomerEntitlementGrantV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewCreateCustomerEntitlementGrantV2RequestWithBody(server, customerIdOrKey, entitlementIdOrFeatureKey, "application/json", bodyReader) } // NewCreateCustomerEntitlementGrantV2RequestWithBody generates requests for CreateCustomerEntitlementGrantV2 with any type of body func NewCreateCustomerEntitlementGrantV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements/%s/grants", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewGetCustomerEntitlementHistoryV2Request generates requests for GetCustomerEntitlementHistoryV2 func NewGetCustomerEntitlementHistoryV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements/%s/history", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.From != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.To != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if queryFrag, err := runtime.StyleParamWithOptions("form", false, "windowSize", params.WindowSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } if params.WindowTimeZone != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "windowTimeZone", *params.WindowTimeZone, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewOverrideCustomerEntitlementV2Request calls the generic OverrideCustomerEntitlementV2 builder with application/json body func NewOverrideCustomerEntitlementV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewOverrideCustomerEntitlementV2RequestWithBody(server, customerIdOrKey, entitlementIdOrFeatureKey, "application/json", bodyReader) } // NewOverrideCustomerEntitlementV2RequestWithBody generates requests for OverrideCustomerEntitlementV2 with any type of body func NewOverrideCustomerEntitlementV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements/%s/override", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewResetCustomerEntitlementUsageV2Request calls the generic ResetCustomerEntitlementUsageV2 builder with application/json body func NewResetCustomerEntitlementUsageV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) return NewResetCustomerEntitlementUsageV2RequestWithBody(server, customerIdOrKey, entitlementIdOrFeatureKey, "application/json", bodyReader) } // NewResetCustomerEntitlementUsageV2RequestWithBody generates requests for ResetCustomerEntitlementUsageV2 with any type of body func NewResetCustomerEntitlementUsageV2RequestWithBody(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements/%s/reset", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) return req, nil } // NewGetCustomerEntitlementValueV2Request generates requests for GetCustomerEntitlementValueV2 func NewGetCustomerEntitlementValueV2Request(server string, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "customerIdOrKey", customerIdOrKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string pathParam1, err = runtime.StyleParamWithOptions("simple", false, "entitlementIdOrFeatureKey", entitlementIdOrFeatureKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/customers/%s/entitlements/%s/value", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Time != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "time", *params.Time, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListEntitlementsV2Request generates requests for ListEntitlementsV2 func NewListEntitlementsV2Request(server string, params *ListEntitlementsV2Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/entitlements") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Feature != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "feature", *params.Feature, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CustomerKeys != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "customerKeys", *params.CustomerKeys, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.CustomerIds != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "customerIds", *params.CustomerIds, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.EntitlementType != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "entitlementType", *params.EntitlementType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.ExcludeInactive != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "excludeInactive", *params.ExcludeInactive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Offset != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewGetEntitlementByIdV2Request generates requests for GetEntitlementByIdV2 func NewGetEntitlementByIdV2Request(server string, entitlementId string) (*http.Request, error) { var err error var pathParam0 string pathParam0, err = runtime.StyleParamWithOptions("simple", false, "entitlementId", entitlementId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/entitlements/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListEventsV2Request generates requests for ListEventsV2 func NewListEventsV2Request(server string, params *ListEventsV2Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/events") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Cursor != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.ClientId != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "clientId", *params.ClientId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Filter != nil { if queryParamBuf, err := json.Marshal(*params.Filter); err != nil { return nil, err } else { queryValues.Add("filter", string(queryParamBuf)) } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } // NewListGrantsV2Request generates requests for ListGrantsV2 func NewListGrantsV2Request(server string, params *ListGrantsV2Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } operationPath := fmt.Sprintf("/api/v2/grants") if operationPath[0] == '/' { operationPath = "." + operationPath } queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } if params != nil { // queryValues collects non-styled parameters (passthrough, JSON) // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() // rawQueryFragments collects pre-encoded query fragments from // styled parameters, preserving literal commas as delimiters // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string if params.Feature != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "feature", *params.Feature, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Customer != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "customer", *params.Customer, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.IncludeDeleted != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "includeDeleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.PageSize != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Offset != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.Order != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "order", *params.Order, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if params.OrderBy != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", false, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { rawQueryFragments = append(rawQueryFragments, qp) } } } if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } return req, nil } func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { for _, r := range c.RequestEditors { if err := r(ctx, req); err != nil { return err } } for _, r := range additionalEditors { if err := r(ctx, req); err != nil { return err } } return nil } // ClientWithResponses builds on ClientInterface to offer response payloads type ClientWithResponses struct { ClientInterface } // NewClientWithResponses creates a new ClientWithResponses, which wraps // Client with return type handling func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { client, err := NewClient(server, opts...) if err != nil { return nil, err } return &ClientWithResponses{client}, nil } // WithBaseURL overrides the baseURL. func WithBaseURL(baseURL string) ClientOption { return func(c *Client) error { newBaseURL, err := url.Parse(baseURL) if err != nil { return err } c.Server = newBaseURL.String() return nil } } // ClientWithResponsesInterface is the interface specification for the client with responses above. type ClientWithResponsesInterface interface { // ListAddonsWithResponse request ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error) // CreateAddonWithBodyWithResponse request with any body CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) // DeleteAddonWithResponse request DeleteAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*DeleteAddonResponse, error) // GetAddonWithResponse request GetAddonWithResponse(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*GetAddonResponse, error) // UpdateAddonWithBodyWithResponse request with any body UpdateAddonWithBodyWithResponse(ctx context.Context, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) UpdateAddonWithResponse(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) // ArchiveAddonWithResponse request ArchiveAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*ArchiveAddonResponse, error) // PublishAddonWithResponse request PublishAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*PublishAddonResponse, error) // ListAppsWithResponse request ListAppsWithResponse(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*ListAppsResponse, error) // AppCustomInvoicingDraftSynchronizedWithBodyWithResponse request with any body AppCustomInvoicingDraftSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingDraftSynchronizedResponse, error) AppCustomInvoicingDraftSynchronizedWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingDraftSynchronizedResponse, error) // AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse request with any body AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingIssuingSynchronizedResponse, error) AppCustomInvoicingIssuingSynchronizedWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingIssuingSynchronizedResponse, error) // AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse request with any body AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingUpdatePaymentStatusResponse, error) AppCustomInvoicingUpdatePaymentStatusWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingUpdatePaymentStatusResponse, error) // UninstallAppWithResponse request UninstallAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UninstallAppResponse, error) // GetAppWithResponse request GetAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAppResponse, error) // UpdateAppWithBodyWithResponse request with any body UpdateAppWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error) UpdateAppWithResponse(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error) // UpdateStripeAPIKeyWithBodyWithResponse request with any body UpdateStripeAPIKeyWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStripeAPIKeyResponse, error) UpdateStripeAPIKeyWithResponse(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStripeAPIKeyResponse, error) // AppStripeWebhookWithBodyWithResponse request with any body AppStripeWebhookWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppStripeWebhookResponse, error) AppStripeWebhookWithResponse(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*AppStripeWebhookResponse, error) // ListBillingProfileCustomerOverridesWithResponse request ListBillingProfileCustomerOverridesWithResponse(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, reqEditors ...RequestEditorFn) (*ListBillingProfileCustomerOverridesResponse, error) // DeleteBillingProfileCustomerOverrideWithResponse request DeleteBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileCustomerOverrideResponse, error) // GetBillingProfileCustomerOverrideWithResponse request GetBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, params *GetBillingProfileCustomerOverrideParams, reqEditors ...RequestEditorFn) (*GetBillingProfileCustomerOverrideResponse, error) // UpsertBillingProfileCustomerOverrideWithBodyWithResponse request with any body UpsertBillingProfileCustomerOverrideWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertBillingProfileCustomerOverrideResponse, error) UpsertBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertBillingProfileCustomerOverrideResponse, error) // CreatePendingInvoiceLineWithBodyWithResponse request with any body CreatePendingInvoiceLineWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error) CreatePendingInvoiceLineWithResponse(ctx context.Context, customerId string, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error) // SimulateInvoiceWithBodyWithResponse request with any body SimulateInvoiceWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SimulateInvoiceResponse, error) SimulateInvoiceWithResponse(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SimulateInvoiceResponse, error) // ListInvoicesWithResponse request ListInvoicesWithResponse(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error) // InvoicePendingLinesActionWithBodyWithResponse request with any body InvoicePendingLinesActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvoicePendingLinesActionResponse, error) InvoicePendingLinesActionWithResponse(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvoicePendingLinesActionResponse, error) // DeleteInvoiceWithResponse request DeleteInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error) // GetInvoiceWithResponse request GetInvoiceWithResponse(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error) // UpdateInvoiceWithBodyWithResponse request with any body UpdateInvoiceWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) UpdateInvoiceWithResponse(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) // AdvanceInvoiceActionWithResponse request AdvanceInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*AdvanceInvoiceActionResponse, error) // ApproveInvoiceActionWithResponse request ApproveInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*ApproveInvoiceActionResponse, error) // RetryInvoiceActionWithResponse request RetryInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RetryInvoiceActionResponse, error) // SnapshotQuantitiesInvoiceActionWithResponse request SnapshotQuantitiesInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*SnapshotQuantitiesInvoiceActionResponse, error) // RecalculateInvoiceTaxActionWithResponse request RecalculateInvoiceTaxActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RecalculateInvoiceTaxActionResponse, error) // VoidInvoiceActionWithBodyWithResponse request with any body VoidInvoiceActionWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VoidInvoiceActionResponse, error) VoidInvoiceActionWithResponse(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*VoidInvoiceActionResponse, error) // ListBillingProfilesWithResponse request ListBillingProfilesWithResponse(ctx context.Context, params *ListBillingProfilesParams, reqEditors ...RequestEditorFn) (*ListBillingProfilesResponse, error) // CreateBillingProfileWithBodyWithResponse request with any body CreateBillingProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBillingProfileResponse, error) CreateBillingProfileWithResponse(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBillingProfileResponse, error) // DeleteBillingProfileWithResponse request DeleteBillingProfileWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileResponse, error) // GetBillingProfileWithResponse request GetBillingProfileWithResponse(ctx context.Context, id string, params *GetBillingProfileParams, reqEditors ...RequestEditorFn) (*GetBillingProfileResponse, error) // UpdateBillingProfileWithBodyWithResponse request with any body UpdateBillingProfileWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillingProfileResponse, error) UpdateBillingProfileWithResponse(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillingProfileResponse, error) // ListCustomersWithResponse request ListCustomersWithResponse(ctx context.Context, params *ListCustomersParams, reqEditors ...RequestEditorFn) (*ListCustomersResponse, error) // CreateCustomerWithBodyWithResponse request with any body CreateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) CreateCustomerWithResponse(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) // DeleteCustomerWithResponse request DeleteCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*DeleteCustomerResponse, error) // GetCustomerWithResponse request GetCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error) // UpdateCustomerWithBodyWithResponse request with any body UpdateCustomerWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) UpdateCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) // GetCustomerAccessWithResponse request GetCustomerAccessWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*GetCustomerAccessResponse, error) // ListCustomerAppDataWithResponse request ListCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*ListCustomerAppDataResponse, error) // UpsertCustomerAppDataWithBodyWithResponse request with any body UpsertCustomerAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error) UpsertCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error) // DeleteCustomerAppDataWithResponse request DeleteCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, reqEditors ...RequestEditorFn) (*DeleteCustomerAppDataResponse, error) // GetCustomerEntitlementValueWithResponse request GetCustomerEntitlementValueWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueResponse, error) // GetCustomerStripeAppDataWithResponse request GetCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*GetCustomerStripeAppDataResponse, error) // UpsertCustomerStripeAppDataWithBodyWithResponse request with any body UpsertCustomerStripeAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerStripeAppDataResponse, error) UpsertCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerStripeAppDataResponse, error) // CreateCustomerStripePortalSessionWithBodyWithResponse request with any body CreateCustomerStripePortalSessionWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerStripePortalSessionResponse, error) CreateCustomerStripePortalSessionWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerStripePortalSessionResponse, error) // ListCustomerSubscriptionsWithResponse request ListCustomerSubscriptionsWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListCustomerSubscriptionsResponse, error) // GetDebugMetricsWithResponse request GetDebugMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDebugMetricsResponse, error) // ListEntitlementsWithResponse request ListEntitlementsWithResponse(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*ListEntitlementsResponse, error) // GetEntitlementByIdWithResponse request GetEntitlementByIdWithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdResponse, error) // ListEventsWithResponse request ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error) // IngestEventsWithBodyWithResponse request with any body IngestEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error) IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error) IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error) IngestEventsWithResponse(ctx context.Context, body IngestEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error) // ListFeaturesWithResponse request ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error) // CreateFeatureWithBodyWithResponse request with any body CreateFeatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error) CreateFeatureWithResponse(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error) // DeleteFeatureWithResponse request DeleteFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error) // GetFeatureWithResponse request GetFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*GetFeatureResponse, error) // ListGrantsWithResponse request ListGrantsWithResponse(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*ListGrantsResponse, error) // VoidGrantWithResponse request VoidGrantWithResponse(ctx context.Context, grantId string, params *VoidGrantParams, reqEditors ...RequestEditorFn) (*VoidGrantResponse, error) // ListCurrenciesWithResponse request ListCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCurrenciesResponse, error) // GetProgressWithResponse request GetProgressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetProgressResponse, error) // ListMarketplaceListingsWithResponse request ListMarketplaceListingsWithResponse(ctx context.Context, params *ListMarketplaceListingsParams, reqEditors ...RequestEditorFn) (*ListMarketplaceListingsResponse, error) // GetMarketplaceListingWithResponse request GetMarketplaceListingWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*GetMarketplaceListingResponse, error) // MarketplaceAppInstallWithBodyWithResponse request with any body MarketplaceAppInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceAppInstallResponse, error) MarketplaceAppInstallWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceAppInstallResponse, error) // MarketplaceAppAPIKeyInstallWithBodyWithResponse request with any body MarketplaceAppAPIKeyInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceAppAPIKeyInstallResponse, error) MarketplaceAppAPIKeyInstallWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceAppAPIKeyInstallResponse, error) // MarketplaceOAuth2InstallGetURLWithResponse request MarketplaceOAuth2InstallGetURLWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallGetURLResponse, error) // MarketplaceOAuth2InstallAuthorizeWithResponse request MarketplaceOAuth2InstallAuthorizeWithResponse(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallAuthorizeResponse, error) // ListMetersWithResponse request ListMetersWithResponse(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*ListMetersResponse, error) // CreateMeterWithBodyWithResponse request with any body CreateMeterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error) CreateMeterWithResponse(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error) // DeleteMeterWithResponse request DeleteMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error) // GetMeterWithResponse request GetMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*GetMeterResponse, error) // UpdateMeterWithBodyWithResponse request with any body UpdateMeterWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeterResponse, error) UpdateMeterWithResponse(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeterResponse, error) // ListMeterGroupByValuesWithResponse request ListMeterGroupByValuesWithResponse(ctx context.Context, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams, reqEditors ...RequestEditorFn) (*ListMeterGroupByValuesResponse, error) // QueryMeterWithResponse request QueryMeterWithResponse(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*QueryMeterResponse, error) // QueryMeterPostWithBodyWithResponse request with any body QueryMeterPostWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryMeterPostResponse, error) QueryMeterPostWithResponse(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryMeterPostResponse, error) // ListMeterSubjectsWithResponse request ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, reqEditors ...RequestEditorFn) (*ListMeterSubjectsResponse, error) // ListNotificationChannelsWithResponse request ListNotificationChannelsWithResponse(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListNotificationChannelsResponse, error) // CreateNotificationChannelWithBodyWithResponse request with any body CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error) CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error) // DeleteNotificationChannelWithResponse request DeleteNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelResponse, error) // GetNotificationChannelWithResponse request GetNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*GetNotificationChannelResponse, error) // UpdateNotificationChannelWithBodyWithResponse request with any body UpdateNotificationChannelWithBodyWithResponse(ctx context.Context, channelId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error) UpdateNotificationChannelWithResponse(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error) // ListNotificationEventsWithResponse request ListNotificationEventsWithResponse(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*ListNotificationEventsResponse, error) // GetNotificationEventWithResponse request GetNotificationEventWithResponse(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*GetNotificationEventResponse, error) // ResendNotificationEventWithBodyWithResponse request with any body ResendNotificationEventWithBodyWithResponse(ctx context.Context, eventId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResendNotificationEventResponse, error) ResendNotificationEventWithResponse(ctx context.Context, eventId string, body ResendNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*ResendNotificationEventResponse, error) // ListNotificationRulesWithResponse request ListNotificationRulesWithResponse(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*ListNotificationRulesResponse, error) // CreateNotificationRuleWithBodyWithResponse request with any body CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error) CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error) // DeleteNotificationRuleWithResponse request DeleteNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*DeleteNotificationRuleResponse, error) // GetNotificationRuleWithResponse request GetNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*GetNotificationRuleResponse, error) // UpdateNotificationRuleWithBodyWithResponse request with any body UpdateNotificationRuleWithBodyWithResponse(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error) UpdateNotificationRuleWithResponse(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error) // TestNotificationRuleWithResponse request TestNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*TestNotificationRuleResponse, error) // ListPlansWithResponse request ListPlansWithResponse(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error) // CreatePlanWithBodyWithResponse request with any body CreatePlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePlanResponse, error) CreatePlanWithResponse(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePlanResponse, error) // NextPlanWithResponse request NextPlanWithResponse(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*NextPlanResponse, error) // DeletePlanWithResponse request DeletePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*DeletePlanResponse, error) // GetPlanWithResponse request GetPlanWithResponse(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*GetPlanResponse, error) // UpdatePlanWithBodyWithResponse request with any body UpdatePlanWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlanResponse, error) UpdatePlanWithResponse(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePlanResponse, error) // ListPlanAddonsWithResponse request ListPlanAddonsWithResponse(ctx context.Context, planId string, params *ListPlanAddonsParams, reqEditors ...RequestEditorFn) (*ListPlanAddonsResponse, error) // CreatePlanAddonWithBodyWithResponse request with any body CreatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePlanAddonResponse, error) CreatePlanAddonWithResponse(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePlanAddonResponse, error) // DeletePlanAddonWithResponse request DeletePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*DeletePlanAddonResponse, error) // GetPlanAddonWithResponse request GetPlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*GetPlanAddonResponse, error) // UpdatePlanAddonWithBodyWithResponse request with any body UpdatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, planAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlanAddonResponse, error) UpdatePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePlanAddonResponse, error) // ArchivePlanWithResponse request ArchivePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*ArchivePlanResponse, error) // PublishPlanWithResponse request PublishPlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*PublishPlanResponse, error) // QueryPortalMeterWithResponse request QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*QueryPortalMeterResponse, error) // ListPortalTokensWithResponse request ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*ListPortalTokensResponse, error) // CreatePortalTokenWithBodyWithResponse request with any body CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error) CreatePortalTokenWithResponse(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error) // InvalidatePortalTokensWithBodyWithResponse request with any body InvalidatePortalTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error) InvalidatePortalTokensWithResponse(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error) // CreateStripeCheckoutSessionWithBodyWithResponse request with any body CreateStripeCheckoutSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStripeCheckoutSessionResponse, error) CreateStripeCheckoutSessionWithResponse(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStripeCheckoutSessionResponse, error) // ListSubjectsWithResponse request ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error) // UpsertSubjectWithBodyWithResponse request with any body UpsertSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error) UpsertSubjectWithResponse(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error) // DeleteSubjectWithResponse request DeleteSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*DeleteSubjectResponse, error) // GetSubjectWithResponse request GetSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*GetSubjectResponse, error) // ListSubjectEntitlementsWithResponse request ListSubjectEntitlementsWithResponse(ctx context.Context, subjectIdOrKey string, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*ListSubjectEntitlementsResponse, error) // CreateEntitlementWithBodyWithResponse request with any body CreateEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error) CreateEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error) // ListEntitlementGrantsWithResponse request ListEntitlementGrantsWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*ListEntitlementGrantsResponse, error) // CreateGrantWithBodyWithResponse request with any body CreateGrantWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error) CreateGrantWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error) // OverrideEntitlementWithBodyWithResponse request with any body OverrideEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideEntitlementResponse, error) OverrideEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideEntitlementResponse, error) // GetEntitlementValueWithResponse request GetEntitlementValueWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetEntitlementValueResponse, error) // DeleteEntitlementWithResponse request DeleteEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*DeleteEntitlementResponse, error) // GetEntitlementWithResponse request GetEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementResponse, error) // GetEntitlementHistoryWithResponse request GetEntitlementHistoryWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*GetEntitlementHistoryResponse, error) // ResetEntitlementUsageWithBodyWithResponse request with any body ResetEntitlementUsageWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error) ResetEntitlementUsageWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error) // CreateSubscriptionWithBodyWithResponse request with any body CreateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) CreateSubscriptionWithResponse(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) // DeleteSubscriptionWithResponse request DeleteSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error) // GetSubscriptionWithResponse request GetSubscriptionWithResponse(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) // EditSubscriptionWithBodyWithResponse request with any body EditSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSubscriptionResponse, error) EditSubscriptionWithResponse(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSubscriptionResponse, error) // ListSubscriptionAddonsWithResponse request ListSubscriptionAddonsWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*ListSubscriptionAddonsResponse, error) // CreateSubscriptionAddonWithBodyWithResponse request with any body CreateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionAddonResponse, error) CreateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionAddonResponse, error) // GetSubscriptionAddonWithResponse request GetSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, reqEditors ...RequestEditorFn) (*GetSubscriptionAddonResponse, error) // UpdateSubscriptionAddonWithBodyWithResponse request with any body UpdateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionAddonResponse, error) UpdateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionAddonResponse, error) // CancelSubscriptionWithBodyWithResponse request with any body CancelSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) CancelSubscriptionWithResponse(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) // ChangeSubscriptionWithBodyWithResponse request with any body ChangeSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeSubscriptionResponse, error) ChangeSubscriptionWithResponse(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeSubscriptionResponse, error) // MigrateSubscriptionWithBodyWithResponse request with any body MigrateSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MigrateSubscriptionResponse, error) MigrateSubscriptionWithResponse(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*MigrateSubscriptionResponse, error) // RestoreSubscriptionWithResponse request RestoreSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*RestoreSubscriptionResponse, error) // UnscheduleCancelationWithResponse request UnscheduleCancelationWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*UnscheduleCancelationResponse, error) // ListCustomerEntitlementsV2WithResponse request ListCustomerEntitlementsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params, reqEditors ...RequestEditorFn) (*ListCustomerEntitlementsV2Response, error) // CreateCustomerEntitlementV2WithBodyWithResponse request with any body CreateCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementV2Response, error) CreateCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementV2Response, error) // DeleteCustomerEntitlementV2WithResponse request DeleteCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*DeleteCustomerEntitlementV2Response, error) // GetCustomerEntitlementV2WithResponse request GetCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementV2Response, error) // ListCustomerEntitlementGrantsV2WithResponse request ListCustomerEntitlementGrantsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params, reqEditors ...RequestEditorFn) (*ListCustomerEntitlementGrantsV2Response, error) // CreateCustomerEntitlementGrantV2WithBodyWithResponse request with any body CreateCustomerEntitlementGrantV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementGrantV2Response, error) CreateCustomerEntitlementGrantV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementGrantV2Response, error) // GetCustomerEntitlementHistoryV2WithResponse request GetCustomerEntitlementHistoryV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementHistoryV2Response, error) // OverrideCustomerEntitlementV2WithBodyWithResponse request with any body OverrideCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideCustomerEntitlementV2Response, error) OverrideCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideCustomerEntitlementV2Response, error) // ResetCustomerEntitlementUsageV2WithBodyWithResponse request with any body ResetCustomerEntitlementUsageV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetCustomerEntitlementUsageV2Response, error) ResetCustomerEntitlementUsageV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody, reqEditors ...RequestEditorFn) (*ResetCustomerEntitlementUsageV2Response, error) // GetCustomerEntitlementValueV2WithResponse request GetCustomerEntitlementValueV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueV2Response, error) // ListEntitlementsV2WithResponse request ListEntitlementsV2WithResponse(ctx context.Context, params *ListEntitlementsV2Params, reqEditors ...RequestEditorFn) (*ListEntitlementsV2Response, error) // GetEntitlementByIdV2WithResponse request GetEntitlementByIdV2WithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdV2Response, error) // ListEventsV2WithResponse request ListEventsV2WithResponse(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*ListEventsV2Response, error) // ListGrantsV2WithResponse request ListGrantsV2WithResponse(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*ListGrantsV2Response, error) } type ListAddonsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AddonPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListAddonsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListAddonsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateAddonResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Addon ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteAddonResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdateAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r ArchiveAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ArchiveAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r PublishAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r PublishAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListAppsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AppPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListAppsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListAppsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type AppCustomInvoicingDraftSynchronizedResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r AppCustomInvoicingDraftSynchronizedResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r AppCustomInvoicingDraftSynchronizedResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type AppCustomInvoicingIssuingSynchronizedResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r AppCustomInvoicingIssuingSynchronizedResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r AppCustomInvoicingIssuingSynchronizedResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type AppCustomInvoicingUpdatePaymentStatusResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r AppCustomInvoicingUpdatePaymentStatusResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r AppCustomInvoicingUpdatePaymentStatusResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type UninstallAppResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r UninstallAppResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UninstallAppResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetAppResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetAppResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdateAppResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateAppResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type UpdateStripeAPIKeyResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r UpdateStripeAPIKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateStripeAPIKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r AppStripeWebhookResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r AppStripeWebhookResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListBillingProfileCustomerOverridesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *BillingProfileCustomerOverrideWithDetailsPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListBillingProfileCustomerOverridesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListBillingProfileCustomerOverridesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteBillingProfileCustomerOverrideResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteBillingProfileCustomerOverrideResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteBillingProfileCustomerOverrideResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetBillingProfileCustomerOverrideResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetBillingProfileCustomerOverrideResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpsertBillingProfileCustomerOverrideResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpsertBillingProfileCustomerOverrideResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreatePendingInvoiceLineResponse struct { Body []byte HTTPResponse *http.Response JSON201 *InvoicePendingLineCreateResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreatePendingInvoiceLineResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreatePendingInvoiceLineResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type SimulateInvoiceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Invoice ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r SimulateInvoiceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r SimulateInvoiceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListInvoicesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *InvoicePaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListInvoicesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListInvoicesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type InvoicePendingLinesActionResponse struct { Body []byte HTTPResponse *http.Response JSON201 *[]Invoice ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r InvoicePendingLinesActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r InvoicePendingLinesActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteInvoiceResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteInvoiceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteInvoiceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetInvoiceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetInvoiceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdateInvoiceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateInvoiceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r AdvanceInvoiceActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r AdvanceInvoiceActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r ApproveInvoiceActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ApproveInvoiceActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r RetryInvoiceActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r RetryInvoiceActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type SnapshotQuantitiesInvoiceActionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Invoice ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r SnapshotQuantitiesInvoiceActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r SnapshotQuantitiesInvoiceActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r RecalculateInvoiceTaxActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r RecalculateInvoiceTaxActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r VoidInvoiceActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r VoidInvoiceActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListBillingProfilesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *BillingProfilePaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListBillingProfilesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListBillingProfilesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateBillingProfileResponse struct { Body []byte HTTPResponse *http.Response JSON201 *BillingProfile ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateBillingProfileResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateBillingProfileResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteBillingProfileResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteBillingProfileResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteBillingProfileResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetBillingProfileResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetBillingProfileResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdateBillingProfileResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateBillingProfileResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListCustomersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CustomerPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListCustomersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListCustomersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateCustomerResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Customer ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateCustomerResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateCustomerResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteCustomerResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteCustomerResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteCustomerResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetCustomerResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetCustomerResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdateCustomerResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateCustomerResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetCustomerAccessResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetCustomerAccessResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r ListCustomerAppDataResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListCustomerAppDataResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpsertCustomerAppDataResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpsertCustomerAppDataResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteCustomerAppDataResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteCustomerAppDataResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteCustomerAppDataResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetCustomerEntitlementValueResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetCustomerEntitlementValueResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type GetCustomerStripeAppDataResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StripeCustomerAppData ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r GetCustomerStripeAppDataResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetCustomerStripeAppDataResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type UpsertCustomerStripeAppDataResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StripeCustomerAppData ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r UpsertCustomerStripeAppDataResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpsertCustomerStripeAppDataResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateCustomerStripePortalSessionResponse struct { Body []byte HTTPResponse *http.Response JSON201 *StripeCustomerPortalSession ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateCustomerStripePortalSessionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateCustomerStripePortalSessionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r ListCustomerSubscriptionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListCustomerSubscriptionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type GetDebugMetricsResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r GetDebugMetricsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetDebugMetricsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListEntitlementsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ListEntitlementsResult ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListEntitlementsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListEntitlementsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetEntitlementByIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetEntitlementByIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListEventsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]IngestedEvent ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListEventsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListEventsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type IngestEventsResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r IngestEventsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r IngestEventsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListFeaturesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ListFeaturesResult ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListFeaturesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListFeaturesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateFeatureResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Feature ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateFeatureResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateFeatureResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteFeatureResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteFeatureResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteFeatureResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetFeatureResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetFeatureResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListGrantsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { union json.RawMessage } ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } type ListGrants2000 = []EntitlementGrant // Status returns HTTPResponse.Status func (r ListGrantsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListGrantsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r VoidGrantResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r VoidGrantResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListCurrenciesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Currency ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListCurrenciesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListCurrenciesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetProgressResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetProgressResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListMarketplaceListingsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *MarketplaceListingPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListMarketplaceListingsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListMarketplaceListingsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type GetMarketplaceListingResponse struct { Body []byte HTTPResponse *http.Response JSON200 *MarketplaceListing ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r GetMarketplaceListingResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetMarketplaceListingResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type MarketplaceAppInstallResponse struct { Body []byte HTTPResponse *http.Response JSON200 *MarketplaceInstallResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r MarketplaceAppInstallResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r MarketplaceAppInstallResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type MarketplaceAppAPIKeyInstallResponse struct { Body []byte HTTPResponse *http.Response JSON200 *MarketplaceInstallResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r MarketplaceAppAPIKeyInstallResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r MarketplaceAppAPIKeyInstallResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type MarketplaceOAuth2InstallGetURLResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ClientAppStartResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r MarketplaceOAuth2InstallGetURLResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r MarketplaceOAuth2InstallGetURLResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type MarketplaceOAuth2InstallAuthorizeResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r MarketplaceOAuth2InstallAuthorizeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r MarketplaceOAuth2InstallAuthorizeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListMetersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Meter ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListMetersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListMetersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateMeterResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Meter ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateMeterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateMeterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteMeterResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteMeterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteMeterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetMeterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetMeterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type UpdateMeterResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Meter ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r UpdateMeterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateMeterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListMeterGroupByValuesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]string ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListMeterGroupByValuesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListMeterGroupByValuesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r QueryMeterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r QueryMeterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type QueryMeterPostResponse struct { Body []byte HTTPResponse *http.Response JSON200 *MeterQueryResult ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r QueryMeterPostResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r QueryMeterPostResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListMeterSubjectsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]string ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListMeterSubjectsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListMeterSubjectsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListNotificationChannelsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *NotificationChannelPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListNotificationChannelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListNotificationChannelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateNotificationChannelResponse struct { Body []byte HTTPResponse *http.Response JSON201 *NotificationChannel ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateNotificationChannelResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateNotificationChannelResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteNotificationChannelResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteNotificationChannelResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteNotificationChannelResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetNotificationChannelResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetNotificationChannelResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdateNotificationChannelResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateNotificationChannelResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListNotificationEventsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *NotificationEventPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListNotificationEventsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListNotificationEventsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetNotificationEventResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetNotificationEventResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ResendNotificationEventResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ResendNotificationEventResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ResendNotificationEventResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListNotificationRulesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *NotificationRulePaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListNotificationRulesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListNotificationRulesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateNotificationRuleResponse struct { Body []byte HTTPResponse *http.Response JSON201 *NotificationRule ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateNotificationRuleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateNotificationRuleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteNotificationRuleResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteNotificationRuleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteNotificationRuleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetNotificationRuleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetNotificationRuleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdateNotificationRuleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateNotificationRuleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r TestNotificationRuleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r TestNotificationRuleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListPlansResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PlanPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListPlansResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListPlansResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreatePlanResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Plan ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreatePlanResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreatePlanResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r NextPlanResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r NextPlanResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeletePlanResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeletePlanResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeletePlanResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetPlanResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetPlanResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdatePlanResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdatePlanResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListPlanAddonsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PlanAddonPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListPlanAddonsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListPlanAddonsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreatePlanAddonResponse struct { Body []byte HTTPResponse *http.Response JSON201 *PlanAddon ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON409 *ConflictProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreatePlanAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreatePlanAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeletePlanAddonResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeletePlanAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeletePlanAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type GetPlanAddonResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PlanAddon ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r GetPlanAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetPlanAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type UpdatePlanAddonResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PlanAddon ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r UpdatePlanAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdatePlanAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r ArchivePlanResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ArchivePlanResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r PublishPlanResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r PublishPlanResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r QueryPortalMeterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r QueryPortalMeterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListPortalTokensResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]PortalToken ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListPortalTokensResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListPortalTokensResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreatePortalTokenResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PortalToken ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreatePortalTokenResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreatePortalTokenResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type InvalidatePortalTokensResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r InvalidatePortalTokensResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r InvalidatePortalTokensResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r CreateStripeCheckoutSessionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateStripeCheckoutSessionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListSubjectsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Subject ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListSubjectsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListSubjectsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type UpsertSubjectResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Subject ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r UpsertSubjectResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpsertSubjectResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteSubjectResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteSubjectResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteSubjectResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetSubjectResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetSubjectResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListSubjectEntitlementsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Entitlement ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListSubjectEntitlementsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListSubjectEntitlementsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r CreateEntitlementResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateEntitlementResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListEntitlementGrantsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]EntitlementGrant ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListEntitlementGrantsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListEntitlementGrantsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r CreateGrantResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateGrantResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r OverrideEntitlementResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r OverrideEntitlementResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetEntitlementValueResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetEntitlementValueResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteEntitlementResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteEntitlementResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteEntitlementResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetEntitlementResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetEntitlementResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetEntitlementHistoryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetEntitlementHistoryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ResetEntitlementUsageResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ResetEntitlementUsageResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ResetEntitlementUsageResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateSubscriptionResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Subscription ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON409 *SubscriptionConflictErrorResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteSubscriptionResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON409 *SubscriptionConflictErrorResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type EditSubscriptionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Subscription ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON409 *SubscriptionConflictErrorResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r EditSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r EditSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r ListSubscriptionAddonsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListSubscriptionAddonsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r CreateSubscriptionAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateSubscriptionAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r GetSubscriptionAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetSubscriptionAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r UpdateSubscriptionAddonResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UpdateSubscriptionAddonResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CancelSubscriptionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Subscription ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON409 *SubscriptionConflictErrorResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CancelSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CancelSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ChangeSubscriptionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SubscriptionChangeResponseBody ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON409 *SubscriptionConflictErrorResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ChangeSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ChangeSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type MigrateSubscriptionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SubscriptionChangeResponseBody ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON409 *SubscriptionConflictErrorResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r MigrateSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r MigrateSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } 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 } // Status returns HTTPResponse.Status func (r RestoreSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r RestoreSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type UnscheduleCancelationResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Subscription ApplicationproblemJSON400 *SubscriptionBadRequestErrorResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON409 *SubscriptionConflictErrorResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r UnscheduleCancelationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r UnscheduleCancelationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListCustomerEntitlementsV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *EntitlementV2PaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListCustomerEntitlementsV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListCustomerEntitlementsV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateCustomerEntitlementV2Response struct { Body []byte HTTPResponse *http.Response JSON201 *EntitlementV2 ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON409 *ConflictProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateCustomerEntitlementV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateCustomerEntitlementV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type DeleteCustomerEntitlementV2Response struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r DeleteCustomerEntitlementV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r DeleteCustomerEntitlementV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type GetCustomerEntitlementV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *EntitlementV2 ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r GetCustomerEntitlementV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetCustomerEntitlementV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListCustomerEntitlementGrantsV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *GrantV2PaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListCustomerEntitlementGrantsV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListCustomerEntitlementGrantsV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type CreateCustomerEntitlementGrantV2Response struct { Body []byte HTTPResponse *http.Response JSON201 *EntitlementGrantV2 ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON409 *ConflictProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r CreateCustomerEntitlementGrantV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r CreateCustomerEntitlementGrantV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type GetCustomerEntitlementHistoryV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *WindowedBalanceHistory ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r GetCustomerEntitlementHistoryV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetCustomerEntitlementHistoryV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type OverrideCustomerEntitlementV2Response struct { Body []byte HTTPResponse *http.Response JSON201 *EntitlementV2 ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON409 *ConflictProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r OverrideCustomerEntitlementV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r OverrideCustomerEntitlementV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ResetCustomerEntitlementUsageV2Response struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ResetCustomerEntitlementUsageV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ResetCustomerEntitlementUsageV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type GetCustomerEntitlementValueV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *EntitlementValueV2 ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r GetCustomerEntitlementValueV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetCustomerEntitlementValueV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListEntitlementsV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *EntitlementV2PaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListEntitlementsV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListEntitlementsV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type GetEntitlementByIdV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *EntitlementV2 ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON404 *NotFoundProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r GetEntitlementByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r GetEntitlementByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListEventsV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *IngestedEventCursorPaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListEventsV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListEventsV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } type ListGrantsV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *GrantV2PaginatedResponse ApplicationproblemJSON400 *BadRequestProblemResponse ApplicationproblemJSON401 *UnauthorizedProblemResponse ApplicationproblemJSON403 *ForbiddenProblemResponse ApplicationproblemJSON412 *PreconditionFailedProblemResponse ApplicationproblemJSON500 *InternalServerErrorProblemResponse ApplicationproblemJSON503 *ServiceUnavailableProblemResponse ApplicationproblemJSONDefault *UnexpectedProblemResponse } // Status returns HTTPResponse.Status func (r ListGrantsV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode func (r ListGrantsV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } // ListAddonsWithResponse request returning *ListAddonsResponse func (c *ClientWithResponses) ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error) { rsp, err := c.ListAddons(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListAddonsResponse(rsp) } // CreateAddonWithBodyWithResponse request with arbitrary body returning *CreateAddonResponse func (c *ClientWithResponses) CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) { rsp, err := c.CreateAddonWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateAddonResponse(rsp) } func (c *ClientWithResponses) CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) { rsp, err := c.CreateAddon(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateAddonResponse(rsp) } // DeleteAddonWithResponse request returning *DeleteAddonResponse func (c *ClientWithResponses) DeleteAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*DeleteAddonResponse, error) { rsp, err := c.DeleteAddon(ctx, addonId, reqEditors...) if err != nil { return nil, err } return ParseDeleteAddonResponse(rsp) } // GetAddonWithResponse request returning *GetAddonResponse func (c *ClientWithResponses) GetAddonWithResponse(ctx context.Context, addonId string, params *GetAddonParams, reqEditors ...RequestEditorFn) (*GetAddonResponse, error) { rsp, err := c.GetAddon(ctx, addonId, params, reqEditors...) if err != nil { return nil, err } return ParseGetAddonResponse(rsp) } // UpdateAddonWithBodyWithResponse request with arbitrary body returning *UpdateAddonResponse func (c *ClientWithResponses) UpdateAddonWithBodyWithResponse(ctx context.Context, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) { rsp, err := c.UpdateAddonWithBody(ctx, addonId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateAddonResponse(rsp) } func (c *ClientWithResponses) UpdateAddonWithResponse(ctx context.Context, addonId string, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) { rsp, err := c.UpdateAddon(ctx, addonId, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateAddonResponse(rsp) } // ArchiveAddonWithResponse request returning *ArchiveAddonResponse func (c *ClientWithResponses) ArchiveAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*ArchiveAddonResponse, error) { rsp, err := c.ArchiveAddon(ctx, addonId, reqEditors...) if err != nil { return nil, err } return ParseArchiveAddonResponse(rsp) } // PublishAddonWithResponse request returning *PublishAddonResponse func (c *ClientWithResponses) PublishAddonWithResponse(ctx context.Context, addonId string, reqEditors ...RequestEditorFn) (*PublishAddonResponse, error) { rsp, err := c.PublishAddon(ctx, addonId, reqEditors...) if err != nil { return nil, err } return ParsePublishAddonResponse(rsp) } // ListAppsWithResponse request returning *ListAppsResponse func (c *ClientWithResponses) ListAppsWithResponse(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*ListAppsResponse, error) { rsp, err := c.ListApps(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListAppsResponse(rsp) } // AppCustomInvoicingDraftSynchronizedWithBodyWithResponse request with arbitrary body returning *AppCustomInvoicingDraftSynchronizedResponse func (c *ClientWithResponses) AppCustomInvoicingDraftSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingDraftSynchronizedResponse, error) { rsp, err := c.AppCustomInvoicingDraftSynchronizedWithBody(ctx, invoiceId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseAppCustomInvoicingDraftSynchronizedResponse(rsp) } func (c *ClientWithResponses) AppCustomInvoicingDraftSynchronizedWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingDraftSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingDraftSynchronizedResponse, error) { rsp, err := c.AppCustomInvoicingDraftSynchronized(ctx, invoiceId, body, reqEditors...) if err != nil { return nil, err } return ParseAppCustomInvoicingDraftSynchronizedResponse(rsp) } // AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse request with arbitrary body returning *AppCustomInvoicingIssuingSynchronizedResponse func (c *ClientWithResponses) AppCustomInvoicingIssuingSynchronizedWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingIssuingSynchronizedResponse, error) { rsp, err := c.AppCustomInvoicingIssuingSynchronizedWithBody(ctx, invoiceId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseAppCustomInvoicingIssuingSynchronizedResponse(rsp) } func (c *ClientWithResponses) AppCustomInvoicingIssuingSynchronizedWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingIssuingSynchronizedJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingIssuingSynchronizedResponse, error) { rsp, err := c.AppCustomInvoicingIssuingSynchronized(ctx, invoiceId, body, reqEditors...) if err != nil { return nil, err } return ParseAppCustomInvoicingIssuingSynchronizedResponse(rsp) } // AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse request with arbitrary body returning *AppCustomInvoicingUpdatePaymentStatusResponse func (c *ClientWithResponses) AppCustomInvoicingUpdatePaymentStatusWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppCustomInvoicingUpdatePaymentStatusResponse, error) { rsp, err := c.AppCustomInvoicingUpdatePaymentStatusWithBody(ctx, invoiceId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseAppCustomInvoicingUpdatePaymentStatusResponse(rsp) } func (c *ClientWithResponses) AppCustomInvoicingUpdatePaymentStatusWithResponse(ctx context.Context, invoiceId string, body AppCustomInvoicingUpdatePaymentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*AppCustomInvoicingUpdatePaymentStatusResponse, error) { rsp, err := c.AppCustomInvoicingUpdatePaymentStatus(ctx, invoiceId, body, reqEditors...) if err != nil { return nil, err } return ParseAppCustomInvoicingUpdatePaymentStatusResponse(rsp) } // UninstallAppWithResponse request returning *UninstallAppResponse func (c *ClientWithResponses) UninstallAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UninstallAppResponse, error) { rsp, err := c.UninstallApp(ctx, id, reqEditors...) if err != nil { return nil, err } return ParseUninstallAppResponse(rsp) } // GetAppWithResponse request returning *GetAppResponse func (c *ClientWithResponses) GetAppWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAppResponse, error) { rsp, err := c.GetApp(ctx, id, reqEditors...) if err != nil { return nil, err } return ParseGetAppResponse(rsp) } // UpdateAppWithBodyWithResponse request with arbitrary body returning *UpdateAppResponse func (c *ClientWithResponses) UpdateAppWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error) { rsp, err := c.UpdateAppWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateAppResponse(rsp) } func (c *ClientWithResponses) UpdateAppWithResponse(ctx context.Context, id string, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error) { rsp, err := c.UpdateApp(ctx, id, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateAppResponse(rsp) } // UpdateStripeAPIKeyWithBodyWithResponse request with arbitrary body returning *UpdateStripeAPIKeyResponse func (c *ClientWithResponses) UpdateStripeAPIKeyWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStripeAPIKeyResponse, error) { rsp, err := c.UpdateStripeAPIKeyWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateStripeAPIKeyResponse(rsp) } func (c *ClientWithResponses) UpdateStripeAPIKeyWithResponse(ctx context.Context, id string, body UpdateStripeAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStripeAPIKeyResponse, error) { rsp, err := c.UpdateStripeAPIKey(ctx, id, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateStripeAPIKeyResponse(rsp) } // AppStripeWebhookWithBodyWithResponse request with arbitrary body returning *AppStripeWebhookResponse func (c *ClientWithResponses) AppStripeWebhookWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppStripeWebhookResponse, error) { rsp, err := c.AppStripeWebhookWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseAppStripeWebhookResponse(rsp) } func (c *ClientWithResponses) AppStripeWebhookWithResponse(ctx context.Context, id string, body AppStripeWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*AppStripeWebhookResponse, error) { rsp, err := c.AppStripeWebhook(ctx, id, body, reqEditors...) if err != nil { return nil, err } return ParseAppStripeWebhookResponse(rsp) } // ListBillingProfileCustomerOverridesWithResponse request returning *ListBillingProfileCustomerOverridesResponse func (c *ClientWithResponses) ListBillingProfileCustomerOverridesWithResponse(ctx context.Context, params *ListBillingProfileCustomerOverridesParams, reqEditors ...RequestEditorFn) (*ListBillingProfileCustomerOverridesResponse, error) { rsp, err := c.ListBillingProfileCustomerOverrides(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListBillingProfileCustomerOverridesResponse(rsp) } // DeleteBillingProfileCustomerOverrideWithResponse request returning *DeleteBillingProfileCustomerOverrideResponse func (c *ClientWithResponses) DeleteBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileCustomerOverrideResponse, error) { rsp, err := c.DeleteBillingProfileCustomerOverride(ctx, customerId, reqEditors...) if err != nil { return nil, err } return ParseDeleteBillingProfileCustomerOverrideResponse(rsp) } // GetBillingProfileCustomerOverrideWithResponse request returning *GetBillingProfileCustomerOverrideResponse func (c *ClientWithResponses) GetBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, params *GetBillingProfileCustomerOverrideParams, reqEditors ...RequestEditorFn) (*GetBillingProfileCustomerOverrideResponse, error) { rsp, err := c.GetBillingProfileCustomerOverride(ctx, customerId, params, reqEditors...) if err != nil { return nil, err } return ParseGetBillingProfileCustomerOverrideResponse(rsp) } // UpsertBillingProfileCustomerOverrideWithBodyWithResponse request with arbitrary body returning *UpsertBillingProfileCustomerOverrideResponse func (c *ClientWithResponses) UpsertBillingProfileCustomerOverrideWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertBillingProfileCustomerOverrideResponse, error) { rsp, err := c.UpsertBillingProfileCustomerOverrideWithBody(ctx, customerId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpsertBillingProfileCustomerOverrideResponse(rsp) } func (c *ClientWithResponses) UpsertBillingProfileCustomerOverrideWithResponse(ctx context.Context, customerId string, body UpsertBillingProfileCustomerOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertBillingProfileCustomerOverrideResponse, error) { rsp, err := c.UpsertBillingProfileCustomerOverride(ctx, customerId, body, reqEditors...) if err != nil { return nil, err } return ParseUpsertBillingProfileCustomerOverrideResponse(rsp) } // CreatePendingInvoiceLineWithBodyWithResponse request with arbitrary body returning *CreatePendingInvoiceLineResponse func (c *ClientWithResponses) CreatePendingInvoiceLineWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error) { rsp, err := c.CreatePendingInvoiceLineWithBody(ctx, customerId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreatePendingInvoiceLineResponse(rsp) } func (c *ClientWithResponses) CreatePendingInvoiceLineWithResponse(ctx context.Context, customerId string, body CreatePendingInvoiceLineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePendingInvoiceLineResponse, error) { rsp, err := c.CreatePendingInvoiceLine(ctx, customerId, body, reqEditors...) if err != nil { return nil, err } return ParseCreatePendingInvoiceLineResponse(rsp) } // SimulateInvoiceWithBodyWithResponse request with arbitrary body returning *SimulateInvoiceResponse func (c *ClientWithResponses) SimulateInvoiceWithBodyWithResponse(ctx context.Context, customerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SimulateInvoiceResponse, error) { rsp, err := c.SimulateInvoiceWithBody(ctx, customerId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseSimulateInvoiceResponse(rsp) } func (c *ClientWithResponses) SimulateInvoiceWithResponse(ctx context.Context, customerId string, body SimulateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SimulateInvoiceResponse, error) { rsp, err := c.SimulateInvoice(ctx, customerId, body, reqEditors...) if err != nil { return nil, err } return ParseSimulateInvoiceResponse(rsp) } // ListInvoicesWithResponse request returning *ListInvoicesResponse func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error) { rsp, err := c.ListInvoices(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListInvoicesResponse(rsp) } // InvoicePendingLinesActionWithBodyWithResponse request with arbitrary body returning *InvoicePendingLinesActionResponse func (c *ClientWithResponses) InvoicePendingLinesActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvoicePendingLinesActionResponse, error) { rsp, err := c.InvoicePendingLinesActionWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseInvoicePendingLinesActionResponse(rsp) } func (c *ClientWithResponses) InvoicePendingLinesActionWithResponse(ctx context.Context, body InvoicePendingLinesActionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvoicePendingLinesActionResponse, error) { rsp, err := c.InvoicePendingLinesAction(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseInvoicePendingLinesActionResponse(rsp) } // DeleteInvoiceWithResponse request returning *DeleteInvoiceResponse func (c *ClientWithResponses) DeleteInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error) { rsp, err := c.DeleteInvoice(ctx, invoiceId, reqEditors...) if err != nil { return nil, err } return ParseDeleteInvoiceResponse(rsp) } // GetInvoiceWithResponse request returning *GetInvoiceResponse func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error) { rsp, err := c.GetInvoice(ctx, invoiceId, params, reqEditors...) if err != nil { return nil, err } return ParseGetInvoiceResponse(rsp) } // UpdateInvoiceWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceResponse func (c *ClientWithResponses) UpdateInvoiceWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) { rsp, err := c.UpdateInvoiceWithBody(ctx, invoiceId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateInvoiceResponse(rsp) } func (c *ClientWithResponses) UpdateInvoiceWithResponse(ctx context.Context, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) { rsp, err := c.UpdateInvoice(ctx, invoiceId, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateInvoiceResponse(rsp) } // AdvanceInvoiceActionWithResponse request returning *AdvanceInvoiceActionResponse func (c *ClientWithResponses) AdvanceInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*AdvanceInvoiceActionResponse, error) { rsp, err := c.AdvanceInvoiceAction(ctx, invoiceId, reqEditors...) if err != nil { return nil, err } return ParseAdvanceInvoiceActionResponse(rsp) } // ApproveInvoiceActionWithResponse request returning *ApproveInvoiceActionResponse func (c *ClientWithResponses) ApproveInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*ApproveInvoiceActionResponse, error) { rsp, err := c.ApproveInvoiceAction(ctx, invoiceId, reqEditors...) if err != nil { return nil, err } return ParseApproveInvoiceActionResponse(rsp) } // RetryInvoiceActionWithResponse request returning *RetryInvoiceActionResponse func (c *ClientWithResponses) RetryInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RetryInvoiceActionResponse, error) { rsp, err := c.RetryInvoiceAction(ctx, invoiceId, reqEditors...) if err != nil { return nil, err } return ParseRetryInvoiceActionResponse(rsp) } // SnapshotQuantitiesInvoiceActionWithResponse request returning *SnapshotQuantitiesInvoiceActionResponse func (c *ClientWithResponses) SnapshotQuantitiesInvoiceActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*SnapshotQuantitiesInvoiceActionResponse, error) { rsp, err := c.SnapshotQuantitiesInvoiceAction(ctx, invoiceId, reqEditors...) if err != nil { return nil, err } return ParseSnapshotQuantitiesInvoiceActionResponse(rsp) } // RecalculateInvoiceTaxActionWithResponse request returning *RecalculateInvoiceTaxActionResponse func (c *ClientWithResponses) RecalculateInvoiceTaxActionWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*RecalculateInvoiceTaxActionResponse, error) { rsp, err := c.RecalculateInvoiceTaxAction(ctx, invoiceId, reqEditors...) if err != nil { return nil, err } return ParseRecalculateInvoiceTaxActionResponse(rsp) } // VoidInvoiceActionWithBodyWithResponse request with arbitrary body returning *VoidInvoiceActionResponse func (c *ClientWithResponses) VoidInvoiceActionWithBodyWithResponse(ctx context.Context, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VoidInvoiceActionResponse, error) { rsp, err := c.VoidInvoiceActionWithBody(ctx, invoiceId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseVoidInvoiceActionResponse(rsp) } func (c *ClientWithResponses) VoidInvoiceActionWithResponse(ctx context.Context, invoiceId string, body VoidInvoiceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*VoidInvoiceActionResponse, error) { rsp, err := c.VoidInvoiceAction(ctx, invoiceId, body, reqEditors...) if err != nil { return nil, err } return ParseVoidInvoiceActionResponse(rsp) } // ListBillingProfilesWithResponse request returning *ListBillingProfilesResponse func (c *ClientWithResponses) ListBillingProfilesWithResponse(ctx context.Context, params *ListBillingProfilesParams, reqEditors ...RequestEditorFn) (*ListBillingProfilesResponse, error) { rsp, err := c.ListBillingProfiles(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListBillingProfilesResponse(rsp) } // CreateBillingProfileWithBodyWithResponse request with arbitrary body returning *CreateBillingProfileResponse func (c *ClientWithResponses) CreateBillingProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBillingProfileResponse, error) { rsp, err := c.CreateBillingProfileWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateBillingProfileResponse(rsp) } func (c *ClientWithResponses) CreateBillingProfileWithResponse(ctx context.Context, body CreateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBillingProfileResponse, error) { rsp, err := c.CreateBillingProfile(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateBillingProfileResponse(rsp) } // DeleteBillingProfileWithResponse request returning *DeleteBillingProfileResponse func (c *ClientWithResponses) DeleteBillingProfileWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteBillingProfileResponse, error) { rsp, err := c.DeleteBillingProfile(ctx, id, reqEditors...) if err != nil { return nil, err } return ParseDeleteBillingProfileResponse(rsp) } // GetBillingProfileWithResponse request returning *GetBillingProfileResponse func (c *ClientWithResponses) GetBillingProfileWithResponse(ctx context.Context, id string, params *GetBillingProfileParams, reqEditors ...RequestEditorFn) (*GetBillingProfileResponse, error) { rsp, err := c.GetBillingProfile(ctx, id, params, reqEditors...) if err != nil { return nil, err } return ParseGetBillingProfileResponse(rsp) } // UpdateBillingProfileWithBodyWithResponse request with arbitrary body returning *UpdateBillingProfileResponse func (c *ClientWithResponses) UpdateBillingProfileWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillingProfileResponse, error) { rsp, err := c.UpdateBillingProfileWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateBillingProfileResponse(rsp) } func (c *ClientWithResponses) UpdateBillingProfileWithResponse(ctx context.Context, id string, body UpdateBillingProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillingProfileResponse, error) { rsp, err := c.UpdateBillingProfile(ctx, id, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateBillingProfileResponse(rsp) } // ListCustomersWithResponse request returning *ListCustomersResponse func (c *ClientWithResponses) ListCustomersWithResponse(ctx context.Context, params *ListCustomersParams, reqEditors ...RequestEditorFn) (*ListCustomersResponse, error) { rsp, err := c.ListCustomers(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListCustomersResponse(rsp) } // CreateCustomerWithBodyWithResponse request with arbitrary body returning *CreateCustomerResponse func (c *ClientWithResponses) CreateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) { rsp, err := c.CreateCustomerWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateCustomerResponse(rsp) } func (c *ClientWithResponses) CreateCustomerWithResponse(ctx context.Context, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) { rsp, err := c.CreateCustomer(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateCustomerResponse(rsp) } // DeleteCustomerWithResponse request returning *DeleteCustomerResponse func (c *ClientWithResponses) DeleteCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*DeleteCustomerResponse, error) { rsp, err := c.DeleteCustomer(ctx, customerIdOrKey, reqEditors...) if err != nil { return nil, err } return ParseDeleteCustomerResponse(rsp) } // GetCustomerWithResponse request returning *GetCustomerResponse func (c *ClientWithResponses) GetCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *GetCustomerParams, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error) { rsp, err := c.GetCustomer(ctx, customerIdOrKey, params, reqEditors...) if err != nil { return nil, err } return ParseGetCustomerResponse(rsp) } // UpdateCustomerWithBodyWithResponse request with arbitrary body returning *UpdateCustomerResponse func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) { rsp, err := c.UpdateCustomerWithBody(ctx, customerIdOrKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateCustomerResponse(rsp) } func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) { rsp, err := c.UpdateCustomer(ctx, customerIdOrKey, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateCustomerResponse(rsp) } // GetCustomerAccessWithResponse request returning *GetCustomerAccessResponse func (c *ClientWithResponses) GetCustomerAccessWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*GetCustomerAccessResponse, error) { rsp, err := c.GetCustomerAccess(ctx, customerIdOrKey, reqEditors...) if err != nil { return nil, err } return ParseGetCustomerAccessResponse(rsp) } // ListCustomerAppDataWithResponse request returning *ListCustomerAppDataResponse func (c *ClientWithResponses) ListCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerAppDataParams, reqEditors ...RequestEditorFn) (*ListCustomerAppDataResponse, error) { rsp, err := c.ListCustomerAppData(ctx, customerIdOrKey, params, reqEditors...) if err != nil { return nil, err } return ParseListCustomerAppDataResponse(rsp) } // UpsertCustomerAppDataWithBodyWithResponse request with arbitrary body returning *UpsertCustomerAppDataResponse func (c *ClientWithResponses) UpsertCustomerAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error) { rsp, err := c.UpsertCustomerAppDataWithBody(ctx, customerIdOrKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpsertCustomerAppDataResponse(rsp) } func (c *ClientWithResponses) UpsertCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerAppDataResponse, error) { rsp, err := c.UpsertCustomerAppData(ctx, customerIdOrKey, body, reqEditors...) if err != nil { return nil, err } return ParseUpsertCustomerAppDataResponse(rsp) } // DeleteCustomerAppDataWithResponse request returning *DeleteCustomerAppDataResponse func (c *ClientWithResponses) DeleteCustomerAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, appId string, reqEditors ...RequestEditorFn) (*DeleteCustomerAppDataResponse, error) { rsp, err := c.DeleteCustomerAppData(ctx, customerIdOrKey, appId, reqEditors...) if err != nil { return nil, err } return ParseDeleteCustomerAppDataResponse(rsp) } // GetCustomerEntitlementValueWithResponse request returning *GetCustomerEntitlementValueResponse func (c *ClientWithResponses) GetCustomerEntitlementValueWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, featureKey string, params *GetCustomerEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueResponse, error) { rsp, err := c.GetCustomerEntitlementValue(ctx, customerIdOrKey, featureKey, params, reqEditors...) if err != nil { return nil, err } return ParseGetCustomerEntitlementValueResponse(rsp) } // GetCustomerStripeAppDataWithResponse request returning *GetCustomerStripeAppDataResponse func (c *ClientWithResponses) GetCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, reqEditors ...RequestEditorFn) (*GetCustomerStripeAppDataResponse, error) { rsp, err := c.GetCustomerStripeAppData(ctx, customerIdOrKey, reqEditors...) if err != nil { return nil, err } return ParseGetCustomerStripeAppDataResponse(rsp) } // UpsertCustomerStripeAppDataWithBodyWithResponse request with arbitrary body returning *UpsertCustomerStripeAppDataResponse func (c *ClientWithResponses) UpsertCustomerStripeAppDataWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertCustomerStripeAppDataResponse, error) { rsp, err := c.UpsertCustomerStripeAppDataWithBody(ctx, customerIdOrKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpsertCustomerStripeAppDataResponse(rsp) } func (c *ClientWithResponses) UpsertCustomerStripeAppDataWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body UpsertCustomerStripeAppDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertCustomerStripeAppDataResponse, error) { rsp, err := c.UpsertCustomerStripeAppData(ctx, customerIdOrKey, body, reqEditors...) if err != nil { return nil, err } return ParseUpsertCustomerStripeAppDataResponse(rsp) } // CreateCustomerStripePortalSessionWithBodyWithResponse request with arbitrary body returning *CreateCustomerStripePortalSessionResponse func (c *ClientWithResponses) CreateCustomerStripePortalSessionWithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerStripePortalSessionResponse, error) { rsp, err := c.CreateCustomerStripePortalSessionWithBody(ctx, customerIdOrKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateCustomerStripePortalSessionResponse(rsp) } func (c *ClientWithResponses) CreateCustomerStripePortalSessionWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerStripePortalSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerStripePortalSessionResponse, error) { rsp, err := c.CreateCustomerStripePortalSession(ctx, customerIdOrKey, body, reqEditors...) if err != nil { return nil, err } return ParseCreateCustomerStripePortalSessionResponse(rsp) } // ListCustomerSubscriptionsWithResponse request returning *ListCustomerSubscriptionsResponse func (c *ClientWithResponses) ListCustomerSubscriptionsWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListCustomerSubscriptionsResponse, error) { rsp, err := c.ListCustomerSubscriptions(ctx, customerIdOrKey, params, reqEditors...) if err != nil { return nil, err } return ParseListCustomerSubscriptionsResponse(rsp) } // GetDebugMetricsWithResponse request returning *GetDebugMetricsResponse func (c *ClientWithResponses) GetDebugMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDebugMetricsResponse, error) { rsp, err := c.GetDebugMetrics(ctx, reqEditors...) if err != nil { return nil, err } return ParseGetDebugMetricsResponse(rsp) } // ListEntitlementsWithResponse request returning *ListEntitlementsResponse func (c *ClientWithResponses) ListEntitlementsWithResponse(ctx context.Context, params *ListEntitlementsParams, reqEditors ...RequestEditorFn) (*ListEntitlementsResponse, error) { rsp, err := c.ListEntitlements(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListEntitlementsResponse(rsp) } // GetEntitlementByIdWithResponse request returning *GetEntitlementByIdResponse func (c *ClientWithResponses) GetEntitlementByIdWithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdResponse, error) { rsp, err := c.GetEntitlementById(ctx, entitlementId, reqEditors...) if err != nil { return nil, err } return ParseGetEntitlementByIdResponse(rsp) } // ListEventsWithResponse request returning *ListEventsResponse func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error) { rsp, err := c.ListEvents(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListEventsResponse(rsp) } // IngestEventsWithBodyWithResponse request with arbitrary body returning *IngestEventsResponse func (c *ClientWithResponses) IngestEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error) { rsp, err := c.IngestEventsWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseIngestEventsResponse(rsp) } func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error) { rsp, err := c.IngestEventsWithApplicationCloudeventsPlusJSONBody(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseIngestEventsResponse(rsp) } func (c *ClientWithResponses) IngestEventsWithApplicationCloudeventsBatchPlusJSONBodyWithResponse(ctx context.Context, body IngestEventsApplicationCloudeventsBatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error) { rsp, err := c.IngestEventsWithApplicationCloudeventsBatchPlusJSONBody(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseIngestEventsResponse(rsp) } func (c *ClientWithResponses) IngestEventsWithResponse(ctx context.Context, body IngestEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestEventsResponse, error) { rsp, err := c.IngestEvents(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseIngestEventsResponse(rsp) } // ListFeaturesWithResponse request returning *ListFeaturesResponse func (c *ClientWithResponses) ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error) { rsp, err := c.ListFeatures(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListFeaturesResponse(rsp) } // CreateFeatureWithBodyWithResponse request with arbitrary body returning *CreateFeatureResponse func (c *ClientWithResponses) CreateFeatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error) { rsp, err := c.CreateFeatureWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateFeatureResponse(rsp) } func (c *ClientWithResponses) CreateFeatureWithResponse(ctx context.Context, body CreateFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeatureResponse, error) { rsp, err := c.CreateFeature(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateFeatureResponse(rsp) } // DeleteFeatureWithResponse request returning *DeleteFeatureResponse func (c *ClientWithResponses) DeleteFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error) { rsp, err := c.DeleteFeature(ctx, featureId, reqEditors...) if err != nil { return nil, err } return ParseDeleteFeatureResponse(rsp) } // GetFeatureWithResponse request returning *GetFeatureResponse func (c *ClientWithResponses) GetFeatureWithResponse(ctx context.Context, featureId string, reqEditors ...RequestEditorFn) (*GetFeatureResponse, error) { rsp, err := c.GetFeature(ctx, featureId, reqEditors...) if err != nil { return nil, err } return ParseGetFeatureResponse(rsp) } // ListGrantsWithResponse request returning *ListGrantsResponse func (c *ClientWithResponses) ListGrantsWithResponse(ctx context.Context, params *ListGrantsParams, reqEditors ...RequestEditorFn) (*ListGrantsResponse, error) { rsp, err := c.ListGrants(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListGrantsResponse(rsp) } // VoidGrantWithResponse request returning *VoidGrantResponse func (c *ClientWithResponses) VoidGrantWithResponse(ctx context.Context, grantId string, params *VoidGrantParams, reqEditors ...RequestEditorFn) (*VoidGrantResponse, error) { rsp, err := c.VoidGrant(ctx, grantId, params, reqEditors...) if err != nil { return nil, err } return ParseVoidGrantResponse(rsp) } // ListCurrenciesWithResponse request returning *ListCurrenciesResponse func (c *ClientWithResponses) ListCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCurrenciesResponse, error) { rsp, err := c.ListCurrencies(ctx, reqEditors...) if err != nil { return nil, err } return ParseListCurrenciesResponse(rsp) } // GetProgressWithResponse request returning *GetProgressResponse func (c *ClientWithResponses) GetProgressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetProgressResponse, error) { rsp, err := c.GetProgress(ctx, id, reqEditors...) if err != nil { return nil, err } return ParseGetProgressResponse(rsp) } // ListMarketplaceListingsWithResponse request returning *ListMarketplaceListingsResponse func (c *ClientWithResponses) ListMarketplaceListingsWithResponse(ctx context.Context, params *ListMarketplaceListingsParams, reqEditors ...RequestEditorFn) (*ListMarketplaceListingsResponse, error) { rsp, err := c.ListMarketplaceListings(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListMarketplaceListingsResponse(rsp) } // GetMarketplaceListingWithResponse request returning *GetMarketplaceListingResponse func (c *ClientWithResponses) GetMarketplaceListingWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*GetMarketplaceListingResponse, error) { rsp, err := c.GetMarketplaceListing(ctx, pType, reqEditors...) if err != nil { return nil, err } return ParseGetMarketplaceListingResponse(rsp) } // MarketplaceAppInstallWithBodyWithResponse request with arbitrary body returning *MarketplaceAppInstallResponse func (c *ClientWithResponses) MarketplaceAppInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceAppInstallResponse, error) { rsp, err := c.MarketplaceAppInstallWithBody(ctx, pType, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseMarketplaceAppInstallResponse(rsp) } func (c *ClientWithResponses) MarketplaceAppInstallWithResponse(ctx context.Context, pType MarketplaceInstallRequestType, body MarketplaceAppInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceAppInstallResponse, error) { rsp, err := c.MarketplaceAppInstall(ctx, pType, body, reqEditors...) if err != nil { return nil, err } return ParseMarketplaceAppInstallResponse(rsp) } // MarketplaceAppAPIKeyInstallWithBodyWithResponse request with arbitrary body returning *MarketplaceAppAPIKeyInstallResponse func (c *ClientWithResponses) MarketplaceAppAPIKeyInstallWithBodyWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceAppAPIKeyInstallResponse, error) { rsp, err := c.MarketplaceAppAPIKeyInstallWithBody(ctx, pType, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseMarketplaceAppAPIKeyInstallResponse(rsp) } func (c *ClientWithResponses) MarketplaceAppAPIKeyInstallWithResponse(ctx context.Context, pType MarketplaceApiKeyInstallRequestType, body MarketplaceAppAPIKeyInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceAppAPIKeyInstallResponse, error) { rsp, err := c.MarketplaceAppAPIKeyInstall(ctx, pType, body, reqEditors...) if err != nil { return nil, err } return ParseMarketplaceAppAPIKeyInstallResponse(rsp) } // MarketplaceOAuth2InstallGetURLWithResponse request returning *MarketplaceOAuth2InstallGetURLResponse func (c *ClientWithResponses) MarketplaceOAuth2InstallGetURLWithResponse(ctx context.Context, pType AppType, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallGetURLResponse, error) { rsp, err := c.MarketplaceOAuth2InstallGetURL(ctx, pType, reqEditors...) if err != nil { return nil, err } return ParseMarketplaceOAuth2InstallGetURLResponse(rsp) } // MarketplaceOAuth2InstallAuthorizeWithResponse request returning *MarketplaceOAuth2InstallAuthorizeResponse func (c *ClientWithResponses) MarketplaceOAuth2InstallAuthorizeWithResponse(ctx context.Context, pType MarketplaceOAuth2InstallAuthorizeRequestType, params *MarketplaceOAuth2InstallAuthorizeParams, reqEditors ...RequestEditorFn) (*MarketplaceOAuth2InstallAuthorizeResponse, error) { rsp, err := c.MarketplaceOAuth2InstallAuthorize(ctx, pType, params, reqEditors...) if err != nil { return nil, err } return ParseMarketplaceOAuth2InstallAuthorizeResponse(rsp) } // ListMetersWithResponse request returning *ListMetersResponse func (c *ClientWithResponses) ListMetersWithResponse(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*ListMetersResponse, error) { rsp, err := c.ListMeters(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListMetersResponse(rsp) } // CreateMeterWithBodyWithResponse request with arbitrary body returning *CreateMeterResponse func (c *ClientWithResponses) CreateMeterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error) { rsp, err := c.CreateMeterWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateMeterResponse(rsp) } func (c *ClientWithResponses) CreateMeterWithResponse(ctx context.Context, body CreateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMeterResponse, error) { rsp, err := c.CreateMeter(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateMeterResponse(rsp) } // DeleteMeterWithResponse request returning *DeleteMeterResponse func (c *ClientWithResponses) DeleteMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error) { rsp, err := c.DeleteMeter(ctx, meterIdOrSlug, reqEditors...) if err != nil { return nil, err } return ParseDeleteMeterResponse(rsp) } // GetMeterWithResponse request returning *GetMeterResponse func (c *ClientWithResponses) GetMeterWithResponse(ctx context.Context, meterIdOrSlug string, reqEditors ...RequestEditorFn) (*GetMeterResponse, error) { rsp, err := c.GetMeter(ctx, meterIdOrSlug, reqEditors...) if err != nil { return nil, err } return ParseGetMeterResponse(rsp) } // UpdateMeterWithBodyWithResponse request with arbitrary body returning *UpdateMeterResponse func (c *ClientWithResponses) UpdateMeterWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeterResponse, error) { rsp, err := c.UpdateMeterWithBody(ctx, meterIdOrSlug, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateMeterResponse(rsp) } func (c *ClientWithResponses) UpdateMeterWithResponse(ctx context.Context, meterIdOrSlug string, body UpdateMeterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeterResponse, error) { rsp, err := c.UpdateMeter(ctx, meterIdOrSlug, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateMeterResponse(rsp) } // ListMeterGroupByValuesWithResponse request returning *ListMeterGroupByValuesResponse func (c *ClientWithResponses) ListMeterGroupByValuesWithResponse(ctx context.Context, meterIdOrSlug string, groupByKey string, params *ListMeterGroupByValuesParams, reqEditors ...RequestEditorFn) (*ListMeterGroupByValuesResponse, error) { rsp, err := c.ListMeterGroupByValues(ctx, meterIdOrSlug, groupByKey, params, reqEditors...) if err != nil { return nil, err } return ParseListMeterGroupByValuesResponse(rsp) } // QueryMeterWithResponse request returning *QueryMeterResponse func (c *ClientWithResponses) QueryMeterWithResponse(ctx context.Context, meterIdOrSlug string, params *QueryMeterParams, reqEditors ...RequestEditorFn) (*QueryMeterResponse, error) { rsp, err := c.QueryMeter(ctx, meterIdOrSlug, params, reqEditors...) if err != nil { return nil, err } return ParseQueryMeterResponse(rsp) } // QueryMeterPostWithBodyWithResponse request with arbitrary body returning *QueryMeterPostResponse func (c *ClientWithResponses) QueryMeterPostWithBodyWithResponse(ctx context.Context, meterIdOrSlug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryMeterPostResponse, error) { rsp, err := c.QueryMeterPostWithBody(ctx, meterIdOrSlug, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseQueryMeterPostResponse(rsp) } func (c *ClientWithResponses) QueryMeterPostWithResponse(ctx context.Context, meterIdOrSlug string, body QueryMeterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryMeterPostResponse, error) { rsp, err := c.QueryMeterPost(ctx, meterIdOrSlug, body, reqEditors...) if err != nil { return nil, err } return ParseQueryMeterPostResponse(rsp) } // ListMeterSubjectsWithResponse request returning *ListMeterSubjectsResponse func (c *ClientWithResponses) ListMeterSubjectsWithResponse(ctx context.Context, meterIdOrSlug string, params *ListMeterSubjectsParams, reqEditors ...RequestEditorFn) (*ListMeterSubjectsResponse, error) { rsp, err := c.ListMeterSubjects(ctx, meterIdOrSlug, params, reqEditors...) if err != nil { return nil, err } return ParseListMeterSubjectsResponse(rsp) } // ListNotificationChannelsWithResponse request returning *ListNotificationChannelsResponse func (c *ClientWithResponses) ListNotificationChannelsWithResponse(ctx context.Context, params *ListNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListNotificationChannelsResponse, error) { rsp, err := c.ListNotificationChannels(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListNotificationChannelsResponse(rsp) } // CreateNotificationChannelWithBodyWithResponse request with arbitrary body returning *CreateNotificationChannelResponse func (c *ClientWithResponses) CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error) { rsp, err := c.CreateNotificationChannelWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateNotificationChannelResponse(rsp) } func (c *ClientWithResponses) CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error) { rsp, err := c.CreateNotificationChannel(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateNotificationChannelResponse(rsp) } // DeleteNotificationChannelWithResponse request returning *DeleteNotificationChannelResponse func (c *ClientWithResponses) DeleteNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelResponse, error) { rsp, err := c.DeleteNotificationChannel(ctx, channelId, reqEditors...) if err != nil { return nil, err } return ParseDeleteNotificationChannelResponse(rsp) } // GetNotificationChannelWithResponse request returning *GetNotificationChannelResponse func (c *ClientWithResponses) GetNotificationChannelWithResponse(ctx context.Context, channelId string, reqEditors ...RequestEditorFn) (*GetNotificationChannelResponse, error) { rsp, err := c.GetNotificationChannel(ctx, channelId, reqEditors...) if err != nil { return nil, err } return ParseGetNotificationChannelResponse(rsp) } // UpdateNotificationChannelWithBodyWithResponse request with arbitrary body returning *UpdateNotificationChannelResponse func (c *ClientWithResponses) UpdateNotificationChannelWithBodyWithResponse(ctx context.Context, channelId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error) { rsp, err := c.UpdateNotificationChannelWithBody(ctx, channelId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateNotificationChannelResponse(rsp) } func (c *ClientWithResponses) UpdateNotificationChannelWithResponse(ctx context.Context, channelId string, body UpdateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelResponse, error) { rsp, err := c.UpdateNotificationChannel(ctx, channelId, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateNotificationChannelResponse(rsp) } // ListNotificationEventsWithResponse request returning *ListNotificationEventsResponse func (c *ClientWithResponses) ListNotificationEventsWithResponse(ctx context.Context, params *ListNotificationEventsParams, reqEditors ...RequestEditorFn) (*ListNotificationEventsResponse, error) { rsp, err := c.ListNotificationEvents(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListNotificationEventsResponse(rsp) } // GetNotificationEventWithResponse request returning *GetNotificationEventResponse func (c *ClientWithResponses) GetNotificationEventWithResponse(ctx context.Context, eventId string, reqEditors ...RequestEditorFn) (*GetNotificationEventResponse, error) { rsp, err := c.GetNotificationEvent(ctx, eventId, reqEditors...) if err != nil { return nil, err } return ParseGetNotificationEventResponse(rsp) } // ResendNotificationEventWithBodyWithResponse request with arbitrary body returning *ResendNotificationEventResponse func (c *ClientWithResponses) ResendNotificationEventWithBodyWithResponse(ctx context.Context, eventId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResendNotificationEventResponse, error) { rsp, err := c.ResendNotificationEventWithBody(ctx, eventId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseResendNotificationEventResponse(rsp) } func (c *ClientWithResponses) ResendNotificationEventWithResponse(ctx context.Context, eventId string, body ResendNotificationEventJSONRequestBody, reqEditors ...RequestEditorFn) (*ResendNotificationEventResponse, error) { rsp, err := c.ResendNotificationEvent(ctx, eventId, body, reqEditors...) if err != nil { return nil, err } return ParseResendNotificationEventResponse(rsp) } // ListNotificationRulesWithResponse request returning *ListNotificationRulesResponse func (c *ClientWithResponses) ListNotificationRulesWithResponse(ctx context.Context, params *ListNotificationRulesParams, reqEditors ...RequestEditorFn) (*ListNotificationRulesResponse, error) { rsp, err := c.ListNotificationRules(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListNotificationRulesResponse(rsp) } // CreateNotificationRuleWithBodyWithResponse request with arbitrary body returning *CreateNotificationRuleResponse func (c *ClientWithResponses) CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error) { rsp, err := c.CreateNotificationRuleWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateNotificationRuleResponse(rsp) } func (c *ClientWithResponses) CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationRuleResponse, error) { rsp, err := c.CreateNotificationRule(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateNotificationRuleResponse(rsp) } // DeleteNotificationRuleWithResponse request returning *DeleteNotificationRuleResponse func (c *ClientWithResponses) DeleteNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*DeleteNotificationRuleResponse, error) { rsp, err := c.DeleteNotificationRule(ctx, ruleId, reqEditors...) if err != nil { return nil, err } return ParseDeleteNotificationRuleResponse(rsp) } // GetNotificationRuleWithResponse request returning *GetNotificationRuleResponse func (c *ClientWithResponses) GetNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*GetNotificationRuleResponse, error) { rsp, err := c.GetNotificationRule(ctx, ruleId, reqEditors...) if err != nil { return nil, err } return ParseGetNotificationRuleResponse(rsp) } // UpdateNotificationRuleWithBodyWithResponse request with arbitrary body returning *UpdateNotificationRuleResponse func (c *ClientWithResponses) UpdateNotificationRuleWithBodyWithResponse(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error) { rsp, err := c.UpdateNotificationRuleWithBody(ctx, ruleId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateNotificationRuleResponse(rsp) } func (c *ClientWithResponses) UpdateNotificationRuleWithResponse(ctx context.Context, ruleId string, body UpdateNotificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationRuleResponse, error) { rsp, err := c.UpdateNotificationRule(ctx, ruleId, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateNotificationRuleResponse(rsp) } // TestNotificationRuleWithResponse request returning *TestNotificationRuleResponse func (c *ClientWithResponses) TestNotificationRuleWithResponse(ctx context.Context, ruleId string, reqEditors ...RequestEditorFn) (*TestNotificationRuleResponse, error) { rsp, err := c.TestNotificationRule(ctx, ruleId, reqEditors...) if err != nil { return nil, err } return ParseTestNotificationRuleResponse(rsp) } // ListPlansWithResponse request returning *ListPlansResponse func (c *ClientWithResponses) ListPlansWithResponse(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error) { rsp, err := c.ListPlans(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListPlansResponse(rsp) } // CreatePlanWithBodyWithResponse request with arbitrary body returning *CreatePlanResponse func (c *ClientWithResponses) CreatePlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePlanResponse, error) { rsp, err := c.CreatePlanWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreatePlanResponse(rsp) } func (c *ClientWithResponses) CreatePlanWithResponse(ctx context.Context, body CreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePlanResponse, error) { rsp, err := c.CreatePlan(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreatePlanResponse(rsp) } // NextPlanWithResponse request returning *NextPlanResponse func (c *ClientWithResponses) NextPlanWithResponse(ctx context.Context, planIdOrKey string, reqEditors ...RequestEditorFn) (*NextPlanResponse, error) { rsp, err := c.NextPlan(ctx, planIdOrKey, reqEditors...) if err != nil { return nil, err } return ParseNextPlanResponse(rsp) } // DeletePlanWithResponse request returning *DeletePlanResponse func (c *ClientWithResponses) DeletePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*DeletePlanResponse, error) { rsp, err := c.DeletePlan(ctx, planId, reqEditors...) if err != nil { return nil, err } return ParseDeletePlanResponse(rsp) } // GetPlanWithResponse request returning *GetPlanResponse func (c *ClientWithResponses) GetPlanWithResponse(ctx context.Context, planId string, params *GetPlanParams, reqEditors ...RequestEditorFn) (*GetPlanResponse, error) { rsp, err := c.GetPlan(ctx, planId, params, reqEditors...) if err != nil { return nil, err } return ParseGetPlanResponse(rsp) } // UpdatePlanWithBodyWithResponse request with arbitrary body returning *UpdatePlanResponse func (c *ClientWithResponses) UpdatePlanWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlanResponse, error) { rsp, err := c.UpdatePlanWithBody(ctx, planId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdatePlanResponse(rsp) } func (c *ClientWithResponses) UpdatePlanWithResponse(ctx context.Context, planId string, body UpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePlanResponse, error) { rsp, err := c.UpdatePlan(ctx, planId, body, reqEditors...) if err != nil { return nil, err } return ParseUpdatePlanResponse(rsp) } // ListPlanAddonsWithResponse request returning *ListPlanAddonsResponse func (c *ClientWithResponses) ListPlanAddonsWithResponse(ctx context.Context, planId string, params *ListPlanAddonsParams, reqEditors ...RequestEditorFn) (*ListPlanAddonsResponse, error) { rsp, err := c.ListPlanAddons(ctx, planId, params, reqEditors...) if err != nil { return nil, err } return ParseListPlanAddonsResponse(rsp) } // CreatePlanAddonWithBodyWithResponse request with arbitrary body returning *CreatePlanAddonResponse func (c *ClientWithResponses) CreatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePlanAddonResponse, error) { rsp, err := c.CreatePlanAddonWithBody(ctx, planId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreatePlanAddonResponse(rsp) } func (c *ClientWithResponses) CreatePlanAddonWithResponse(ctx context.Context, planId string, body CreatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePlanAddonResponse, error) { rsp, err := c.CreatePlanAddon(ctx, planId, body, reqEditors...) if err != nil { return nil, err } return ParseCreatePlanAddonResponse(rsp) } // DeletePlanAddonWithResponse request returning *DeletePlanAddonResponse func (c *ClientWithResponses) DeletePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*DeletePlanAddonResponse, error) { rsp, err := c.DeletePlanAddon(ctx, planId, planAddonId, reqEditors...) if err != nil { return nil, err } return ParseDeletePlanAddonResponse(rsp) } // GetPlanAddonWithResponse request returning *GetPlanAddonResponse func (c *ClientWithResponses) GetPlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, reqEditors ...RequestEditorFn) (*GetPlanAddonResponse, error) { rsp, err := c.GetPlanAddon(ctx, planId, planAddonId, reqEditors...) if err != nil { return nil, err } return ParseGetPlanAddonResponse(rsp) } // UpdatePlanAddonWithBodyWithResponse request with arbitrary body returning *UpdatePlanAddonResponse func (c *ClientWithResponses) UpdatePlanAddonWithBodyWithResponse(ctx context.Context, planId string, planAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlanAddonResponse, error) { rsp, err := c.UpdatePlanAddonWithBody(ctx, planId, planAddonId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdatePlanAddonResponse(rsp) } func (c *ClientWithResponses) UpdatePlanAddonWithResponse(ctx context.Context, planId string, planAddonId string, body UpdatePlanAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePlanAddonResponse, error) { rsp, err := c.UpdatePlanAddon(ctx, planId, planAddonId, body, reqEditors...) if err != nil { return nil, err } return ParseUpdatePlanAddonResponse(rsp) } // ArchivePlanWithResponse request returning *ArchivePlanResponse func (c *ClientWithResponses) ArchivePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*ArchivePlanResponse, error) { rsp, err := c.ArchivePlan(ctx, planId, reqEditors...) if err != nil { return nil, err } return ParseArchivePlanResponse(rsp) } // PublishPlanWithResponse request returning *PublishPlanResponse func (c *ClientWithResponses) PublishPlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*PublishPlanResponse, error) { rsp, err := c.PublishPlan(ctx, planId, reqEditors...) if err != nil { return nil, err } return ParsePublishPlanResponse(rsp) } // QueryPortalMeterWithResponse request returning *QueryPortalMeterResponse func (c *ClientWithResponses) QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*QueryPortalMeterResponse, error) { rsp, err := c.QueryPortalMeter(ctx, meterSlug, params, reqEditors...) if err != nil { return nil, err } return ParseQueryPortalMeterResponse(rsp) } // ListPortalTokensWithResponse request returning *ListPortalTokensResponse func (c *ClientWithResponses) ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*ListPortalTokensResponse, error) { rsp, err := c.ListPortalTokens(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListPortalTokensResponse(rsp) } // CreatePortalTokenWithBodyWithResponse request with arbitrary body returning *CreatePortalTokenResponse func (c *ClientWithResponses) CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error) { rsp, err := c.CreatePortalTokenWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreatePortalTokenResponse(rsp) } func (c *ClientWithResponses) CreatePortalTokenWithResponse(ctx context.Context, body CreatePortalTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error) { rsp, err := c.CreatePortalToken(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreatePortalTokenResponse(rsp) } // InvalidatePortalTokensWithBodyWithResponse request with arbitrary body returning *InvalidatePortalTokensResponse func (c *ClientWithResponses) InvalidatePortalTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error) { rsp, err := c.InvalidatePortalTokensWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseInvalidatePortalTokensResponse(rsp) } func (c *ClientWithResponses) InvalidatePortalTokensWithResponse(ctx context.Context, body InvalidatePortalTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*InvalidatePortalTokensResponse, error) { rsp, err := c.InvalidatePortalTokens(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseInvalidatePortalTokensResponse(rsp) } // CreateStripeCheckoutSessionWithBodyWithResponse request with arbitrary body returning *CreateStripeCheckoutSessionResponse func (c *ClientWithResponses) CreateStripeCheckoutSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStripeCheckoutSessionResponse, error) { rsp, err := c.CreateStripeCheckoutSessionWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateStripeCheckoutSessionResponse(rsp) } func (c *ClientWithResponses) CreateStripeCheckoutSessionWithResponse(ctx context.Context, body CreateStripeCheckoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStripeCheckoutSessionResponse, error) { rsp, err := c.CreateStripeCheckoutSession(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateStripeCheckoutSessionResponse(rsp) } // ListSubjectsWithResponse request returning *ListSubjectsResponse func (c *ClientWithResponses) ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error) { rsp, err := c.ListSubjects(ctx, reqEditors...) if err != nil { return nil, err } return ParseListSubjectsResponse(rsp) } // UpsertSubjectWithBodyWithResponse request with arbitrary body returning *UpsertSubjectResponse func (c *ClientWithResponses) UpsertSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error) { rsp, err := c.UpsertSubjectWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpsertSubjectResponse(rsp) } func (c *ClientWithResponses) UpsertSubjectWithResponse(ctx context.Context, body UpsertSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertSubjectResponse, error) { rsp, err := c.UpsertSubject(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseUpsertSubjectResponse(rsp) } // DeleteSubjectWithResponse request returning *DeleteSubjectResponse func (c *ClientWithResponses) DeleteSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*DeleteSubjectResponse, error) { rsp, err := c.DeleteSubject(ctx, subjectIdOrKey, reqEditors...) if err != nil { return nil, err } return ParseDeleteSubjectResponse(rsp) } // GetSubjectWithResponse request returning *GetSubjectResponse func (c *ClientWithResponses) GetSubjectWithResponse(ctx context.Context, subjectIdOrKey string, reqEditors ...RequestEditorFn) (*GetSubjectResponse, error) { rsp, err := c.GetSubject(ctx, subjectIdOrKey, reqEditors...) if err != nil { return nil, err } return ParseGetSubjectResponse(rsp) } // ListSubjectEntitlementsWithResponse request returning *ListSubjectEntitlementsResponse func (c *ClientWithResponses) ListSubjectEntitlementsWithResponse(ctx context.Context, subjectIdOrKey string, params *ListSubjectEntitlementsParams, reqEditors ...RequestEditorFn) (*ListSubjectEntitlementsResponse, error) { rsp, err := c.ListSubjectEntitlements(ctx, subjectIdOrKey, params, reqEditors...) if err != nil { return nil, err } return ParseListSubjectEntitlementsResponse(rsp) } // CreateEntitlementWithBodyWithResponse request with arbitrary body returning *CreateEntitlementResponse func (c *ClientWithResponses) CreateEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error) { rsp, err := c.CreateEntitlementWithBody(ctx, subjectIdOrKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateEntitlementResponse(rsp) } func (c *ClientWithResponses) CreateEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, body CreateEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEntitlementResponse, error) { rsp, err := c.CreateEntitlement(ctx, subjectIdOrKey, body, reqEditors...) if err != nil { return nil, err } return ParseCreateEntitlementResponse(rsp) } // ListEntitlementGrantsWithResponse request returning *ListEntitlementGrantsResponse func (c *ClientWithResponses) ListEntitlementGrantsWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *ListEntitlementGrantsParams, reqEditors ...RequestEditorFn) (*ListEntitlementGrantsResponse, error) { rsp, err := c.ListEntitlementGrants(ctx, subjectIdOrKey, entitlementIdOrFeatureKey, params, reqEditors...) if err != nil { return nil, err } return ParseListEntitlementGrantsResponse(rsp) } // CreateGrantWithBodyWithResponse request with arbitrary body returning *CreateGrantResponse func (c *ClientWithResponses) CreateGrantWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error) { rsp, err := c.CreateGrantWithBody(ctx, subjectIdOrKey, entitlementIdOrFeatureKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateGrantResponse(rsp) } func (c *ClientWithResponses) CreateGrantWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body CreateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGrantResponse, error) { rsp, err := c.CreateGrant(ctx, subjectIdOrKey, entitlementIdOrFeatureKey, body, reqEditors...) if err != nil { return nil, err } return ParseCreateGrantResponse(rsp) } // OverrideEntitlementWithBodyWithResponse request with arbitrary body returning *OverrideEntitlementResponse func (c *ClientWithResponses) OverrideEntitlementWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideEntitlementResponse, error) { rsp, err := c.OverrideEntitlementWithBody(ctx, subjectIdOrKey, entitlementIdOrFeatureKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseOverrideEntitlementResponse(rsp) } func (c *ClientWithResponses) OverrideEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, body OverrideEntitlementJSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideEntitlementResponse, error) { rsp, err := c.OverrideEntitlement(ctx, subjectIdOrKey, entitlementIdOrFeatureKey, body, reqEditors...) if err != nil { return nil, err } return ParseOverrideEntitlementResponse(rsp) } // GetEntitlementValueWithResponse request returning *GetEntitlementValueResponse func (c *ClientWithResponses) GetEntitlementValueWithResponse(ctx context.Context, subjectIdOrKey string, entitlementIdOrFeatureKey string, params *GetEntitlementValueParams, reqEditors ...RequestEditorFn) (*GetEntitlementValueResponse, error) { rsp, err := c.GetEntitlementValue(ctx, subjectIdOrKey, entitlementIdOrFeatureKey, params, reqEditors...) if err != nil { return nil, err } return ParseGetEntitlementValueResponse(rsp) } // DeleteEntitlementWithResponse request returning *DeleteEntitlementResponse func (c *ClientWithResponses) DeleteEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*DeleteEntitlementResponse, error) { rsp, err := c.DeleteEntitlement(ctx, subjectIdOrKey, entitlementId, reqEditors...) if err != nil { return nil, err } return ParseDeleteEntitlementResponse(rsp) } // GetEntitlementWithResponse request returning *GetEntitlementResponse func (c *ClientWithResponses) GetEntitlementWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementResponse, error) { rsp, err := c.GetEntitlement(ctx, subjectIdOrKey, entitlementId, reqEditors...) if err != nil { return nil, err } return ParseGetEntitlementResponse(rsp) } // GetEntitlementHistoryWithResponse request returning *GetEntitlementHistoryResponse func (c *ClientWithResponses) GetEntitlementHistoryWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, params *GetEntitlementHistoryParams, reqEditors ...RequestEditorFn) (*GetEntitlementHistoryResponse, error) { rsp, err := c.GetEntitlementHistory(ctx, subjectIdOrKey, entitlementId, params, reqEditors...) if err != nil { return nil, err } return ParseGetEntitlementHistoryResponse(rsp) } // ResetEntitlementUsageWithBodyWithResponse request with arbitrary body returning *ResetEntitlementUsageResponse func (c *ClientWithResponses) ResetEntitlementUsageWithBodyWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error) { rsp, err := c.ResetEntitlementUsageWithBody(ctx, subjectIdOrKey, entitlementId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseResetEntitlementUsageResponse(rsp) } func (c *ClientWithResponses) ResetEntitlementUsageWithResponse(ctx context.Context, subjectIdOrKey string, entitlementId string, body ResetEntitlementUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetEntitlementUsageResponse, error) { rsp, err := c.ResetEntitlementUsage(ctx, subjectIdOrKey, entitlementId, body, reqEditors...) if err != nil { return nil, err } return ParseResetEntitlementUsageResponse(rsp) } // CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { rsp, err := c.CreateSubscriptionWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateSubscriptionResponse(rsp) } func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { rsp, err := c.CreateSubscription(ctx, body, reqEditors...) if err != nil { return nil, err } return ParseCreateSubscriptionResponse(rsp) } // DeleteSubscriptionWithResponse request returning *DeleteSubscriptionResponse func (c *ClientWithResponses) DeleteSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error) { rsp, err := c.DeleteSubscription(ctx, subscriptionId, reqEditors...) if err != nil { return nil, err } return ParseDeleteSubscriptionResponse(rsp) } // GetSubscriptionWithResponse request returning *GetSubscriptionResponse func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, subscriptionId string, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) { rsp, err := c.GetSubscription(ctx, subscriptionId, params, reqEditors...) if err != nil { return nil, err } return ParseGetSubscriptionResponse(rsp) } // EditSubscriptionWithBodyWithResponse request with arbitrary body returning *EditSubscriptionResponse func (c *ClientWithResponses) EditSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSubscriptionResponse, error) { rsp, err := c.EditSubscriptionWithBody(ctx, subscriptionId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseEditSubscriptionResponse(rsp) } func (c *ClientWithResponses) EditSubscriptionWithResponse(ctx context.Context, subscriptionId string, body EditSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSubscriptionResponse, error) { rsp, err := c.EditSubscription(ctx, subscriptionId, body, reqEditors...) if err != nil { return nil, err } return ParseEditSubscriptionResponse(rsp) } // ListSubscriptionAddonsWithResponse request returning *ListSubscriptionAddonsResponse func (c *ClientWithResponses) ListSubscriptionAddonsWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*ListSubscriptionAddonsResponse, error) { rsp, err := c.ListSubscriptionAddons(ctx, subscriptionId, reqEditors...) if err != nil { return nil, err } return ParseListSubscriptionAddonsResponse(rsp) } // CreateSubscriptionAddonWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionAddonResponse func (c *ClientWithResponses) CreateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionAddonResponse, error) { rsp, err := c.CreateSubscriptionAddonWithBody(ctx, subscriptionId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateSubscriptionAddonResponse(rsp) } func (c *ClientWithResponses) CreateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, body CreateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionAddonResponse, error) { rsp, err := c.CreateSubscriptionAddon(ctx, subscriptionId, body, reqEditors...) if err != nil { return nil, err } return ParseCreateSubscriptionAddonResponse(rsp) } // GetSubscriptionAddonWithResponse request returning *GetSubscriptionAddonResponse func (c *ClientWithResponses) GetSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, reqEditors ...RequestEditorFn) (*GetSubscriptionAddonResponse, error) { rsp, err := c.GetSubscriptionAddon(ctx, subscriptionId, subscriptionAddonId, reqEditors...) if err != nil { return nil, err } return ParseGetSubscriptionAddonResponse(rsp) } // UpdateSubscriptionAddonWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionAddonResponse func (c *ClientWithResponses) UpdateSubscriptionAddonWithBodyWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionAddonResponse, error) { rsp, err := c.UpdateSubscriptionAddonWithBody(ctx, subscriptionId, subscriptionAddonId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateSubscriptionAddonResponse(rsp) } func (c *ClientWithResponses) UpdateSubscriptionAddonWithResponse(ctx context.Context, subscriptionId string, subscriptionAddonId string, body UpdateSubscriptionAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionAddonResponse, error) { rsp, err := c.UpdateSubscriptionAddon(ctx, subscriptionId, subscriptionAddonId, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateSubscriptionAddonResponse(rsp) } // CancelSubscriptionWithBodyWithResponse request with arbitrary body returning *CancelSubscriptionResponse func (c *ClientWithResponses) CancelSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) { rsp, err := c.CancelSubscriptionWithBody(ctx, subscriptionId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCancelSubscriptionResponse(rsp) } func (c *ClientWithResponses) CancelSubscriptionWithResponse(ctx context.Context, subscriptionId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) { rsp, err := c.CancelSubscription(ctx, subscriptionId, body, reqEditors...) if err != nil { return nil, err } return ParseCancelSubscriptionResponse(rsp) } // ChangeSubscriptionWithBodyWithResponse request with arbitrary body returning *ChangeSubscriptionResponse func (c *ClientWithResponses) ChangeSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeSubscriptionResponse, error) { rsp, err := c.ChangeSubscriptionWithBody(ctx, subscriptionId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseChangeSubscriptionResponse(rsp) } func (c *ClientWithResponses) ChangeSubscriptionWithResponse(ctx context.Context, subscriptionId string, body ChangeSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeSubscriptionResponse, error) { rsp, err := c.ChangeSubscription(ctx, subscriptionId, body, reqEditors...) if err != nil { return nil, err } return ParseChangeSubscriptionResponse(rsp) } // MigrateSubscriptionWithBodyWithResponse request with arbitrary body returning *MigrateSubscriptionResponse func (c *ClientWithResponses) MigrateSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MigrateSubscriptionResponse, error) { rsp, err := c.MigrateSubscriptionWithBody(ctx, subscriptionId, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseMigrateSubscriptionResponse(rsp) } func (c *ClientWithResponses) MigrateSubscriptionWithResponse(ctx context.Context, subscriptionId string, body MigrateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*MigrateSubscriptionResponse, error) { rsp, err := c.MigrateSubscription(ctx, subscriptionId, body, reqEditors...) if err != nil { return nil, err } return ParseMigrateSubscriptionResponse(rsp) } // RestoreSubscriptionWithResponse request returning *RestoreSubscriptionResponse func (c *ClientWithResponses) RestoreSubscriptionWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*RestoreSubscriptionResponse, error) { rsp, err := c.RestoreSubscription(ctx, subscriptionId, reqEditors...) if err != nil { return nil, err } return ParseRestoreSubscriptionResponse(rsp) } // UnscheduleCancelationWithResponse request returning *UnscheduleCancelationResponse func (c *ClientWithResponses) UnscheduleCancelationWithResponse(ctx context.Context, subscriptionId string, reqEditors ...RequestEditorFn) (*UnscheduleCancelationResponse, error) { rsp, err := c.UnscheduleCancelation(ctx, subscriptionId, reqEditors...) if err != nil { return nil, err } return ParseUnscheduleCancelationResponse(rsp) } // ListCustomerEntitlementsV2WithResponse request returning *ListCustomerEntitlementsV2Response func (c *ClientWithResponses) ListCustomerEntitlementsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, params *ListCustomerEntitlementsV2Params, reqEditors ...RequestEditorFn) (*ListCustomerEntitlementsV2Response, error) { rsp, err := c.ListCustomerEntitlementsV2(ctx, customerIdOrKey, params, reqEditors...) if err != nil { return nil, err } return ParseListCustomerEntitlementsV2Response(rsp) } // CreateCustomerEntitlementV2WithBodyWithResponse request with arbitrary body returning *CreateCustomerEntitlementV2Response func (c *ClientWithResponses) CreateCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementV2Response, error) { rsp, err := c.CreateCustomerEntitlementV2WithBody(ctx, customerIdOrKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateCustomerEntitlementV2Response(rsp) } func (c *ClientWithResponses) CreateCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, body CreateCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementV2Response, error) { rsp, err := c.CreateCustomerEntitlementV2(ctx, customerIdOrKey, body, reqEditors...) if err != nil { return nil, err } return ParseCreateCustomerEntitlementV2Response(rsp) } // DeleteCustomerEntitlementV2WithResponse request returning *DeleteCustomerEntitlementV2Response func (c *ClientWithResponses) DeleteCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*DeleteCustomerEntitlementV2Response, error) { rsp, err := c.DeleteCustomerEntitlementV2(ctx, customerIdOrKey, entitlementIdOrFeatureKey, reqEditors...) if err != nil { return nil, err } return ParseDeleteCustomerEntitlementV2Response(rsp) } // GetCustomerEntitlementV2WithResponse request returning *GetCustomerEntitlementV2Response func (c *ClientWithResponses) GetCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementV2Response, error) { rsp, err := c.GetCustomerEntitlementV2(ctx, customerIdOrKey, entitlementIdOrFeatureKey, reqEditors...) if err != nil { return nil, err } return ParseGetCustomerEntitlementV2Response(rsp) } // ListCustomerEntitlementGrantsV2WithResponse request returning *ListCustomerEntitlementGrantsV2Response func (c *ClientWithResponses) ListCustomerEntitlementGrantsV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *ListCustomerEntitlementGrantsV2Params, reqEditors ...RequestEditorFn) (*ListCustomerEntitlementGrantsV2Response, error) { rsp, err := c.ListCustomerEntitlementGrantsV2(ctx, customerIdOrKey, entitlementIdOrFeatureKey, params, reqEditors...) if err != nil { return nil, err } return ParseListCustomerEntitlementGrantsV2Response(rsp) } // CreateCustomerEntitlementGrantV2WithBodyWithResponse request with arbitrary body returning *CreateCustomerEntitlementGrantV2Response func (c *ClientWithResponses) CreateCustomerEntitlementGrantV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementGrantV2Response, error) { rsp, err := c.CreateCustomerEntitlementGrantV2WithBody(ctx, customerIdOrKey, entitlementIdOrFeatureKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateCustomerEntitlementGrantV2Response(rsp) } func (c *ClientWithResponses) CreateCustomerEntitlementGrantV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body CreateCustomerEntitlementGrantV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerEntitlementGrantV2Response, error) { rsp, err := c.CreateCustomerEntitlementGrantV2(ctx, customerIdOrKey, entitlementIdOrFeatureKey, body, reqEditors...) if err != nil { return nil, err } return ParseCreateCustomerEntitlementGrantV2Response(rsp) } // GetCustomerEntitlementHistoryV2WithResponse request returning *GetCustomerEntitlementHistoryV2Response func (c *ClientWithResponses) GetCustomerEntitlementHistoryV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementHistoryV2Params, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementHistoryV2Response, error) { rsp, err := c.GetCustomerEntitlementHistoryV2(ctx, customerIdOrKey, entitlementIdOrFeatureKey, params, reqEditors...) if err != nil { return nil, err } return ParseGetCustomerEntitlementHistoryV2Response(rsp) } // OverrideCustomerEntitlementV2WithBodyWithResponse request with arbitrary body returning *OverrideCustomerEntitlementV2Response func (c *ClientWithResponses) OverrideCustomerEntitlementV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideCustomerEntitlementV2Response, error) { rsp, err := c.OverrideCustomerEntitlementV2WithBody(ctx, customerIdOrKey, entitlementIdOrFeatureKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseOverrideCustomerEntitlementV2Response(rsp) } func (c *ClientWithResponses) OverrideCustomerEntitlementV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey ULIDOrExternalKey, body OverrideCustomerEntitlementV2JSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideCustomerEntitlementV2Response, error) { rsp, err := c.OverrideCustomerEntitlementV2(ctx, customerIdOrKey, entitlementIdOrFeatureKey, body, reqEditors...) if err != nil { return nil, err } return ParseOverrideCustomerEntitlementV2Response(rsp) } // ResetCustomerEntitlementUsageV2WithBodyWithResponse request with arbitrary body returning *ResetCustomerEntitlementUsageV2Response func (c *ClientWithResponses) ResetCustomerEntitlementUsageV2WithBodyWithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetCustomerEntitlementUsageV2Response, error) { rsp, err := c.ResetCustomerEntitlementUsageV2WithBody(ctx, customerIdOrKey, entitlementIdOrFeatureKey, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseResetCustomerEntitlementUsageV2Response(rsp) } func (c *ClientWithResponses) ResetCustomerEntitlementUsageV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, body ResetCustomerEntitlementUsageV2JSONRequestBody, reqEditors ...RequestEditorFn) (*ResetCustomerEntitlementUsageV2Response, error) { rsp, err := c.ResetCustomerEntitlementUsageV2(ctx, customerIdOrKey, entitlementIdOrFeatureKey, body, reqEditors...) if err != nil { return nil, err } return ParseResetCustomerEntitlementUsageV2Response(rsp) } // GetCustomerEntitlementValueV2WithResponse request returning *GetCustomerEntitlementValueV2Response func (c *ClientWithResponses) GetCustomerEntitlementValueV2WithResponse(ctx context.Context, customerIdOrKey ULIDOrExternalKey, entitlementIdOrFeatureKey string, params *GetCustomerEntitlementValueV2Params, reqEditors ...RequestEditorFn) (*GetCustomerEntitlementValueV2Response, error) { rsp, err := c.GetCustomerEntitlementValueV2(ctx, customerIdOrKey, entitlementIdOrFeatureKey, params, reqEditors...) if err != nil { return nil, err } return ParseGetCustomerEntitlementValueV2Response(rsp) } // ListEntitlementsV2WithResponse request returning *ListEntitlementsV2Response func (c *ClientWithResponses) ListEntitlementsV2WithResponse(ctx context.Context, params *ListEntitlementsV2Params, reqEditors ...RequestEditorFn) (*ListEntitlementsV2Response, error) { rsp, err := c.ListEntitlementsV2(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListEntitlementsV2Response(rsp) } // GetEntitlementByIdV2WithResponse request returning *GetEntitlementByIdV2Response func (c *ClientWithResponses) GetEntitlementByIdV2WithResponse(ctx context.Context, entitlementId string, reqEditors ...RequestEditorFn) (*GetEntitlementByIdV2Response, error) { rsp, err := c.GetEntitlementByIdV2(ctx, entitlementId, reqEditors...) if err != nil { return nil, err } return ParseGetEntitlementByIdV2Response(rsp) } // ListEventsV2WithResponse request returning *ListEventsV2Response func (c *ClientWithResponses) ListEventsV2WithResponse(ctx context.Context, params *ListEventsV2Params, reqEditors ...RequestEditorFn) (*ListEventsV2Response, error) { rsp, err := c.ListEventsV2(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListEventsV2Response(rsp) } // ListGrantsV2WithResponse request returning *ListGrantsV2Response func (c *ClientWithResponses) ListGrantsV2WithResponse(ctx context.Context, params *ListGrantsV2Params, reqEditors ...RequestEditorFn) (*ListGrantsV2Response, error) { rsp, err := c.ListGrantsV2(ctx, params, reqEditors...) if err != nil { return nil, err } return ParseListGrantsV2Response(rsp) } // ParseListAddonsResponse parses an HTTP response from a ListAddonsWithResponse call func ParseListAddonsResponse(rsp *http.Response) (*ListAddonsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListAddonsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest AddonPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateAddonResponse parses an HTTP response from a CreateAddonWithResponse call func ParseCreateAddonResponse(rsp *http.Response) (*CreateAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Addon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteAddonResponse parses an HTTP response from a DeleteAddonWithResponse call func ParseDeleteAddonResponse(rsp *http.Response) (*DeleteAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetAddonResponse parses an HTTP response from a GetAddonWithResponse call func ParseGetAddonResponse(rsp *http.Response) (*GetAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Addon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateAddonResponse parses an HTTP response from a UpdateAddonWithResponse call func ParseUpdateAddonResponse(rsp *http.Response) (*UpdateAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Addon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseArchiveAddonResponse parses an HTTP response from a ArchiveAddonWithResponse call func ParseArchiveAddonResponse(rsp *http.Response) (*ArchiveAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ArchiveAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Addon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParsePublishAddonResponse parses an HTTP response from a PublishAddonWithResponse call func ParsePublishAddonResponse(rsp *http.Response) (*PublishAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &PublishAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Addon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListAppsResponse parses an HTTP response from a ListAppsWithResponse call func ParseListAppsResponse(rsp *http.Response) (*ListAppsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListAppsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest AppPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseAppCustomInvoicingDraftSynchronizedResponse parses an HTTP response from a AppCustomInvoicingDraftSynchronizedWithResponse call func ParseAppCustomInvoicingDraftSynchronizedResponse(rsp *http.Response) (*AppCustomInvoicingDraftSynchronizedResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &AppCustomInvoicingDraftSynchronizedResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseAppCustomInvoicingIssuingSynchronizedResponse parses an HTTP response from a AppCustomInvoicingIssuingSynchronizedWithResponse call func ParseAppCustomInvoicingIssuingSynchronizedResponse(rsp *http.Response) (*AppCustomInvoicingIssuingSynchronizedResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &AppCustomInvoicingIssuingSynchronizedResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseAppCustomInvoicingUpdatePaymentStatusResponse parses an HTTP response from a AppCustomInvoicingUpdatePaymentStatusWithResponse call func ParseAppCustomInvoicingUpdatePaymentStatusResponse(rsp *http.Response) (*AppCustomInvoicingUpdatePaymentStatusResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &AppCustomInvoicingUpdatePaymentStatusResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUninstallAppResponse parses an HTTP response from a UninstallAppWithResponse call func ParseUninstallAppResponse(rsp *http.Response) (*UninstallAppResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UninstallAppResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetAppResponse parses an HTTP response from a GetAppWithResponse call func ParseGetAppResponse(rsp *http.Response) (*GetAppResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetAppResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest App if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateAppResponse parses an HTTP response from a UpdateAppWithResponse call func ParseUpdateAppResponse(rsp *http.Response) (*UpdateAppResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateAppResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest App if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateStripeAPIKeyResponse parses an HTTP response from a UpdateStripeAPIKeyWithResponse call func ParseUpdateStripeAPIKeyResponse(rsp *http.Response) (*UpdateStripeAPIKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateStripeAPIKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseAppStripeWebhookResponse parses an HTTP response from a AppStripeWebhookWithResponse call func ParseAppStripeWebhookResponse(rsp *http.Response) (*AppStripeWebhookResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &AppStripeWebhookResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest StripeWebhookResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListBillingProfileCustomerOverridesResponse parses an HTTP response from a ListBillingProfileCustomerOverridesWithResponse call func ParseListBillingProfileCustomerOverridesResponse(rsp *http.Response) (*ListBillingProfileCustomerOverridesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListBillingProfileCustomerOverridesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest BillingProfileCustomerOverrideWithDetailsPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteBillingProfileCustomerOverrideResponse parses an HTTP response from a DeleteBillingProfileCustomerOverrideWithResponse call func ParseDeleteBillingProfileCustomerOverrideResponse(rsp *http.Response) (*DeleteBillingProfileCustomerOverrideResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteBillingProfileCustomerOverrideResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetBillingProfileCustomerOverrideResponse parses an HTTP response from a GetBillingProfileCustomerOverrideWithResponse call func ParseGetBillingProfileCustomerOverrideResponse(rsp *http.Response) (*GetBillingProfileCustomerOverrideResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetBillingProfileCustomerOverrideResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest BillingProfileCustomerOverrideWithDetails if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpsertBillingProfileCustomerOverrideResponse parses an HTTP response from a UpsertBillingProfileCustomerOverrideWithResponse call func ParseUpsertBillingProfileCustomerOverrideResponse(rsp *http.Response) (*UpsertBillingProfileCustomerOverrideResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpsertBillingProfileCustomerOverrideResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest BillingProfileCustomerOverrideWithDetails if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreatePendingInvoiceLineResponse parses an HTTP response from a CreatePendingInvoiceLineWithResponse call func ParseCreatePendingInvoiceLineResponse(rsp *http.Response) (*CreatePendingInvoiceLineResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreatePendingInvoiceLineResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest InvoicePendingLineCreateResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseSimulateInvoiceResponse parses an HTTP response from a SimulateInvoiceWithResponse call func ParseSimulateInvoiceResponse(rsp *http.Response) (*SimulateInvoiceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &SimulateInvoiceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListInvoicesResponse parses an HTTP response from a ListInvoicesWithResponse call func ParseListInvoicesResponse(rsp *http.Response) (*ListInvoicesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListInvoicesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest InvoicePaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseInvoicePendingLinesActionResponse parses an HTTP response from a InvoicePendingLinesActionWithResponse call func ParseInvoicePendingLinesActionResponse(rsp *http.Response) (*InvoicePendingLinesActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &InvoicePendingLinesActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest []Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteInvoiceResponse parses an HTTP response from a DeleteInvoiceWithResponse call func ParseDeleteInvoiceResponse(rsp *http.Response) (*DeleteInvoiceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteInvoiceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetInvoiceResponse parses an HTTP response from a GetInvoiceWithResponse call func ParseGetInvoiceResponse(rsp *http.Response) (*GetInvoiceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetInvoiceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateInvoiceResponse parses an HTTP response from a UpdateInvoiceWithResponse call func ParseUpdateInvoiceResponse(rsp *http.Response) (*UpdateInvoiceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateInvoiceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseAdvanceInvoiceActionResponse parses an HTTP response from a AdvanceInvoiceActionWithResponse call func ParseAdvanceInvoiceActionResponse(rsp *http.Response) (*AdvanceInvoiceActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &AdvanceInvoiceActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseApproveInvoiceActionResponse parses an HTTP response from a ApproveInvoiceActionWithResponse call func ParseApproveInvoiceActionResponse(rsp *http.Response) (*ApproveInvoiceActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ApproveInvoiceActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseRetryInvoiceActionResponse parses an HTTP response from a RetryInvoiceActionWithResponse call func ParseRetryInvoiceActionResponse(rsp *http.Response) (*RetryInvoiceActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &RetryInvoiceActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseSnapshotQuantitiesInvoiceActionResponse parses an HTTP response from a SnapshotQuantitiesInvoiceActionWithResponse call func ParseSnapshotQuantitiesInvoiceActionResponse(rsp *http.Response) (*SnapshotQuantitiesInvoiceActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &SnapshotQuantitiesInvoiceActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseRecalculateInvoiceTaxActionResponse parses an HTTP response from a RecalculateInvoiceTaxActionWithResponse call func ParseRecalculateInvoiceTaxActionResponse(rsp *http.Response) (*RecalculateInvoiceTaxActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &RecalculateInvoiceTaxActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseVoidInvoiceActionResponse parses an HTTP response from a VoidInvoiceActionWithResponse call func ParseVoidInvoiceActionResponse(rsp *http.Response) (*VoidInvoiceActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &VoidInvoiceActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Invoice if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListBillingProfilesResponse parses an HTTP response from a ListBillingProfilesWithResponse call func ParseListBillingProfilesResponse(rsp *http.Response) (*ListBillingProfilesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListBillingProfilesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest BillingProfilePaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateBillingProfileResponse parses an HTTP response from a CreateBillingProfileWithResponse call func ParseCreateBillingProfileResponse(rsp *http.Response) (*CreateBillingProfileResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateBillingProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest BillingProfile if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteBillingProfileResponse parses an HTTP response from a DeleteBillingProfileWithResponse call func ParseDeleteBillingProfileResponse(rsp *http.Response) (*DeleteBillingProfileResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteBillingProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetBillingProfileResponse parses an HTTP response from a GetBillingProfileWithResponse call func ParseGetBillingProfileResponse(rsp *http.Response) (*GetBillingProfileResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetBillingProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest BillingProfile if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateBillingProfileResponse parses an HTTP response from a UpdateBillingProfileWithResponse call func ParseUpdateBillingProfileResponse(rsp *http.Response) (*UpdateBillingProfileResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateBillingProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest BillingProfile if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListCustomersResponse parses an HTTP response from a ListCustomersWithResponse call func ParseListCustomersResponse(rsp *http.Response) (*ListCustomersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListCustomersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest CustomerPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateCustomerResponse parses an HTTP response from a CreateCustomerWithResponse call func ParseCreateCustomerResponse(rsp *http.Response) (*CreateCustomerResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateCustomerResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Customer if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteCustomerResponse parses an HTTP response from a DeleteCustomerWithResponse call func ParseDeleteCustomerResponse(rsp *http.Response) (*DeleteCustomerResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteCustomerResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetCustomerResponse parses an HTTP response from a GetCustomerWithResponse call func ParseGetCustomerResponse(rsp *http.Response) (*GetCustomerResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetCustomerResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Customer if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateCustomerResponse parses an HTTP response from a UpdateCustomerWithResponse call func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateCustomerResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Customer if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetCustomerAccessResponse parses an HTTP response from a GetCustomerAccessWithResponse call func ParseGetCustomerAccessResponse(rsp *http.Response) (*GetCustomerAccessResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetCustomerAccessResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest CustomerAccess if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListCustomerAppDataResponse parses an HTTP response from a ListCustomerAppDataWithResponse call func ParseListCustomerAppDataResponse(rsp *http.Response) (*ListCustomerAppDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListCustomerAppDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest CustomerAppDataPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpsertCustomerAppDataResponse parses an HTTP response from a UpsertCustomerAppDataWithResponse call func ParseUpsertCustomerAppDataResponse(rsp *http.Response) (*UpsertCustomerAppDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpsertCustomerAppDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []CustomerAppData if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteCustomerAppDataResponse parses an HTTP response from a DeleteCustomerAppDataWithResponse call func ParseDeleteCustomerAppDataResponse(rsp *http.Response) (*DeleteCustomerAppDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteCustomerAppDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetCustomerEntitlementValueResponse parses an HTTP response from a GetCustomerEntitlementValueWithResponse call func ParseGetCustomerEntitlementValueResponse(rsp *http.Response) (*GetCustomerEntitlementValueResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetCustomerEntitlementValueResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest EntitlementValue if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetCustomerStripeAppDataResponse parses an HTTP response from a GetCustomerStripeAppDataWithResponse call func ParseGetCustomerStripeAppDataResponse(rsp *http.Response) (*GetCustomerStripeAppDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetCustomerStripeAppDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest StripeCustomerAppData if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpsertCustomerStripeAppDataResponse parses an HTTP response from a UpsertCustomerStripeAppDataWithResponse call func ParseUpsertCustomerStripeAppDataResponse(rsp *http.Response) (*UpsertCustomerStripeAppDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpsertCustomerStripeAppDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest StripeCustomerAppData if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateCustomerStripePortalSessionResponse parses an HTTP response from a CreateCustomerStripePortalSessionWithResponse call func ParseCreateCustomerStripePortalSessionResponse(rsp *http.Response) (*CreateCustomerStripePortalSessionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateCustomerStripePortalSessionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest StripeCustomerPortalSession if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListCustomerSubscriptionsResponse parses an HTTP response from a ListCustomerSubscriptionsWithResponse call func ParseListCustomerSubscriptionsResponse(rsp *http.Response) (*ListCustomerSubscriptionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListCustomerSubscriptionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest SubscriptionPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetDebugMetricsResponse parses an HTTP response from a GetDebugMetricsWithResponse call func ParseGetDebugMetricsResponse(rsp *http.Response) (*GetDebugMetricsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetDebugMetricsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListEntitlementsResponse parses an HTTP response from a ListEntitlementsWithResponse call func ParseListEntitlementsResponse(rsp *http.Response) (*ListEntitlementsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListEntitlementsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest ListEntitlementsResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetEntitlementByIdResponse parses an HTTP response from a GetEntitlementByIdWithResponse call func ParseGetEntitlementByIdResponse(rsp *http.Response) (*GetEntitlementByIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetEntitlementByIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Entitlement if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListEventsResponse parses an HTTP response from a ListEventsWithResponse call func ParseListEventsResponse(rsp *http.Response) (*ListEventsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListEventsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []IngestedEvent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseIngestEventsResponse parses an HTTP response from a IngestEventsWithResponse call func ParseIngestEventsResponse(rsp *http.Response) (*IngestEventsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &IngestEventsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListFeaturesResponse parses an HTTP response from a ListFeaturesWithResponse call func ParseListFeaturesResponse(rsp *http.Response) (*ListFeaturesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListFeaturesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest ListFeaturesResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateFeatureResponse parses an HTTP response from a CreateFeatureWithResponse call func ParseCreateFeatureResponse(rsp *http.Response) (*CreateFeatureResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateFeatureResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Feature if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteFeatureResponse parses an HTTP response from a DeleteFeatureWithResponse call func ParseDeleteFeatureResponse(rsp *http.Response) (*DeleteFeatureResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteFeatureResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetFeatureResponse parses an HTTP response from a GetFeatureWithResponse call func ParseGetFeatureResponse(rsp *http.Response) (*GetFeatureResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetFeatureResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Feature if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListGrantsResponse parses an HTTP response from a ListGrantsWithResponse call func ParseListGrantsResponse(rsp *http.Response) (*ListGrantsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListGrantsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { union json.RawMessage } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseVoidGrantResponse parses an HTTP response from a VoidGrantWithResponse call func ParseVoidGrantResponse(rsp *http.Response) (*VoidGrantResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &VoidGrantResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListCurrenciesResponse parses an HTTP response from a ListCurrenciesWithResponse call func ParseListCurrenciesResponse(rsp *http.Response) (*ListCurrenciesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListCurrenciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []Currency if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetProgressResponse parses an HTTP response from a GetProgressWithResponse call func ParseGetProgressResponse(rsp *http.Response) (*GetProgressResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetProgressResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Progress if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListMarketplaceListingsResponse parses an HTTP response from a ListMarketplaceListingsWithResponse call func ParseListMarketplaceListingsResponse(rsp *http.Response) (*ListMarketplaceListingsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListMarketplaceListingsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest MarketplaceListingPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetMarketplaceListingResponse parses an HTTP response from a GetMarketplaceListingWithResponse call func ParseGetMarketplaceListingResponse(rsp *http.Response) (*GetMarketplaceListingResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetMarketplaceListingResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest MarketplaceListing if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseMarketplaceAppInstallResponse parses an HTTP response from a MarketplaceAppInstallWithResponse call func ParseMarketplaceAppInstallResponse(rsp *http.Response) (*MarketplaceAppInstallResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &MarketplaceAppInstallResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest MarketplaceInstallResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseMarketplaceAppAPIKeyInstallResponse parses an HTTP response from a MarketplaceAppAPIKeyInstallWithResponse call func ParseMarketplaceAppAPIKeyInstallResponse(rsp *http.Response) (*MarketplaceAppAPIKeyInstallResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &MarketplaceAppAPIKeyInstallResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest MarketplaceInstallResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseMarketplaceOAuth2InstallGetURLResponse parses an HTTP response from a MarketplaceOAuth2InstallGetURLWithResponse call func ParseMarketplaceOAuth2InstallGetURLResponse(rsp *http.Response) (*MarketplaceOAuth2InstallGetURLResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &MarketplaceOAuth2InstallGetURLResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest ClientAppStartResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseMarketplaceOAuth2InstallAuthorizeResponse parses an HTTP response from a MarketplaceOAuth2InstallAuthorizeWithResponse call func ParseMarketplaceOAuth2InstallAuthorizeResponse(rsp *http.Response) (*MarketplaceOAuth2InstallAuthorizeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &MarketplaceOAuth2InstallAuthorizeResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListMetersResponse parses an HTTP response from a ListMetersWithResponse call func ParseListMetersResponse(rsp *http.Response) (*ListMetersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListMetersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []Meter if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateMeterResponse parses an HTTP response from a CreateMeterWithResponse call func ParseCreateMeterResponse(rsp *http.Response) (*CreateMeterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateMeterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Meter if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteMeterResponse parses an HTTP response from a DeleteMeterWithResponse call func ParseDeleteMeterResponse(rsp *http.Response) (*DeleteMeterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteMeterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetMeterResponse parses an HTTP response from a GetMeterWithResponse call func ParseGetMeterResponse(rsp *http.Response) (*GetMeterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetMeterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Meter if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateMeterResponse parses an HTTP response from a UpdateMeterWithResponse call func ParseUpdateMeterResponse(rsp *http.Response) (*UpdateMeterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateMeterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Meter if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListMeterGroupByValuesResponse parses an HTTP response from a ListMeterGroupByValuesWithResponse call func ParseListMeterGroupByValuesResponse(rsp *http.Response) (*ListMeterGroupByValuesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListMeterGroupByValuesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []string if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseQueryMeterResponse parses an HTTP response from a QueryMeterWithResponse call func ParseQueryMeterResponse(rsp *http.Response) (*QueryMeterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &QueryMeterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest MeterQueryResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest case rsp.StatusCode == 200: // Content-type (text/csv) unsupported } return response, nil } // ParseQueryMeterPostResponse parses an HTTP response from a QueryMeterPostWithResponse call func ParseQueryMeterPostResponse(rsp *http.Response) (*QueryMeterPostResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &QueryMeterPostResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest MeterQueryResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest case rsp.StatusCode == 200: // Content-type (text/csv) unsupported } return response, nil } // ParseListMeterSubjectsResponse parses an HTTP response from a ListMeterSubjectsWithResponse call func ParseListMeterSubjectsResponse(rsp *http.Response) (*ListMeterSubjectsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListMeterSubjectsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []string if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListNotificationChannelsResponse parses an HTTP response from a ListNotificationChannelsWithResponse call func ParseListNotificationChannelsResponse(rsp *http.Response) (*ListNotificationChannelsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListNotificationChannelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest NotificationChannelPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateNotificationChannelResponse parses an HTTP response from a CreateNotificationChannelWithResponse call func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotificationChannelResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateNotificationChannelResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest NotificationChannel if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteNotificationChannelResponse parses an HTTP response from a DeleteNotificationChannelWithResponse call func ParseDeleteNotificationChannelResponse(rsp *http.Response) (*DeleteNotificationChannelResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteNotificationChannelResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetNotificationChannelResponse parses an HTTP response from a GetNotificationChannelWithResponse call func ParseGetNotificationChannelResponse(rsp *http.Response) (*GetNotificationChannelResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetNotificationChannelResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest NotificationChannel if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateNotificationChannelResponse parses an HTTP response from a UpdateNotificationChannelWithResponse call func ParseUpdateNotificationChannelResponse(rsp *http.Response) (*UpdateNotificationChannelResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateNotificationChannelResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest NotificationChannel if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListNotificationEventsResponse parses an HTTP response from a ListNotificationEventsWithResponse call func ParseListNotificationEventsResponse(rsp *http.Response) (*ListNotificationEventsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListNotificationEventsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest NotificationEventPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetNotificationEventResponse parses an HTTP response from a GetNotificationEventWithResponse call func ParseGetNotificationEventResponse(rsp *http.Response) (*GetNotificationEventResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetNotificationEventResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest NotificationEvent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseResendNotificationEventResponse parses an HTTP response from a ResendNotificationEventWithResponse call func ParseResendNotificationEventResponse(rsp *http.Response) (*ResendNotificationEventResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ResendNotificationEventResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListNotificationRulesResponse parses an HTTP response from a ListNotificationRulesWithResponse call func ParseListNotificationRulesResponse(rsp *http.Response) (*ListNotificationRulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListNotificationRulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest NotificationRulePaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateNotificationRuleResponse parses an HTTP response from a CreateNotificationRuleWithResponse call func ParseCreateNotificationRuleResponse(rsp *http.Response) (*CreateNotificationRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateNotificationRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest NotificationRule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteNotificationRuleResponse parses an HTTP response from a DeleteNotificationRuleWithResponse call func ParseDeleteNotificationRuleResponse(rsp *http.Response) (*DeleteNotificationRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteNotificationRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetNotificationRuleResponse parses an HTTP response from a GetNotificationRuleWithResponse call func ParseGetNotificationRuleResponse(rsp *http.Response) (*GetNotificationRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetNotificationRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest NotificationRule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateNotificationRuleResponse parses an HTTP response from a UpdateNotificationRuleWithResponse call func ParseUpdateNotificationRuleResponse(rsp *http.Response) (*UpdateNotificationRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateNotificationRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest NotificationRule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseTestNotificationRuleResponse parses an HTTP response from a TestNotificationRuleWithResponse call func ParseTestNotificationRuleResponse(rsp *http.Response) (*TestNotificationRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &TestNotificationRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest NotificationEvent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListPlansResponse parses an HTTP response from a ListPlansWithResponse call func ParseListPlansResponse(rsp *http.Response) (*ListPlansResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListPlansResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest PlanPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreatePlanResponse parses an HTTP response from a CreatePlanWithResponse call func ParseCreatePlanResponse(rsp *http.Response) (*CreatePlanResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreatePlanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Plan if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseNextPlanResponse parses an HTTP response from a NextPlanWithResponse call func ParseNextPlanResponse(rsp *http.Response) (*NextPlanResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &NextPlanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Plan if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeletePlanResponse parses an HTTP response from a DeletePlanWithResponse call func ParseDeletePlanResponse(rsp *http.Response) (*DeletePlanResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeletePlanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetPlanResponse parses an HTTP response from a GetPlanWithResponse call func ParseGetPlanResponse(rsp *http.Response) (*GetPlanResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetPlanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Plan if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdatePlanResponse parses an HTTP response from a UpdatePlanWithResponse call func ParseUpdatePlanResponse(rsp *http.Response) (*UpdatePlanResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdatePlanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Plan if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListPlanAddonsResponse parses an HTTP response from a ListPlanAddonsWithResponse call func ParseListPlanAddonsResponse(rsp *http.Response) (*ListPlanAddonsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListPlanAddonsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest PlanAddonPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreatePlanAddonResponse parses an HTTP response from a CreatePlanAddonWithResponse call func ParseCreatePlanAddonResponse(rsp *http.Response) (*CreatePlanAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreatePlanAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest PlanAddon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeletePlanAddonResponse parses an HTTP response from a DeletePlanAddonWithResponse call func ParseDeletePlanAddonResponse(rsp *http.Response) (*DeletePlanAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeletePlanAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetPlanAddonResponse parses an HTTP response from a GetPlanAddonWithResponse call func ParseGetPlanAddonResponse(rsp *http.Response) (*GetPlanAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetPlanAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest PlanAddon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdatePlanAddonResponse parses an HTTP response from a UpdatePlanAddonWithResponse call func ParseUpdatePlanAddonResponse(rsp *http.Response) (*UpdatePlanAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdatePlanAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest PlanAddon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseArchivePlanResponse parses an HTTP response from a ArchivePlanWithResponse call func ParseArchivePlanResponse(rsp *http.Response) (*ArchivePlanResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ArchivePlanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Plan if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParsePublishPlanResponse parses an HTTP response from a PublishPlanWithResponse call func ParsePublishPlanResponse(rsp *http.Response) (*PublishPlanResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &PublishPlanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Plan if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseQueryPortalMeterResponse parses an HTTP response from a QueryPortalMeterWithResponse call func ParseQueryPortalMeterResponse(rsp *http.Response) (*QueryPortalMeterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &QueryPortalMeterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest MeterQueryResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest case rsp.StatusCode == 200: // Content-type (text/csv) unsupported } return response, nil } // ParseListPortalTokensResponse parses an HTTP response from a ListPortalTokensWithResponse call func ParseListPortalTokensResponse(rsp *http.Response) (*ListPortalTokensResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListPortalTokensResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []PortalToken if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreatePortalTokenResponse parses an HTTP response from a CreatePortalTokenWithResponse call func ParseCreatePortalTokenResponse(rsp *http.Response) (*CreatePortalTokenResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreatePortalTokenResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest PortalToken if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseInvalidatePortalTokensResponse parses an HTTP response from a InvalidatePortalTokensWithResponse call func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalTokensResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &InvalidatePortalTokensResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateStripeCheckoutSessionResponse parses an HTTP response from a CreateStripeCheckoutSessionWithResponse call func ParseCreateStripeCheckoutSessionResponse(rsp *http.Response) (*CreateStripeCheckoutSessionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateStripeCheckoutSessionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest CreateStripeCheckoutSessionResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListSubjectsResponse parses an HTTP response from a ListSubjectsWithResponse call func ParseListSubjectsResponse(rsp *http.Response) (*ListSubjectsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListSubjectsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []Subject if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpsertSubjectResponse parses an HTTP response from a UpsertSubjectWithResponse call func ParseUpsertSubjectResponse(rsp *http.Response) (*UpsertSubjectResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpsertSubjectResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []Subject if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteSubjectResponse parses an HTTP response from a DeleteSubjectWithResponse call func ParseDeleteSubjectResponse(rsp *http.Response) (*DeleteSubjectResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteSubjectResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetSubjectResponse parses an HTTP response from a GetSubjectWithResponse call func ParseGetSubjectResponse(rsp *http.Response) (*GetSubjectResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetSubjectResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Subject if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListSubjectEntitlementsResponse parses an HTTP response from a ListSubjectEntitlementsWithResponse call func ParseListSubjectEntitlementsResponse(rsp *http.Response) (*ListSubjectEntitlementsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListSubjectEntitlementsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []Entitlement if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateEntitlementResponse parses an HTTP response from a CreateEntitlementWithResponse call func ParseCreateEntitlementResponse(rsp *http.Response) (*CreateEntitlementResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateEntitlementResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Entitlement if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListEntitlementGrantsResponse parses an HTTP response from a ListEntitlementGrantsWithResponse call func ParseListEntitlementGrantsResponse(rsp *http.Response) (*ListEntitlementGrantsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListEntitlementGrantsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []EntitlementGrant if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateGrantResponse parses an HTTP response from a CreateGrantWithResponse call func ParseCreateGrantResponse(rsp *http.Response) (*CreateGrantResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateGrantResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest EntitlementGrant if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseOverrideEntitlementResponse parses an HTTP response from a OverrideEntitlementWithResponse call func ParseOverrideEntitlementResponse(rsp *http.Response) (*OverrideEntitlementResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &OverrideEntitlementResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Entitlement if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetEntitlementValueResponse parses an HTTP response from a GetEntitlementValueWithResponse call func ParseGetEntitlementValueResponse(rsp *http.Response) (*GetEntitlementValueResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetEntitlementValueResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest EntitlementValue if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteEntitlementResponse parses an HTTP response from a DeleteEntitlementWithResponse call func ParseDeleteEntitlementResponse(rsp *http.Response) (*DeleteEntitlementResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteEntitlementResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetEntitlementResponse parses an HTTP response from a GetEntitlementWithResponse call func ParseGetEntitlementResponse(rsp *http.Response) (*GetEntitlementResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetEntitlementResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Entitlement if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetEntitlementHistoryResponse parses an HTTP response from a GetEntitlementHistoryWithResponse call func ParseGetEntitlementHistoryResponse(rsp *http.Response) (*GetEntitlementHistoryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetEntitlementHistoryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest WindowedBalanceHistory if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseResetEntitlementUsageResponse parses an HTTP response from a ResetEntitlementUsageWithResponse call func ParseResetEntitlementUsageResponse(rsp *http.Response) (*ResetEntitlementUsageResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ResetEntitlementUsageResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateSubscriptionResponse parses an HTTP response from a CreateSubscriptionWithResponse call func ParseCreateSubscriptionResponse(rsp *http.Response) (*CreateSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest Subscription if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest SubscriptionBadRequestErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest SubscriptionConflictErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteSubscriptionResponse parses an HTTP response from a DeleteSubscriptionWithResponse call func ParseDeleteSubscriptionResponse(rsp *http.Response) (*DeleteSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest SubscriptionBadRequestErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest SubscriptionConflictErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetSubscriptionResponse parses an HTTP response from a GetSubscriptionWithResponse call func ParseGetSubscriptionResponse(rsp *http.Response) (*GetSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest SubscriptionExpanded if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseEditSubscriptionResponse parses an HTTP response from a EditSubscriptionWithResponse call func ParseEditSubscriptionResponse(rsp *http.Response) (*EditSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &EditSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Subscription if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest SubscriptionBadRequestErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest SubscriptionConflictErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListSubscriptionAddonsResponse parses an HTTP response from a ListSubscriptionAddonsWithResponse call func ParseListSubscriptionAddonsResponse(rsp *http.Response) (*ListSubscriptionAddonsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListSubscriptionAddonsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest []SubscriptionAddon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateSubscriptionAddonResponse parses an HTTP response from a CreateSubscriptionAddonWithResponse call func ParseCreateSubscriptionAddonResponse(rsp *http.Response) (*CreateSubscriptionAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateSubscriptionAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest SubscriptionAddon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetSubscriptionAddonResponse parses an HTTP response from a GetSubscriptionAddonWithResponse call func ParseGetSubscriptionAddonResponse(rsp *http.Response) (*GetSubscriptionAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetSubscriptionAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest SubscriptionAddon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUpdateSubscriptionAddonResponse parses an HTTP response from a UpdateSubscriptionAddonWithResponse call func ParseUpdateSubscriptionAddonResponse(rsp *http.Response) (*UpdateSubscriptionAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UpdateSubscriptionAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest SubscriptionAddon if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCancelSubscriptionResponse parses an HTTP response from a CancelSubscriptionWithResponse call func ParseCancelSubscriptionResponse(rsp *http.Response) (*CancelSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CancelSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Subscription if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest SubscriptionBadRequestErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest SubscriptionConflictErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseChangeSubscriptionResponse parses an HTTP response from a ChangeSubscriptionWithResponse call func ParseChangeSubscriptionResponse(rsp *http.Response) (*ChangeSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ChangeSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest SubscriptionChangeResponseBody if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest SubscriptionBadRequestErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest SubscriptionConflictErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseMigrateSubscriptionResponse parses an HTTP response from a MigrateSubscriptionWithResponse call func ParseMigrateSubscriptionResponse(rsp *http.Response) (*MigrateSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &MigrateSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest SubscriptionChangeResponseBody if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest SubscriptionBadRequestErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest SubscriptionConflictErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseRestoreSubscriptionResponse parses an HTTP response from a RestoreSubscriptionWithResponse call func ParseRestoreSubscriptionResponse(rsp *http.Response) (*RestoreSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &RestoreSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Subscription if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseUnscheduleCancelationResponse parses an HTTP response from a UnscheduleCancelationWithResponse call func ParseUnscheduleCancelationResponse(rsp *http.Response) (*UnscheduleCancelationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &UnscheduleCancelationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest Subscription if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest SubscriptionBadRequestErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest SubscriptionConflictErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListCustomerEntitlementsV2Response parses an HTTP response from a ListCustomerEntitlementsV2WithResponse call func ParseListCustomerEntitlementsV2Response(rsp *http.Response) (*ListCustomerEntitlementsV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListCustomerEntitlementsV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest EntitlementV2PaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateCustomerEntitlementV2Response parses an HTTP response from a CreateCustomerEntitlementV2WithResponse call func ParseCreateCustomerEntitlementV2Response(rsp *http.Response) (*CreateCustomerEntitlementV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateCustomerEntitlementV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest EntitlementV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseDeleteCustomerEntitlementV2Response parses an HTTP response from a DeleteCustomerEntitlementV2WithResponse call func ParseDeleteCustomerEntitlementV2Response(rsp *http.Response) (*DeleteCustomerEntitlementV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &DeleteCustomerEntitlementV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetCustomerEntitlementV2Response parses an HTTP response from a GetCustomerEntitlementV2WithResponse call func ParseGetCustomerEntitlementV2Response(rsp *http.Response) (*GetCustomerEntitlementV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetCustomerEntitlementV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest EntitlementV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListCustomerEntitlementGrantsV2Response parses an HTTP response from a ListCustomerEntitlementGrantsV2WithResponse call func ParseListCustomerEntitlementGrantsV2Response(rsp *http.Response) (*ListCustomerEntitlementGrantsV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListCustomerEntitlementGrantsV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest GrantV2PaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseCreateCustomerEntitlementGrantV2Response parses an HTTP response from a CreateCustomerEntitlementGrantV2WithResponse call func ParseCreateCustomerEntitlementGrantV2Response(rsp *http.Response) (*CreateCustomerEntitlementGrantV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &CreateCustomerEntitlementGrantV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest EntitlementGrantV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetCustomerEntitlementHistoryV2Response parses an HTTP response from a GetCustomerEntitlementHistoryV2WithResponse call func ParseGetCustomerEntitlementHistoryV2Response(rsp *http.Response) (*GetCustomerEntitlementHistoryV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetCustomerEntitlementHistoryV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest WindowedBalanceHistory if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseOverrideCustomerEntitlementV2Response parses an HTTP response from a OverrideCustomerEntitlementV2WithResponse call func ParseOverrideCustomerEntitlementV2Response(rsp *http.Response) (*OverrideCustomerEntitlementV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &OverrideCustomerEntitlementV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest EntitlementV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest ConflictProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseResetCustomerEntitlementUsageV2Response parses an HTTP response from a ResetCustomerEntitlementUsageV2WithResponse call func ParseResetCustomerEntitlementUsageV2Response(rsp *http.Response) (*ResetCustomerEntitlementUsageV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ResetCustomerEntitlementUsageV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetCustomerEntitlementValueV2Response parses an HTTP response from a GetCustomerEntitlementValueV2WithResponse call func ParseGetCustomerEntitlementValueV2Response(rsp *http.Response) (*GetCustomerEntitlementValueV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetCustomerEntitlementValueV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest EntitlementValueV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListEntitlementsV2Response parses an HTTP response from a ListEntitlementsV2WithResponse call func ParseListEntitlementsV2Response(rsp *http.Response) (*ListEntitlementsV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListEntitlementsV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest EntitlementV2PaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseGetEntitlementByIdV2Response parses an HTTP response from a GetEntitlementByIdV2WithResponse call func ParseGetEntitlementByIdV2Response(rsp *http.Response) (*GetEntitlementByIdV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &GetEntitlementByIdV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest EntitlementV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFoundProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListEventsV2Response parses an HTTP response from a ListEventsV2WithResponse call func ParseListEventsV2Response(rsp *http.Response) (*ListEventsV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListEventsV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest IngestedEventCursorPaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // ParseListGrantsV2Response parses an HTTP response from a ListGrantsV2WithResponse call func ParseListGrantsV2Response(rsp *http.Response) (*ListGrantsV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } response := &ListGrantsV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest GrantV2PaginatedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequestProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest UnauthorizedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest ForbiddenProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: var dest PreconditionFailedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON412 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerErrorProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest ServiceUnavailableProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest UnexpectedProblemResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.ApplicationproblemJSONDefault = &dest } return response, nil } // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ "H4sIAAAAAAAC/+y963IcN7Ig/CqI3tmwdE6zTUm251hfTJygSHnMHV14SMr+Zqb10WAV2I1RNVADoEi2", "HYrYN9jfu7/2MfZ5zgvsK3yBTACFqkJ1V/OimztiYix2VQGJRCKR9/xtlMlFKQUTRo+e/jYqqaILZpiC", "v/byXIrXKmfq2RL+w8VsIu0/7NOc6Uzx0nApRk9Hp3NG4BHJuWKZ/XUyGo/YdVnInI2eXtBCs/GI23f/", "WTG1HI1Hgi7Y6OkIRxyPdDZnC2qHpkXx+mL09O+/jf6g2MXo6ei/fF3D+TW+p78+kcoAWKP3b8ejnF3Q", "qjCjp6O9k/3R+/FIm2Vhh7+QamH/7l/Ns+Wq9ZwvyQVnRb7Rcp4tGwtatYwYrhTcz3hRcDE7UvKCF2y/", "0kYumHp9yZTiOftitucGy/y4+zYI4PUrfcG1aX+sj+w51JPzxpvdxf7AC4MrdW+SEl+1a06tsTVgvFRu", "2EJ3p3jz4vCAPHgj+CVTmhbFkrwR/J8VIy/YNc/kTNFyzjN4YDecnheMHOZMGH7BmXqIyKeLEjCw++jP", "3337tz9+++3eDz/v/eXH548ev/rr7v5/fP/Dj6PxqKTGMGXn/P/+vrvzx7d/3935fm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ts", "x/m9umQgd08FpCpHo1CxdBiDcl8hWMPHN0EzbqF5DpL1LqmE4YWr9+uAmgquCbue00q7GL/mSf80N7y1", "e4O2LSE7+0eQYAK9uiwaISn/TkTOhLy79tqp7xuv/G4+n8NScqoWwtMFmw6Wgi54dmQx8TM38325WHAT", "ovpaWMSXEW+ou4AwCbni7qsuYbm7dG/h7bF3QV21oUmTgi+408UQHGowhR1imxb+Tg+WGSc24xNXReJ+", "IUT8tGG010svkAhSDGRVGF4WfJNCTE0IfXbeo2Rthnp8UNfLsliG9NZQpsP3iYJ7K6YGOM+h4M9U7JDd", "ye5TlzjOsQSCVeHxybetJ9/u/lfPJuq57KuPOoOEu5fq5PvtoR8lx44rfd167avLeJuoNSCiKjK6uHFu", "oY09z3kjjWkvz9MBgHt57qvrGraAdWKRlO6JlWV8w9I8P7OfJG1BMMJfkv64MdzN+1Tl61xOx/699qpl", "OYqmiAYciAmsE7MCFTD2gPXje70I2CTGH2ByYVL96x20wmO2kJc98Z74DKRau91QV6R3w+0rfZvYRIaC", "YW9ED2v21sMwfOE9u+tXPmhz3XrW7G8fbvScX5i11F0De2LfH4IMHHgIKk6MYiab9+DCPe1FBrs2TORo", "RU6WVVtNDRqHvxn61qAggDYEC2+ExXZeFcw+SYjs4bkGWbpVbCc4yofwwyqMdWaHWc+7ZZleQ50lgACX", "imXU1CWk2g1z6qQEX6oQlQmvWGMhhXYGAxaf93WPfvC5HvZD6YSSgAeWmGPsbtolfIJzhECbUIRssibq", "2zfbWZ8J8sy9Cf48Bihc+81L9yZ2neLZgE9O8MXbhnEngFgXep0CYvAXHjvv11CUf++GhOVqwOEgMVkk", "imDWfqN0C1tXEwWLmLQd43dbwiS4rVZC4mrc3Sccd184ATrC1G/4BbS2JipC0ahrA6UmdHV+9ujxk26S", "4RdRcwB14SOokraRndi+v6qJtHGaNBZgm3xJCfTOfNRX+sBbl0ztBbUqlaM5uHMq3clb3zv+25NXB8//", "cnry0zfHxz/88B/fff/nb3/Y++kOjZMO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pRGqDETNQPn30DUrJ0N5BtPBv5Ks", "/EKGOHwQD1rQJDc80oWKrnilx3ePu5fRx/QrVDfF6y6F7bWhjLWPJyiz1L10r8Kzo2qWPth0EDfgjmyo", "IHgo1a14NcvauG9chWv3YHmSpZWr1myZ2lDDI3dXGwy1v8ibMz3O1KftjtPWuRudFpfPwS1HxYm+mw6y", "X122bNluS2iRUlIv/MLRay6ioZJCZtrCXO6uJof2NX2cwRxCufkYuHw0YrFlvSQnBaNCI0GH5M9vfZO8", "dnjGglfmqebURfug/y1HawTdi24SbmECXvQ/Mmnolguf4lfmCpSMl6KgviRhkyltaOX6lglvutZPWC8b", "DMJMtiIQ7Dxek1ueIPBk3Uszh5ZIwvssyqPEr1xAQw6FvAZ8nP/YCXdmGW6dDhEwlezzkDEXp9KRwTjD", "x+7BWg2iYapPI7uIchWTlLq4NzaP0BUpzWFA3NZd7ohOmu4RV1vSDWlqSjnMUrv1wEQ6NIqnLNR9MjP3", "6+x227V3oPz+AThwbpiAGyaKzegbTfqZiBz5cJOXe6KTprrx18e//n8AAAD//8pUYYrAQgwA", } // GetSwagger returns the content of the embedded swagger specification file // or error if failed to decode func decodeSpec() ([]byte, error) { zipped, err := base64.StdEncoding.DecodeString(strings.Join(swaggerSpec, "")) if err != nil { return nil, fmt.Errorf("error base64 decoding spec: %w", err) } zr, err := gzip.NewReader(bytes.NewReader(zipped)) if err != nil { return nil, fmt.Errorf("error decompressing spec: %w", err) } var buf bytes.Buffer _, err = buf.ReadFrom(zr) if err != nil { return nil, fmt.Errorf("error decompressing spec: %w", err) } return buf.Bytes(), nil } var rawSpec = decodeSpecCached() // a naive cached of a decoded swagger spec func decodeSpecCached() func() ([]byte, error) { data, err := decodeSpec() return func() ([]byte, error) { return data, err } } // Constructs a synthetic filesystem for resolving external references when loading openapi specifications. func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) { res := make(map[string]func() ([]byte, error)) if len(pathToFile) > 0 { res[pathToFile] = rawSpec } return res } // 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 GetSwagger() (swagger *openapi3.T, err error) { resolvePath := PathToRawSpec("") loader := openapi3.NewLoader() loader.IsExternalRefsAllowed = true loader.ReadFromURIFunc = func(loader *openapi3.Loader, url *url.URL) ([]byte, error) { pathToFile := url.String() pathToFile = path.Clean(pathToFile) getSpec, ok := resolvePath[pathToFile] if !ok { err1 := fmt.Errorf("path not found: %s", pathToFile) return nil, err1 } return getSpec() } var specData []byte specData, err = rawSpec() if err != nil { return } swagger, err = loader.LoadFromData(specData) if err != nil { return } return }