From 39329add8fd3e204dc4e12fc3383a99fd5578652 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 23:35:29 +0000 Subject: [PATCH 1/3] chore: go live (#1) --- .devcontainer/Dockerfile | 0 .devcontainer/devcontainer.json | 0 .github/workflows/ci.yml | 0 .github/workflows/create-releases.yml | 0 .github/workflows/handle-release-pr-title-edit.yml | 0 .gitignore | 0 .release-please-manifest.json | 0 .stats.yml | 0 CONTRIBUTING.md | 0 LICENSE | 0 README.md | 0 SECURITY.md | 0 alert.go | 0 alert_test.go | 0 aliases.go | 0 api.md | 0 auditlog.go | 0 auditlog_test.go | 0 billablemetric.go | 0 billablemetric_test.go | 0 client.go | 0 client_test.go | 0 contract.go | 0 contract_test.go | 0 contractnamedschedule.go | 0 contractnamedschedule_test.go | 0 contractproduct.go | 0 contractproduct_test.go | 0 contractratecard.go | 0 contractratecard_test.go | 0 contractratecardnamedschedule.go | 0 contractratecardnamedschedule_test.go | 0 contractratecardproductorder.go | 0 contractratecardproductorder_test.go | 0 contractratecardrate.go | 0 contractratecardrate_test.go | 0 creditgrant.go | 0 creditgrant_test.go | 0 customer.go | 0 customer_test.go | 0 customeralert.go | 0 customeralert_test.go | 0 customerbillingconfig.go | 0 customerbillingconfig_test.go | 0 customercommit.go | 0 customercommit_test.go | 0 customercredit.go | 0 customercredit_test.go | 0 customerinvoice.go | 0 customerinvoice_test.go | 0 customernamedschedule.go | 0 customernamedschedule_test.go | 0 customerplan.go | 0 customerplan_test.go | 0 customfield.go | 0 customfield_test.go | 0 dashboard.go | 0 dashboard_test.go | 0 examples/.keep | 0 field.go | 0 go.mod | 0 go.sum | 0 internal/apierror/apierror.go | 0 internal/apiform/encoder.go | 0 internal/apiform/form.go | 0 internal/apiform/form_test.go | 0 internal/apiform/tag.go | 0 internal/apijson/decoder.go | 0 internal/apijson/encoder.go | 0 internal/apijson/field.go | 0 internal/apijson/field_test.go | 0 internal/apijson/json_test.go | 0 internal/apijson/port.go | 0 internal/apijson/port_test.go | 0 internal/apijson/registry.go | 0 internal/apijson/tag.go | 0 internal/apiquery/encoder.go | 0 internal/apiquery/query.go | 0 internal/apiquery/query_test.go | 0 internal/apiquery/tag.go | 0 internal/pagination/pagination.go | 0 internal/param/field.go | 0 internal/requestconfig/requestconfig.go | 0 internal/testutil/testutil.go | 0 internal/version.go | 0 invoice.go | 0 invoice_test.go | 0 lib/.keep | 0 option/requestoption.go | 0 paginationauto_test.go | 0 paginationmanual_test.go | 0 plan.go | 0 plan_test.go | 0 release-please-config.json | 0 service.go | 0 service_test.go | 0 shared/shared.go | 0 usage.go | 0 usage_test.go | 0 99 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .devcontainer/Dockerfile mode change 100644 => 100755 .devcontainer/devcontainer.json mode change 100644 => 100755 .github/workflows/ci.yml mode change 100644 => 100755 .github/workflows/create-releases.yml mode change 100644 => 100755 .github/workflows/handle-release-pr-title-edit.yml mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .release-please-manifest.json mode change 100644 => 100755 .stats.yml mode change 100644 => 100755 CONTRIBUTING.md mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README.md mode change 100644 => 100755 SECURITY.md mode change 100644 => 100755 alert.go mode change 100644 => 100755 alert_test.go mode change 100644 => 100755 aliases.go mode change 100644 => 100755 api.md mode change 100644 => 100755 auditlog.go mode change 100644 => 100755 auditlog_test.go mode change 100644 => 100755 billablemetric.go mode change 100644 => 100755 billablemetric_test.go mode change 100644 => 100755 client.go mode change 100644 => 100755 client_test.go mode change 100644 => 100755 contract.go mode change 100644 => 100755 contract_test.go mode change 100644 => 100755 contractnamedschedule.go mode change 100644 => 100755 contractnamedschedule_test.go mode change 100644 => 100755 contractproduct.go mode change 100644 => 100755 contractproduct_test.go mode change 100644 => 100755 contractratecard.go mode change 100644 => 100755 contractratecard_test.go mode change 100644 => 100755 contractratecardnamedschedule.go mode change 100644 => 100755 contractratecardnamedschedule_test.go mode change 100644 => 100755 contractratecardproductorder.go mode change 100644 => 100755 contractratecardproductorder_test.go mode change 100644 => 100755 contractratecardrate.go mode change 100644 => 100755 contractratecardrate_test.go mode change 100644 => 100755 creditgrant.go mode change 100644 => 100755 creditgrant_test.go mode change 100644 => 100755 customer.go mode change 100644 => 100755 customer_test.go mode change 100644 => 100755 customeralert.go mode change 100644 => 100755 customeralert_test.go mode change 100644 => 100755 customerbillingconfig.go mode change 100644 => 100755 customerbillingconfig_test.go mode change 100644 => 100755 customercommit.go mode change 100644 => 100755 customercommit_test.go mode change 100644 => 100755 customercredit.go mode change 100644 => 100755 customercredit_test.go mode change 100644 => 100755 customerinvoice.go mode change 100644 => 100755 customerinvoice_test.go mode change 100644 => 100755 customernamedschedule.go mode change 100644 => 100755 customernamedschedule_test.go mode change 100644 => 100755 customerplan.go mode change 100644 => 100755 customerplan_test.go mode change 100644 => 100755 customfield.go mode change 100644 => 100755 customfield_test.go mode change 100644 => 100755 dashboard.go mode change 100644 => 100755 dashboard_test.go mode change 100644 => 100755 examples/.keep mode change 100644 => 100755 field.go mode change 100644 => 100755 go.mod mode change 100644 => 100755 go.sum mode change 100644 => 100755 internal/apierror/apierror.go mode change 100644 => 100755 internal/apiform/encoder.go mode change 100644 => 100755 internal/apiform/form.go mode change 100644 => 100755 internal/apiform/form_test.go mode change 100644 => 100755 internal/apiform/tag.go mode change 100644 => 100755 internal/apijson/decoder.go mode change 100644 => 100755 internal/apijson/encoder.go mode change 100644 => 100755 internal/apijson/field.go mode change 100644 => 100755 internal/apijson/field_test.go mode change 100644 => 100755 internal/apijson/json_test.go mode change 100644 => 100755 internal/apijson/port.go mode change 100644 => 100755 internal/apijson/port_test.go mode change 100644 => 100755 internal/apijson/registry.go mode change 100644 => 100755 internal/apijson/tag.go mode change 100644 => 100755 internal/apiquery/encoder.go mode change 100644 => 100755 internal/apiquery/query.go mode change 100644 => 100755 internal/apiquery/query_test.go mode change 100644 => 100755 internal/apiquery/tag.go mode change 100644 => 100755 internal/pagination/pagination.go mode change 100644 => 100755 internal/param/field.go mode change 100644 => 100755 internal/requestconfig/requestconfig.go mode change 100644 => 100755 internal/testutil/testutil.go mode change 100644 => 100755 internal/version.go mode change 100644 => 100755 invoice.go mode change 100644 => 100755 invoice_test.go mode change 100644 => 100755 lib/.keep mode change 100644 => 100755 option/requestoption.go mode change 100644 => 100755 paginationauto_test.go mode change 100644 => 100755 paginationmanual_test.go mode change 100644 => 100755 plan.go mode change 100644 => 100755 plan_test.go mode change 100644 => 100755 release-please-config.json mode change 100644 => 100755 service.go mode change 100644 => 100755 service_test.go mode change 100644 => 100755 shared/shared.go mode change 100644 => 100755 usage.go mode change 100644 => 100755 usage_test.go diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile old mode 100644 new mode 100755 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json old mode 100644 new mode 100755 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/handle-release-pr-title-edit.yml b/.github/workflows/handle-release-pr-title-edit.yml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.release-please-manifest.json b/.release-please-manifest.json old mode 100644 new mode 100755 diff --git a/.stats.yml b/.stats.yml old mode 100644 new mode 100755 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/SECURITY.md b/SECURITY.md old mode 100644 new mode 100755 diff --git a/alert.go b/alert.go old mode 100644 new mode 100755 diff --git a/alert_test.go b/alert_test.go old mode 100644 new mode 100755 diff --git a/aliases.go b/aliases.go old mode 100644 new mode 100755 diff --git a/api.md b/api.md old mode 100644 new mode 100755 diff --git a/auditlog.go b/auditlog.go old mode 100644 new mode 100755 diff --git a/auditlog_test.go b/auditlog_test.go old mode 100644 new mode 100755 diff --git a/billablemetric.go b/billablemetric.go old mode 100644 new mode 100755 diff --git a/billablemetric_test.go b/billablemetric_test.go old mode 100644 new mode 100755 diff --git a/client.go b/client.go old mode 100644 new mode 100755 diff --git a/client_test.go b/client_test.go old mode 100644 new mode 100755 diff --git a/contract.go b/contract.go old mode 100644 new mode 100755 diff --git a/contract_test.go b/contract_test.go old mode 100644 new mode 100755 diff --git a/contractnamedschedule.go b/contractnamedschedule.go old mode 100644 new mode 100755 diff --git a/contractnamedschedule_test.go b/contractnamedschedule_test.go old mode 100644 new mode 100755 diff --git a/contractproduct.go b/contractproduct.go old mode 100644 new mode 100755 diff --git a/contractproduct_test.go b/contractproduct_test.go old mode 100644 new mode 100755 diff --git a/contractratecard.go b/contractratecard.go old mode 100644 new mode 100755 diff --git a/contractratecard_test.go b/contractratecard_test.go old mode 100644 new mode 100755 diff --git a/contractratecardnamedschedule.go b/contractratecardnamedschedule.go old mode 100644 new mode 100755 diff --git a/contractratecardnamedschedule_test.go b/contractratecardnamedschedule_test.go old mode 100644 new mode 100755 diff --git a/contractratecardproductorder.go b/contractratecardproductorder.go old mode 100644 new mode 100755 diff --git a/contractratecardproductorder_test.go b/contractratecardproductorder_test.go old mode 100644 new mode 100755 diff --git a/contractratecardrate.go b/contractratecardrate.go old mode 100644 new mode 100755 diff --git a/contractratecardrate_test.go b/contractratecardrate_test.go old mode 100644 new mode 100755 diff --git a/creditgrant.go b/creditgrant.go old mode 100644 new mode 100755 diff --git a/creditgrant_test.go b/creditgrant_test.go old mode 100644 new mode 100755 diff --git a/customer.go b/customer.go old mode 100644 new mode 100755 diff --git a/customer_test.go b/customer_test.go old mode 100644 new mode 100755 diff --git a/customeralert.go b/customeralert.go old mode 100644 new mode 100755 diff --git a/customeralert_test.go b/customeralert_test.go old mode 100644 new mode 100755 diff --git a/customerbillingconfig.go b/customerbillingconfig.go old mode 100644 new mode 100755 diff --git a/customerbillingconfig_test.go b/customerbillingconfig_test.go old mode 100644 new mode 100755 diff --git a/customercommit.go b/customercommit.go old mode 100644 new mode 100755 diff --git a/customercommit_test.go b/customercommit_test.go old mode 100644 new mode 100755 diff --git a/customercredit.go b/customercredit.go old mode 100644 new mode 100755 diff --git a/customercredit_test.go b/customercredit_test.go old mode 100644 new mode 100755 diff --git a/customerinvoice.go b/customerinvoice.go old mode 100644 new mode 100755 diff --git a/customerinvoice_test.go b/customerinvoice_test.go old mode 100644 new mode 100755 diff --git a/customernamedschedule.go b/customernamedschedule.go old mode 100644 new mode 100755 diff --git a/customernamedschedule_test.go b/customernamedschedule_test.go old mode 100644 new mode 100755 diff --git a/customerplan.go b/customerplan.go old mode 100644 new mode 100755 diff --git a/customerplan_test.go b/customerplan_test.go old mode 100644 new mode 100755 diff --git a/customfield.go b/customfield.go old mode 100644 new mode 100755 diff --git a/customfield_test.go b/customfield_test.go old mode 100644 new mode 100755 diff --git a/dashboard.go b/dashboard.go old mode 100644 new mode 100755 diff --git a/dashboard_test.go b/dashboard_test.go old mode 100644 new mode 100755 diff --git a/examples/.keep b/examples/.keep old mode 100644 new mode 100755 diff --git a/field.go b/field.go old mode 100644 new mode 100755 diff --git a/go.mod b/go.mod old mode 100644 new mode 100755 diff --git a/go.sum b/go.sum old mode 100644 new mode 100755 diff --git a/internal/apierror/apierror.go b/internal/apierror/apierror.go old mode 100644 new mode 100755 diff --git a/internal/apiform/encoder.go b/internal/apiform/encoder.go old mode 100644 new mode 100755 diff --git a/internal/apiform/form.go b/internal/apiform/form.go old mode 100644 new mode 100755 diff --git a/internal/apiform/form_test.go b/internal/apiform/form_test.go old mode 100644 new mode 100755 diff --git a/internal/apiform/tag.go b/internal/apiform/tag.go old mode 100644 new mode 100755 diff --git a/internal/apijson/decoder.go b/internal/apijson/decoder.go old mode 100644 new mode 100755 diff --git a/internal/apijson/encoder.go b/internal/apijson/encoder.go old mode 100644 new mode 100755 diff --git a/internal/apijson/field.go b/internal/apijson/field.go old mode 100644 new mode 100755 diff --git a/internal/apijson/field_test.go b/internal/apijson/field_test.go old mode 100644 new mode 100755 diff --git a/internal/apijson/json_test.go b/internal/apijson/json_test.go old mode 100644 new mode 100755 diff --git a/internal/apijson/port.go b/internal/apijson/port.go old mode 100644 new mode 100755 diff --git a/internal/apijson/port_test.go b/internal/apijson/port_test.go old mode 100644 new mode 100755 diff --git a/internal/apijson/registry.go b/internal/apijson/registry.go old mode 100644 new mode 100755 diff --git a/internal/apijson/tag.go b/internal/apijson/tag.go old mode 100644 new mode 100755 diff --git a/internal/apiquery/encoder.go b/internal/apiquery/encoder.go old mode 100644 new mode 100755 diff --git a/internal/apiquery/query.go b/internal/apiquery/query.go old mode 100644 new mode 100755 diff --git a/internal/apiquery/query_test.go b/internal/apiquery/query_test.go old mode 100644 new mode 100755 diff --git a/internal/apiquery/tag.go b/internal/apiquery/tag.go old mode 100644 new mode 100755 diff --git a/internal/pagination/pagination.go b/internal/pagination/pagination.go old mode 100644 new mode 100755 diff --git a/internal/param/field.go b/internal/param/field.go old mode 100644 new mode 100755 diff --git a/internal/requestconfig/requestconfig.go b/internal/requestconfig/requestconfig.go old mode 100644 new mode 100755 diff --git a/internal/testutil/testutil.go b/internal/testutil/testutil.go old mode 100644 new mode 100755 diff --git a/internal/version.go b/internal/version.go old mode 100644 new mode 100755 diff --git a/invoice.go b/invoice.go old mode 100644 new mode 100755 diff --git a/invoice_test.go b/invoice_test.go old mode 100644 new mode 100755 diff --git a/lib/.keep b/lib/.keep old mode 100644 new mode 100755 diff --git a/option/requestoption.go b/option/requestoption.go old mode 100644 new mode 100755 diff --git a/paginationauto_test.go b/paginationauto_test.go old mode 100644 new mode 100755 diff --git a/paginationmanual_test.go b/paginationmanual_test.go old mode 100644 new mode 100755 diff --git a/plan.go b/plan.go old mode 100644 new mode 100755 diff --git a/plan_test.go b/plan_test.go old mode 100644 new mode 100755 diff --git a/release-please-config.json b/release-please-config.json old mode 100644 new mode 100755 diff --git a/service.go b/service.go old mode 100644 new mode 100755 diff --git a/service_test.go b/service_test.go old mode 100644 new mode 100755 diff --git a/shared/shared.go b/shared/shared.go old mode 100644 new mode 100755 diff --git a/usage.go b/usage.go old mode 100644 new mode 100755 diff --git a/usage_test.go b/usage_test.go old mode 100644 new mode 100755 From 97be77e32f35a7bc5eb6563c73f359999876ca8d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 00:12:42 +0000 Subject: [PATCH 2/3] feat(api): OpenAPI spec update via Stainless API (#3) --- .stats.yml | 2 +- billablemetric.go | 36 +----------- contract.go | 118 ++++++++-------------------------------- contractproduct.go | 80 ++++++--------------------- contractratecardrate.go | 14 +---- creditgrant.go | 4 +- customer.go | 12 +--- customeralert.go | 8 +-- customercommit.go | 15 +---- shared/shared.go | 25 ++------- usage.go | 16 +----- 11 files changed, 59 insertions(+), 271 deletions(-) diff --git a/.stats.yml b/.stats.yml index f88a82b..8c48395 100755 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 87 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-a756f558dba48293f7654cbd12f726b747c70f975bc6888a1c01101c73983595.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-3fc5b7182f99e8b635b27a63450f287515cdea409b7308509ee676b01354c4c0.yml diff --git a/billablemetric.go b/billablemetric.go index b397163..df46180 100755 --- a/billablemetric.go +++ b/billablemetric.go @@ -188,26 +188,16 @@ func (r billableMetricGetResponseDataJSON) RawJSON() string { type BillableMetricGetResponseDataAggregationType string const ( - BillableMetricGetResponseDataAggregationTypeCount BillableMetricGetResponseDataAggregationType = "count" - BillableMetricGetResponseDataAggregationTypeCount BillableMetricGetResponseDataAggregationType = "Count" BillableMetricGetResponseDataAggregationTypeCount BillableMetricGetResponseDataAggregationType = "COUNT" - BillableMetricGetResponseDataAggregationTypeLatest BillableMetricGetResponseDataAggregationType = "latest" - BillableMetricGetResponseDataAggregationTypeLatest BillableMetricGetResponseDataAggregationType = "Latest" BillableMetricGetResponseDataAggregationTypeLatest BillableMetricGetResponseDataAggregationType = "LATEST" - BillableMetricGetResponseDataAggregationTypeMax BillableMetricGetResponseDataAggregationType = "max" - BillableMetricGetResponseDataAggregationTypeMax BillableMetricGetResponseDataAggregationType = "Max" BillableMetricGetResponseDataAggregationTypeMax BillableMetricGetResponseDataAggregationType = "MAX" - BillableMetricGetResponseDataAggregationTypeSum BillableMetricGetResponseDataAggregationType = "sum" - BillableMetricGetResponseDataAggregationTypeSum BillableMetricGetResponseDataAggregationType = "Sum" BillableMetricGetResponseDataAggregationTypeSum BillableMetricGetResponseDataAggregationType = "SUM" - BillableMetricGetResponseDataAggregationTypeUnique BillableMetricGetResponseDataAggregationType = "unique" - BillableMetricGetResponseDataAggregationTypeUnique BillableMetricGetResponseDataAggregationType = "Unique" BillableMetricGetResponseDataAggregationTypeUnique BillableMetricGetResponseDataAggregationType = "UNIQUE" ) func (r BillableMetricGetResponseDataAggregationType) IsKnown() bool { switch r { - case BillableMetricGetResponseDataAggregationTypeCount, BillableMetricGetResponseDataAggregationTypeCount, BillableMetricGetResponseDataAggregationTypeCount, BillableMetricGetResponseDataAggregationTypeLatest, BillableMetricGetResponseDataAggregationTypeLatest, BillableMetricGetResponseDataAggregationTypeLatest, BillableMetricGetResponseDataAggregationTypeMax, BillableMetricGetResponseDataAggregationTypeMax, BillableMetricGetResponseDataAggregationTypeMax, BillableMetricGetResponseDataAggregationTypeSum, BillableMetricGetResponseDataAggregationTypeSum, BillableMetricGetResponseDataAggregationTypeSum, BillableMetricGetResponseDataAggregationTypeUnique, BillableMetricGetResponseDataAggregationTypeUnique, BillableMetricGetResponseDataAggregationTypeUnique: + case BillableMetricGetResponseDataAggregationTypeCount, BillableMetricGetResponseDataAggregationTypeLatest, BillableMetricGetResponseDataAggregationTypeMax, BillableMetricGetResponseDataAggregationTypeSum, BillableMetricGetResponseDataAggregationTypeUnique: return true } return false @@ -347,26 +337,16 @@ func (r billableMetricListResponseJSON) RawJSON() string { type BillableMetricListResponseAggregationType string const ( - BillableMetricListResponseAggregationTypeCount BillableMetricListResponseAggregationType = "count" - BillableMetricListResponseAggregationTypeCount BillableMetricListResponseAggregationType = "Count" BillableMetricListResponseAggregationTypeCount BillableMetricListResponseAggregationType = "COUNT" - BillableMetricListResponseAggregationTypeLatest BillableMetricListResponseAggregationType = "latest" - BillableMetricListResponseAggregationTypeLatest BillableMetricListResponseAggregationType = "Latest" BillableMetricListResponseAggregationTypeLatest BillableMetricListResponseAggregationType = "LATEST" - BillableMetricListResponseAggregationTypeMax BillableMetricListResponseAggregationType = "max" - BillableMetricListResponseAggregationTypeMax BillableMetricListResponseAggregationType = "Max" BillableMetricListResponseAggregationTypeMax BillableMetricListResponseAggregationType = "MAX" - BillableMetricListResponseAggregationTypeSum BillableMetricListResponseAggregationType = "sum" - BillableMetricListResponseAggregationTypeSum BillableMetricListResponseAggregationType = "Sum" BillableMetricListResponseAggregationTypeSum BillableMetricListResponseAggregationType = "SUM" - BillableMetricListResponseAggregationTypeUnique BillableMetricListResponseAggregationType = "unique" - BillableMetricListResponseAggregationTypeUnique BillableMetricListResponseAggregationType = "Unique" BillableMetricListResponseAggregationTypeUnique BillableMetricListResponseAggregationType = "UNIQUE" ) func (r BillableMetricListResponseAggregationType) IsKnown() bool { switch r { - case BillableMetricListResponseAggregationTypeCount, BillableMetricListResponseAggregationTypeCount, BillableMetricListResponseAggregationTypeCount, BillableMetricListResponseAggregationTypeLatest, BillableMetricListResponseAggregationTypeLatest, BillableMetricListResponseAggregationTypeLatest, BillableMetricListResponseAggregationTypeMax, BillableMetricListResponseAggregationTypeMax, BillableMetricListResponseAggregationTypeMax, BillableMetricListResponseAggregationTypeSum, BillableMetricListResponseAggregationTypeSum, BillableMetricListResponseAggregationTypeSum, BillableMetricListResponseAggregationTypeUnique, BillableMetricListResponseAggregationTypeUnique, BillableMetricListResponseAggregationTypeUnique: + case BillableMetricListResponseAggregationTypeCount, BillableMetricListResponseAggregationTypeLatest, BillableMetricListResponseAggregationTypeMax, BillableMetricListResponseAggregationTypeSum, BillableMetricListResponseAggregationTypeUnique: return true } return false @@ -493,26 +473,16 @@ func (r BillableMetricNewParams) MarshalJSON() (data []byte, err error) { type BillableMetricNewParamsAggregationType string const ( - BillableMetricNewParamsAggregationTypeCount BillableMetricNewParamsAggregationType = "count" - BillableMetricNewParamsAggregationTypeCount BillableMetricNewParamsAggregationType = "Count" BillableMetricNewParamsAggregationTypeCount BillableMetricNewParamsAggregationType = "COUNT" - BillableMetricNewParamsAggregationTypeLatest BillableMetricNewParamsAggregationType = "latest" - BillableMetricNewParamsAggregationTypeLatest BillableMetricNewParamsAggregationType = "Latest" BillableMetricNewParamsAggregationTypeLatest BillableMetricNewParamsAggregationType = "LATEST" - BillableMetricNewParamsAggregationTypeMax BillableMetricNewParamsAggregationType = "max" - BillableMetricNewParamsAggregationTypeMax BillableMetricNewParamsAggregationType = "Max" BillableMetricNewParamsAggregationTypeMax BillableMetricNewParamsAggregationType = "MAX" - BillableMetricNewParamsAggregationTypeSum BillableMetricNewParamsAggregationType = "sum" - BillableMetricNewParamsAggregationTypeSum BillableMetricNewParamsAggregationType = "Sum" BillableMetricNewParamsAggregationTypeSum BillableMetricNewParamsAggregationType = "SUM" - BillableMetricNewParamsAggregationTypeUnique BillableMetricNewParamsAggregationType = "unique" - BillableMetricNewParamsAggregationTypeUnique BillableMetricNewParamsAggregationType = "Unique" BillableMetricNewParamsAggregationTypeUnique BillableMetricNewParamsAggregationType = "UNIQUE" ) func (r BillableMetricNewParamsAggregationType) IsKnown() bool { switch r { - case BillableMetricNewParamsAggregationTypeCount, BillableMetricNewParamsAggregationTypeCount, BillableMetricNewParamsAggregationTypeCount, BillableMetricNewParamsAggregationTypeLatest, BillableMetricNewParamsAggregationTypeLatest, BillableMetricNewParamsAggregationTypeLatest, BillableMetricNewParamsAggregationTypeMax, BillableMetricNewParamsAggregationTypeMax, BillableMetricNewParamsAggregationTypeMax, BillableMetricNewParamsAggregationTypeSum, BillableMetricNewParamsAggregationTypeSum, BillableMetricNewParamsAggregationTypeSum, BillableMetricNewParamsAggregationTypeUnique, BillableMetricNewParamsAggregationTypeUnique, BillableMetricNewParamsAggregationTypeUnique: + case BillableMetricNewParamsAggregationTypeCount, BillableMetricNewParamsAggregationTypeLatest, BillableMetricNewParamsAggregationTypeMax, BillableMetricNewParamsAggregationTypeSum, BillableMetricNewParamsAggregationTypeUnique: return true } return false diff --git a/contract.go b/contract.go index 7291704..0eebbb8 100755 --- a/contract.go +++ b/contract.go @@ -2803,14 +2803,12 @@ type ContractNewParamsCommitsType string const ( ContractNewParamsCommitsTypePrepaid ContractNewParamsCommitsType = "PREPAID" - ContractNewParamsCommitsTypePrepaid ContractNewParamsCommitsType = "prepaid" ContractNewParamsCommitsTypePostpaid ContractNewParamsCommitsType = "POSTPAID" - ContractNewParamsCommitsTypePostpaid ContractNewParamsCommitsType = "postpaid" ) func (r ContractNewParamsCommitsType) IsKnown() bool { switch r { - case ContractNewParamsCommitsTypePrepaid, ContractNewParamsCommitsTypePrepaid, ContractNewParamsCommitsTypePostpaid, ContractNewParamsCommitsTypePostpaid: + case ContractNewParamsCommitsTypePrepaid, ContractNewParamsCommitsTypePostpaid: return true } return false @@ -2891,16 +2889,13 @@ type ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution const ( ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "DIVIDED" - ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "divided" ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "DIVIDED_ROUNDED" - ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "divided_rounded" ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "EACH" - ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "each" ) func (r ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution) IsKnown() bool { switch r { - case ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach: + case ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach: return true } return false @@ -2910,18 +2905,14 @@ type ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency string const ( ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "MONTHLY" - ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "monthly" ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "QUARTERLY" - ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "quarterly" ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "SEMI_ANNUAL" - ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "semi_annual" ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "ANNUAL" - ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "annual" ) func (r ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequency) IsKnown() bool { switch r { - case ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual: + case ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual: return true } return false @@ -3058,16 +3049,13 @@ type ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistribution strin const ( ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistribution = "DIVIDED" - ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistribution = "divided" ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistribution = "DIVIDED_ROUNDED" - ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistribution = "divided_rounded" ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionEach ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistribution = "EACH" - ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionEach ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistribution = "each" ) func (r ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistribution) IsKnown() bool { switch r { - case ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionEach, ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionEach: + case ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsDiscountsScheduleRecurringScheduleAmountDistributionEach: return true } return false @@ -3077,18 +3065,14 @@ type ContractNewParamsDiscountsScheduleRecurringScheduleFrequency string const ( ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyMonthly ContractNewParamsDiscountsScheduleRecurringScheduleFrequency = "MONTHLY" - ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyMonthly ContractNewParamsDiscountsScheduleRecurringScheduleFrequency = "monthly" ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly ContractNewParamsDiscountsScheduleRecurringScheduleFrequency = "QUARTERLY" - ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly ContractNewParamsDiscountsScheduleRecurringScheduleFrequency = "quarterly" ContractNewParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual ContractNewParamsDiscountsScheduleRecurringScheduleFrequency = "SEMI_ANNUAL" - ContractNewParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual ContractNewParamsDiscountsScheduleRecurringScheduleFrequency = "semi_annual" ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyAnnual ContractNewParamsDiscountsScheduleRecurringScheduleFrequency = "ANNUAL" - ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyAnnual ContractNewParamsDiscountsScheduleRecurringScheduleFrequency = "annual" ) func (r ContractNewParamsDiscountsScheduleRecurringScheduleFrequency) IsKnown() bool { switch r { - case ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyAnnual, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyAnnual: + case ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsDiscountsScheduleRecurringScheduleFrequencyAnnual: return true } return false @@ -3123,14 +3107,12 @@ type ContractNewParamsMultiplierOverridePrioritization string const ( ContractNewParamsMultiplierOverridePrioritizationLowestMultiplier ContractNewParamsMultiplierOverridePrioritization = "LOWEST_MULTIPLIER" - ContractNewParamsMultiplierOverridePrioritizationLowestMultiplier ContractNewParamsMultiplierOverridePrioritization = "lowest_multiplier" ContractNewParamsMultiplierOverridePrioritizationExplicit ContractNewParamsMultiplierOverridePrioritization = "EXPLICIT" - ContractNewParamsMultiplierOverridePrioritizationExplicit ContractNewParamsMultiplierOverridePrioritization = "explicit" ) func (r ContractNewParamsMultiplierOverridePrioritization) IsKnown() bool { switch r { - case ContractNewParamsMultiplierOverridePrioritizationLowestMultiplier, ContractNewParamsMultiplierOverridePrioritizationLowestMultiplier, ContractNewParamsMultiplierOverridePrioritizationExplicit, ContractNewParamsMultiplierOverridePrioritizationExplicit: + case ContractNewParamsMultiplierOverridePrioritizationLowestMultiplier, ContractNewParamsMultiplierOverridePrioritizationExplicit: return true } return false @@ -3213,20 +3195,15 @@ type ContractNewParamsOverridesOverwriteRateRateType string const ( ContractNewParamsOverridesOverwriteRateRateTypeFlat ContractNewParamsOverridesOverwriteRateRateType = "FLAT" - ContractNewParamsOverridesOverwriteRateRateTypeFlat ContractNewParamsOverridesOverwriteRateRateType = "flat" ContractNewParamsOverridesOverwriteRateRateTypePercentage ContractNewParamsOverridesOverwriteRateRateType = "PERCENTAGE" - ContractNewParamsOverridesOverwriteRateRateTypePercentage ContractNewParamsOverridesOverwriteRateRateType = "percentage" ContractNewParamsOverridesOverwriteRateRateTypeSubscription ContractNewParamsOverridesOverwriteRateRateType = "SUBSCRIPTION" - ContractNewParamsOverridesOverwriteRateRateTypeSubscription ContractNewParamsOverridesOverwriteRateRateType = "subscription" ContractNewParamsOverridesOverwriteRateRateTypeTiered ContractNewParamsOverridesOverwriteRateRateType = "TIERED" - ContractNewParamsOverridesOverwriteRateRateTypeTiered ContractNewParamsOverridesOverwriteRateRateType = "tiered" ContractNewParamsOverridesOverwriteRateRateTypeCustom ContractNewParamsOverridesOverwriteRateRateType = "CUSTOM" - ContractNewParamsOverridesOverwriteRateRateTypeCustom ContractNewParamsOverridesOverwriteRateRateType = "custom" ) func (r ContractNewParamsOverridesOverwriteRateRateType) IsKnown() bool { switch r { - case ContractNewParamsOverridesOverwriteRateRateTypeFlat, ContractNewParamsOverridesOverwriteRateRateTypeFlat, ContractNewParamsOverridesOverwriteRateRateTypePercentage, ContractNewParamsOverridesOverwriteRateRateTypePercentage, ContractNewParamsOverridesOverwriteRateRateTypeSubscription, ContractNewParamsOverridesOverwriteRateRateTypeSubscription, ContractNewParamsOverridesOverwriteRateRateTypeTiered, ContractNewParamsOverridesOverwriteRateRateTypeTiered, ContractNewParamsOverridesOverwriteRateRateTypeCustom, ContractNewParamsOverridesOverwriteRateRateTypeCustom: + case ContractNewParamsOverridesOverwriteRateRateTypeFlat, ContractNewParamsOverridesOverwriteRateRateTypePercentage, ContractNewParamsOverridesOverwriteRateRateTypeSubscription, ContractNewParamsOverridesOverwriteRateRateTypeTiered, ContractNewParamsOverridesOverwriteRateRateTypeCustom: return true } return false @@ -3255,16 +3232,13 @@ type ContractNewParamsOverridesType string const ( ContractNewParamsOverridesTypeOverwrite ContractNewParamsOverridesType = "OVERWRITE" - ContractNewParamsOverridesTypeOverwrite ContractNewParamsOverridesType = "overwrite" ContractNewParamsOverridesTypeMultiplier ContractNewParamsOverridesType = "MULTIPLIER" - ContractNewParamsOverridesTypeMultiplier ContractNewParamsOverridesType = "multiplier" ContractNewParamsOverridesTypeTiered ContractNewParamsOverridesType = "TIERED" - ContractNewParamsOverridesTypeTiered ContractNewParamsOverridesType = "tiered" ) func (r ContractNewParamsOverridesType) IsKnown() bool { switch r { - case ContractNewParamsOverridesTypeOverwrite, ContractNewParamsOverridesTypeOverwrite, ContractNewParamsOverridesTypeMultiplier, ContractNewParamsOverridesTypeMultiplier, ContractNewParamsOverridesTypeTiered, ContractNewParamsOverridesTypeTiered: + case ContractNewParamsOverridesTypeOverwrite, ContractNewParamsOverridesTypeMultiplier, ContractNewParamsOverridesTypeTiered: return true } return false @@ -3407,16 +3381,13 @@ type ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributio const ( ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "DIVIDED" - ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "divided" ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "DIVIDED_ROUNDED" - ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "divided_rounded" ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "EACH" - ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "each" ) func (r ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistribution) IsKnown() bool { switch r { - case ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach, ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach: + case ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided, ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded, ContractNewParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach: return true } return false @@ -3426,18 +3397,14 @@ type ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency string const ( ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency = "MONTHLY" - ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency = "monthly" ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency = "QUARTERLY" - ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency = "quarterly" ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency = "SEMI_ANNUAL" - ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency = "semi_annual" ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency = "ANNUAL" - ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency = "annual" ) func (r ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequency) IsKnown() bool { switch r { - case ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual: + case ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual, ContractNewParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual: return true } return false @@ -3481,13 +3448,11 @@ type ContractNewParamsTransitionType string const ( ContractNewParamsTransitionTypeSupersede ContractNewParamsTransitionType = "SUPERSEDE" ContractNewParamsTransitionTypeRenewal ContractNewParamsTransitionType = "RENEWAL" - ContractNewParamsTransitionTypeSupersede ContractNewParamsTransitionType = "supersede" - ContractNewParamsTransitionTypeRenewal ContractNewParamsTransitionType = "renewal" ) func (r ContractNewParamsTransitionType) IsKnown() bool { switch r { - case ContractNewParamsTransitionTypeSupersede, ContractNewParamsTransitionTypeRenewal, ContractNewParamsTransitionTypeSupersede, ContractNewParamsTransitionTypeRenewal: + case ContractNewParamsTransitionTypeSupersede, ContractNewParamsTransitionTypeRenewal: return true } return false @@ -3508,15 +3473,13 @@ func (r ContractNewParamsTransitionFutureInvoiceBehavior) MarshalJSON() (data [] type ContractNewParamsTransitionFutureInvoiceBehaviorTrueup string const ( - ContractNewParamsTransitionFutureInvoiceBehaviorTrueupRemove ContractNewParamsTransitionFutureInvoiceBehaviorTrueup = "remove" - ContractNewParamsTransitionFutureInvoiceBehaviorTrueupAsIs ContractNewParamsTransitionFutureInvoiceBehaviorTrueup = "as_is" ContractNewParamsTransitionFutureInvoiceBehaviorTrueupRemove ContractNewParamsTransitionFutureInvoiceBehaviorTrueup = "REMOVE" ContractNewParamsTransitionFutureInvoiceBehaviorTrueupAsIs ContractNewParamsTransitionFutureInvoiceBehaviorTrueup = "AS_IS" ) func (r ContractNewParamsTransitionFutureInvoiceBehaviorTrueup) IsKnown() bool { switch r { - case ContractNewParamsTransitionFutureInvoiceBehaviorTrueupRemove, ContractNewParamsTransitionFutureInvoiceBehaviorTrueupAsIs, ContractNewParamsTransitionFutureInvoiceBehaviorTrueupRemove, ContractNewParamsTransitionFutureInvoiceBehaviorTrueupAsIs: + case ContractNewParamsTransitionFutureInvoiceBehaviorTrueupRemove, ContractNewParamsTransitionFutureInvoiceBehaviorTrueupAsIs: return true } return false @@ -3551,14 +3514,12 @@ type ContractNewParamsUsageStatementScheduleFrequency string const ( ContractNewParamsUsageStatementScheduleFrequencyMonthly ContractNewParamsUsageStatementScheduleFrequency = "MONTHLY" - ContractNewParamsUsageStatementScheduleFrequencyMonthly ContractNewParamsUsageStatementScheduleFrequency = "monthly" ContractNewParamsUsageStatementScheduleFrequencyQuarterly ContractNewParamsUsageStatementScheduleFrequency = "QUARTERLY" - ContractNewParamsUsageStatementScheduleFrequencyQuarterly ContractNewParamsUsageStatementScheduleFrequency = "quarterly" ) func (r ContractNewParamsUsageStatementScheduleFrequency) IsKnown() bool { switch r { - case ContractNewParamsUsageStatementScheduleFrequencyMonthly, ContractNewParamsUsageStatementScheduleFrequencyMonthly, ContractNewParamsUsageStatementScheduleFrequencyQuarterly, ContractNewParamsUsageStatementScheduleFrequencyQuarterly: + case ContractNewParamsUsageStatementScheduleFrequencyMonthly, ContractNewParamsUsageStatementScheduleFrequencyQuarterly: return true } return false @@ -3569,14 +3530,12 @@ type ContractNewParamsUsageStatementScheduleDay string const ( ContractNewParamsUsageStatementScheduleDayFirstOfMonth ContractNewParamsUsageStatementScheduleDay = "FIRST_OF_MONTH" - ContractNewParamsUsageStatementScheduleDayFirstOfMonth ContractNewParamsUsageStatementScheduleDay = "first_of_month" ContractNewParamsUsageStatementScheduleDayContractStart ContractNewParamsUsageStatementScheduleDay = "CONTRACT_START" - ContractNewParamsUsageStatementScheduleDayContractStart ContractNewParamsUsageStatementScheduleDay = "contract_start" ) func (r ContractNewParamsUsageStatementScheduleDay) IsKnown() bool { switch r { - case ContractNewParamsUsageStatementScheduleDayFirstOfMonth, ContractNewParamsUsageStatementScheduleDayFirstOfMonth, ContractNewParamsUsageStatementScheduleDayContractStart, ContractNewParamsUsageStatementScheduleDayContractStart: + case ContractNewParamsUsageStatementScheduleDayFirstOfMonth, ContractNewParamsUsageStatementScheduleDayContractStart: return true } return false @@ -3709,14 +3668,12 @@ type ContractAmendParamsCommitsType string const ( ContractAmendParamsCommitsTypePrepaid ContractAmendParamsCommitsType = "PREPAID" - ContractAmendParamsCommitsTypePrepaid ContractAmendParamsCommitsType = "prepaid" ContractAmendParamsCommitsTypePostpaid ContractAmendParamsCommitsType = "POSTPAID" - ContractAmendParamsCommitsTypePostpaid ContractAmendParamsCommitsType = "postpaid" ) func (r ContractAmendParamsCommitsType) IsKnown() bool { switch r { - case ContractAmendParamsCommitsTypePrepaid, ContractAmendParamsCommitsTypePrepaid, ContractAmendParamsCommitsTypePostpaid, ContractAmendParamsCommitsTypePostpaid: + case ContractAmendParamsCommitsTypePrepaid, ContractAmendParamsCommitsTypePostpaid: return true } return false @@ -3797,16 +3754,13 @@ type ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributio const ( ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "DIVIDED" - ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "divided" ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "DIVIDED_ROUNDED" - ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "divided_rounded" ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "EACH" - ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution = "each" ) func (r ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistribution) IsKnown() bool { switch r { - case ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach: + case ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleAmountDistributionEach: return true } return false @@ -3816,18 +3770,14 @@ type ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency string const ( ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "MONTHLY" - ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "monthly" ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "QUARTERLY" - ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "quarterly" ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "SEMI_ANNUAL" - ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "semi_annual" ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "ANNUAL" - ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency = "annual" ) func (r ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequency) IsKnown() bool { switch r { - case ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual: + case ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsCommitsInvoiceScheduleRecurringScheduleFrequencyAnnual: return true } return false @@ -3964,16 +3914,13 @@ type ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistribution str const ( ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistribution = "DIVIDED" - ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistribution = "divided" ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistribution = "DIVIDED_ROUNDED" - ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistribution = "divided_rounded" ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionEach ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistribution = "EACH" - ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionEach ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistribution = "each" ) func (r ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistribution) IsKnown() bool { switch r { - case ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionEach, ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionEach: + case ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsDiscountsScheduleRecurringScheduleAmountDistributionEach: return true } return false @@ -3983,18 +3930,14 @@ type ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency string const ( ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyMonthly ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency = "MONTHLY" - ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyMonthly ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency = "monthly" ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency = "QUARTERLY" - ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency = "quarterly" ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency = "SEMI_ANNUAL" - ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency = "semi_annual" ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyAnnual ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency = "ANNUAL" - ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyAnnual ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency = "annual" ) func (r ContractAmendParamsDiscountsScheduleRecurringScheduleFrequency) IsKnown() bool { switch r { - case ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyAnnual, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyAnnual: + case ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsDiscountsScheduleRecurringScheduleFrequencyAnnual: return true } return false @@ -4098,20 +4041,15 @@ type ContractAmendParamsOverridesOverwriteRateRateType string const ( ContractAmendParamsOverridesOverwriteRateRateTypeFlat ContractAmendParamsOverridesOverwriteRateRateType = "FLAT" - ContractAmendParamsOverridesOverwriteRateRateTypeFlat ContractAmendParamsOverridesOverwriteRateRateType = "flat" ContractAmendParamsOverridesOverwriteRateRateTypePercentage ContractAmendParamsOverridesOverwriteRateRateType = "PERCENTAGE" - ContractAmendParamsOverridesOverwriteRateRateTypePercentage ContractAmendParamsOverridesOverwriteRateRateType = "percentage" ContractAmendParamsOverridesOverwriteRateRateTypeSubscription ContractAmendParamsOverridesOverwriteRateRateType = "SUBSCRIPTION" - ContractAmendParamsOverridesOverwriteRateRateTypeSubscription ContractAmendParamsOverridesOverwriteRateRateType = "subscription" ContractAmendParamsOverridesOverwriteRateRateTypeTiered ContractAmendParamsOverridesOverwriteRateRateType = "TIERED" - ContractAmendParamsOverridesOverwriteRateRateTypeTiered ContractAmendParamsOverridesOverwriteRateRateType = "tiered" ContractAmendParamsOverridesOverwriteRateRateTypeCustom ContractAmendParamsOverridesOverwriteRateRateType = "CUSTOM" - ContractAmendParamsOverridesOverwriteRateRateTypeCustom ContractAmendParamsOverridesOverwriteRateRateType = "custom" ) func (r ContractAmendParamsOverridesOverwriteRateRateType) IsKnown() bool { switch r { - case ContractAmendParamsOverridesOverwriteRateRateTypeFlat, ContractAmendParamsOverridesOverwriteRateRateTypeFlat, ContractAmendParamsOverridesOverwriteRateRateTypePercentage, ContractAmendParamsOverridesOverwriteRateRateTypePercentage, ContractAmendParamsOverridesOverwriteRateRateTypeSubscription, ContractAmendParamsOverridesOverwriteRateRateTypeSubscription, ContractAmendParamsOverridesOverwriteRateRateTypeTiered, ContractAmendParamsOverridesOverwriteRateRateTypeTiered, ContractAmendParamsOverridesOverwriteRateRateTypeCustom, ContractAmendParamsOverridesOverwriteRateRateTypeCustom: + case ContractAmendParamsOverridesOverwriteRateRateTypeFlat, ContractAmendParamsOverridesOverwriteRateRateTypePercentage, ContractAmendParamsOverridesOverwriteRateRateTypeSubscription, ContractAmendParamsOverridesOverwriteRateRateTypeTiered, ContractAmendParamsOverridesOverwriteRateRateTypeCustom: return true } return false @@ -4140,16 +4078,13 @@ type ContractAmendParamsOverridesType string const ( ContractAmendParamsOverridesTypeOverwrite ContractAmendParamsOverridesType = "OVERWRITE" - ContractAmendParamsOverridesTypeOverwrite ContractAmendParamsOverridesType = "overwrite" ContractAmendParamsOverridesTypeMultiplier ContractAmendParamsOverridesType = "MULTIPLIER" - ContractAmendParamsOverridesTypeMultiplier ContractAmendParamsOverridesType = "multiplier" ContractAmendParamsOverridesTypeTiered ContractAmendParamsOverridesType = "TIERED" - ContractAmendParamsOverridesTypeTiered ContractAmendParamsOverridesType = "tiered" ) func (r ContractAmendParamsOverridesType) IsKnown() bool { switch r { - case ContractAmendParamsOverridesTypeOverwrite, ContractAmendParamsOverridesTypeOverwrite, ContractAmendParamsOverridesTypeMultiplier, ContractAmendParamsOverridesTypeMultiplier, ContractAmendParamsOverridesTypeTiered, ContractAmendParamsOverridesTypeTiered: + case ContractAmendParamsOverridesTypeOverwrite, ContractAmendParamsOverridesTypeMultiplier, ContractAmendParamsOverridesTypeTiered: return true } return false @@ -4293,16 +4228,13 @@ type ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistribut const ( ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "DIVIDED" - ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "divided" ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "DIVIDED_ROUNDED" - ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "divided_rounded" ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "EACH" - ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistribution = "each" ) func (r ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistribution) IsKnown() bool { switch r { - case ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach, ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach: + case ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDivided, ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionDividedRounded, ContractAmendParamsScheduledChargesScheduleRecurringScheduleAmountDistributionEach: return true } return false @@ -4312,18 +4244,14 @@ type ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency strin const ( ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency = "MONTHLY" - ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency = "monthly" ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency = "QUARTERLY" - ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency = "quarterly" ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency = "SEMI_ANNUAL" - ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency = "semi_annual" ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency = "ANNUAL" - ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency = "annual" ) func (r ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequency) IsKnown() bool { switch r { - case ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual: + case ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyMonthly, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyQuarterly, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencySemiAnnual, ContractAmendParamsScheduledChargesScheduleRecurringScheduleFrequencyAnnual: return true } return false diff --git a/contractproduct.go b/contractproduct.go index f161581..783441c 100755 --- a/contractproduct.go +++ b/contractproduct.go @@ -274,15 +274,13 @@ func (r contractProductGetResponseDataCurrentQuantityConversionJSON) RawJSON() s type ContractProductGetResponseDataCurrentQuantityConversionOperation string const ( - ContractProductGetResponseDataCurrentQuantityConversionOperationMultiply ContractProductGetResponseDataCurrentQuantityConversionOperation = "multiply" - ContractProductGetResponseDataCurrentQuantityConversionOperationDivide ContractProductGetResponseDataCurrentQuantityConversionOperation = "divide" ContractProductGetResponseDataCurrentQuantityConversionOperationMultiply ContractProductGetResponseDataCurrentQuantityConversionOperation = "MULTIPLY" ContractProductGetResponseDataCurrentQuantityConversionOperationDivide ContractProductGetResponseDataCurrentQuantityConversionOperation = "DIVIDE" ) func (r ContractProductGetResponseDataCurrentQuantityConversionOperation) IsKnown() bool { switch r { - case ContractProductGetResponseDataCurrentQuantityConversionOperationMultiply, ContractProductGetResponseDataCurrentQuantityConversionOperationDivide, ContractProductGetResponseDataCurrentQuantityConversionOperationMultiply, ContractProductGetResponseDataCurrentQuantityConversionOperationDivide: + case ContractProductGetResponseDataCurrentQuantityConversionOperationMultiply, ContractProductGetResponseDataCurrentQuantityConversionOperationDivide: return true } return false @@ -318,9 +316,6 @@ func (r contractProductGetResponseDataCurrentQuantityRoundingJSON) RawJSON() str type ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethod string const ( - ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundUp ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethod = "round_up" - ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundDown ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethod = "round_down" - ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundHalfUp ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethod = "round_half_up" ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundUp ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethod = "ROUND_UP" ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundDown ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethod = "ROUND_DOWN" ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundHalfUp ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethod = "ROUND_HALF_UP" @@ -328,7 +323,7 @@ const ( func (r ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethod) IsKnown() bool { switch r { - case ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundHalfUp, ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundHalfUp: + case ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataCurrentQuantityRoundingRoundingMethodRoundHalfUp: return true } return false @@ -442,15 +437,13 @@ func (r contractProductGetResponseDataInitialQuantityConversionJSON) RawJSON() s type ContractProductGetResponseDataInitialQuantityConversionOperation string const ( - ContractProductGetResponseDataInitialQuantityConversionOperationMultiply ContractProductGetResponseDataInitialQuantityConversionOperation = "multiply" - ContractProductGetResponseDataInitialQuantityConversionOperationDivide ContractProductGetResponseDataInitialQuantityConversionOperation = "divide" ContractProductGetResponseDataInitialQuantityConversionOperationMultiply ContractProductGetResponseDataInitialQuantityConversionOperation = "MULTIPLY" ContractProductGetResponseDataInitialQuantityConversionOperationDivide ContractProductGetResponseDataInitialQuantityConversionOperation = "DIVIDE" ) func (r ContractProductGetResponseDataInitialQuantityConversionOperation) IsKnown() bool { switch r { - case ContractProductGetResponseDataInitialQuantityConversionOperationMultiply, ContractProductGetResponseDataInitialQuantityConversionOperationDivide, ContractProductGetResponseDataInitialQuantityConversionOperationMultiply, ContractProductGetResponseDataInitialQuantityConversionOperationDivide: + case ContractProductGetResponseDataInitialQuantityConversionOperationMultiply, ContractProductGetResponseDataInitialQuantityConversionOperationDivide: return true } return false @@ -486,9 +479,6 @@ func (r contractProductGetResponseDataInitialQuantityRoundingJSON) RawJSON() str type ContractProductGetResponseDataInitialQuantityRoundingRoundingMethod string const ( - ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundUp ContractProductGetResponseDataInitialQuantityRoundingRoundingMethod = "round_up" - ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundDown ContractProductGetResponseDataInitialQuantityRoundingRoundingMethod = "round_down" - ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundHalfUp ContractProductGetResponseDataInitialQuantityRoundingRoundingMethod = "round_half_up" ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundUp ContractProductGetResponseDataInitialQuantityRoundingRoundingMethod = "ROUND_UP" ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundDown ContractProductGetResponseDataInitialQuantityRoundingRoundingMethod = "ROUND_DOWN" ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundHalfUp ContractProductGetResponseDataInitialQuantityRoundingRoundingMethod = "ROUND_HALF_UP" @@ -496,7 +486,7 @@ const ( func (r ContractProductGetResponseDataInitialQuantityRoundingRoundingMethod) IsKnown() bool { switch r { - case ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundHalfUp, ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundHalfUp: + case ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataInitialQuantityRoundingRoundingMethodRoundHalfUp: return true } return false @@ -627,15 +617,13 @@ func (r contractProductGetResponseDataUpdatesQuantityConversionJSON) RawJSON() s type ContractProductGetResponseDataUpdatesQuantityConversionOperation string const ( - ContractProductGetResponseDataUpdatesQuantityConversionOperationMultiply ContractProductGetResponseDataUpdatesQuantityConversionOperation = "multiply" - ContractProductGetResponseDataUpdatesQuantityConversionOperationDivide ContractProductGetResponseDataUpdatesQuantityConversionOperation = "divide" ContractProductGetResponseDataUpdatesQuantityConversionOperationMultiply ContractProductGetResponseDataUpdatesQuantityConversionOperation = "MULTIPLY" ContractProductGetResponseDataUpdatesQuantityConversionOperationDivide ContractProductGetResponseDataUpdatesQuantityConversionOperation = "DIVIDE" ) func (r ContractProductGetResponseDataUpdatesQuantityConversionOperation) IsKnown() bool { switch r { - case ContractProductGetResponseDataUpdatesQuantityConversionOperationMultiply, ContractProductGetResponseDataUpdatesQuantityConversionOperationDivide, ContractProductGetResponseDataUpdatesQuantityConversionOperationMultiply, ContractProductGetResponseDataUpdatesQuantityConversionOperationDivide: + case ContractProductGetResponseDataUpdatesQuantityConversionOperationMultiply, ContractProductGetResponseDataUpdatesQuantityConversionOperationDivide: return true } return false @@ -671,9 +659,6 @@ func (r contractProductGetResponseDataUpdatesQuantityRoundingJSON) RawJSON() str type ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethod string const ( - ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundUp ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethod = "round_up" - ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundDown ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethod = "round_down" - ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundHalfUp ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethod = "round_half_up" ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundUp ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethod = "ROUND_UP" ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundDown ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethod = "ROUND_DOWN" ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundHalfUp ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethod = "ROUND_HALF_UP" @@ -681,7 +666,7 @@ const ( func (r ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethod) IsKnown() bool { switch r { - case ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundHalfUp, ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundHalfUp: + case ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundUp, ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundDown, ContractProductGetResponseDataUpdatesQuantityRoundingRoundingMethodRoundHalfUp: return true } return false @@ -848,15 +833,13 @@ func (r contractProductListResponseCurrentQuantityConversionJSON) RawJSON() stri type ContractProductListResponseCurrentQuantityConversionOperation string const ( - ContractProductListResponseCurrentQuantityConversionOperationMultiply ContractProductListResponseCurrentQuantityConversionOperation = "multiply" - ContractProductListResponseCurrentQuantityConversionOperationDivide ContractProductListResponseCurrentQuantityConversionOperation = "divide" ContractProductListResponseCurrentQuantityConversionOperationMultiply ContractProductListResponseCurrentQuantityConversionOperation = "MULTIPLY" ContractProductListResponseCurrentQuantityConversionOperationDivide ContractProductListResponseCurrentQuantityConversionOperation = "DIVIDE" ) func (r ContractProductListResponseCurrentQuantityConversionOperation) IsKnown() bool { switch r { - case ContractProductListResponseCurrentQuantityConversionOperationMultiply, ContractProductListResponseCurrentQuantityConversionOperationDivide, ContractProductListResponseCurrentQuantityConversionOperationMultiply, ContractProductListResponseCurrentQuantityConversionOperationDivide: + case ContractProductListResponseCurrentQuantityConversionOperationMultiply, ContractProductListResponseCurrentQuantityConversionOperationDivide: return true } return false @@ -892,9 +875,6 @@ func (r contractProductListResponseCurrentQuantityRoundingJSON) RawJSON() string type ContractProductListResponseCurrentQuantityRoundingRoundingMethod string const ( - ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundUp ContractProductListResponseCurrentQuantityRoundingRoundingMethod = "round_up" - ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundDown ContractProductListResponseCurrentQuantityRoundingRoundingMethod = "round_down" - ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundHalfUp ContractProductListResponseCurrentQuantityRoundingRoundingMethod = "round_half_up" ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundUp ContractProductListResponseCurrentQuantityRoundingRoundingMethod = "ROUND_UP" ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundDown ContractProductListResponseCurrentQuantityRoundingRoundingMethod = "ROUND_DOWN" ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundHalfUp ContractProductListResponseCurrentQuantityRoundingRoundingMethod = "ROUND_HALF_UP" @@ -902,7 +882,7 @@ const ( func (r ContractProductListResponseCurrentQuantityRoundingRoundingMethod) IsKnown() bool { switch r { - case ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundHalfUp, ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundHalfUp: + case ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseCurrentQuantityRoundingRoundingMethodRoundHalfUp: return true } return false @@ -1015,15 +995,13 @@ func (r contractProductListResponseInitialQuantityConversionJSON) RawJSON() stri type ContractProductListResponseInitialQuantityConversionOperation string const ( - ContractProductListResponseInitialQuantityConversionOperationMultiply ContractProductListResponseInitialQuantityConversionOperation = "multiply" - ContractProductListResponseInitialQuantityConversionOperationDivide ContractProductListResponseInitialQuantityConversionOperation = "divide" ContractProductListResponseInitialQuantityConversionOperationMultiply ContractProductListResponseInitialQuantityConversionOperation = "MULTIPLY" ContractProductListResponseInitialQuantityConversionOperationDivide ContractProductListResponseInitialQuantityConversionOperation = "DIVIDE" ) func (r ContractProductListResponseInitialQuantityConversionOperation) IsKnown() bool { switch r { - case ContractProductListResponseInitialQuantityConversionOperationMultiply, ContractProductListResponseInitialQuantityConversionOperationDivide, ContractProductListResponseInitialQuantityConversionOperationMultiply, ContractProductListResponseInitialQuantityConversionOperationDivide: + case ContractProductListResponseInitialQuantityConversionOperationMultiply, ContractProductListResponseInitialQuantityConversionOperationDivide: return true } return false @@ -1059,9 +1037,6 @@ func (r contractProductListResponseInitialQuantityRoundingJSON) RawJSON() string type ContractProductListResponseInitialQuantityRoundingRoundingMethod string const ( - ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundUp ContractProductListResponseInitialQuantityRoundingRoundingMethod = "round_up" - ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundDown ContractProductListResponseInitialQuantityRoundingRoundingMethod = "round_down" - ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundHalfUp ContractProductListResponseInitialQuantityRoundingRoundingMethod = "round_half_up" ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundUp ContractProductListResponseInitialQuantityRoundingRoundingMethod = "ROUND_UP" ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundDown ContractProductListResponseInitialQuantityRoundingRoundingMethod = "ROUND_DOWN" ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundHalfUp ContractProductListResponseInitialQuantityRoundingRoundingMethod = "ROUND_HALF_UP" @@ -1069,7 +1044,7 @@ const ( func (r ContractProductListResponseInitialQuantityRoundingRoundingMethod) IsKnown() bool { switch r { - case ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundHalfUp, ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundHalfUp: + case ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseInitialQuantityRoundingRoundingMethodRoundHalfUp: return true } return false @@ -1199,15 +1174,13 @@ func (r contractProductListResponseUpdatesQuantityConversionJSON) RawJSON() stri type ContractProductListResponseUpdatesQuantityConversionOperation string const ( - ContractProductListResponseUpdatesQuantityConversionOperationMultiply ContractProductListResponseUpdatesQuantityConversionOperation = "multiply" - ContractProductListResponseUpdatesQuantityConversionOperationDivide ContractProductListResponseUpdatesQuantityConversionOperation = "divide" ContractProductListResponseUpdatesQuantityConversionOperationMultiply ContractProductListResponseUpdatesQuantityConversionOperation = "MULTIPLY" ContractProductListResponseUpdatesQuantityConversionOperationDivide ContractProductListResponseUpdatesQuantityConversionOperation = "DIVIDE" ) func (r ContractProductListResponseUpdatesQuantityConversionOperation) IsKnown() bool { switch r { - case ContractProductListResponseUpdatesQuantityConversionOperationMultiply, ContractProductListResponseUpdatesQuantityConversionOperationDivide, ContractProductListResponseUpdatesQuantityConversionOperationMultiply, ContractProductListResponseUpdatesQuantityConversionOperationDivide: + case ContractProductListResponseUpdatesQuantityConversionOperationMultiply, ContractProductListResponseUpdatesQuantityConversionOperationDivide: return true } return false @@ -1243,9 +1216,6 @@ func (r contractProductListResponseUpdatesQuantityRoundingJSON) RawJSON() string type ContractProductListResponseUpdatesQuantityRoundingRoundingMethod string const ( - ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundUp ContractProductListResponseUpdatesQuantityRoundingRoundingMethod = "round_up" - ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundDown ContractProductListResponseUpdatesQuantityRoundingRoundingMethod = "round_down" - ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundHalfUp ContractProductListResponseUpdatesQuantityRoundingRoundingMethod = "round_half_up" ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundUp ContractProductListResponseUpdatesQuantityRoundingRoundingMethod = "ROUND_UP" ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundDown ContractProductListResponseUpdatesQuantityRoundingRoundingMethod = "ROUND_DOWN" ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundHalfUp ContractProductListResponseUpdatesQuantityRoundingRoundingMethod = "ROUND_HALF_UP" @@ -1253,7 +1223,7 @@ const ( func (r ContractProductListResponseUpdatesQuantityRoundingRoundingMethod) IsKnown() bool { switch r { - case ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundHalfUp, ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundHalfUp: + case ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundUp, ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundDown, ContractProductListResponseUpdatesQuantityRoundingRoundingMethodRoundHalfUp: return true } return false @@ -1329,22 +1299,16 @@ type ContractProductNewParamsType string const ( ContractProductNewParamsTypeFixed ContractProductNewParamsType = "FIXED" - ContractProductNewParamsTypeFixed ContractProductNewParamsType = "fixed" ContractProductNewParamsTypeUsage ContractProductNewParamsType = "USAGE" - ContractProductNewParamsTypeUsage ContractProductNewParamsType = "usage" ContractProductNewParamsTypeComposite ContractProductNewParamsType = "COMPOSITE" - ContractProductNewParamsTypeComposite ContractProductNewParamsType = "composite" ContractProductNewParamsTypeSubscription ContractProductNewParamsType = "SUBSCRIPTION" - ContractProductNewParamsTypeSubscription ContractProductNewParamsType = "subscription" ContractProductNewParamsTypeProfessionalService ContractProductNewParamsType = "PROFESSIONAL_SERVICE" - ContractProductNewParamsTypeProfessionalService ContractProductNewParamsType = "professional_service" ContractProductNewParamsTypeProService ContractProductNewParamsType = "PRO_SERVICE" - ContractProductNewParamsTypeProService ContractProductNewParamsType = "pro_service" ) func (r ContractProductNewParamsType) IsKnown() bool { switch r { - case ContractProductNewParamsTypeFixed, ContractProductNewParamsTypeFixed, ContractProductNewParamsTypeUsage, ContractProductNewParamsTypeUsage, ContractProductNewParamsTypeComposite, ContractProductNewParamsTypeComposite, ContractProductNewParamsTypeSubscription, ContractProductNewParamsTypeSubscription, ContractProductNewParamsTypeProfessionalService, ContractProductNewParamsTypeProfessionalService, ContractProductNewParamsTypeProService, ContractProductNewParamsTypeProService: + case ContractProductNewParamsTypeFixed, ContractProductNewParamsTypeUsage, ContractProductNewParamsTypeComposite, ContractProductNewParamsTypeSubscription, ContractProductNewParamsTypeProfessionalService, ContractProductNewParamsTypeProService: return true } return false @@ -1374,15 +1338,13 @@ func (r ContractProductNewParamsQuantityConversion) MarshalJSON() (data []byte, type ContractProductNewParamsQuantityConversionOperation string const ( - ContractProductNewParamsQuantityConversionOperationMultiply ContractProductNewParamsQuantityConversionOperation = "multiply" - ContractProductNewParamsQuantityConversionOperationDivide ContractProductNewParamsQuantityConversionOperation = "divide" ContractProductNewParamsQuantityConversionOperationMultiply ContractProductNewParamsQuantityConversionOperation = "MULTIPLY" ContractProductNewParamsQuantityConversionOperationDivide ContractProductNewParamsQuantityConversionOperation = "DIVIDE" ) func (r ContractProductNewParamsQuantityConversionOperation) IsKnown() bool { switch r { - case ContractProductNewParamsQuantityConversionOperationMultiply, ContractProductNewParamsQuantityConversionOperationDivide, ContractProductNewParamsQuantityConversionOperationMultiply, ContractProductNewParamsQuantityConversionOperationDivide: + case ContractProductNewParamsQuantityConversionOperationMultiply, ContractProductNewParamsQuantityConversionOperationDivide: return true } return false @@ -1404,9 +1366,6 @@ func (r ContractProductNewParamsQuantityRounding) MarshalJSON() (data []byte, er type ContractProductNewParamsQuantityRoundingRoundingMethod string const ( - ContractProductNewParamsQuantityRoundingRoundingMethodRoundUp ContractProductNewParamsQuantityRoundingRoundingMethod = "round_up" - ContractProductNewParamsQuantityRoundingRoundingMethodRoundDown ContractProductNewParamsQuantityRoundingRoundingMethod = "round_down" - ContractProductNewParamsQuantityRoundingRoundingMethodRoundHalfUp ContractProductNewParamsQuantityRoundingRoundingMethod = "round_half_up" ContractProductNewParamsQuantityRoundingRoundingMethodRoundUp ContractProductNewParamsQuantityRoundingRoundingMethod = "ROUND_UP" ContractProductNewParamsQuantityRoundingRoundingMethodRoundDown ContractProductNewParamsQuantityRoundingRoundingMethod = "ROUND_DOWN" ContractProductNewParamsQuantityRoundingRoundingMethodRoundHalfUp ContractProductNewParamsQuantityRoundingRoundingMethod = "ROUND_HALF_UP" @@ -1414,7 +1373,7 @@ const ( func (r ContractProductNewParamsQuantityRoundingRoundingMethod) IsKnown() bool { switch r { - case ContractProductNewParamsQuantityRoundingRoundingMethodRoundUp, ContractProductNewParamsQuantityRoundingRoundingMethodRoundDown, ContractProductNewParamsQuantityRoundingRoundingMethodRoundHalfUp, ContractProductNewParamsQuantityRoundingRoundingMethodRoundUp, ContractProductNewParamsQuantityRoundingRoundingMethodRoundDown, ContractProductNewParamsQuantityRoundingRoundingMethodRoundHalfUp: + case ContractProductNewParamsQuantityRoundingRoundingMethodRoundUp, ContractProductNewParamsQuantityRoundingRoundingMethodRoundDown, ContractProductNewParamsQuantityRoundingRoundingMethodRoundHalfUp: return true } return false @@ -1508,15 +1467,13 @@ func (r ContractProductUpdateParamsQuantityConversion) MarshalJSON() (data []byt type ContractProductUpdateParamsQuantityConversionOperation string const ( - ContractProductUpdateParamsQuantityConversionOperationMultiply ContractProductUpdateParamsQuantityConversionOperation = "multiply" - ContractProductUpdateParamsQuantityConversionOperationDivide ContractProductUpdateParamsQuantityConversionOperation = "divide" ContractProductUpdateParamsQuantityConversionOperationMultiply ContractProductUpdateParamsQuantityConversionOperation = "MULTIPLY" ContractProductUpdateParamsQuantityConversionOperationDivide ContractProductUpdateParamsQuantityConversionOperation = "DIVIDE" ) func (r ContractProductUpdateParamsQuantityConversionOperation) IsKnown() bool { switch r { - case ContractProductUpdateParamsQuantityConversionOperationMultiply, ContractProductUpdateParamsQuantityConversionOperationDivide, ContractProductUpdateParamsQuantityConversionOperationMultiply, ContractProductUpdateParamsQuantityConversionOperationDivide: + case ContractProductUpdateParamsQuantityConversionOperationMultiply, ContractProductUpdateParamsQuantityConversionOperationDivide: return true } return false @@ -1538,9 +1495,6 @@ func (r ContractProductUpdateParamsQuantityRounding) MarshalJSON() (data []byte, type ContractProductUpdateParamsQuantityRoundingRoundingMethod string const ( - ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundUp ContractProductUpdateParamsQuantityRoundingRoundingMethod = "round_up" - ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundDown ContractProductUpdateParamsQuantityRoundingRoundingMethod = "round_down" - ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundHalfUp ContractProductUpdateParamsQuantityRoundingRoundingMethod = "round_half_up" ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundUp ContractProductUpdateParamsQuantityRoundingRoundingMethod = "ROUND_UP" ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundDown ContractProductUpdateParamsQuantityRoundingRoundingMethod = "ROUND_DOWN" ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundHalfUp ContractProductUpdateParamsQuantityRoundingRoundingMethod = "ROUND_HALF_UP" @@ -1548,7 +1502,7 @@ const ( func (r ContractProductUpdateParamsQuantityRoundingRoundingMethod) IsKnown() bool { switch r { - case ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundUp, ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundDown, ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundHalfUp, ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundUp, ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundDown, ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundHalfUp: + case ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundUp, ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundDown, ContractProductUpdateParamsQuantityRoundingRoundingMethodRoundHalfUp: return true } return false diff --git a/contractratecardrate.go b/contractratecardrate.go index 159dc39..c90ad67 100755 --- a/contractratecardrate.go +++ b/contractratecardrate.go @@ -243,20 +243,15 @@ type ContractRateCardRateAddParamsRateType string const ( ContractRateCardRateAddParamsRateTypeFlat ContractRateCardRateAddParamsRateType = "FLAT" - ContractRateCardRateAddParamsRateTypeFlat ContractRateCardRateAddParamsRateType = "flat" ContractRateCardRateAddParamsRateTypePercentage ContractRateCardRateAddParamsRateType = "PERCENTAGE" - ContractRateCardRateAddParamsRateTypePercentage ContractRateCardRateAddParamsRateType = "percentage" ContractRateCardRateAddParamsRateTypeSubscription ContractRateCardRateAddParamsRateType = "SUBSCRIPTION" - ContractRateCardRateAddParamsRateTypeSubscription ContractRateCardRateAddParamsRateType = "subscription" ContractRateCardRateAddParamsRateTypeTiered ContractRateCardRateAddParamsRateType = "TIERED" - ContractRateCardRateAddParamsRateTypeTiered ContractRateCardRateAddParamsRateType = "tiered" ContractRateCardRateAddParamsRateTypeCustom ContractRateCardRateAddParamsRateType = "CUSTOM" - ContractRateCardRateAddParamsRateTypeCustom ContractRateCardRateAddParamsRateType = "custom" ) func (r ContractRateCardRateAddParamsRateType) IsKnown() bool { switch r { - case ContractRateCardRateAddParamsRateTypeFlat, ContractRateCardRateAddParamsRateTypeFlat, ContractRateCardRateAddParamsRateTypePercentage, ContractRateCardRateAddParamsRateTypePercentage, ContractRateCardRateAddParamsRateTypeSubscription, ContractRateCardRateAddParamsRateTypeSubscription, ContractRateCardRateAddParamsRateTypeTiered, ContractRateCardRateAddParamsRateTypeTiered, ContractRateCardRateAddParamsRateTypeCustom, ContractRateCardRateAddParamsRateTypeCustom: + case ContractRateCardRateAddParamsRateTypeFlat, ContractRateCardRateAddParamsRateTypePercentage, ContractRateCardRateAddParamsRateTypeSubscription, ContractRateCardRateAddParamsRateTypeTiered, ContractRateCardRateAddParamsRateTypeCustom: return true } return false @@ -323,20 +318,15 @@ type ContractRateCardRateAddManyParamsRatesRateType string const ( ContractRateCardRateAddManyParamsRatesRateTypeFlat ContractRateCardRateAddManyParamsRatesRateType = "FLAT" - ContractRateCardRateAddManyParamsRatesRateTypeFlat ContractRateCardRateAddManyParamsRatesRateType = "flat" ContractRateCardRateAddManyParamsRatesRateTypePercentage ContractRateCardRateAddManyParamsRatesRateType = "PERCENTAGE" - ContractRateCardRateAddManyParamsRatesRateTypePercentage ContractRateCardRateAddManyParamsRatesRateType = "percentage" ContractRateCardRateAddManyParamsRatesRateTypeSubscription ContractRateCardRateAddManyParamsRatesRateType = "SUBSCRIPTION" - ContractRateCardRateAddManyParamsRatesRateTypeSubscription ContractRateCardRateAddManyParamsRatesRateType = "subscription" ContractRateCardRateAddManyParamsRatesRateTypeTiered ContractRateCardRateAddManyParamsRatesRateType = "TIERED" - ContractRateCardRateAddManyParamsRatesRateTypeTiered ContractRateCardRateAddManyParamsRatesRateType = "tiered" ContractRateCardRateAddManyParamsRatesRateTypeCustom ContractRateCardRateAddManyParamsRatesRateType = "CUSTOM" - ContractRateCardRateAddManyParamsRatesRateTypeCustom ContractRateCardRateAddManyParamsRatesRateType = "custom" ) func (r ContractRateCardRateAddManyParamsRatesRateType) IsKnown() bool { switch r { - case ContractRateCardRateAddManyParamsRatesRateTypeFlat, ContractRateCardRateAddManyParamsRatesRateTypeFlat, ContractRateCardRateAddManyParamsRatesRateTypePercentage, ContractRateCardRateAddManyParamsRatesRateTypePercentage, ContractRateCardRateAddManyParamsRatesRateTypeSubscription, ContractRateCardRateAddManyParamsRatesRateTypeSubscription, ContractRateCardRateAddManyParamsRatesRateTypeTiered, ContractRateCardRateAddManyParamsRatesRateTypeTiered, ContractRateCardRateAddManyParamsRatesRateTypeCustom, ContractRateCardRateAddManyParamsRatesRateTypeCustom: + case ContractRateCardRateAddManyParamsRatesRateTypeFlat, ContractRateCardRateAddManyParamsRatesRateTypePercentage, ContractRateCardRateAddManyParamsRatesRateTypeSubscription, ContractRateCardRateAddManyParamsRatesRateTypeTiered, ContractRateCardRateAddManyParamsRatesRateTypeCustom: return true } return false diff --git a/creditgrant.go b/creditgrant.go index 6d8ba19..3b37980 100755 --- a/creditgrant.go +++ b/creditgrant.go @@ -99,8 +99,8 @@ func (r *CreditGrantService) ListCreditTypesAutoPaging(ctx context.Context, quer } // Fetches a list of credit ledger entries. Returns lists of ledgers per customer. -// Ledger entries are returned in reverse chronological order. Ledger entries -// associated with voided credit grants are not included. +// Ledger entries are returned in chronological order. Ledger entries associated +// with voided credit grants are not included. func (r *CreditGrantService) ListEntries(ctx context.Context, params CreditGrantListEntriesParams, opts ...option.RequestOption) (res *CreditGrantListEntriesResponse, err error) { opts = append(r.Options[:], opts...) path := "credits/listEntries" diff --git a/customer.go b/customer.go index d497bbc..ff439be 100755 --- a/customer.go +++ b/customer.go @@ -460,26 +460,16 @@ func (r customerListBillableMetricsResponseJSON) RawJSON() string { type CustomerListBillableMetricsResponseAggregationType string const ( - CustomerListBillableMetricsResponseAggregationTypeCount CustomerListBillableMetricsResponseAggregationType = "count" - CustomerListBillableMetricsResponseAggregationTypeCount CustomerListBillableMetricsResponseAggregationType = "Count" CustomerListBillableMetricsResponseAggregationTypeCount CustomerListBillableMetricsResponseAggregationType = "COUNT" - CustomerListBillableMetricsResponseAggregationTypeLatest CustomerListBillableMetricsResponseAggregationType = "latest" - CustomerListBillableMetricsResponseAggregationTypeLatest CustomerListBillableMetricsResponseAggregationType = "Latest" CustomerListBillableMetricsResponseAggregationTypeLatest CustomerListBillableMetricsResponseAggregationType = "LATEST" - CustomerListBillableMetricsResponseAggregationTypeMax CustomerListBillableMetricsResponseAggregationType = "max" - CustomerListBillableMetricsResponseAggregationTypeMax CustomerListBillableMetricsResponseAggregationType = "Max" CustomerListBillableMetricsResponseAggregationTypeMax CustomerListBillableMetricsResponseAggregationType = "MAX" - CustomerListBillableMetricsResponseAggregationTypeSum CustomerListBillableMetricsResponseAggregationType = "sum" - CustomerListBillableMetricsResponseAggregationTypeSum CustomerListBillableMetricsResponseAggregationType = "Sum" CustomerListBillableMetricsResponseAggregationTypeSum CustomerListBillableMetricsResponseAggregationType = "SUM" - CustomerListBillableMetricsResponseAggregationTypeUnique CustomerListBillableMetricsResponseAggregationType = "unique" - CustomerListBillableMetricsResponseAggregationTypeUnique CustomerListBillableMetricsResponseAggregationType = "Unique" CustomerListBillableMetricsResponseAggregationTypeUnique CustomerListBillableMetricsResponseAggregationType = "UNIQUE" ) func (r CustomerListBillableMetricsResponseAggregationType) IsKnown() bool { switch r { - case CustomerListBillableMetricsResponseAggregationTypeCount, CustomerListBillableMetricsResponseAggregationTypeCount, CustomerListBillableMetricsResponseAggregationTypeCount, CustomerListBillableMetricsResponseAggregationTypeLatest, CustomerListBillableMetricsResponseAggregationTypeLatest, CustomerListBillableMetricsResponseAggregationTypeLatest, CustomerListBillableMetricsResponseAggregationTypeMax, CustomerListBillableMetricsResponseAggregationTypeMax, CustomerListBillableMetricsResponseAggregationTypeMax, CustomerListBillableMetricsResponseAggregationTypeSum, CustomerListBillableMetricsResponseAggregationTypeSum, CustomerListBillableMetricsResponseAggregationTypeSum, CustomerListBillableMetricsResponseAggregationTypeUnique, CustomerListBillableMetricsResponseAggregationTypeUnique, CustomerListBillableMetricsResponseAggregationTypeUnique: + case CustomerListBillableMetricsResponseAggregationTypeCount, CustomerListBillableMetricsResponseAggregationTypeLatest, CustomerListBillableMetricsResponseAggregationTypeMax, CustomerListBillableMetricsResponseAggregationTypeSum, CustomerListBillableMetricsResponseAggregationTypeUnique: return true } return false diff --git a/customeralert.go b/customeralert.go index 06f41cb..1c3ffaa 100755 --- a/customeralert.go +++ b/customeralert.go @@ -358,20 +358,14 @@ func (r CustomerAlertListParams) URLQuery() (v url.Values) { type CustomerAlertListParamsAlertStatus string const ( - CustomerAlertListParamsAlertStatusEnabled CustomerAlertListParamsAlertStatus = "enabled" - CustomerAlertListParamsAlertStatusDisabled CustomerAlertListParamsAlertStatus = "disabled" - CustomerAlertListParamsAlertStatusArchived CustomerAlertListParamsAlertStatus = "archived" CustomerAlertListParamsAlertStatusEnabled CustomerAlertListParamsAlertStatus = "ENABLED" CustomerAlertListParamsAlertStatusDisabled CustomerAlertListParamsAlertStatus = "DISABLED" CustomerAlertListParamsAlertStatusArchived CustomerAlertListParamsAlertStatus = "ARCHIVED" - CustomerAlertListParamsAlertStatusEnabled CustomerAlertListParamsAlertStatus = "Enabled" - CustomerAlertListParamsAlertStatusDisabled CustomerAlertListParamsAlertStatus = "Disabled" - CustomerAlertListParamsAlertStatusArchived CustomerAlertListParamsAlertStatus = "Archived" ) func (r CustomerAlertListParamsAlertStatus) IsKnown() bool { switch r { - case CustomerAlertListParamsAlertStatusEnabled, CustomerAlertListParamsAlertStatusDisabled, CustomerAlertListParamsAlertStatusArchived, CustomerAlertListParamsAlertStatusEnabled, CustomerAlertListParamsAlertStatusDisabled, CustomerAlertListParamsAlertStatusArchived, CustomerAlertListParamsAlertStatusEnabled, CustomerAlertListParamsAlertStatusDisabled, CustomerAlertListParamsAlertStatusArchived: + case CustomerAlertListParamsAlertStatusEnabled, CustomerAlertListParamsAlertStatusDisabled, CustomerAlertListParamsAlertStatusArchived: return true } return false diff --git a/customercommit.go b/customercommit.go index cf86863..17465b0 100755 --- a/customercommit.go +++ b/customercommit.go @@ -192,14 +192,12 @@ type CustomerCommitNewParamsType string const ( CustomerCommitNewParamsTypePrepaid CustomerCommitNewParamsType = "PREPAID" - CustomerCommitNewParamsTypePrepaid CustomerCommitNewParamsType = "prepaid" CustomerCommitNewParamsTypePostpaid CustomerCommitNewParamsType = "POSTPAID" - CustomerCommitNewParamsTypePostpaid CustomerCommitNewParamsType = "postpaid" ) func (r CustomerCommitNewParamsType) IsKnown() bool { switch r { - case CustomerCommitNewParamsTypePrepaid, CustomerCommitNewParamsTypePrepaid, CustomerCommitNewParamsTypePostpaid, CustomerCommitNewParamsTypePostpaid: + case CustomerCommitNewParamsTypePrepaid, CustomerCommitNewParamsTypePostpaid: return true } return false @@ -256,16 +254,13 @@ type CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistribution s const ( CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDivided CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistribution = "DIVIDED" - CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDivided CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistribution = "divided" CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistribution = "DIVIDED_ROUNDED" - CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistribution = "divided_rounded" CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionEach CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistribution = "EACH" - CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionEach CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistribution = "each" ) func (r CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistribution) IsKnown() bool { switch r { - case CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDivided, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDivided, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionEach, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionEach: + case CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDivided, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionDividedRounded, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleAmountDistributionEach: return true } return false @@ -275,18 +270,14 @@ type CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency string const ( CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyMonthly CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency = "MONTHLY" - CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyMonthly CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency = "monthly" CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyQuarterly CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency = "QUARTERLY" - CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyQuarterly CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency = "quarterly" CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencySemiAnnual CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency = "SEMI_ANNUAL" - CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencySemiAnnual CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency = "semi_annual" CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyAnnual CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency = "ANNUAL" - CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyAnnual CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency = "annual" ) func (r CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequency) IsKnown() bool { switch r { - case CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyMonthly, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyMonthly, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyQuarterly, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyQuarterly, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyAnnual, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyAnnual: + case CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyMonthly, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyQuarterly, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencySemiAnnual, CustomerCommitNewParamsInvoiceScheduleRecurringScheduleFrequencyAnnual: return true } return false diff --git a/shared/shared.go b/shared/shared.go index c0ebd83..d6cb521 100755 --- a/shared/shared.go +++ b/shared/shared.go @@ -1098,14 +1098,12 @@ type ContractWithoutAmendmentsUsageStatementScheduleFrequency string const ( ContractWithoutAmendmentsUsageStatementScheduleFrequencyMonthly ContractWithoutAmendmentsUsageStatementScheduleFrequency = "MONTHLY" - ContractWithoutAmendmentsUsageStatementScheduleFrequencyMonthly ContractWithoutAmendmentsUsageStatementScheduleFrequency = "monthly" ContractWithoutAmendmentsUsageStatementScheduleFrequencyQuarterly ContractWithoutAmendmentsUsageStatementScheduleFrequency = "QUARTERLY" - ContractWithoutAmendmentsUsageStatementScheduleFrequencyQuarterly ContractWithoutAmendmentsUsageStatementScheduleFrequency = "quarterly" ) func (r ContractWithoutAmendmentsUsageStatementScheduleFrequency) IsKnown() bool { switch r { - case ContractWithoutAmendmentsUsageStatementScheduleFrequencyMonthly, ContractWithoutAmendmentsUsageStatementScheduleFrequencyMonthly, ContractWithoutAmendmentsUsageStatementScheduleFrequencyQuarterly, ContractWithoutAmendmentsUsageStatementScheduleFrequencyQuarterly: + case ContractWithoutAmendmentsUsageStatementScheduleFrequencyMonthly, ContractWithoutAmendmentsUsageStatementScheduleFrequencyQuarterly: return true } return false @@ -2126,20 +2124,15 @@ type OverrideOverwriteRateRateType string const ( OverrideOverwriteRateRateTypeFlat OverrideOverwriteRateRateType = "FLAT" - OverrideOverwriteRateRateTypeFlat OverrideOverwriteRateRateType = "flat" OverrideOverwriteRateRateTypePercentage OverrideOverwriteRateRateType = "PERCENTAGE" - OverrideOverwriteRateRateTypePercentage OverrideOverwriteRateRateType = "percentage" OverrideOverwriteRateRateTypeSubscription OverrideOverwriteRateRateType = "SUBSCRIPTION" - OverrideOverwriteRateRateTypeSubscription OverrideOverwriteRateRateType = "subscription" OverrideOverwriteRateRateTypeTiered OverrideOverwriteRateRateType = "TIERED" - OverrideOverwriteRateRateTypeTiered OverrideOverwriteRateRateType = "tiered" OverrideOverwriteRateRateTypeCustom OverrideOverwriteRateRateType = "CUSTOM" - OverrideOverwriteRateRateTypeCustom OverrideOverwriteRateRateType = "custom" ) func (r OverrideOverwriteRateRateType) IsKnown() bool { switch r { - case OverrideOverwriteRateRateTypeFlat, OverrideOverwriteRateRateTypeFlat, OverrideOverwriteRateRateTypePercentage, OverrideOverwriteRateRateTypePercentage, OverrideOverwriteRateRateTypeSubscription, OverrideOverwriteRateRateTypeSubscription, OverrideOverwriteRateRateTypeTiered, OverrideOverwriteRateRateTypeTiered, OverrideOverwriteRateRateTypeCustom, OverrideOverwriteRateRateTypeCustom: + case OverrideOverwriteRateRateTypeFlat, OverrideOverwriteRateRateTypePercentage, OverrideOverwriteRateRateTypeSubscription, OverrideOverwriteRateRateTypeTiered, OverrideOverwriteRateRateTypeCustom: return true } return false @@ -2194,20 +2187,15 @@ type OverrideRateType string const ( OverrideRateTypeFlat OverrideRateType = "FLAT" - OverrideRateTypeFlat OverrideRateType = "flat" OverrideRateTypePercentage OverrideRateType = "PERCENTAGE" - OverrideRateTypePercentage OverrideRateType = "percentage" OverrideRateTypeSubscription OverrideRateType = "SUBSCRIPTION" - OverrideRateTypeSubscription OverrideRateType = "subscription" OverrideRateTypeTiered OverrideRateType = "TIERED" - OverrideRateTypeTiered OverrideRateType = "tiered" OverrideRateTypeCustom OverrideRateType = "CUSTOM" - OverrideRateTypeCustom OverrideRateType = "custom" ) func (r OverrideRateType) IsKnown() bool { switch r { - case OverrideRateTypeFlat, OverrideRateTypeFlat, OverrideRateTypePercentage, OverrideRateTypePercentage, OverrideRateTypeSubscription, OverrideRateTypeSubscription, OverrideRateTypeTiered, OverrideRateTypeTiered, OverrideRateTypeCustom, OverrideRateTypeCustom: + case OverrideRateTypeFlat, OverrideRateTypePercentage, OverrideRateTypeSubscription, OverrideRateTypeTiered, OverrideRateTypeCustom: return true } return false @@ -2303,20 +2291,15 @@ type RateRateType string const ( RateRateTypeFlat RateRateType = "FLAT" - RateRateTypeFlat RateRateType = "flat" RateRateTypePercentage RateRateType = "PERCENTAGE" - RateRateTypePercentage RateRateType = "percentage" RateRateTypeSubscription RateRateType = "SUBSCRIPTION" - RateRateTypeSubscription RateRateType = "subscription" RateRateTypeCustom RateRateType = "CUSTOM" - RateRateTypeCustom RateRateType = "custom" RateRateTypeTiered RateRateType = "TIERED" - RateRateTypeTiered RateRateType = "tiered" ) func (r RateRateType) IsKnown() bool { switch r { - case RateRateTypeFlat, RateRateTypeFlat, RateRateTypePercentage, RateRateTypePercentage, RateRateTypeSubscription, RateRateTypeSubscription, RateRateTypeCustom, RateRateTypeCustom, RateRateTypeTiered, RateRateTypeTiered: + case RateRateTypeFlat, RateRateTypePercentage, RateRateTypeSubscription, RateRateTypeCustom, RateRateTypeTiered: return true } return false diff --git a/usage.go b/usage.go index 4e14d04..dbde1e8 100755 --- a/usage.go +++ b/usage.go @@ -204,20 +204,14 @@ func (r UsageListParams) URLQuery() (v url.Values) { type UsageListParamsWindowSize string const ( - UsageListParamsWindowSizeHour UsageListParamsWindowSize = "hour" - UsageListParamsWindowSizeDay UsageListParamsWindowSize = "day" - UsageListParamsWindowSizeNone UsageListParamsWindowSize = "none" UsageListParamsWindowSizeHour UsageListParamsWindowSize = "HOUR" UsageListParamsWindowSizeDay UsageListParamsWindowSize = "DAY" UsageListParamsWindowSizeNone UsageListParamsWindowSize = "NONE" - UsageListParamsWindowSizeHour UsageListParamsWindowSize = "Hour" - UsageListParamsWindowSizeDay UsageListParamsWindowSize = "Day" - UsageListParamsWindowSizeNone UsageListParamsWindowSize = "None" ) func (r UsageListParamsWindowSize) IsKnown() bool { switch r { - case UsageListParamsWindowSizeHour, UsageListParamsWindowSizeDay, UsageListParamsWindowSizeNone, UsageListParamsWindowSizeHour, UsageListParamsWindowSizeDay, UsageListParamsWindowSizeNone, UsageListParamsWindowSizeHour, UsageListParamsWindowSizeDay, UsageListParamsWindowSizeNone: + case UsageListParamsWindowSizeHour, UsageListParamsWindowSizeDay, UsageListParamsWindowSizeNone: return true } return false @@ -304,20 +298,14 @@ func (r UsageListWithGroupsParams) URLQuery() (v url.Values) { type UsageListWithGroupsParamsWindowSize string const ( - UsageListWithGroupsParamsWindowSizeHour UsageListWithGroupsParamsWindowSize = "hour" - UsageListWithGroupsParamsWindowSizeDay UsageListWithGroupsParamsWindowSize = "day" - UsageListWithGroupsParamsWindowSizeNone UsageListWithGroupsParamsWindowSize = "none" UsageListWithGroupsParamsWindowSizeHour UsageListWithGroupsParamsWindowSize = "HOUR" UsageListWithGroupsParamsWindowSizeDay UsageListWithGroupsParamsWindowSize = "DAY" UsageListWithGroupsParamsWindowSizeNone UsageListWithGroupsParamsWindowSize = "NONE" - UsageListWithGroupsParamsWindowSizeHour UsageListWithGroupsParamsWindowSize = "Hour" - UsageListWithGroupsParamsWindowSizeDay UsageListWithGroupsParamsWindowSize = "Day" - UsageListWithGroupsParamsWindowSizeNone UsageListWithGroupsParamsWindowSize = "None" ) func (r UsageListWithGroupsParamsWindowSize) IsKnown() bool { switch r { - case UsageListWithGroupsParamsWindowSizeHour, UsageListWithGroupsParamsWindowSizeDay, UsageListWithGroupsParamsWindowSizeNone, UsageListWithGroupsParamsWindowSizeHour, UsageListWithGroupsParamsWindowSizeDay, UsageListWithGroupsParamsWindowSizeNone, UsageListWithGroupsParamsWindowSizeHour, UsageListWithGroupsParamsWindowSizeDay, UsageListWithGroupsParamsWindowSizeNone: + case UsageListWithGroupsParamsWindowSizeHour, UsageListWithGroupsParamsWindowSizeDay, UsageListWithGroupsParamsWindowSizeNone: return true } return false From a60621271f49ad07d6a2264ab8ed020287f95337 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 00:13:16 +0000 Subject: [PATCH 3/3] release: 0.1.0-alpha.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 80 +++++++++++++++++++++++++++++++++++ README.md | 2 +- internal/version.go | 2 +- 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1332969..d9315ff 100755 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.1" + ".": "0.1.0-alpha.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..9bb0367 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,80 @@ +# Changelog + +## 0.1.0-alpha.0 (2024-08-22) + +Full Changelog: [v0.0.1...v0.1.0-alpha.0](https://github.com/Metronome-Industries/metronome-go/compare/v0.0.1...v0.1.0-alpha.0) + +### Features + +* **api:** OpenAPI spec update ([590b2c5](https://github.com/Metronome-Industries/metronome-go/commit/590b2c5dba6d34d1416d63c5b2e8941ce11ba77f)) +* **api:** OpenAPI spec update ([542ec9a](https://github.com/Metronome-Industries/metronome-go/commit/542ec9a59ca4bde891b8416be0bf647ad03822a4)) +* **api:** OpenAPI spec update ([33f2c56](https://github.com/Metronome-Industries/metronome-go/commit/33f2c56b67078a0aac36ec85a57fd25af8e3616e)) +* **api:** OpenAPI spec update via Stainless API ([65376fe](https://github.com/Metronome-Industries/metronome-go/commit/65376fe851f48355e1c71cdd88f6366e105c8c47)) +* **api:** OpenAPI spec update via Stainless API ([22d3d57](https://github.com/Metronome-Industries/metronome-go/commit/22d3d574a729ff184078a1871fbbd67c74e775dc)) +* **api:** OpenAPI spec update via Stainless API ([71e5f6f](https://github.com/Metronome-Industries/metronome-go/commit/71e5f6fa4520f562d11e07bb23918c6c1bfe2bd1)) +* **api:** OpenAPI spec update via Stainless API ([1ce858e](https://github.com/Metronome-Industries/metronome-go/commit/1ce858e767af0051e0ce8e36f5e13f890bce1ea6)) +* **api:** OpenAPI spec update via Stainless API ([232c0a9](https://github.com/Metronome-Industries/metronome-go/commit/232c0a9c80cd75192ff1a08a31600b453c7ed676)) +* **api:** OpenAPI spec update via Stainless API ([149a72a](https://github.com/Metronome-Industries/metronome-go/commit/149a72a5103330a5028af456a3216e8592e023b5)) +* **api:** OpenAPI spec update via Stainless API ([1dd6f4b](https://github.com/Metronome-Industries/metronome-go/commit/1dd6f4b2302c18723f8704e5dd45972ed733b545)) +* **api:** OpenAPI spec update via Stainless API ([6aa7698](https://github.com/Metronome-Industries/metronome-go/commit/6aa769858766850662124297907c3cc3ab704507)) +* **api:** OpenAPI spec update via Stainless API ([73c6b7c](https://github.com/Metronome-Industries/metronome-go/commit/73c6b7c3a414470f717fe69b30eee3c877f95330)) +* **api:** OpenAPI spec update via Stainless API ([e210b9c](https://github.com/Metronome-Industries/metronome-go/commit/e210b9cbd921a51f57c3934c47e8caf3bf8fc57e)) +* **api:** OpenAPI spec update via Stainless API ([305bb48](https://github.com/Metronome-Industries/metronome-go/commit/305bb482893a6f8ef72c1f52aa6845bd7c756dfd)) +* **api:** OpenAPI spec update via Stainless API ([8818517](https://github.com/Metronome-Industries/metronome-go/commit/8818517e1d5bcc96ccbef9e179d33fe680790dfa)) +* **api:** OpenAPI spec update via Stainless API ([ff2e8fb](https://github.com/Metronome-Industries/metronome-go/commit/ff2e8fb1c9b9b9df52c5e4681a1c0d707bdebc5a)) +* **api:** OpenAPI spec update via Stainless API ([4361dd7](https://github.com/Metronome-Industries/metronome-go/commit/4361dd7d67893fb81dbc30acb948e5f8c1e5875e)) +* **api:** OpenAPI spec update via Stainless API ([d8f4eb2](https://github.com/Metronome-Industries/metronome-go/commit/d8f4eb277c7d5649ca83a16d58dae2f3d98ba365)) +* **api:** OpenAPI spec update via Stainless API ([0b84402](https://github.com/Metronome-Industries/metronome-go/commit/0b844023d720b3b9d2dd241d7a61d04157186da8)) +* **api:** OpenAPI spec update via Stainless API ([e5b5a6d](https://github.com/Metronome-Industries/metronome-go/commit/e5b5a6dcf91e17af8752e0e8d26ac26047e63687)) +* **api:** OpenAPI spec update via Stainless API ([833a640](https://github.com/Metronome-Industries/metronome-go/commit/833a640179c5aceb0ba3cf504e21ec308dd39275)) +* **api:** OpenAPI spec update via Stainless API ([bf336bf](https://github.com/Metronome-Industries/metronome-go/commit/bf336bf9b21e02493681e30d07df89250a0bcb45)) +* **api:** OpenAPI spec update via Stainless API ([6d5e039](https://github.com/Metronome-Industries/metronome-go/commit/6d5e0394b3124063ac3798973c388180549f42c0)) +* **api:** OpenAPI spec update via Stainless API ([2906da5](https://github.com/Metronome-Industries/metronome-go/commit/2906da5a767410aff8f33a9ad7a17be320626357)) +* **api:** OpenAPI spec update via Stainless API ([bf2b8bc](https://github.com/Metronome-Industries/metronome-go/commit/bf2b8bc2d7b7dafd3c900ef5bf5d82610e257643)) +* **api:** OpenAPI spec update via Stainless API ([847c716](https://github.com/Metronome-Industries/metronome-go/commit/847c716060ec39b8cd1d84ff60a7761031be3ae8)) +* **api:** OpenAPI spec update via Stainless API ([72c8a74](https://github.com/Metronome-Industries/metronome-go/commit/72c8a74039a595f00e5262d29b6100c3c19564b1)) +* **api:** OpenAPI spec update via Stainless API ([2f2918d](https://github.com/Metronome-Industries/metronome-go/commit/2f2918dc0d023f11c0f437015684aaf11df2ccfe)) +* **api:** OpenAPI spec update via Stainless API ([5de53d0](https://github.com/Metronome-Industries/metronome-go/commit/5de53d06289cfe64dbd280816159332b5d99f08e)) +* **api:** OpenAPI spec update via Stainless API ([a89b39f](https://github.com/Metronome-Industries/metronome-go/commit/a89b39f801ae38b200e0932b7be07b31ae0050ce)) +* **api:** OpenAPI spec update via Stainless API ([470df50](https://github.com/Metronome-Industries/metronome-go/commit/470df508aa5330bc4934584dc2cf65060fbabd65)) +* **api:** OpenAPI spec update via Stainless API ([4c746ae](https://github.com/Metronome-Industries/metronome-go/commit/4c746ae6702e5a5dc037dcd481d92ab50327a1e4)) +* **api:** OpenAPI spec update via Stainless API ([a85463c](https://github.com/Metronome-Industries/metronome-go/commit/a85463ce248419c0e9eea1453927644c9da72743)) +* **api:** OpenAPI spec update via Stainless API ([#3](https://github.com/Metronome-Industries/metronome-go/issues/3)) ([97be77e](https://github.com/Metronome-Industries/metronome-go/commit/97be77e32f35a7bc5eb6563c73f359999876ca8d)) +* **api:** update via SDK Studio ([b3a869b](https://github.com/Metronome-Industries/metronome-go/commit/b3a869bcb7a6ff4b52e44d8a6dc576d04ff5a152)) +* **api:** update via SDK Studio ([b8474dd](https://github.com/Metronome-Industries/metronome-go/commit/b8474ddb7c5698ec902542856e98c25d75b251ba)) +* **api:** update via SDK Studio ([6e1a350](https://github.com/Metronome-Industries/metronome-go/commit/6e1a350a36b0033f910adb715ba5b200516daa78)) +* **api:** update via SDK Studio ([157e156](https://github.com/Metronome-Industries/metronome-go/commit/157e156453189534fd93b34b044a60feb879a364)) +* generated ([4d76f82](https://github.com/Metronome-Industries/metronome-go/commit/4d76f82e2ca6967c55fb20fc23985c43ef508cd7)) +* generated ([69cd8b9](https://github.com/Metronome-Industries/metronome-go/commit/69cd8b92c888a8eb057746b441de23919ff83483)) +* generated ([b5adee1](https://github.com/Metronome-Industries/metronome-go/commit/b5adee15deda91aee39f1c5a3d94535ca8c77e66)) +* generated ([4535477](https://github.com/Metronome-Industries/metronome-go/commit/45354776a5f726a7ac2ad397e4aeb216c2485072)) +* generated ([d0ca149](https://github.com/Metronome-Industries/metronome-go/commit/d0ca14994c932d1f769bd6669a754ba31905c3a5)) +* generated ([ad7f210](https://github.com/Metronome-Industries/metronome-go/commit/ad7f2101edcdbedd98682bb8f88eb754607ae07b)) +* generated ([2a8e3c4](https://github.com/Metronome-Industries/metronome-go/commit/2a8e3c403ed19008735a290f971b187259c386e5)) +* generated ([beaf3cc](https://github.com/Metronome-Industries/metronome-go/commit/beaf3cc422a456ae37e900bc3ae1d0a6dcb528d8)) +* generated ([1576c9d](https://github.com/Metronome-Industries/metronome-go/commit/1576c9da7a004e2eca1b5b248f0571dfc9cdc9c6)) +* generated ([33abc50](https://github.com/Metronome-Industries/metronome-go/commit/33abc50f9e8ed21918f4df89433c878c29770c90)) +* generated ([55ec49a](https://github.com/Metronome-Industries/metronome-go/commit/55ec49ae4e8a03e08f8b1c61bcf12765231f9905)) +* generated ([1982fd7](https://github.com/Metronome-Industries/metronome-go/commit/1982fd786a28b33f6fa793003e5bd716dee72ded)) +* generated ([a662cd5](https://github.com/Metronome-Industries/metronome-go/commit/a662cd598626594600d9b512c48ca22222c26725)) +* generated ([4a92821](https://github.com/Metronome-Industries/metronome-go/commit/4a928218b6f4820c15afd74af815c33ebc2b5b96)) + + +### Bug Fixes + +* deserialization of struct unions that implement json.Unmarshaler ([e820b96](https://github.com/Metronome-Industries/metronome-go/commit/e820b96fae7aff2d018dd4a80a206064f8509e31)) + + +### Chores + +* bump Go to v1.21 ([8a78759](https://github.com/Metronome-Industries/metronome-go/commit/8a78759b04c6b1ee18da0cc41a088756bbfdf896)) +* **ci:** bump prism mock server version ([9b00352](https://github.com/Metronome-Industries/metronome-go/commit/9b0035276b9e565a0d5371a0d6378b16bd401fe8)) +* **ci:** limit release doctor target branches ([6c83ac5](https://github.com/Metronome-Industries/metronome-go/commit/6c83ac5ca309878273251583f217eac7743f91d0)) +* **ci:** limit release doctor target branches ([d64bb18](https://github.com/Metronome-Industries/metronome-go/commit/d64bb18f478ee18d61041ef3347c662c0abe170a)) +* **ci:** remove unused release doctor ([a422aed](https://github.com/Metronome-Industries/metronome-go/commit/a422aed68b4ad8756f21ddf162b3f45adec9f231)) +* **ci:** remove unused release doctor ([fcb76c5](https://github.com/Metronome-Industries/metronome-go/commit/fcb76c59ec2de0d9d239796c33a564e0e640b509)) +* **examples:** minor formatting changes ([f0041fb](https://github.com/Metronome-Industries/metronome-go/commit/f0041fb732e95ce8811bef5ad5d2cd81b1f74297)) +* go live ([#1](https://github.com/Metronome-Industries/metronome-go/issues/1)) ([39329ad](https://github.com/Metronome-Industries/metronome-go/commit/39329add8fd3e204dc4e12fc3383a99fd5578652)) +* **internal:** codegen related update ([d27a28a](https://github.com/Metronome-Industries/metronome-go/commit/d27a28ad48e82010f05621406bae57363e7502fd)) +* **tests:** update prism version ([3b84c3c](https://github.com/Metronome-Industries/metronome-go/commit/3b84c3cc693a439c87d9cb6eb7658dc0fc828151)) +* **tests:** update prism version ([c0f434d](https://github.com/Metronome-Industries/metronome-go/commit/c0f434d768a1b410aef479858ef98f975d18b0db)) diff --git a/README.md b/README.md index c5c2087..f98ae64 100755 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Or to pin the version: ```sh -go get -u 'github.com/Metronome-Industries/metronome-go@v0.0.1' +go get -u 'github.com/Metronome-Industries/metronome-go@v0.1.0-alpha.0' ``` diff --git a/internal/version.go b/internal/version.go index ebdd35f..ce8cda4 100755 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.0.1" // x-release-please-version +const PackageVersion = "0.1.0-alpha.0" // x-release-please-version