From f8b95feb77e2ad2f0fc9f9ace604cfe9a60c012a Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 17 Jul 2025 22:28:12 +0000
Subject: [PATCH 01/15] codegen metadata
---
.stats.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.stats.yml b/.stats.yml
index 9450f45c5..20f408c90 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 116
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-612316c13276a207f56e2e2c7bbc68f4bb73de85e3661595a23f23d9ccc80276.yml
openapi_spec_hash: 6e125f05e40521ec485edf6e15beec2e
-config_hash: 8c9a47f104c777e2a1e8f3fad15c093b
+config_hash: 1f535c1fa222aacf28b636eed21bec72
From 7c7a621be47edaca08972e0986c72dab410ec052 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 17 Jul 2025 22:35:22 +0000
Subject: [PATCH 02/15] feat(api): api update
---
.stats.yml | 4 ++--
src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs | 2 +-
src/Orb/Models/Customers/Costs/CostListParams.cs | 2 +-
src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 20f408c90..580e92e5a 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 116
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-612316c13276a207f56e2e2c7bbc68f4bb73de85e3661595a23f23d9ccc80276.yml
-openapi_spec_hash: 6e125f05e40521ec485edf6e15beec2e
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-373ca3e805c414f75a90b0088c57cbb60ff207abdca0a8e397c551de88606c4a.yml
+openapi_spec_hash: 1c30d01bd9c38f8a2aa4bd088fbe69bc
config_hash: 1f535c1fa222aacf28b636eed21bec72
diff --git a/src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs b/src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs
index 9f24c587e..cccba1bf0 100644
--- a/src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs
+++ b/src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs
@@ -107,7 +107,7 @@ public sealed record class CostListByExternalIDParams : Orb::ParamsBase
public required string ExternalCustomerID;
///
- /// The currency or custom pricing unit to use.
+ /// The currency to use.
///
public string? Currency
{
diff --git a/src/Orb/Models/Customers/Costs/CostListParams.cs b/src/Orb/Models/Customers/Costs/CostListParams.cs
index 34e1dbda2..677b0fc27 100644
--- a/src/Orb/Models/Customers/Costs/CostListParams.cs
+++ b/src/Orb/Models/Customers/Costs/CostListParams.cs
@@ -107,7 +107,7 @@ public sealed record class CostListParams : Orb::ParamsBase
public required string CustomerID;
///
- /// The currency or custom pricing unit to use.
+ /// The currency to use.
///
public string? Currency
{
diff --git a/src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs b/src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs
index 0b975710f..586984524 100644
--- a/src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs
+++ b/src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs
@@ -22,7 +22,7 @@ public sealed record class SubscriptionFetchCostsParams : Orb::ParamsBase
public required string SubscriptionID;
///
- /// The currency or custom pricing unit to use.
+ /// The currency to use.
///
public string? Currency
{
From 268fdab77f42a6e87ffc2f7fd1863bbd05d30033 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 21 Jul 2025 22:43:51 +0000
Subject: [PATCH 03/15] feat(api): api update
---
.stats.yml | 4 +-
.../Service/Invoices/InvoiceServiceTest.cs | 2 +-
.../Models/Invoices/InvoiceCreateParams.cs | 39 +++++++++----------
3 files changed, 21 insertions(+), 24 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 580e92e5a..5a4c2212f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 116
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-373ca3e805c414f75a90b0088c57cbb60ff207abdca0a8e397c551de88606c4a.yml
-openapi_spec_hash: 1c30d01bd9c38f8a2aa4bd088fbe69bc
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a44cccd16bb58080f7cc0669999403f6ed3f77287fad901caa6fd2523f2fbafd.yml
+openapi_spec_hash: af6444648d0b2a70b7f7ad234bd37541
config_hash: 1f535c1fa222aacf28b636eed21bec72
diff --git a/src/Orb.Tests/Service/Invoices/InvoiceServiceTest.cs b/src/Orb.Tests/Service/Invoices/InvoiceServiceTest.cs
index 39d6aed28..ae1b4e812 100644
--- a/src/Orb.Tests/Service/Invoices/InvoiceServiceTest.cs
+++ b/src/Orb.Tests/Service/Invoices/InvoiceServiceTest.cs
@@ -34,7 +34,6 @@ public class InvoiceServiceTest : Tests::TestBase
UnitConfig = new Models::UnitConfig() { UnitAmount = "unit_amount" },
},
],
- NetTerms = 0,
CustomerID = "4khy3nwzktxv7",
Discount = Models::Discount.Create(
new Models::PercentageDiscount()
@@ -57,6 +56,7 @@ public class InvoiceServiceTest : Tests::TestBase
ExternalCustomerID = "external-customer-id",
Memo = "An optional memo for my invoice.",
Metadata = new() { { "foo", "string" } },
+ NetTerms = 0,
WillAutoIssue = false,
}
);
diff --git a/src/Orb/Models/Invoices/InvoiceCreateParams.cs b/src/Orb/Models/Invoices/InvoiceCreateParams.cs
index 3b9959082..d19fca744 100644
--- a/src/Orb/Models/Invoices/InvoiceCreateParams.cs
+++ b/src/Orb/Models/Invoices/InvoiceCreateParams.cs
@@ -75,27 +75,6 @@ public required string Currency
set { this.BodyProperties["line_items"] = Json::JsonSerializer.SerializeToElement(value); }
}
- ///
- /// Determines the difference between the invoice issue date for subscription invoices
- /// as the date that they are due. A value of '0' here represents that the invoice
- /// is due on issue, whereas a value of 30 represents that the customer has 30 days
- /// to pay the invoice.
- ///
- public required long NetTerms
- {
- get
- {
- if (!this.BodyProperties.TryGetValue("net_terms", out Json::JsonElement element))
- throw new System::ArgumentOutOfRangeException(
- "net_terms",
- "Missing required argument"
- );
-
- return Json::JsonSerializer.Deserialize(element);
- }
- set { this.BodyProperties["net_terms"] = Json::JsonSerializer.SerializeToElement(value); }
- }
-
///
/// The id of the `Customer` to create this invoice for. One of `customer_id` and
/// `external_customer_id` are required.
@@ -185,6 +164,24 @@ public string? Memo
set { this.BodyProperties["metadata"] = Json::JsonSerializer.SerializeToElement(value); }
}
+ ///
+ /// Determines the difference between the invoice issue date for subscription invoices
+ /// as the date that they are due. A value of '0' here represents that the invoice
+ /// is due on issue, whereas a value of 30 represents that the customer has 30 days
+ /// to pay the invoice.
+ ///
+ public long? NetTerms
+ {
+ get
+ {
+ if (!this.BodyProperties.TryGetValue("net_terms", out Json::JsonElement element))
+ return null;
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.BodyProperties["net_terms"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
///
/// When true, this invoice will be submitted for issuance upon creation. When false,
/// the resulting invoice will require manual review to issue. Defaulted to false.
From d0d1a7995095b23506e98a0ba0e5bdb47370dc5f Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 24 Jul 2025 18:07:42 +0000
Subject: [PATCH 04/15] feat(api): api update
---
.stats.yml | 4 ++--
.../Models/Customers/Costs/CostListByExternalIDParams.cs | 2 +-
src/Orb/Models/Customers/Costs/CostListParams.cs | 2 +-
.../IncrementProperties/InvoiceSettings.cs | 4 ++--
.../IncrementProperties/InvoiceSettings.cs | 4 ++--
.../Models/Customers/CustomerUpdateByExternalIDParams.cs | 6 ++++--
src/Orb/Models/Customers/CustomerUpdateParams.cs | 6 ++++--
src/Orb/Models/Invoices/InvoiceUpdateParams.cs | 9 +++++----
.../Models/Subscriptions/SubscriptionFetchCostsParams.cs | 2 +-
src/Orb/Service/Invoices/IInvoiceService.cs | 9 +++++----
10 files changed, 27 insertions(+), 21 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 5a4c2212f..82cec55fd 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 116
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a44cccd16bb58080f7cc0669999403f6ed3f77287fad901caa6fd2523f2fbafd.yml
-openapi_spec_hash: af6444648d0b2a70b7f7ad234bd37541
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1aabbd8715a871e993abf67f0bf9c1d6793b4f197c4b2f11fc7a76453590cd6c.yml
+openapi_spec_hash: 3e5878f87e74881d882a69e1ccdc25a3
config_hash: 1f535c1fa222aacf28b636eed21bec72
diff --git a/src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs b/src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs
index cccba1bf0..9f24c587e 100644
--- a/src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs
+++ b/src/Orb/Models/Customers/Costs/CostListByExternalIDParams.cs
@@ -107,7 +107,7 @@ public sealed record class CostListByExternalIDParams : Orb::ParamsBase
public required string ExternalCustomerID;
///
- /// The currency to use.
+ /// The currency or custom pricing unit to use.
///
public string? Currency
{
diff --git a/src/Orb/Models/Customers/Costs/CostListParams.cs b/src/Orb/Models/Customers/Costs/CostListParams.cs
index 677b0fc27..34e1dbda2 100644
--- a/src/Orb/Models/Customers/Costs/CostListParams.cs
+++ b/src/Orb/Models/Customers/Costs/CostListParams.cs
@@ -107,7 +107,7 @@ public sealed record class CostListParams : Orb::ParamsBase
public required string CustomerID;
///
- /// The currency to use.
+ /// The currency or custom pricing unit to use.
///
public string? Currency
{
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs
index a5ca54393..37f9a59be 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs
@@ -40,7 +40,7 @@ public required bool AutoCollection
/// date for the invoice. If you intend the invoice to be due on issue, set this
/// to 0.
///
- public required long NetTerms
+ public required long? NetTerms
{
get
{
@@ -50,7 +50,7 @@ public required long NetTerms
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element);
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["net_terms"] = Json::JsonSerializer.SerializeToElement(value); }
}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs
index deca99cec..039969c4f 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/InvoiceSettings.cs
@@ -40,7 +40,7 @@ public required bool AutoCollection
/// date for the invoice. If you intend the invoice to be due on issue, set this
/// to 0.
///
- public required long NetTerms
+ public required long? NetTerms
{
get
{
@@ -50,7 +50,7 @@ public required long NetTerms
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element);
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["net_terms"] = Json::JsonSerializer.SerializeToElement(value); }
}
diff --git a/src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs b/src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs
index ab7c47664..3e2a79d30 100644
--- a/src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs
+++ b/src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs
@@ -146,8 +146,10 @@ public bool? EmailDelivery
}
///
- /// The external customer ID. This can only be set if empty and the customer has
- /// no past or current subscriptions.
+ /// The external customer ID. This can only be set if the customer has no existing
+ /// external customer ID. Since this action may change usage quantities for all
+ /// existing subscriptions, it is disallowed if the customer has issued invoices
+ /// with usage line items and subject to the same restrictions as backdated subscription creation.
///
public string? ExternalCustomerID
{
diff --git a/src/Orb/Models/Customers/CustomerUpdateParams.cs b/src/Orb/Models/Customers/CustomerUpdateParams.cs
index 8899481e3..410645809 100644
--- a/src/Orb/Models/Customers/CustomerUpdateParams.cs
+++ b/src/Orb/Models/Customers/CustomerUpdateParams.cs
@@ -147,8 +147,10 @@ public bool? EmailDelivery
}
///
- /// The external customer ID. This can only be set if empty and the customer has
- /// no past or current subscriptions.
+ /// The external customer ID. This can only be set if the customer has no existing
+ /// external customer ID. Since this action may change usage quantities for all
+ /// existing subscriptions, it is disallowed if the customer has issued invoices
+ /// with usage line items and subject to the same restrictions as backdated subscription creation.
///
public string? ExternalCustomerID
{
diff --git a/src/Orb/Models/Invoices/InvoiceUpdateParams.cs b/src/Orb/Models/Invoices/InvoiceUpdateParams.cs
index ce5bb1600..17f040a6f 100644
--- a/src/Orb/Models/Invoices/InvoiceUpdateParams.cs
+++ b/src/Orb/Models/Invoices/InvoiceUpdateParams.cs
@@ -8,11 +8,12 @@
namespace Orb.Models.Invoices;
///
-/// This endpoint allows you to update the `metadata` property on an invoice. If
-/// you pass null for the metadata value, it will clear any existing metadata for
-/// that invoice.
+/// This endpoint allows you to update the `metadata`, `net_terms`, and `due_date`
+/// properties on an invoice. If you pass null for the metadata value, it will clear
+/// any existing metadata for that invoice.
///
-/// `metadata` can be modified regardless of invoice state.
+/// `metadata` can be modified regardless of invoice state. `net_terms` and `due_date`
+/// can only be modified if the invoice is in a `draft` state.
///
public sealed record class InvoiceUpdateParams : Orb::ParamsBase
{
diff --git a/src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs b/src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs
index 586984524..0b975710f 100644
--- a/src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs
+++ b/src/Orb/Models/Subscriptions/SubscriptionFetchCostsParams.cs
@@ -22,7 +22,7 @@ public sealed record class SubscriptionFetchCostsParams : Orb::ParamsBase
public required string SubscriptionID;
///
- /// The currency to use.
+ /// The currency or custom pricing unit to use.
///
public string? Currency
{
diff --git a/src/Orb/Service/Invoices/IInvoiceService.cs b/src/Orb/Service/Invoices/IInvoiceService.cs
index fb7b8fad2..47ceeb200 100644
--- a/src/Orb/Service/Invoices/IInvoiceService.cs
+++ b/src/Orb/Service/Invoices/IInvoiceService.cs
@@ -12,11 +12,12 @@ public interface IInvoiceService
Tasks::Task Create(Invoices::InvoiceCreateParams @params);
///
- /// This endpoint allows you to update the `metadata` property on an invoice. If
- /// you pass null for the metadata value, it will clear any existing metadata for
- /// that invoice.
+ /// This endpoint allows you to update the `metadata`, `net_terms`, and `due_date`
+ /// properties on an invoice. If you pass null for the metadata value, it will
+ /// clear any existing metadata for that invoice.
///
- /// `metadata` can be modified regardless of invoice state.
+ /// `metadata` can be modified regardless of invoice state. `net_terms` and `due_date`
+ /// can only be modified if the invoice is in a `draft` state.
///
Tasks::Task Update(Invoices::InvoiceUpdateParams @params);
From 3167be06e8e3929b18e0d4d6af09f69608e68515 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 24 Jul 2025 20:06:32 +0000
Subject: [PATCH 05/15] docs: note alpha status
---
README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/README.md b/README.md
index 98a53c1d3..237927bf3 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,10 @@
# Orb C# API Library
+> [!NOTE]
+> The Orb C# API Library is currently in alpha.
+>
+> There may be frequent breaking changes.
+
The Orb C# SDK provides convenient access to the [Orb REST API](https://docs.withorb.com/reference/api-reference) from applications written in C#.
The REST API documentation can be found on [docs.withorb.com](https://docs.withorb.com/reference/api-reference).
From b08df824c44e6cc0ac72d42b07c3c089f501862d Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Sat, 26 Jul 2025 00:23:50 +0000
Subject: [PATCH 06/15] feat(api): api update
---
.stats.yml | 8 +-
.../DimensionalPriceGroupServiceTest.cs | 14 +
...ernalDimensionalPriceGroupIDServiceTest.cs | 15 +
src/Orb/Models/CustomerTaxID.cs | 195 +++----
.../Models/CustomerTaxIDProperties/Country.cs | 152 ++++-
.../Models/CustomerTaxIDProperties/Type.cs | 156 +++++
src/Orb/Models/Customers/Customer.cs | 201 ++++---
.../Models/Customers/CustomerCreateParams.cs | 201 ++++---
.../CustomerUpdateByExternalIDParams.cs | 201 ++++---
.../Models/Customers/CustomerUpdateParams.cs | 201 ++++---
.../DimensionalPriceGroupUpdateParams.cs | 92 +++
...rnalDimensionalPriceGroupIDUpdateParams.cs | 95 +++
src/Orb/Models/Invoice.cs | 201 ++++---
.../Invoices/InvoiceFetchUpcomingResponse.cs | 201 ++++---
src/Orb/Models/Price.cs | 4 +
.../GroupedWithMinMaxThresholds.cs | 541 ++++++++++++++++++
.../Cadence.cs | 60 ++
.../ConversionRateConfig.cs | 22 +
.../ConversionRateConfigVariants/All.cs | 42 ++
.../ModelType.cs | 42 ++
.../PriceType.cs | 44 ++
src/Orb/Models/PriceVariants/All.cs | 25 +
.../DimensionalPriceGroupService.cs | 23 +
.../ExternalDimensionalPriceGroupIDService.cs | 23 +
...IExternalDimensionalPriceGroupIDService.cs | 9 +
.../IDimensionalPriceGroupService.cs | 9 +
26 files changed, 2033 insertions(+), 744 deletions(-)
create mode 100644 src/Orb/Models/DimensionalPriceGroups/DimensionalPriceGroupUpdateParams.cs
create mode 100644 src/Orb/Models/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDUpdateParams.cs
create mode 100644 src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholds.cs
create mode 100644 src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/Cadence.cs
create mode 100644 src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfig.cs
create mode 100644 src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfigVariants/All.cs
create mode 100644 src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ModelType.cs
create mode 100644 src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/PriceType.cs
diff --git a/.stats.yml b/.stats.yml
index 82cec55fd..c03739d1c 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 116
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1aabbd8715a871e993abf67f0bf9c1d6793b4f197c4b2f11fc7a76453590cd6c.yml
-openapi_spec_hash: 3e5878f87e74881d882a69e1ccdc25a3
-config_hash: 1f535c1fa222aacf28b636eed21bec72
+configured_endpoints: 118
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-4f31d46f5ba187fc4d702c9f9f1573dacb891edbd086f935707578d7c4f5fed8.yml
+openapi_spec_hash: 25b1019f20a47b8af665aae5f8fd0025
+config_hash: 5135e9237207028f293049a77428c775
diff --git a/src/Orb.Tests/Service/DimensionalPriceGroups/DimensionalPriceGroupServiceTest.cs b/src/Orb.Tests/Service/DimensionalPriceGroups/DimensionalPriceGroupServiceTest.cs
index 64882f8ff..7672d3494 100644
--- a/src/Orb.Tests/Service/DimensionalPriceGroups/DimensionalPriceGroupServiceTest.cs
+++ b/src/Orb.Tests/Service/DimensionalPriceGroups/DimensionalPriceGroupServiceTest.cs
@@ -34,6 +34,20 @@ public class DimensionalPriceGroupServiceTest : Tests::TestBase
dimensionalPriceGroup.Validate();
}
+ [Fact]
+ public async Tasks::Task Update_Works()
+ {
+ var dimensionalPriceGroup = await this.client.DimensionalPriceGroups.Update(
+ new DimensionalPriceGroups::DimensionalPriceGroupUpdateParams()
+ {
+ DimensionalPriceGroupID = "dimensional_price_group_id",
+ ExternalDimensionalPriceGroupID = "external_dimensional_price_group_id",
+ Metadata = new() { { "foo", "string" } },
+ }
+ );
+ dimensionalPriceGroup.Validate();
+ }
+
[Fact]
public async Tasks::Task List_Works()
{
diff --git a/src/Orb.Tests/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDServiceTest.cs b/src/Orb.Tests/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDServiceTest.cs
index 204fb06e0..f0f7da033 100644
--- a/src/Orb.Tests/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDServiceTest.cs
+++ b/src/Orb.Tests/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDServiceTest.cs
@@ -18,4 +18,19 @@ await this.client.DimensionalPriceGroups.ExternalDimensionalPriceGroupID.Retriev
);
dimensionalPriceGroup.Validate();
}
+
+ [Fact]
+ public async Tasks::Task Update_Works()
+ {
+ var dimensionalPriceGroup =
+ await this.client.DimensionalPriceGroups.ExternalDimensionalPriceGroupID.Update(
+ new ExternalDimensionalPriceGroupID::ExternalDimensionalPriceGroupIDUpdateParams()
+ {
+ ExternalDimensionalPriceGroupID = "external_dimensional_price_group_id",
+ ExternalDimensionalPriceGroupID1 = "external_dimensional_price_group_id",
+ Metadata = new() { { "foo", "string" } },
+ }
+ );
+ dimensionalPriceGroup.Validate();
+ }
}
diff --git a/src/Orb/Models/CustomerTaxID.cs b/src/Orb/Models/CustomerTaxID.cs
index 4c9d3e698..2df80d9c0 100644
--- a/src/Orb/Models/CustomerTaxID.cs
+++ b/src/Orb/Models/CustomerTaxID.cs
@@ -14,108 +14,99 @@ namespace Orb.Models;
///
/// ### Supported Tax ID Countries and Types
///
-/// | Country | Type | Description
-/// | |----------------|--------------|---------------------------------------------|
-/// | Andorra | `ad_nrt` | Andorran NRT Number
-/// | | Argentina | `ar_cuit` | Argentinian Tax ID Number
-/// | | Australia | `au_abn` | Australian Business Number (AU ABN)
-/// | | Australia | `au_arn` | Australian Taxation Office Reference
-/// Number | | Austria | `eu_vat` | European VAT Number
-/// | | Bahrain | `bh_vat` | Bahraini VAT Number
-/// | | Belgium | `eu_vat` | European VAT Number
-/// | | Bolivia | `bo_tin` | Bolivian Tax ID
-/// | | Brazil | `br_cnpj` | Brazilian CNPJ Number
-/// | | Brazil | `br_cpf` | Brazilian CPF Number
-/// | | Bulgaria | `bg_uic` | Bulgaria Unified
-/// Identification Code | | Bulgaria | `eu_vat` | European VAT Number
-/// | | Canada | `ca_bn` | Canadian BN
-/// | | Canada | `ca_gst_hst` | Canadian GST/HST
-/// Number | | Canada | `ca_pst_bc` | Canadian PST Number
-/// (British Columbia) | | Canada | `ca_pst_mb` | Canadian PST Number
-/// (Manitoba) | | Canada | `ca_pst_sk` | Canadian PST Number
-/// (Saskatchewan) | | Canada | `ca_qst` | Canadian QST Number
-/// (Québec) | | Chile | `cl_tin` | Chilean TIN
-/// | | China | `cn_tin` | Chinese Tax ID
-/// | | Colombia | `co_nit` | Colombian NIT
-/// Number | | Costa Rica | `cr_tin` | Costa Rican
-/// Tax ID | | Croatia | `eu_vat` | European
-/// VAT Number | | Cyprus | `eu_vat` | European
-/// VAT Number | | Czech Republic | `eu_vat` | European
-/// VAT Number | | Denmark | `eu_vat` | European
-/// VAT Number | | Dominican Republic | `do_rcn` | Dominican
-/// RCN Number | | Ecuador | `ec_ruc` | Ecuadorian
-/// RUC Number | | Egypt | `eg_tin` | Egyptian
-/// Tax Identification Number | | El Salvador | `sv_nit` |
-/// El Salvadorian NIT Number | | Estonia | `eu_vat` | European
-/// VAT Number | | EU | `eu_oss_vat` | European One Stop Shop VAT Number
-/// for non-Union scheme | | Finland | `eu_vat` | European VAT Number
-/// | | France | `eu_vat` | European VAT Number
-/// | | Georgia | `ge_vat` | Georgian VAT
-/// | | Germany | `eu_vat` | European
-/// VAT Number | | Greece | `eu_vat` | European
-/// VAT Number | | Hong Kong | `hk_br` | Hong
-/// Kong BR Number | | Hungary | `eu_vat`
-/// | European VAT Number | | Hungary | `hu_tin`
-/// | Hungary Tax Number (adószám) | | Iceland |
-/// `is_vat` | Icelandic VAT | | India
-/// | `in_gst` | Indian GST Number |
-/// | Indonesia | `id_npwp` | Indonesian NPWP Number
-/// | | Ireland | `eu_vat` | European VAT Number
-/// | | Israel | `il_vat` | Israel VAT
-/// | | Italy | `eu_vat` | European VAT Number
-/// | | Japan | `jp_cn` | Japanese Corporate
-/// Number (*Hōjin Bangō*) | | Japan | `jp_rn` | Japanese Registered
-/// Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*)
-/// | | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku
-/// Bangō*) | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification
-/// Number | | Kenya | `ke_pin` | Kenya Revenue Authority
-/// Personal Identification Number | | Latvia | `eu_vat` | European VAT Number
-/// | | Liechtenstein | `li_uid` | Liechtensteinian
-/// UID Number | | Lithuania | `eu_vat` | European VAT Number
-/// | | Luxembourg | `eu_vat` | European VAT Number
-/// | | Malaysia | `my_frp` | Malaysian FRP Number
-/// | | Malaysia | `my_itn` | Malaysian ITN | |
-/// Malaysia | `my_sst` | Malaysian SST Number | | Malta
-/// | `eu_vat ` | European VAT Number | | Mexico
-/// | `mx_rfc` | Mexican RFC Number | | Netherlands | `eu_vat`
-/// | European VAT Number | | New Zealand | `nz_gst` | New
-/// Zealand GST Number | | Nigeria | `ng_tin` | Nigerian
-/// Tax Identification Number | | Norway | `no_vat` | Norwegian VAT Number
-/// | | Norway | `no_voec` | Norwegian VAT on e-commerce Number
-/// | | Oman | `om_vat` | Omani VAT Number | | Peru
-/// | `pe_ruc` | Peruvian RUC Number | | Philippines
-/// | `ph_tin ` | Philippines Tax Identification Number | | Poland | `eu_vat`
-/// | European VAT Number | | Portugal | `eu_vat` | European
-/// VAT Number | | Romania | `eu_vat` | European VAT Number
-/// | | Romania | `ro_tin` | Romanian Tax ID Number
-/// | | Russia | `ru_inn` | Russian INN
-/// | | Russia | `ru_kpp` | Russian KPP | |
-/// Saudi Arabia | `sa_vat` | Saudi Arabia VAT | | Serbia
-/// | `rs_pib` | Serbian PIB Number | | Singapore |
-/// `sg_gst` | Singaporean GST | | Singapore | `sg_uen`
-/// | Singaporean UEN | | Slovakia | `eu_vat`
-/// | European VAT Number | | Slovenia | `eu_vat` | European
-/// VAT Number | | Slovenia | `si_tin` | Slovenia Tax
-/// Number (davčna številka) | | South Africa | `za_vat`
-/// | South African VAT Number | | South Korea
-/// | `kr_brn` | Korean BRN | | Spain
-/// | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
-/// | Spain | `eu_vat` | European VAT Number
-/// | | Sweden | `eu_vat` | European VAT Number
-/// | | Switzerland | `ch_vat` | Switzerland VAT
-/// Number | | Taiwan | `tw_vat` | Taiwanese
-/// VAT | | Thailand | `th_vat`
-/// | Thai VAT | | Turkey
-/// | `tr_tin` | Turkish Tax Identification Number | | Ukraine
-/// | `ua_vat` | Ukrainian VAT | |
-/// United Arab Emirates | `ae_trn` | United Arab Emirates TRN
-/// | | United Kingdom | `eu_vat` | Northern Ireland VAT Number
-/// | | United Kingdom | `gb_vat` | United Kingdom VAT
-/// Number | | United States | `us_ein` | United
-/// States EIN | | Uruguay | `uy_ruc`
-/// | Uruguayan RUC Number | | Venezuela
-/// | `ve_rif` | Venezuelan RIF Number | | Vietnam
-/// | `vn_tin` | Vietnamese Tax ID Number |
+/// | Country | Type | Description | |---------|------|-------------| | Albania |
+/// `al_tin` | Albania Tax Identification Number | | Andorra | `ad_nrt` | Andorran
+/// NRT Number | | Angola | `ao_tin` | Angola Tax Identification Number | | Argentina
+/// | `ar_cuit` | Argentinian Tax ID Number | | Armenia | `am_tin` | Armenia Tax Identification
+/// Number | | Aruba | `aw_tin` | Aruba Tax Identification Number | | Australia |
+/// `au_abn` | Australian Business Number (AU ABN) | | Australia | `au_arn` | Australian
+/// Taxation Office Reference Number | | Austria | `eu_vat` | European VAT Number
+/// | | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number | | Bahamas |
+/// `bs_tin` | Bahamas Tax Identification Number | | Bahrain | `bh_vat` | Bahraini
+/// VAT Number | | Bangladesh | `bd_bin` | Bangladesh Business Identification Number
+/// | | Barbados | `bb_tin` | Barbados Tax Identification Number | | Belarus | `by_tin`
+/// | Belarus TIN Number | | Belgium | `eu_vat` | European VAT Number | | Benin |
+/// `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) | | Bolivia
+/// | `bo_tin` | Bolivian Tax ID | | Bosnia and Herzegovina | `ba_tin` | Bosnia and
+/// Herzegovina Tax Identification Number | | Brazil | `br_cnpj` | Brazilian CNPJ
+/// Number | | Brazil | `br_cpf` | Brazilian CPF Number | | Bulgaria | `bg_uic` |
+/// Bulgaria Unified Identification Code | | Bulgaria | `eu_vat` | European VAT Number
+/// | | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant
+/// Fiscal Unique) | | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
+/// | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant
+/// fiscal Unique) | | Canada | `ca_bn` | Canadian BN | | Canada | `ca_gst_hst` |
+/// Canadian GST/HST Number | | Canada | `ca_pst_bc` | Canadian PST Number (British
+/// Columbia) | | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) | | Canada
+/// | `ca_pst_sk` | Canadian PST Number (Saskatchewan) | | Canada | `ca_qst` | Canadian
+/// QST Number (Québec) | | Cape Verde | `cv_nif` | Cape Verde Tax Identification
+/// Number (Número de Identificação Fiscal) | | Chile | `cl_tin` | Chilean TIN | |
+/// China | `cn_tin` | Chinese Tax ID | | Colombia | `co_nit` | Colombian NIT Number
+/// | | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número
+/// de Identificação Fiscal) | | Costa Rica | `cr_tin` | Costa Rican Tax ID | | Croatia
+/// | `eu_vat` | European VAT Number | | Croatia | `hr_oib` | Croatian Personal Identification
+/// Number (OIB) | | Cyprus | `eu_vat` | European VAT Number | | Czech Republic |
+/// `eu_vat` | European VAT Number | | Denmark | `eu_vat` | European VAT Number |
+/// | Dominican Republic | `do_rcn` | Dominican RCN Number | | Ecuador | `ec_ruc`
+/// | Ecuadorian RUC Number | | Egypt | `eg_tin` | Egyptian Tax Identification Number
+/// | | El Salvador | `sv_nit` | El Salvadorian NIT Number | | Estonia | `eu_vat`
+/// | European VAT Number | | Ethiopia | `et_tin` | Ethiopia Tax Identification Number
+/// | | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union
+/// scheme | | Finland | `eu_vat` | European VAT Number | | France | `eu_vat` | European
+/// VAT Number | | Georgia | `ge_vat` | Georgian VAT | | Germany | `de_stn` | German
+/// Tax Number (Steuernummer) | | Germany | `eu_vat` | European VAT Number | | Greece
+/// | `eu_vat` | European VAT Number | | Guinea | `gn_nif` | Guinea Tax Identification
+/// Number (Número de Identificação Fiscal) | | Hong Kong | `hk_br` | Hong Kong BR
+/// Number | | Hungary | `eu_vat` | European VAT Number | | Hungary | `hu_tin` | Hungary
+/// Tax Number (adószám) | | Iceland | `is_vat` | Icelandic VAT | | India | `in_gst`
+/// | Indian GST Number | | Indonesia | `id_npwp` | Indonesian NPWP Number | | Ireland
+/// | `eu_vat` | European VAT Number | | Israel | `il_vat` | Israel VAT | | Italy
+/// | `eu_vat` | European VAT Number | | Japan | `jp_cn` | Japanese Corporate Number
+/// (*Hōjin Bangō*) | | Japan | `jp_rn` | Japanese Registered Foreign Businesses'
+/// Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) | | Japan | `jp_trn`
+/// | Japanese Tax Registration Number (*Tōroku Bangō*) | | Kazakhstan | `kz_bin`
+/// | Kazakhstani Business Identification Number | | Kenya | `ke_pin` | Kenya Revenue
+/// Authority Personal Identification Number | | Kyrgyzstan | `kg_tin` | Kyrgyzstan
+/// Tax Identification Number | | Laos | `la_tin` | Laos Tax Identification Number
+/// | | Latvia | `eu_vat` | European VAT Number | | Liechtenstein | `li_uid` | Liechtensteinian
+/// UID Number | | Liechtenstein | `li_vat` | Liechtenstein VAT Number | | Lithuania
+/// | `eu_vat` | European VAT Number | | Luxembourg | `eu_vat` | European VAT Number
+/// | | Malaysia | `my_frp` | Malaysian FRP Number | | Malaysia | `my_itn` | Malaysian
+/// ITN | | Malaysia | `my_sst` | Malaysian SST Number | | Malta | `eu_vat` | European
+/// VAT Number | | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número
+/// de Identificação Fiscal) | | Mexico | `mx_rfc` | Mexican RFC Number | | Moldova
+/// | `md_vat` | Moldova VAT Number | | Montenegro | `me_pib` | Montenegro PIB Number
+/// | | Morocco | `ma_vat` | Morocco VAT Number | | Nepal | `np_pan` | Nepal PAN
+/// Number | | Netherlands | `eu_vat` | European VAT Number | | New Zealand | `nz_gst`
+/// | New Zealand GST Number | | Nigeria | `ng_tin` | Nigerian Tax Identification
+/// Number | | North Macedonia | `mk_vat` | North Macedonia VAT Number | | Northern
+/// Ireland | `eu_vat` | Northern Ireland VAT Number | | Norway | `no_vat` | Norwegian
+/// VAT Number | | Norway | `no_voec` | Norwegian VAT on e-commerce Number | | Oman
+/// | `om_vat` | Omani VAT Number | | Peru | `pe_ruc` | Peruvian RUC Number | | Philippines
+/// | `ph_tin` | Philippines Tax Identification Number | | Poland | `eu_vat` | European
+/// VAT Number | | Portugal | `eu_vat` | European VAT Number | | Romania | `eu_vat`
+/// | European VAT Number | | Romania | `ro_tin` | Romanian Tax ID Number | | Russia
+/// | `ru_inn` | Russian INN | | Russia | `ru_kpp` | Russian KPP | | Saudi Arabia
+/// | `sa_vat` | Saudi Arabia VAT | | Senegal | `sn_ninea` | Senegal NINEA Number
+/// | | Serbia | `rs_pib` | Serbian PIB Number | | Singapore | `sg_gst` | Singaporean
+/// GST | | Singapore | `sg_uen` | Singaporean UEN | | Slovakia | `eu_vat` | European
+/// VAT Number | | Slovenia | `eu_vat` | European VAT Number | | Slovenia | `si_tin`
+/// | Slovenia Tax Number (davčna številka) | | South Africa | `za_vat` | South African
+/// VAT Number | | South Korea | `kr_brn` | Korean BRN | | Spain | `es_cif` | Spanish
+/// NIF Number (previously Spanish CIF Number) | | Spain | `eu_vat` | European VAT
+/// Number | | Suriname | `sr_fin` | Suriname FIN Number | | Sweden | `eu_vat` |
+/// European VAT Number | | Switzerland | `ch_uid` | Switzerland UID Number | | Switzerland
+/// | `ch_vat` | Switzerland VAT Number | | Taiwan | `tw_vat` | Taiwanese VAT | |
+/// Tajikistan | `tj_tin` | Tajikistan Tax Identification Number | | Tanzania | `tz_vat`
+/// | Tanzania VAT Number | | Thailand | `th_vat` | Thai VAT | | Turkey | `tr_tin`
+/// | Turkish Tax Identification Number | | Uganda | `ug_tin` | Uganda Tax Identification
+/// Number | | Ukraine | `ua_vat` | Ukrainian VAT | | United Arab Emirates | `ae_trn`
+/// | United Arab Emirates TRN | | United Kingdom | `gb_vat` | United Kingdom VAT
+/// Number | | United States | `us_ein` | United States EIN | | Uruguay | `uy_ruc`
+/// | Uruguayan RUC Number | | Uzbekistan | `uz_tin` | Uzbekistan TIN Number | | Uzbekistan
+/// | `uz_vat` | Uzbekistan VAT Number | | Venezuela | `ve_rif` | Venezuelan RIF
+/// Number | | Vietnam | `vn_tin` | Vietnamese Tax ID Number | | Zambia | `zm_tin`
+/// | Zambia Tax Identification Number | | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification
+/// Number |
///
[Serialization::JsonConverter(typeof(Orb::ModelConverter))]
public sealed record class CustomerTaxID : Orb::ModelBase, Orb::IFromRaw
diff --git a/src/Orb/Models/CustomerTaxIDProperties/Country.cs b/src/Orb/Models/CustomerTaxIDProperties/Country.cs
index 49c6cac34..7113440f4 100644
--- a/src/Orb/Models/CustomerTaxIDProperties/Country.cs
+++ b/src/Orb/Models/CustomerTaxIDProperties/Country.cs
@@ -11,52 +11,84 @@ public sealed record class Country(string value) : Orb::IEnum
public static readonly Country Ae = new("AE");
+ public static readonly Country Al = new("AL");
+
+ public static readonly Country Am = new("AM");
+
+ public static readonly Country Ao = new("AO");
+
public static readonly Country Ar = new("AR");
public static readonly Country At = new("AT");
public static readonly Country Au = new("AU");
+ public static readonly Country Aw = new("AW");
+
+ public static readonly Country Az = new("AZ");
+
+ public static readonly Country Ba = new("BA");
+
+ public static readonly Country Bb = new("BB");
+
+ public static readonly Country Bd = new("BD");
+
public static readonly Country Be = new("BE");
+ public static readonly Country Bf = new("BF");
+
public static readonly Country Bg = new("BG");
public static readonly Country Bh = new("BH");
+ public static readonly Country Bj = new("BJ");
+
public static readonly Country Bo = new("BO");
public static readonly Country Br = new("BR");
+ public static readonly Country Bs = new("BS");
+
+ public static readonly Country By = new("BY");
+
public static readonly Country Ca = new("CA");
+ public static readonly Country Cd = new("CD");
+
public static readonly Country Ch = new("CH");
public static readonly Country Cl = new("CL");
+ public static readonly Country Cm = new("CM");
+
public static readonly Country Cn = new("CN");
public static readonly Country Co = new("CO");
public static readonly Country Cr = new("CR");
+ public static readonly Country Cv = new("CV");
+
+ public static readonly Country De = new("DE");
+
public static readonly Country Cy = new("CY");
public static readonly Country Cz = new("CZ");
- public static readonly Country De = new("DE");
-
public static readonly Country Dk = new("DK");
- public static readonly Country Ee = new("EE");
-
public static readonly Country Do = new("DO");
public static readonly Country Ec = new("EC");
+ public static readonly Country Ee = new("EE");
+
public static readonly Country Eg = new("EG");
public static readonly Country Es = new("ES");
+ public static readonly Country Et = new("ET");
+
public static readonly Country Eu = new("EU");
public static readonly Country Fi = new("FI");
@@ -67,6 +99,8 @@ public sealed record class Country(string value) : Orb::IEnum
public static readonly Country Ge = new("GE");
+ public static readonly Country Gn = new("GN");
+
public static readonly Country Gr = new("GR");
public static readonly Country Hk = new("HK");
@@ -91,10 +125,16 @@ public sealed record class Country(string value) : Orb::IEnum
public static readonly Country Ke = new("KE");
+ public static readonly Country Kg = new("KG");
+
+ public static readonly Country Kh = new("KH");
+
public static readonly Country Kr = new("KR");
public static readonly Country Kz = new("KZ");
+ public static readonly Country La = new("LA");
+
public static readonly Country Li = new("LI");
public static readonly Country Lt = new("LT");
@@ -103,6 +143,16 @@ public sealed record class Country(string value) : Orb::IEnum
public static readonly Country Lv = new("LV");
+ public static readonly Country Ma = new("MA");
+
+ public static readonly Country Md = new("MD");
+
+ public static readonly Country Me = new("ME");
+
+ public static readonly Country Mk = new("MK");
+
+ public static readonly Country Mr = new("MR");
+
public static readonly Country Mt = new("MT");
public static readonly Country Mx = new("MX");
@@ -115,6 +165,8 @@ public sealed record class Country(string value) : Orb::IEnum
public static readonly Country No = new("NO");
+ public static readonly Country Np = new("NP");
+
public static readonly Country Nz = new("NZ");
public static readonly Country Om = new("OM");
@@ -143,60 +195,93 @@ public sealed record class Country(string value) : Orb::IEnum
public static readonly Country Sk = new("SK");
+ public static readonly Country Sn = new("SN");
+
+ public static readonly Country Sr = new("SR");
+
public static readonly Country Sv = new("SV");
public static readonly Country Th = new("TH");
+ public static readonly Country Tj = new("TJ");
+
public static readonly Country Tr = new("TR");
public static readonly Country Tw = new("TW");
+ public static readonly Country Tz = new("TZ");
+
public static readonly Country Ua = new("UA");
+ public static readonly Country Ug = new("UG");
+
public static readonly Country Us = new("US");
public static readonly Country Uy = new("UY");
+ public static readonly Country Uz = new("UZ");
+
public static readonly Country Ve = new("VE");
public static readonly Country Vn = new("VN");
public static readonly Country Za = new("ZA");
+ public static readonly Country Zm = new("ZM");
+
+ public static readonly Country Zw = new("ZW");
+
readonly string _value = value;
public enum Value
{
Ad,
Ae,
+ Al,
+ Am,
+ Ao,
Ar,
At,
Au,
+ Aw,
+ Az,
+ Ba,
+ Bb,
+ Bd,
Be,
+ Bf,
Bg,
Bh,
+ Bj,
Bo,
Br,
+ Bs,
+ By,
Ca,
+ Cd,
Ch,
Cl,
+ Cm,
Cn,
Co,
Cr,
+ Cv,
+ De,
Cy,
Cz,
- De,
Dk,
- Ee,
Do,
Ec,
+ Ee,
Eg,
Es,
+ Et,
Eu,
Fi,
Fr,
GB,
Ge,
+ Gn,
Gr,
Hk,
Hr,
@@ -209,18 +294,27 @@ public enum Value
It,
Jp,
Ke,
+ Kg,
+ Kh,
Kr,
Kz,
+ La,
Li,
Lt,
Lu,
Lv,
+ Ma,
+ Md,
+ Me,
+ Mk,
+ Mr,
Mt,
Mx,
My,
Ng,
Nl,
No,
+ Np,
Nz,
Om,
Pe,
@@ -235,16 +329,24 @@ public enum Value
Sg,
Si,
Sk,
+ Sn,
+ Sr,
Sv,
Th,
+ Tj,
Tr,
Tw,
+ Tz,
Ua,
+ Ug,
Us,
Uy,
+ Uz,
Ve,
Vn,
Za,
+ Zm,
+ Zw,
}
public Value Known() =>
@@ -252,34 +354,51 @@ public Value Known() =>
{
"AD" => Value.Ad,
"AE" => Value.Ae,
+ "AL" => Value.Al,
+ "AM" => Value.Am,
+ "AO" => Value.Ao,
"AR" => Value.Ar,
"AT" => Value.At,
"AU" => Value.Au,
+ "AW" => Value.Aw,
+ "AZ" => Value.Az,
+ "BA" => Value.Ba,
+ "BB" => Value.Bb,
+ "BD" => Value.Bd,
"BE" => Value.Be,
+ "BF" => Value.Bf,
"BG" => Value.Bg,
"BH" => Value.Bh,
+ "BJ" => Value.Bj,
"BO" => Value.Bo,
"BR" => Value.Br,
+ "BS" => Value.Bs,
+ "BY" => Value.By,
"CA" => Value.Ca,
+ "CD" => Value.Cd,
"CH" => Value.Ch,
"CL" => Value.Cl,
+ "CM" => Value.Cm,
"CN" => Value.Cn,
"CO" => Value.Co,
"CR" => Value.Cr,
+ "CV" => Value.Cv,
+ "DE" => Value.De,
"CY" => Value.Cy,
"CZ" => Value.Cz,
- "DE" => Value.De,
"DK" => Value.Dk,
- "EE" => Value.Ee,
"DO" => Value.Do,
"EC" => Value.Ec,
+ "EE" => Value.Ee,
"EG" => Value.Eg,
"ES" => Value.Es,
+ "ET" => Value.Et,
"EU" => Value.Eu,
"FI" => Value.Fi,
"FR" => Value.Fr,
"GB" => Value.GB,
"GE" => Value.Ge,
+ "GN" => Value.Gn,
"GR" => Value.Gr,
"HK" => Value.Hk,
"HR" => Value.Hr,
@@ -292,18 +411,27 @@ public Value Known() =>
"IT" => Value.It,
"JP" => Value.Jp,
"KE" => Value.Ke,
+ "KG" => Value.Kg,
+ "KH" => Value.Kh,
"KR" => Value.Kr,
"KZ" => Value.Kz,
+ "LA" => Value.La,
"LI" => Value.Li,
"LT" => Value.Lt,
"LU" => Value.Lu,
"LV" => Value.Lv,
+ "MA" => Value.Ma,
+ "MD" => Value.Md,
+ "ME" => Value.Me,
+ "MK" => Value.Mk,
+ "MR" => Value.Mr,
"MT" => Value.Mt,
"MX" => Value.Mx,
"MY" => Value.My,
"NG" => Value.Ng,
"NL" => Value.Nl,
"NO" => Value.No,
+ "NP" => Value.Np,
"NZ" => Value.Nz,
"OM" => Value.Om,
"PE" => Value.Pe,
@@ -318,16 +446,24 @@ public Value Known() =>
"SG" => Value.Sg,
"SI" => Value.Si,
"SK" => Value.Sk,
+ "SN" => Value.Sn,
+ "SR" => Value.Sr,
"SV" => Value.Sv,
"TH" => Value.Th,
+ "TJ" => Value.Tj,
"TR" => Value.Tr,
"TW" => Value.Tw,
+ "TZ" => Value.Tz,
"UA" => Value.Ua,
+ "UG" => Value.Ug,
"US" => Value.Us,
"UY" => Value.Uy,
+ "UZ" => Value.Uz,
"VE" => Value.Ve,
"VN" => Value.Vn,
"ZA" => Value.Za,
+ "ZM" => Value.Zm,
+ "ZW" => Value.Zw,
_ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
};
diff --git a/src/Orb/Models/CustomerTaxIDProperties/Type.cs b/src/Orb/Models/CustomerTaxIDProperties/Type.cs
index 661d989d0..ac5011c52 100644
--- a/src/Orb/Models/CustomerTaxIDProperties/Type.cs
+++ b/src/Orb/Models/CustomerTaxIDProperties/Type.cs
@@ -11,6 +11,12 @@ public sealed record class Type(string value) : Orb::IEnum
public static readonly Type AeTrn = new("ae_trn");
+ public static readonly Type AlTin = new("al_tin");
+
+ public static readonly Type AmTin = new("am_tin");
+
+ public static readonly Type AoTin = new("ao_tin");
+
public static readonly Type ArCuit = new("ar_cuit");
public static readonly Type EuVat = new("eu_vat");
@@ -19,16 +25,34 @@ public sealed record class Type(string value) : Orb::IEnum
public static readonly Type AuArn = new("au_arn");
+ public static readonly Type AwTin = new("aw_tin");
+
+ public static readonly Type AzTin = new("az_tin");
+
+ public static readonly Type BaTin = new("ba_tin");
+
+ public static readonly Type BbTin = new("bb_tin");
+
+ public static readonly Type BdBin = new("bd_bin");
+
+ public static readonly Type BfIfu = new("bf_ifu");
+
public static readonly Type BgUic = new("bg_uic");
public static readonly Type BhVat = new("bh_vat");
+ public static readonly Type BjIfu = new("bj_ifu");
+
public static readonly Type BoTin = new("bo_tin");
public static readonly Type BrCnpj = new("br_cnpj");
public static readonly Type BrCpf = new("br_cpf");
+ public static readonly Type BsTin = new("bs_tin");
+
+ public static readonly Type ByTin = new("by_tin");
+
public static readonly Type CaBn = new("ca_bn");
public static readonly Type CaGstHst = new("ca_gst_hst");
@@ -41,16 +65,26 @@ public sealed record class Type(string value) : Orb::IEnum
public static readonly Type CaQst = new("ca_qst");
+ public static readonly Type CdNif = new("cd_nif");
+
+ public static readonly Type ChUid = new("ch_uid");
+
public static readonly Type ChVat = new("ch_vat");
public static readonly Type ClTin = new("cl_tin");
+ public static readonly Type CmNiu = new("cm_niu");
+
public static readonly Type CnTin = new("cn_tin");
public static readonly Type CoNit = new("co_nit");
public static readonly Type CrTin = new("cr_tin");
+ public static readonly Type CvNif = new("cv_nif");
+
+ public static readonly Type DeStn = new("de_stn");
+
public static readonly Type DoRcn = new("do_rcn");
public static readonly Type EcRuc = new("ec_ruc");
@@ -59,14 +93,20 @@ public sealed record class Type(string value) : Orb::IEnum
public static readonly Type EsCif = new("es_cif");
+ public static readonly Type EtTin = new("et_tin");
+
public static readonly Type EuOssVat = new("eu_oss_vat");
public static readonly Type GBVat = new("gb_vat");
public static readonly Type GeVat = new("ge_vat");
+ public static readonly Type GnNif = new("gn_nif");
+
public static readonly Type HkBr = new("hk_br");
+ public static readonly Type HrOib = new("hr_oib");
+
public static readonly Type HuTin = new("hu_tin");
public static readonly Type IDNpwp = new("id_npwp");
@@ -85,12 +125,30 @@ public sealed record class Type(string value) : Orb::IEnum
public static readonly Type KePin = new("ke_pin");
+ public static readonly Type KgTin = new("kg_tin");
+
+ public static readonly Type KhTin = new("kh_tin");
+
public static readonly Type KrBrn = new("kr_brn");
public static readonly Type KzBin = new("kz_bin");
+ public static readonly Type LaTin = new("la_tin");
+
public static readonly Type LiUid = new("li_uid");
+ public static readonly Type LiVat = new("li_vat");
+
+ public static readonly Type MaVat = new("ma_vat");
+
+ public static readonly Type MdVat = new("md_vat");
+
+ public static readonly Type MePib = new("me_pib");
+
+ public static readonly Type MkVat = new("mk_vat");
+
+ public static readonly Type MrNif = new("mr_nif");
+
public static readonly Type MxRfc = new("mx_rfc");
public static readonly Type MyFrp = new("my_frp");
@@ -105,6 +163,8 @@ public sealed record class Type(string value) : Orb::IEnum
public static readonly Type NoVoec = new("no_voec");
+ public static readonly Type NpPan = new("np_pan");
+
public static readonly Type NzGst = new("nz_gst");
public static readonly Type OmVat = new("om_vat");
@@ -129,60 +189,98 @@ public sealed record class Type(string value) : Orb::IEnum
public static readonly Type SiTin = new("si_tin");
+ public static readonly Type SnNinea = new("sn_ninea");
+
+ public static readonly Type SrFin = new("sr_fin");
+
public static readonly Type SvNit = new("sv_nit");
public static readonly Type ThVat = new("th_vat");
+ public static readonly Type TjTin = new("tj_tin");
+
public static readonly Type TrTin = new("tr_tin");
public static readonly Type TwVat = new("tw_vat");
+ public static readonly Type TzVat = new("tz_vat");
+
public static readonly Type UaVat = new("ua_vat");
+ public static readonly Type UgTin = new("ug_tin");
+
public static readonly Type UsEin = new("us_ein");
public static readonly Type UyRuc = new("uy_ruc");
+ public static readonly Type UzTin = new("uz_tin");
+
+ public static readonly Type UzVat = new("uz_vat");
+
public static readonly Type VeRif = new("ve_rif");
public static readonly Type VnTin = new("vn_tin");
public static readonly Type ZaVat = new("za_vat");
+ public static readonly Type ZmTin = new("zm_tin");
+
+ public static readonly Type ZwTin = new("zw_tin");
+
readonly string _value = value;
public enum Value
{
AdNrt,
AeTrn,
+ AlTin,
+ AmTin,
+ AoTin,
ArCuit,
EuVat,
AuAbn,
AuArn,
+ AwTin,
+ AzTin,
+ BaTin,
+ BbTin,
+ BdBin,
+ BfIfu,
BgUic,
BhVat,
+ BjIfu,
BoTin,
BrCnpj,
BrCpf,
+ BsTin,
+ ByTin,
CaBn,
CaGstHst,
CaPstBc,
CaPstMB,
CaPstSk,
CaQst,
+ CdNif,
+ ChUid,
ChVat,
ClTin,
+ CmNiu,
CnTin,
CoNit,
CrTin,
+ CvNif,
+ DeStn,
DoRcn,
EcRuc,
EgTin,
EsCif,
+ EtTin,
EuOssVat,
GBVat,
GeVat,
+ GnNif,
HkBr,
+ HrOib,
HuTin,
IDNpwp,
IlVat,
@@ -192,9 +290,18 @@ public enum Value
JpRn,
JpTrn,
KePin,
+ KgTin,
+ KhTin,
KrBrn,
KzBin,
+ LaTin,
LiUid,
+ LiVat,
+ MaVat,
+ MdVat,
+ MePib,
+ MkVat,
+ MrNif,
MxRfc,
MyFrp,
MyItn,
@@ -202,6 +309,7 @@ public enum Value
NgTin,
NoVat,
NoVoec,
+ NpPan,
NzGst,
OmVat,
PeRuc,
@@ -214,16 +322,25 @@ public enum Value
SgGst,
SgUen,
SiTin,
+ SnNinea,
+ SrFin,
SvNit,
ThVat,
+ TjTin,
TrTin,
TwVat,
+ TzVat,
UaVat,
+ UgTin,
UsEin,
UyRuc,
+ UzTin,
+ UzVat,
VeRif,
VnTin,
ZaVat,
+ ZmTin,
+ ZwTin,
}
public Value Known() =>
@@ -231,34 +348,54 @@ public Value Known() =>
{
"ad_nrt" => Value.AdNrt,
"ae_trn" => Value.AeTrn,
+ "al_tin" => Value.AlTin,
+ "am_tin" => Value.AmTin,
+ "ao_tin" => Value.AoTin,
"ar_cuit" => Value.ArCuit,
"eu_vat" => Value.EuVat,
"au_abn" => Value.AuAbn,
"au_arn" => Value.AuArn,
+ "aw_tin" => Value.AwTin,
+ "az_tin" => Value.AzTin,
+ "ba_tin" => Value.BaTin,
+ "bb_tin" => Value.BbTin,
+ "bd_bin" => Value.BdBin,
+ "bf_ifu" => Value.BfIfu,
"bg_uic" => Value.BgUic,
"bh_vat" => Value.BhVat,
+ "bj_ifu" => Value.BjIfu,
"bo_tin" => Value.BoTin,
"br_cnpj" => Value.BrCnpj,
"br_cpf" => Value.BrCpf,
+ "bs_tin" => Value.BsTin,
+ "by_tin" => Value.ByTin,
"ca_bn" => Value.CaBn,
"ca_gst_hst" => Value.CaGstHst,
"ca_pst_bc" => Value.CaPstBc,
"ca_pst_mb" => Value.CaPstMB,
"ca_pst_sk" => Value.CaPstSk,
"ca_qst" => Value.CaQst,
+ "cd_nif" => Value.CdNif,
+ "ch_uid" => Value.ChUid,
"ch_vat" => Value.ChVat,
"cl_tin" => Value.ClTin,
+ "cm_niu" => Value.CmNiu,
"cn_tin" => Value.CnTin,
"co_nit" => Value.CoNit,
"cr_tin" => Value.CrTin,
+ "cv_nif" => Value.CvNif,
+ "de_stn" => Value.DeStn,
"do_rcn" => Value.DoRcn,
"ec_ruc" => Value.EcRuc,
"eg_tin" => Value.EgTin,
"es_cif" => Value.EsCif,
+ "et_tin" => Value.EtTin,
"eu_oss_vat" => Value.EuOssVat,
"gb_vat" => Value.GBVat,
"ge_vat" => Value.GeVat,
+ "gn_nif" => Value.GnNif,
"hk_br" => Value.HkBr,
+ "hr_oib" => Value.HrOib,
"hu_tin" => Value.HuTin,
"id_npwp" => Value.IDNpwp,
"il_vat" => Value.IlVat,
@@ -268,9 +405,18 @@ public Value Known() =>
"jp_rn" => Value.JpRn,
"jp_trn" => Value.JpTrn,
"ke_pin" => Value.KePin,
+ "kg_tin" => Value.KgTin,
+ "kh_tin" => Value.KhTin,
"kr_brn" => Value.KrBrn,
"kz_bin" => Value.KzBin,
+ "la_tin" => Value.LaTin,
"li_uid" => Value.LiUid,
+ "li_vat" => Value.LiVat,
+ "ma_vat" => Value.MaVat,
+ "md_vat" => Value.MdVat,
+ "me_pib" => Value.MePib,
+ "mk_vat" => Value.MkVat,
+ "mr_nif" => Value.MrNif,
"mx_rfc" => Value.MxRfc,
"my_frp" => Value.MyFrp,
"my_itn" => Value.MyItn,
@@ -278,6 +424,7 @@ public Value Known() =>
"ng_tin" => Value.NgTin,
"no_vat" => Value.NoVat,
"no_voec" => Value.NoVoec,
+ "np_pan" => Value.NpPan,
"nz_gst" => Value.NzGst,
"om_vat" => Value.OmVat,
"pe_ruc" => Value.PeRuc,
@@ -290,16 +437,25 @@ public Value Known() =>
"sg_gst" => Value.SgGst,
"sg_uen" => Value.SgUen,
"si_tin" => Value.SiTin,
+ "sn_ninea" => Value.SnNinea,
+ "sr_fin" => Value.SrFin,
"sv_nit" => Value.SvNit,
"th_vat" => Value.ThVat,
+ "tj_tin" => Value.TjTin,
"tr_tin" => Value.TrTin,
"tw_vat" => Value.TwVat,
+ "tz_vat" => Value.TzVat,
"ua_vat" => Value.UaVat,
+ "ug_tin" => Value.UgTin,
"us_ein" => Value.UsEin,
"uy_ruc" => Value.UyRuc,
+ "uz_tin" => Value.UzTin,
+ "uz_vat" => Value.UzVat,
"ve_rif" => Value.VeRif,
"vn_tin" => Value.VnTin,
"za_vat" => Value.ZaVat,
+ "zm_tin" => Value.ZmTin,
+ "zw_tin" => Value.ZwTin,
_ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
};
diff --git a/src/Orb/Models/Customers/Customer.cs b/src/Orb/Models/Customers/Customer.cs
index d9c71b390..7da3cdcb5 100644
--- a/src/Orb/Models/Customers/Customer.cs
+++ b/src/Orb/Models/Customers/Customer.cs
@@ -362,111 +362,102 @@ public required string? PortalURL
///
/// ### Supported Tax ID Countries and Types
///
- /// | Country | Type | Description
- /// | |----------------|--------------|---------------------------------------------|
- /// | Andorra | `ad_nrt` | Andorran NRT Number
- /// | | Argentina | `ar_cuit` | Argentinian Tax ID Number
- /// | | Australia | `au_abn` | Australian Business Number (AU ABN)
- /// | | Australia | `au_arn` | Australian Taxation Office
- /// Reference Number | | Austria | `eu_vat` | European VAT Number
- /// | | Bahrain | `bh_vat` | Bahraini VAT Number
- /// | | Belgium | `eu_vat` | European VAT Number
- /// | | Bolivia | `bo_tin` | Bolivian Tax ID
- /// | | Brazil | `br_cnpj` | Brazilian CNPJ
- /// Number | | Brazil | `br_cpf` | Brazilian CPF
- /// Number | | Bulgaria | `bg_uic` | Bulgaria
- /// Unified Identification Code | | Bulgaria | `eu_vat` | European
- /// VAT Number | | Canada | `ca_bn` | Canadian
- /// BN | | Canada | `ca_gst_hst` | Canadian
- /// GST/HST Number | | Canada | `ca_pst_bc` | Canadian
- /// PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
- /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian
- /// PST Number (Saskatchewan) | | Canada | `ca_qst` | Canadian
- /// QST Number (Québec) | | Chile | `cl_tin` | Chilean
- /// TIN | | China | `cn_tin` | Chinese
- /// Tax ID | | Colombia | `co_nit` | Colombian
- /// NIT Number | | Costa Rica | `cr_tin` | Costa
- /// Rican Tax ID | | Croatia | `eu_vat` | European
- /// VAT Number | | Cyprus | `eu_vat` | European
- /// VAT Number | | Czech Republic | `eu_vat` | European
- /// VAT Number | | Denmark | `eu_vat` | European
- /// VAT Number | | Dominican Republic | `do_rcn` | Dominican
- /// RCN Number | | Ecuador | `ec_ruc` | Ecuadorian
- /// RUC Number | | Egypt | `eg_tin` | Egyptian
- /// Tax Identification Number | | El Salvador | `sv_nit`
- /// | El Salvadorian NIT Number | | Estonia | `eu_vat` |
- /// European VAT Number | | EU | `eu_oss_vat` | European One Stop Shop
- /// VAT Number for non-Union scheme | | Finland | `eu_vat` | European VAT
- /// Number | | France | `eu_vat` | European
- /// VAT Number | | Georgia | `ge_vat` |
- /// Georgian VAT | | Germany | `eu_vat`
- /// | European VAT Number | | Greece
- /// | `eu_vat` | European VAT Number | |
- /// Hong Kong | `hk_br` | Hong Kong BR Number
- /// | | Hungary | `eu_vat` | European VAT Number
- /// | | Hungary | `hu_tin` | Hungary Tax Number (adószám)
- /// | | Iceland | `is_vat` | Icelandic VAT
- /// | | India | `in_gst` | Indian GST
- /// Number | | Indonesia | `id_npwp` | Indonesian
- /// NPWP Number | | Ireland | `eu_vat` |
- /// European VAT Number | | Israel | `il_vat`
- /// | Israel VAT | | Italy
- /// | `eu_vat` | European VAT Number | |
- /// Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*)
- /// | | Japan | `jp_rn` | Japanese Registered Foreign Businesses'
- /// Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) | |
- /// Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
- /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification
- /// Number | | Kenya | `ke_pin` | Kenya Revenue Authority
- /// Personal Identification Number | | Latvia | `eu_vat` | European VAT Number
- /// | | Liechtenstein | `li_uid` | Liechtensteinian
- /// UID Number | | Lithuania | `eu_vat` | European VAT Number
- /// | | Luxembourg | `eu_vat` | European VAT Number
- /// | | Malaysia | `my_frp` | Malaysian FRP Number
- /// | | Malaysia | `my_itn` | Malaysian ITN
- /// | | Malaysia | `my_sst` | Malaysian SST Number |
- /// | Malta | `eu_vat ` | European VAT Number | | Mexico
- /// | `mx_rfc` | Mexican RFC Number | | Netherlands
- /// | `eu_vat` | European VAT Number | | New Zealand |
- /// `nz_gst` | New Zealand GST Number | | Nigeria |
- /// `ng_tin` | Nigerian Tax Identification Number | | Norway | `no_vat`
- /// | Norwegian VAT Number | | Norway | `no_voec` | Norwegian
- /// VAT on e-commerce Number | | Oman | `om_vat` | Omani VAT Number
- /// | | Peru | `pe_ruc` | Peruvian RUC Number
- /// | | Philippines | `ph_tin ` | Philippines Tax Identification
- /// Number | | Poland | `eu_vat` | European VAT Number
- /// | | Portugal | `eu_vat` | European VAT Number | |
- /// Romania | `eu_vat` | European VAT Number | | Romania
- /// | `ro_tin` | Romanian Tax ID Number | | Russia
- /// | `ru_inn` | Russian INN | | Russia | `ru_kpp`
- /// | Russian KPP | | Saudi Arabia | `sa_vat` | Saudi
- /// Arabia VAT | | Serbia | `rs_pib` | Serbian PIB
- /// Number | | Singapore | `sg_gst` | Singaporean GST
- /// | | Singapore | `sg_uen` | Singaporean UEN
- /// | | Slovakia | `eu_vat` | European VAT Number
- /// | | Slovenia | `eu_vat` | European VAT Number
- /// | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka)
- /// | | South Africa | `za_vat` | South African VAT
- /// Number | | South Korea | `kr_brn` | Korean
- /// BRN | | Spain | `es_cif`
- /// | Spanish NIF Number (previously Spanish CIF Number) | | Spain
- /// | `eu_vat` | European VAT Number | |
- /// Sweden | `eu_vat` | European VAT Number
- /// | | Switzerland | `ch_vat` | Switzerland VAT Number
- /// | | Taiwan | `tw_vat` | Taiwanese VAT
- /// | | Thailand | `th_vat` |
- /// Thai VAT | | Turkey
- /// | `tr_tin` | Turkish Tax Identification Number | | Ukraine
- /// | `ua_vat` | Ukrainian VAT
- /// | | United Arab Emirates | `ae_trn` | United Arab Emirates TRN
- /// | | United Kingdom | `eu_vat` | Northern Ireland
- /// VAT Number | | United Kingdom | `gb_vat` | United
- /// Kingdom VAT Number | | United States | `us_ein`
- /// | United States EIN | | Uruguay
- /// | `uy_ruc` | Uruguayan RUC Number | | Venezuela
- /// | `ve_rif` | Venezuelan RIF Number
- /// | | Vietnam | `vn_tin` | Vietnamese Tax ID Number
- /// |
+ /// | Country | Type | Description | |---------|------|-------------| | Albania
+ /// | `al_tin` | Albania Tax Identification Number | | Andorra | `ad_nrt` | Andorran
+ /// NRT Number | | Angola | `ao_tin` | Angola Tax Identification Number | | Argentina
+ /// | `ar_cuit` | Argentinian Tax ID Number | | Armenia | `am_tin` | Armenia Tax
+ /// Identification Number | | Aruba | `aw_tin` | Aruba Tax Identification Number
+ /// | | Australia | `au_abn` | Australian Business Number (AU ABN) | | Australia
+ /// | `au_arn` | Australian Taxation Office Reference Number | | Austria | `eu_vat`
+ /// | European VAT Number | | Azerbaijan | `az_tin` | Azerbaijan Tax Identification
+ /// Number | | Bahamas | `bs_tin` | Bahamas Tax Identification Number | | Bahrain
+ /// | `bh_vat` | Bahraini VAT Number | | Bangladesh | `bd_bin` | Bangladesh Business
+ /// Identification Number | | Barbados | `bb_tin` | Barbados Tax Identification
+ /// Number | | Belarus | `by_tin` | Belarus TIN Number | | Belgium | `eu_vat` |
+ /// European VAT Number | | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant
+ /// Fiscal Unique) | | Bolivia | `bo_tin` | Bolivian Tax ID | | Bosnia and Herzegovina
+ /// | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | | Brazil | `br_cnpj`
+ /// | Brazilian CNPJ Number | | Brazil | `br_cpf` | Brazilian CPF Number | | Bulgaria
+ /// | `bg_uic` | Bulgaria Unified Identification Code | | Bulgaria | `eu_vat` |
+ /// European VAT Number | | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification
+ /// Number (Numéro d'Identifiant Fiscal Unique) | | Cambodia | `kh_tin` | Cambodia
+ /// Tax Identification Number | | Cameroon | `cm_niu` | Cameroon Tax Identification
+ /// Number (Numéro d'Identifiant fiscal Unique) | | Canada | `ca_bn` | Canadian
+ /// BN | | Canada | `ca_gst_hst` | Canadian GST/HST Number | | Canada | `ca_pst_bc`
+ /// | Canadian PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
+ /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan)
+ /// | | Canada | `ca_qst` | Canadian QST Number (Québec) | | Cape Verde | `cv_nif`
+ /// | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | |
+ /// Chile | `cl_tin` | Chilean TIN | | China | `cn_tin` | Chinese Tax ID | | Colombia
+ /// | `co_nit` | Colombian NIT Number | | Congo-Kinshasa | `cd_nif` | Congo (DR)
+ /// Tax Identification Number (Número de Identificação Fiscal) | | Costa Rica |
+ /// `cr_tin` | Costa Rican Tax ID | | Croatia | `eu_vat` | European VAT Number |
+ /// | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | | Cyprus
+ /// | `eu_vat` | European VAT Number | | Czech Republic | `eu_vat` | European VAT
+ /// Number | | Denmark | `eu_vat` | European VAT Number | | Dominican Republic
+ /// | `do_rcn` | Dominican RCN Number | | Ecuador | `ec_ruc` | Ecuadorian RUC Number
+ /// | | Egypt | `eg_tin` | Egyptian Tax Identification Number | | El Salvador |
+ /// `sv_nit` | El Salvadorian NIT Number | | Estonia | `eu_vat` | European VAT
+ /// Number | | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | | European
+ /// Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme
+ /// | | Finland | `eu_vat` | European VAT Number | | France | `eu_vat` | European
+ /// VAT Number | | Georgia | `ge_vat` | Georgian VAT | | Germany | `de_stn` | German
+ /// Tax Number (Steuernummer) | | Germany | `eu_vat` | European VAT Number | |
+ /// Greece | `eu_vat` | European VAT Number | | Guinea | `gn_nif` | Guinea Tax Identification
+ /// Number (Número de Identificação Fiscal) | | Hong Kong | `hk_br` | Hong Kong
+ /// BR Number | | Hungary | `eu_vat` | European VAT Number | | Hungary | `hu_tin`
+ /// | Hungary Tax Number (adószám) | | Iceland | `is_vat` | Icelandic VAT | | India
+ /// | `in_gst` | Indian GST Number | | Indonesia | `id_npwp` | Indonesian NPWP
+ /// Number | | Ireland | `eu_vat` | European VAT Number | | Israel | `il_vat` |
+ /// Israel VAT | | Italy | `eu_vat` | European VAT Number | | Japan | `jp_cn` |
+ /// Japanese Corporate Number (*Hōjin Bangō*) | | Japan | `jp_rn` | Japanese Registered
+ /// Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku
+ /// Bangō*) | | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
+ /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | |
+ /// Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
+ /// | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | | Laos | `la_tin`
+ /// | Laos Tax Identification Number | | Latvia | `eu_vat` | European VAT Number
+ /// | | Liechtenstein | `li_uid` | Liechtensteinian UID Number | | Liechtenstein
+ /// | `li_vat` | Liechtenstein VAT Number | | Lithuania | `eu_vat` | European VAT
+ /// Number | | Luxembourg | `eu_vat` | European VAT Number | | Malaysia | `my_frp`
+ /// | Malaysian FRP Number | | Malaysia | `my_itn` | Malaysian ITN | | Malaysia
+ /// | `my_sst` | Malaysian SST Number | | Malta | `eu_vat` | European VAT Number
+ /// | | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de
+ /// Identificação Fiscal) | | Mexico | `mx_rfc` | Mexican RFC Number | | Moldova
+ /// | `md_vat` | Moldova VAT Number | | Montenegro | `me_pib` | Montenegro PIB
+ /// Number | | Morocco | `ma_vat` | Morocco VAT Number | | Nepal | `np_pan` | Nepal
+ /// PAN Number | | Netherlands | `eu_vat` | European VAT Number | | New Zealand
+ /// | `nz_gst` | New Zealand GST Number | | Nigeria | `ng_tin` | Nigerian Tax Identification
+ /// Number | | North Macedonia | `mk_vat` | North Macedonia VAT Number | | Northern
+ /// Ireland | `eu_vat` | Northern Ireland VAT Number | | Norway | `no_vat` | Norwegian
+ /// VAT Number | | Norway | `no_voec` | Norwegian VAT on e-commerce Number | | Oman
+ /// | `om_vat` | Omani VAT Number | | Peru | `pe_ruc` | Peruvian RUC Number | |
+ /// Philippines | `ph_tin` | Philippines Tax Identification Number | | Poland |
+ /// `eu_vat` | European VAT Number | | Portugal | `eu_vat` | European VAT Number
+ /// | | Romania | `eu_vat` | European VAT Number | | Romania | `ro_tin` | Romanian
+ /// Tax ID Number | | Russia | `ru_inn` | Russian INN | | Russia | `ru_kpp` | Russian
+ /// KPP | | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | | Senegal | `sn_ninea`
+ /// | Senegal NINEA Number | | Serbia | `rs_pib` | Serbian PIB Number | | Singapore
+ /// | `sg_gst` | Singaporean GST | | Singapore | `sg_uen` | Singaporean UEN | |
+ /// Slovakia | `eu_vat` | European VAT Number | | Slovenia | `eu_vat` | European
+ /// VAT Number | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
+ /// | South Africa | `za_vat` | South African VAT Number | | South Korea | `kr_brn`
+ /// | Korean BRN | | Spain | `es_cif` | Spanish NIF Number (previously Spanish
+ /// CIF Number) | | Spain | `eu_vat` | European VAT Number | | Suriname | `sr_fin`
+ /// | Suriname FIN Number | | Sweden | `eu_vat` | European VAT Number | | Switzerland
+ /// | `ch_uid` | Switzerland UID Number | | Switzerland | `ch_vat` | Switzerland
+ /// VAT Number | | Taiwan | `tw_vat` | Taiwanese VAT | | Tajikistan | `tj_tin`
+ /// | Tajikistan Tax Identification Number | | Tanzania | `tz_vat` | Tanzania VAT
+ /// Number | | Thailand | `th_vat` | Thai VAT | | Turkey | `tr_tin` | Turkish Tax
+ /// Identification Number | | Uganda | `ug_tin` | Uganda Tax Identification Number
+ /// | | Ukraine | `ua_vat` | Ukrainian VAT | | United Arab Emirates | `ae_trn` |
+ /// United Arab Emirates TRN | | United Kingdom | `gb_vat` | United Kingdom VAT
+ /// Number | | United States | `us_ein` | United States EIN | | Uruguay | `uy_ruc`
+ /// | Uruguayan RUC Number | | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
+ /// | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | | Venezuela | `ve_rif` |
+ /// Venezuelan RIF Number | | Vietnam | `vn_tin` | Vietnamese Tax ID Number | |
+ /// Zambia | `zm_tin` | Zambia Tax Identification Number | | Zimbabwe | `zw_tin`
+ /// | Zimbabwe Tax Identification Number |
///
public required Models::CustomerTaxID? TaxID
{
diff --git a/src/Orb/Models/Customers/CustomerCreateParams.cs b/src/Orb/Models/Customers/CustomerCreateParams.cs
index 79f899fb5..287b0cf6e 100644
--- a/src/Orb/Models/Customers/CustomerCreateParams.cs
+++ b/src/Orb/Models/Customers/CustomerCreateParams.cs
@@ -340,111 +340,102 @@ public AddressInput? ShippingAddress
///
/// ### Supported Tax ID Countries and Types
///
- /// | Country | Type | Description
- /// | |----------------|--------------|---------------------------------------------|
- /// | Andorra | `ad_nrt` | Andorran NRT Number
- /// | | Argentina | `ar_cuit` | Argentinian Tax ID Number
- /// | | Australia | `au_abn` | Australian Business Number (AU ABN)
- /// | | Australia | `au_arn` | Australian Taxation Office
- /// Reference Number | | Austria | `eu_vat` | European VAT Number
- /// | | Bahrain | `bh_vat` | Bahraini VAT Number
- /// | | Belgium | `eu_vat` | European VAT Number
- /// | | Bolivia | `bo_tin` | Bolivian Tax ID
- /// | | Brazil | `br_cnpj` | Brazilian CNPJ
- /// Number | | Brazil | `br_cpf` | Brazilian CPF
- /// Number | | Bulgaria | `bg_uic` | Bulgaria
- /// Unified Identification Code | | Bulgaria | `eu_vat` | European
- /// VAT Number | | Canada | `ca_bn` | Canadian
- /// BN | | Canada | `ca_gst_hst` | Canadian
- /// GST/HST Number | | Canada | `ca_pst_bc` | Canadian
- /// PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
- /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian
- /// PST Number (Saskatchewan) | | Canada | `ca_qst` | Canadian
- /// QST Number (Québec) | | Chile | `cl_tin` | Chilean
- /// TIN | | China | `cn_tin` | Chinese
- /// Tax ID | | Colombia | `co_nit` | Colombian
- /// NIT Number | | Costa Rica | `cr_tin` | Costa
- /// Rican Tax ID | | Croatia | `eu_vat` | European
- /// VAT Number | | Cyprus | `eu_vat` | European
- /// VAT Number | | Czech Republic | `eu_vat` | European
- /// VAT Number | | Denmark | `eu_vat` | European
- /// VAT Number | | Dominican Republic | `do_rcn` | Dominican
- /// RCN Number | | Ecuador | `ec_ruc` | Ecuadorian
- /// RUC Number | | Egypt | `eg_tin` | Egyptian
- /// Tax Identification Number | | El Salvador | `sv_nit`
- /// | El Salvadorian NIT Number | | Estonia | `eu_vat` |
- /// European VAT Number | | EU | `eu_oss_vat` | European One Stop Shop
- /// VAT Number for non-Union scheme | | Finland | `eu_vat` | European VAT
- /// Number | | France | `eu_vat` | European
- /// VAT Number | | Georgia | `ge_vat` |
- /// Georgian VAT | | Germany | `eu_vat`
- /// | European VAT Number | | Greece
- /// | `eu_vat` | European VAT Number | |
- /// Hong Kong | `hk_br` | Hong Kong BR Number
- /// | | Hungary | `eu_vat` | European VAT Number
- /// | | Hungary | `hu_tin` | Hungary Tax Number (adószám)
- /// | | Iceland | `is_vat` | Icelandic VAT
- /// | | India | `in_gst` | Indian GST
- /// Number | | Indonesia | `id_npwp` | Indonesian
- /// NPWP Number | | Ireland | `eu_vat` |
- /// European VAT Number | | Israel | `il_vat`
- /// | Israel VAT | | Italy
- /// | `eu_vat` | European VAT Number | |
- /// Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*)
- /// | | Japan | `jp_rn` | Japanese Registered Foreign Businesses'
- /// Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) | |
- /// Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
- /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification
- /// Number | | Kenya | `ke_pin` | Kenya Revenue Authority
- /// Personal Identification Number | | Latvia | `eu_vat` | European VAT Number
- /// | | Liechtenstein | `li_uid` | Liechtensteinian
- /// UID Number | | Lithuania | `eu_vat` | European VAT Number
- /// | | Luxembourg | `eu_vat` | European VAT Number
- /// | | Malaysia | `my_frp` | Malaysian FRP Number
- /// | | Malaysia | `my_itn` | Malaysian ITN
- /// | | Malaysia | `my_sst` | Malaysian SST Number |
- /// | Malta | `eu_vat ` | European VAT Number | | Mexico
- /// | `mx_rfc` | Mexican RFC Number | | Netherlands
- /// | `eu_vat` | European VAT Number | | New Zealand |
- /// `nz_gst` | New Zealand GST Number | | Nigeria |
- /// `ng_tin` | Nigerian Tax Identification Number | | Norway | `no_vat`
- /// | Norwegian VAT Number | | Norway | `no_voec` | Norwegian
- /// VAT on e-commerce Number | | Oman | `om_vat` | Omani VAT Number
- /// | | Peru | `pe_ruc` | Peruvian RUC Number
- /// | | Philippines | `ph_tin ` | Philippines Tax Identification
- /// Number | | Poland | `eu_vat` | European VAT Number
- /// | | Portugal | `eu_vat` | European VAT Number | |
- /// Romania | `eu_vat` | European VAT Number | | Romania
- /// | `ro_tin` | Romanian Tax ID Number | | Russia
- /// | `ru_inn` | Russian INN | | Russia | `ru_kpp`
- /// | Russian KPP | | Saudi Arabia | `sa_vat` | Saudi
- /// Arabia VAT | | Serbia | `rs_pib` | Serbian PIB
- /// Number | | Singapore | `sg_gst` | Singaporean GST
- /// | | Singapore | `sg_uen` | Singaporean UEN
- /// | | Slovakia | `eu_vat` | European VAT Number
- /// | | Slovenia | `eu_vat` | European VAT Number
- /// | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka)
- /// | | South Africa | `za_vat` | South African VAT
- /// Number | | South Korea | `kr_brn` | Korean
- /// BRN | | Spain | `es_cif`
- /// | Spanish NIF Number (previously Spanish CIF Number) | | Spain
- /// | `eu_vat` | European VAT Number | |
- /// Sweden | `eu_vat` | European VAT Number
- /// | | Switzerland | `ch_vat` | Switzerland VAT Number
- /// | | Taiwan | `tw_vat` | Taiwanese VAT
- /// | | Thailand | `th_vat` |
- /// Thai VAT | | Turkey
- /// | `tr_tin` | Turkish Tax Identification Number | | Ukraine
- /// | `ua_vat` | Ukrainian VAT
- /// | | United Arab Emirates | `ae_trn` | United Arab Emirates TRN
- /// | | United Kingdom | `eu_vat` | Northern Ireland
- /// VAT Number | | United Kingdom | `gb_vat` | United
- /// Kingdom VAT Number | | United States | `us_ein`
- /// | United States EIN | | Uruguay
- /// | `uy_ruc` | Uruguayan RUC Number | | Venezuela
- /// | `ve_rif` | Venezuelan RIF Number
- /// | | Vietnam | `vn_tin` | Vietnamese Tax ID Number
- /// |
+ /// | Country | Type | Description | |---------|------|-------------| | Albania
+ /// | `al_tin` | Albania Tax Identification Number | | Andorra | `ad_nrt` | Andorran
+ /// NRT Number | | Angola | `ao_tin` | Angola Tax Identification Number | | Argentina
+ /// | `ar_cuit` | Argentinian Tax ID Number | | Armenia | `am_tin` | Armenia Tax
+ /// Identification Number | | Aruba | `aw_tin` | Aruba Tax Identification Number
+ /// | | Australia | `au_abn` | Australian Business Number (AU ABN) | | Australia
+ /// | `au_arn` | Australian Taxation Office Reference Number | | Austria | `eu_vat`
+ /// | European VAT Number | | Azerbaijan | `az_tin` | Azerbaijan Tax Identification
+ /// Number | | Bahamas | `bs_tin` | Bahamas Tax Identification Number | | Bahrain
+ /// | `bh_vat` | Bahraini VAT Number | | Bangladesh | `bd_bin` | Bangladesh Business
+ /// Identification Number | | Barbados | `bb_tin` | Barbados Tax Identification
+ /// Number | | Belarus | `by_tin` | Belarus TIN Number | | Belgium | `eu_vat` |
+ /// European VAT Number | | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant
+ /// Fiscal Unique) | | Bolivia | `bo_tin` | Bolivian Tax ID | | Bosnia and Herzegovina
+ /// | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | | Brazil | `br_cnpj`
+ /// | Brazilian CNPJ Number | | Brazil | `br_cpf` | Brazilian CPF Number | | Bulgaria
+ /// | `bg_uic` | Bulgaria Unified Identification Code | | Bulgaria | `eu_vat` |
+ /// European VAT Number | | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification
+ /// Number (Numéro d'Identifiant Fiscal Unique) | | Cambodia | `kh_tin` | Cambodia
+ /// Tax Identification Number | | Cameroon | `cm_niu` | Cameroon Tax Identification
+ /// Number (Numéro d'Identifiant fiscal Unique) | | Canada | `ca_bn` | Canadian
+ /// BN | | Canada | `ca_gst_hst` | Canadian GST/HST Number | | Canada | `ca_pst_bc`
+ /// | Canadian PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
+ /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan)
+ /// | | Canada | `ca_qst` | Canadian QST Number (Québec) | | Cape Verde | `cv_nif`
+ /// | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | |
+ /// Chile | `cl_tin` | Chilean TIN | | China | `cn_tin` | Chinese Tax ID | | Colombia
+ /// | `co_nit` | Colombian NIT Number | | Congo-Kinshasa | `cd_nif` | Congo (DR)
+ /// Tax Identification Number (Número de Identificação Fiscal) | | Costa Rica |
+ /// `cr_tin` | Costa Rican Tax ID | | Croatia | `eu_vat` | European VAT Number |
+ /// | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | | Cyprus
+ /// | `eu_vat` | European VAT Number | | Czech Republic | `eu_vat` | European VAT
+ /// Number | | Denmark | `eu_vat` | European VAT Number | | Dominican Republic
+ /// | `do_rcn` | Dominican RCN Number | | Ecuador | `ec_ruc` | Ecuadorian RUC Number
+ /// | | Egypt | `eg_tin` | Egyptian Tax Identification Number | | El Salvador |
+ /// `sv_nit` | El Salvadorian NIT Number | | Estonia | `eu_vat` | European VAT
+ /// Number | | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | | European
+ /// Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme
+ /// | | Finland | `eu_vat` | European VAT Number | | France | `eu_vat` | European
+ /// VAT Number | | Georgia | `ge_vat` | Georgian VAT | | Germany | `de_stn` | German
+ /// Tax Number (Steuernummer) | | Germany | `eu_vat` | European VAT Number | |
+ /// Greece | `eu_vat` | European VAT Number | | Guinea | `gn_nif` | Guinea Tax Identification
+ /// Number (Número de Identificação Fiscal) | | Hong Kong | `hk_br` | Hong Kong
+ /// BR Number | | Hungary | `eu_vat` | European VAT Number | | Hungary | `hu_tin`
+ /// | Hungary Tax Number (adószám) | | Iceland | `is_vat` | Icelandic VAT | | India
+ /// | `in_gst` | Indian GST Number | | Indonesia | `id_npwp` | Indonesian NPWP
+ /// Number | | Ireland | `eu_vat` | European VAT Number | | Israel | `il_vat` |
+ /// Israel VAT | | Italy | `eu_vat` | European VAT Number | | Japan | `jp_cn` |
+ /// Japanese Corporate Number (*Hōjin Bangō*) | | Japan | `jp_rn` | Japanese Registered
+ /// Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku
+ /// Bangō*) | | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
+ /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | |
+ /// Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
+ /// | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | | Laos | `la_tin`
+ /// | Laos Tax Identification Number | | Latvia | `eu_vat` | European VAT Number
+ /// | | Liechtenstein | `li_uid` | Liechtensteinian UID Number | | Liechtenstein
+ /// | `li_vat` | Liechtenstein VAT Number | | Lithuania | `eu_vat` | European VAT
+ /// Number | | Luxembourg | `eu_vat` | European VAT Number | | Malaysia | `my_frp`
+ /// | Malaysian FRP Number | | Malaysia | `my_itn` | Malaysian ITN | | Malaysia
+ /// | `my_sst` | Malaysian SST Number | | Malta | `eu_vat` | European VAT Number
+ /// | | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de
+ /// Identificação Fiscal) | | Mexico | `mx_rfc` | Mexican RFC Number | | Moldova
+ /// | `md_vat` | Moldova VAT Number | | Montenegro | `me_pib` | Montenegro PIB
+ /// Number | | Morocco | `ma_vat` | Morocco VAT Number | | Nepal | `np_pan` | Nepal
+ /// PAN Number | | Netherlands | `eu_vat` | European VAT Number | | New Zealand
+ /// | `nz_gst` | New Zealand GST Number | | Nigeria | `ng_tin` | Nigerian Tax Identification
+ /// Number | | North Macedonia | `mk_vat` | North Macedonia VAT Number | | Northern
+ /// Ireland | `eu_vat` | Northern Ireland VAT Number | | Norway | `no_vat` | Norwegian
+ /// VAT Number | | Norway | `no_voec` | Norwegian VAT on e-commerce Number | | Oman
+ /// | `om_vat` | Omani VAT Number | | Peru | `pe_ruc` | Peruvian RUC Number | |
+ /// Philippines | `ph_tin` | Philippines Tax Identification Number | | Poland |
+ /// `eu_vat` | European VAT Number | | Portugal | `eu_vat` | European VAT Number
+ /// | | Romania | `eu_vat` | European VAT Number | | Romania | `ro_tin` | Romanian
+ /// Tax ID Number | | Russia | `ru_inn` | Russian INN | | Russia | `ru_kpp` | Russian
+ /// KPP | | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | | Senegal | `sn_ninea`
+ /// | Senegal NINEA Number | | Serbia | `rs_pib` | Serbian PIB Number | | Singapore
+ /// | `sg_gst` | Singaporean GST | | Singapore | `sg_uen` | Singaporean UEN | |
+ /// Slovakia | `eu_vat` | European VAT Number | | Slovenia | `eu_vat` | European
+ /// VAT Number | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
+ /// | South Africa | `za_vat` | South African VAT Number | | South Korea | `kr_brn`
+ /// | Korean BRN | | Spain | `es_cif` | Spanish NIF Number (previously Spanish
+ /// CIF Number) | | Spain | `eu_vat` | European VAT Number | | Suriname | `sr_fin`
+ /// | Suriname FIN Number | | Sweden | `eu_vat` | European VAT Number | | Switzerland
+ /// | `ch_uid` | Switzerland UID Number | | Switzerland | `ch_vat` | Switzerland
+ /// VAT Number | | Taiwan | `tw_vat` | Taiwanese VAT | | Tajikistan | `tj_tin`
+ /// | Tajikistan Tax Identification Number | | Tanzania | `tz_vat` | Tanzania VAT
+ /// Number | | Thailand | `th_vat` | Thai VAT | | Turkey | `tr_tin` | Turkish Tax
+ /// Identification Number | | Uganda | `ug_tin` | Uganda Tax Identification Number
+ /// | | Ukraine | `ua_vat` | Ukrainian VAT | | United Arab Emirates | `ae_trn` |
+ /// United Arab Emirates TRN | | United Kingdom | `gb_vat` | United Kingdom VAT
+ /// Number | | United States | `us_ein` | United States EIN | | Uruguay | `uy_ruc`
+ /// | Uruguayan RUC Number | | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
+ /// | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | | Venezuela | `ve_rif` |
+ /// Venezuelan RIF Number | | Vietnam | `vn_tin` | Vietnamese Tax ID Number | |
+ /// Zambia | `zm_tin` | Zambia Tax Identification Number | | Zimbabwe | `zw_tin`
+ /// | Zimbabwe Tax Identification Number |
///
public Models::CustomerTaxID? TaxID
{
diff --git a/src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs b/src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs
index 3e2a79d30..000cd5fea 100644
--- a/src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs
+++ b/src/Orb/Models/Customers/CustomerUpdateByExternalIDParams.cs
@@ -337,111 +337,102 @@ public AddressInput? ShippingAddress
///
/// ### Supported Tax ID Countries and Types
///
- /// | Country | Type | Description
- /// | |----------------|--------------|---------------------------------------------|
- /// | Andorra | `ad_nrt` | Andorran NRT Number
- /// | | Argentina | `ar_cuit` | Argentinian Tax ID Number
- /// | | Australia | `au_abn` | Australian Business Number (AU ABN)
- /// | | Australia | `au_arn` | Australian Taxation Office
- /// Reference Number | | Austria | `eu_vat` | European VAT Number
- /// | | Bahrain | `bh_vat` | Bahraini VAT Number
- /// | | Belgium | `eu_vat` | European VAT Number
- /// | | Bolivia | `bo_tin` | Bolivian Tax ID
- /// | | Brazil | `br_cnpj` | Brazilian CNPJ
- /// Number | | Brazil | `br_cpf` | Brazilian CPF
- /// Number | | Bulgaria | `bg_uic` | Bulgaria
- /// Unified Identification Code | | Bulgaria | `eu_vat` | European
- /// VAT Number | | Canada | `ca_bn` | Canadian
- /// BN | | Canada | `ca_gst_hst` | Canadian
- /// GST/HST Number | | Canada | `ca_pst_bc` | Canadian
- /// PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
- /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian
- /// PST Number (Saskatchewan) | | Canada | `ca_qst` | Canadian
- /// QST Number (Québec) | | Chile | `cl_tin` | Chilean
- /// TIN | | China | `cn_tin` | Chinese
- /// Tax ID | | Colombia | `co_nit` | Colombian
- /// NIT Number | | Costa Rica | `cr_tin` | Costa
- /// Rican Tax ID | | Croatia | `eu_vat` | European
- /// VAT Number | | Cyprus | `eu_vat` | European
- /// VAT Number | | Czech Republic | `eu_vat` | European
- /// VAT Number | | Denmark | `eu_vat` | European
- /// VAT Number | | Dominican Republic | `do_rcn` | Dominican
- /// RCN Number | | Ecuador | `ec_ruc` | Ecuadorian
- /// RUC Number | | Egypt | `eg_tin` | Egyptian
- /// Tax Identification Number | | El Salvador | `sv_nit`
- /// | El Salvadorian NIT Number | | Estonia | `eu_vat` |
- /// European VAT Number | | EU | `eu_oss_vat` | European One Stop Shop
- /// VAT Number for non-Union scheme | | Finland | `eu_vat` | European VAT
- /// Number | | France | `eu_vat` | European
- /// VAT Number | | Georgia | `ge_vat` |
- /// Georgian VAT | | Germany | `eu_vat`
- /// | European VAT Number | | Greece
- /// | `eu_vat` | European VAT Number | |
- /// Hong Kong | `hk_br` | Hong Kong BR Number
- /// | | Hungary | `eu_vat` | European VAT Number
- /// | | Hungary | `hu_tin` | Hungary Tax Number (adószám)
- /// | | Iceland | `is_vat` | Icelandic VAT
- /// | | India | `in_gst` | Indian GST
- /// Number | | Indonesia | `id_npwp` | Indonesian
- /// NPWP Number | | Ireland | `eu_vat` |
- /// European VAT Number | | Israel | `il_vat`
- /// | Israel VAT | | Italy
- /// | `eu_vat` | European VAT Number | |
- /// Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*)
- /// | | Japan | `jp_rn` | Japanese Registered Foreign Businesses'
- /// Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) | |
- /// Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
- /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification
- /// Number | | Kenya | `ke_pin` | Kenya Revenue Authority
- /// Personal Identification Number | | Latvia | `eu_vat` | European VAT Number
- /// | | Liechtenstein | `li_uid` | Liechtensteinian
- /// UID Number | | Lithuania | `eu_vat` | European VAT Number
- /// | | Luxembourg | `eu_vat` | European VAT Number
- /// | | Malaysia | `my_frp` | Malaysian FRP Number
- /// | | Malaysia | `my_itn` | Malaysian ITN
- /// | | Malaysia | `my_sst` | Malaysian SST Number |
- /// | Malta | `eu_vat ` | European VAT Number | | Mexico
- /// | `mx_rfc` | Mexican RFC Number | | Netherlands
- /// | `eu_vat` | European VAT Number | | New Zealand |
- /// `nz_gst` | New Zealand GST Number | | Nigeria |
- /// `ng_tin` | Nigerian Tax Identification Number | | Norway | `no_vat`
- /// | Norwegian VAT Number | | Norway | `no_voec` | Norwegian
- /// VAT on e-commerce Number | | Oman | `om_vat` | Omani VAT Number
- /// | | Peru | `pe_ruc` | Peruvian RUC Number
- /// | | Philippines | `ph_tin ` | Philippines Tax Identification
- /// Number | | Poland | `eu_vat` | European VAT Number
- /// | | Portugal | `eu_vat` | European VAT Number | |
- /// Romania | `eu_vat` | European VAT Number | | Romania
- /// | `ro_tin` | Romanian Tax ID Number | | Russia
- /// | `ru_inn` | Russian INN | | Russia | `ru_kpp`
- /// | Russian KPP | | Saudi Arabia | `sa_vat` | Saudi
- /// Arabia VAT | | Serbia | `rs_pib` | Serbian PIB
- /// Number | | Singapore | `sg_gst` | Singaporean GST
- /// | | Singapore | `sg_uen` | Singaporean UEN
- /// | | Slovakia | `eu_vat` | European VAT Number
- /// | | Slovenia | `eu_vat` | European VAT Number
- /// | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka)
- /// | | South Africa | `za_vat` | South African VAT
- /// Number | | South Korea | `kr_brn` | Korean
- /// BRN | | Spain | `es_cif`
- /// | Spanish NIF Number (previously Spanish CIF Number) | | Spain
- /// | `eu_vat` | European VAT Number | |
- /// Sweden | `eu_vat` | European VAT Number
- /// | | Switzerland | `ch_vat` | Switzerland VAT Number
- /// | | Taiwan | `tw_vat` | Taiwanese VAT
- /// | | Thailand | `th_vat` |
- /// Thai VAT | | Turkey
- /// | `tr_tin` | Turkish Tax Identification Number | | Ukraine
- /// | `ua_vat` | Ukrainian VAT
- /// | | United Arab Emirates | `ae_trn` | United Arab Emirates TRN
- /// | | United Kingdom | `eu_vat` | Northern Ireland
- /// VAT Number | | United Kingdom | `gb_vat` | United
- /// Kingdom VAT Number | | United States | `us_ein`
- /// | United States EIN | | Uruguay
- /// | `uy_ruc` | Uruguayan RUC Number | | Venezuela
- /// | `ve_rif` | Venezuelan RIF Number
- /// | | Vietnam | `vn_tin` | Vietnamese Tax ID Number
- /// |
+ /// | Country | Type | Description | |---------|------|-------------| | Albania
+ /// | `al_tin` | Albania Tax Identification Number | | Andorra | `ad_nrt` | Andorran
+ /// NRT Number | | Angola | `ao_tin` | Angola Tax Identification Number | | Argentina
+ /// | `ar_cuit` | Argentinian Tax ID Number | | Armenia | `am_tin` | Armenia Tax
+ /// Identification Number | | Aruba | `aw_tin` | Aruba Tax Identification Number
+ /// | | Australia | `au_abn` | Australian Business Number (AU ABN) | | Australia
+ /// | `au_arn` | Australian Taxation Office Reference Number | | Austria | `eu_vat`
+ /// | European VAT Number | | Azerbaijan | `az_tin` | Azerbaijan Tax Identification
+ /// Number | | Bahamas | `bs_tin` | Bahamas Tax Identification Number | | Bahrain
+ /// | `bh_vat` | Bahraini VAT Number | | Bangladesh | `bd_bin` | Bangladesh Business
+ /// Identification Number | | Barbados | `bb_tin` | Barbados Tax Identification
+ /// Number | | Belarus | `by_tin` | Belarus TIN Number | | Belgium | `eu_vat` |
+ /// European VAT Number | | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant
+ /// Fiscal Unique) | | Bolivia | `bo_tin` | Bolivian Tax ID | | Bosnia and Herzegovina
+ /// | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | | Brazil | `br_cnpj`
+ /// | Brazilian CNPJ Number | | Brazil | `br_cpf` | Brazilian CPF Number | | Bulgaria
+ /// | `bg_uic` | Bulgaria Unified Identification Code | | Bulgaria | `eu_vat` |
+ /// European VAT Number | | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification
+ /// Number (Numéro d'Identifiant Fiscal Unique) | | Cambodia | `kh_tin` | Cambodia
+ /// Tax Identification Number | | Cameroon | `cm_niu` | Cameroon Tax Identification
+ /// Number (Numéro d'Identifiant fiscal Unique) | | Canada | `ca_bn` | Canadian
+ /// BN | | Canada | `ca_gst_hst` | Canadian GST/HST Number | | Canada | `ca_pst_bc`
+ /// | Canadian PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
+ /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan)
+ /// | | Canada | `ca_qst` | Canadian QST Number (Québec) | | Cape Verde | `cv_nif`
+ /// | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | |
+ /// Chile | `cl_tin` | Chilean TIN | | China | `cn_tin` | Chinese Tax ID | | Colombia
+ /// | `co_nit` | Colombian NIT Number | | Congo-Kinshasa | `cd_nif` | Congo (DR)
+ /// Tax Identification Number (Número de Identificação Fiscal) | | Costa Rica |
+ /// `cr_tin` | Costa Rican Tax ID | | Croatia | `eu_vat` | European VAT Number |
+ /// | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | | Cyprus
+ /// | `eu_vat` | European VAT Number | | Czech Republic | `eu_vat` | European VAT
+ /// Number | | Denmark | `eu_vat` | European VAT Number | | Dominican Republic
+ /// | `do_rcn` | Dominican RCN Number | | Ecuador | `ec_ruc` | Ecuadorian RUC Number
+ /// | | Egypt | `eg_tin` | Egyptian Tax Identification Number | | El Salvador |
+ /// `sv_nit` | El Salvadorian NIT Number | | Estonia | `eu_vat` | European VAT
+ /// Number | | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | | European
+ /// Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme
+ /// | | Finland | `eu_vat` | European VAT Number | | France | `eu_vat` | European
+ /// VAT Number | | Georgia | `ge_vat` | Georgian VAT | | Germany | `de_stn` | German
+ /// Tax Number (Steuernummer) | | Germany | `eu_vat` | European VAT Number | |
+ /// Greece | `eu_vat` | European VAT Number | | Guinea | `gn_nif` | Guinea Tax Identification
+ /// Number (Número de Identificação Fiscal) | | Hong Kong | `hk_br` | Hong Kong
+ /// BR Number | | Hungary | `eu_vat` | European VAT Number | | Hungary | `hu_tin`
+ /// | Hungary Tax Number (adószám) | | Iceland | `is_vat` | Icelandic VAT | | India
+ /// | `in_gst` | Indian GST Number | | Indonesia | `id_npwp` | Indonesian NPWP
+ /// Number | | Ireland | `eu_vat` | European VAT Number | | Israel | `il_vat` |
+ /// Israel VAT | | Italy | `eu_vat` | European VAT Number | | Japan | `jp_cn` |
+ /// Japanese Corporate Number (*Hōjin Bangō*) | | Japan | `jp_rn` | Japanese Registered
+ /// Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku
+ /// Bangō*) | | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
+ /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | |
+ /// Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
+ /// | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | | Laos | `la_tin`
+ /// | Laos Tax Identification Number | | Latvia | `eu_vat` | European VAT Number
+ /// | | Liechtenstein | `li_uid` | Liechtensteinian UID Number | | Liechtenstein
+ /// | `li_vat` | Liechtenstein VAT Number | | Lithuania | `eu_vat` | European VAT
+ /// Number | | Luxembourg | `eu_vat` | European VAT Number | | Malaysia | `my_frp`
+ /// | Malaysian FRP Number | | Malaysia | `my_itn` | Malaysian ITN | | Malaysia
+ /// | `my_sst` | Malaysian SST Number | | Malta | `eu_vat` | European VAT Number
+ /// | | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de
+ /// Identificação Fiscal) | | Mexico | `mx_rfc` | Mexican RFC Number | | Moldova
+ /// | `md_vat` | Moldova VAT Number | | Montenegro | `me_pib` | Montenegro PIB
+ /// Number | | Morocco | `ma_vat` | Morocco VAT Number | | Nepal | `np_pan` | Nepal
+ /// PAN Number | | Netherlands | `eu_vat` | European VAT Number | | New Zealand
+ /// | `nz_gst` | New Zealand GST Number | | Nigeria | `ng_tin` | Nigerian Tax Identification
+ /// Number | | North Macedonia | `mk_vat` | North Macedonia VAT Number | | Northern
+ /// Ireland | `eu_vat` | Northern Ireland VAT Number | | Norway | `no_vat` | Norwegian
+ /// VAT Number | | Norway | `no_voec` | Norwegian VAT on e-commerce Number | | Oman
+ /// | `om_vat` | Omani VAT Number | | Peru | `pe_ruc` | Peruvian RUC Number | |
+ /// Philippines | `ph_tin` | Philippines Tax Identification Number | | Poland |
+ /// `eu_vat` | European VAT Number | | Portugal | `eu_vat` | European VAT Number
+ /// | | Romania | `eu_vat` | European VAT Number | | Romania | `ro_tin` | Romanian
+ /// Tax ID Number | | Russia | `ru_inn` | Russian INN | | Russia | `ru_kpp` | Russian
+ /// KPP | | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | | Senegal | `sn_ninea`
+ /// | Senegal NINEA Number | | Serbia | `rs_pib` | Serbian PIB Number | | Singapore
+ /// | `sg_gst` | Singaporean GST | | Singapore | `sg_uen` | Singaporean UEN | |
+ /// Slovakia | `eu_vat` | European VAT Number | | Slovenia | `eu_vat` | European
+ /// VAT Number | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
+ /// | South Africa | `za_vat` | South African VAT Number | | South Korea | `kr_brn`
+ /// | Korean BRN | | Spain | `es_cif` | Spanish NIF Number (previously Spanish
+ /// CIF Number) | | Spain | `eu_vat` | European VAT Number | | Suriname | `sr_fin`
+ /// | Suriname FIN Number | | Sweden | `eu_vat` | European VAT Number | | Switzerland
+ /// | `ch_uid` | Switzerland UID Number | | Switzerland | `ch_vat` | Switzerland
+ /// VAT Number | | Taiwan | `tw_vat` | Taiwanese VAT | | Tajikistan | `tj_tin`
+ /// | Tajikistan Tax Identification Number | | Tanzania | `tz_vat` | Tanzania VAT
+ /// Number | | Thailand | `th_vat` | Thai VAT | | Turkey | `tr_tin` | Turkish Tax
+ /// Identification Number | | Uganda | `ug_tin` | Uganda Tax Identification Number
+ /// | | Ukraine | `ua_vat` | Ukrainian VAT | | United Arab Emirates | `ae_trn` |
+ /// United Arab Emirates TRN | | United Kingdom | `gb_vat` | United Kingdom VAT
+ /// Number | | United States | `us_ein` | United States EIN | | Uruguay | `uy_ruc`
+ /// | Uruguayan RUC Number | | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
+ /// | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | | Venezuela | `ve_rif` |
+ /// Venezuelan RIF Number | | Vietnam | `vn_tin` | Vietnamese Tax ID Number | |
+ /// Zambia | `zm_tin` | Zambia Tax Identification Number | | Zimbabwe | `zw_tin`
+ /// | Zimbabwe Tax Identification Number |
///
public Models::CustomerTaxID? TaxID
{
diff --git a/src/Orb/Models/Customers/CustomerUpdateParams.cs b/src/Orb/Models/Customers/CustomerUpdateParams.cs
index 410645809..d3436476b 100644
--- a/src/Orb/Models/Customers/CustomerUpdateParams.cs
+++ b/src/Orb/Models/Customers/CustomerUpdateParams.cs
@@ -338,111 +338,102 @@ public AddressInput? ShippingAddress
///
/// ### Supported Tax ID Countries and Types
///
- /// | Country | Type | Description
- /// | |----------------|--------------|---------------------------------------------|
- /// | Andorra | `ad_nrt` | Andorran NRT Number
- /// | | Argentina | `ar_cuit` | Argentinian Tax ID Number
- /// | | Australia | `au_abn` | Australian Business Number (AU ABN)
- /// | | Australia | `au_arn` | Australian Taxation Office
- /// Reference Number | | Austria | `eu_vat` | European VAT Number
- /// | | Bahrain | `bh_vat` | Bahraini VAT Number
- /// | | Belgium | `eu_vat` | European VAT Number
- /// | | Bolivia | `bo_tin` | Bolivian Tax ID
- /// | | Brazil | `br_cnpj` | Brazilian CNPJ
- /// Number | | Brazil | `br_cpf` | Brazilian CPF
- /// Number | | Bulgaria | `bg_uic` | Bulgaria
- /// Unified Identification Code | | Bulgaria | `eu_vat` | European
- /// VAT Number | | Canada | `ca_bn` | Canadian
- /// BN | | Canada | `ca_gst_hst` | Canadian
- /// GST/HST Number | | Canada | `ca_pst_bc` | Canadian
- /// PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
- /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian
- /// PST Number (Saskatchewan) | | Canada | `ca_qst` | Canadian
- /// QST Number (Québec) | | Chile | `cl_tin` | Chilean
- /// TIN | | China | `cn_tin` | Chinese
- /// Tax ID | | Colombia | `co_nit` | Colombian
- /// NIT Number | | Costa Rica | `cr_tin` | Costa
- /// Rican Tax ID | | Croatia | `eu_vat` | European
- /// VAT Number | | Cyprus | `eu_vat` | European
- /// VAT Number | | Czech Republic | `eu_vat` | European
- /// VAT Number | | Denmark | `eu_vat` | European
- /// VAT Number | | Dominican Republic | `do_rcn` | Dominican
- /// RCN Number | | Ecuador | `ec_ruc` | Ecuadorian
- /// RUC Number | | Egypt | `eg_tin` | Egyptian
- /// Tax Identification Number | | El Salvador | `sv_nit`
- /// | El Salvadorian NIT Number | | Estonia | `eu_vat` |
- /// European VAT Number | | EU | `eu_oss_vat` | European One Stop Shop
- /// VAT Number for non-Union scheme | | Finland | `eu_vat` | European VAT
- /// Number | | France | `eu_vat` | European
- /// VAT Number | | Georgia | `ge_vat` |
- /// Georgian VAT | | Germany | `eu_vat`
- /// | European VAT Number | | Greece
- /// | `eu_vat` | European VAT Number | |
- /// Hong Kong | `hk_br` | Hong Kong BR Number
- /// | | Hungary | `eu_vat` | European VAT Number
- /// | | Hungary | `hu_tin` | Hungary Tax Number (adószám)
- /// | | Iceland | `is_vat` | Icelandic VAT
- /// | | India | `in_gst` | Indian GST
- /// Number | | Indonesia | `id_npwp` | Indonesian
- /// NPWP Number | | Ireland | `eu_vat` |
- /// European VAT Number | | Israel | `il_vat`
- /// | Israel VAT | | Italy
- /// | `eu_vat` | European VAT Number | |
- /// Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*)
- /// | | Japan | `jp_rn` | Japanese Registered Foreign Businesses'
- /// Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) | |
- /// Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
- /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification
- /// Number | | Kenya | `ke_pin` | Kenya Revenue Authority
- /// Personal Identification Number | | Latvia | `eu_vat` | European VAT Number
- /// | | Liechtenstein | `li_uid` | Liechtensteinian
- /// UID Number | | Lithuania | `eu_vat` | European VAT Number
- /// | | Luxembourg | `eu_vat` | European VAT Number
- /// | | Malaysia | `my_frp` | Malaysian FRP Number
- /// | | Malaysia | `my_itn` | Malaysian ITN
- /// | | Malaysia | `my_sst` | Malaysian SST Number |
- /// | Malta | `eu_vat ` | European VAT Number | | Mexico
- /// | `mx_rfc` | Mexican RFC Number | | Netherlands
- /// | `eu_vat` | European VAT Number | | New Zealand |
- /// `nz_gst` | New Zealand GST Number | | Nigeria |
- /// `ng_tin` | Nigerian Tax Identification Number | | Norway | `no_vat`
- /// | Norwegian VAT Number | | Norway | `no_voec` | Norwegian
- /// VAT on e-commerce Number | | Oman | `om_vat` | Omani VAT Number
- /// | | Peru | `pe_ruc` | Peruvian RUC Number
- /// | | Philippines | `ph_tin ` | Philippines Tax Identification
- /// Number | | Poland | `eu_vat` | European VAT Number
- /// | | Portugal | `eu_vat` | European VAT Number | |
- /// Romania | `eu_vat` | European VAT Number | | Romania
- /// | `ro_tin` | Romanian Tax ID Number | | Russia
- /// | `ru_inn` | Russian INN | | Russia | `ru_kpp`
- /// | Russian KPP | | Saudi Arabia | `sa_vat` | Saudi
- /// Arabia VAT | | Serbia | `rs_pib` | Serbian PIB
- /// Number | | Singapore | `sg_gst` | Singaporean GST
- /// | | Singapore | `sg_uen` | Singaporean UEN
- /// | | Slovakia | `eu_vat` | European VAT Number
- /// | | Slovenia | `eu_vat` | European VAT Number
- /// | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka)
- /// | | South Africa | `za_vat` | South African VAT
- /// Number | | South Korea | `kr_brn` | Korean
- /// BRN | | Spain | `es_cif`
- /// | Spanish NIF Number (previously Spanish CIF Number) | | Spain
- /// | `eu_vat` | European VAT Number | |
- /// Sweden | `eu_vat` | European VAT Number
- /// | | Switzerland | `ch_vat` | Switzerland VAT Number
- /// | | Taiwan | `tw_vat` | Taiwanese VAT
- /// | | Thailand | `th_vat` |
- /// Thai VAT | | Turkey
- /// | `tr_tin` | Turkish Tax Identification Number | | Ukraine
- /// | `ua_vat` | Ukrainian VAT
- /// | | United Arab Emirates | `ae_trn` | United Arab Emirates TRN
- /// | | United Kingdom | `eu_vat` | Northern Ireland
- /// VAT Number | | United Kingdom | `gb_vat` | United
- /// Kingdom VAT Number | | United States | `us_ein`
- /// | United States EIN | | Uruguay
- /// | `uy_ruc` | Uruguayan RUC Number | | Venezuela
- /// | `ve_rif` | Venezuelan RIF Number
- /// | | Vietnam | `vn_tin` | Vietnamese Tax ID Number
- /// |
+ /// | Country | Type | Description | |---------|------|-------------| | Albania
+ /// | `al_tin` | Albania Tax Identification Number | | Andorra | `ad_nrt` | Andorran
+ /// NRT Number | | Angola | `ao_tin` | Angola Tax Identification Number | | Argentina
+ /// | `ar_cuit` | Argentinian Tax ID Number | | Armenia | `am_tin` | Armenia Tax
+ /// Identification Number | | Aruba | `aw_tin` | Aruba Tax Identification Number
+ /// | | Australia | `au_abn` | Australian Business Number (AU ABN) | | Australia
+ /// | `au_arn` | Australian Taxation Office Reference Number | | Austria | `eu_vat`
+ /// | European VAT Number | | Azerbaijan | `az_tin` | Azerbaijan Tax Identification
+ /// Number | | Bahamas | `bs_tin` | Bahamas Tax Identification Number | | Bahrain
+ /// | `bh_vat` | Bahraini VAT Number | | Bangladesh | `bd_bin` | Bangladesh Business
+ /// Identification Number | | Barbados | `bb_tin` | Barbados Tax Identification
+ /// Number | | Belarus | `by_tin` | Belarus TIN Number | | Belgium | `eu_vat` |
+ /// European VAT Number | | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant
+ /// Fiscal Unique) | | Bolivia | `bo_tin` | Bolivian Tax ID | | Bosnia and Herzegovina
+ /// | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | | Brazil | `br_cnpj`
+ /// | Brazilian CNPJ Number | | Brazil | `br_cpf` | Brazilian CPF Number | | Bulgaria
+ /// | `bg_uic` | Bulgaria Unified Identification Code | | Bulgaria | `eu_vat` |
+ /// European VAT Number | | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification
+ /// Number (Numéro d'Identifiant Fiscal Unique) | | Cambodia | `kh_tin` | Cambodia
+ /// Tax Identification Number | | Cameroon | `cm_niu` | Cameroon Tax Identification
+ /// Number (Numéro d'Identifiant fiscal Unique) | | Canada | `ca_bn` | Canadian
+ /// BN | | Canada | `ca_gst_hst` | Canadian GST/HST Number | | Canada | `ca_pst_bc`
+ /// | Canadian PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
+ /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan)
+ /// | | Canada | `ca_qst` | Canadian QST Number (Québec) | | Cape Verde | `cv_nif`
+ /// | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | |
+ /// Chile | `cl_tin` | Chilean TIN | | China | `cn_tin` | Chinese Tax ID | | Colombia
+ /// | `co_nit` | Colombian NIT Number | | Congo-Kinshasa | `cd_nif` | Congo (DR)
+ /// Tax Identification Number (Número de Identificação Fiscal) | | Costa Rica |
+ /// `cr_tin` | Costa Rican Tax ID | | Croatia | `eu_vat` | European VAT Number |
+ /// | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | | Cyprus
+ /// | `eu_vat` | European VAT Number | | Czech Republic | `eu_vat` | European VAT
+ /// Number | | Denmark | `eu_vat` | European VAT Number | | Dominican Republic
+ /// | `do_rcn` | Dominican RCN Number | | Ecuador | `ec_ruc` | Ecuadorian RUC Number
+ /// | | Egypt | `eg_tin` | Egyptian Tax Identification Number | | El Salvador |
+ /// `sv_nit` | El Salvadorian NIT Number | | Estonia | `eu_vat` | European VAT
+ /// Number | | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | | European
+ /// Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme
+ /// | | Finland | `eu_vat` | European VAT Number | | France | `eu_vat` | European
+ /// VAT Number | | Georgia | `ge_vat` | Georgian VAT | | Germany | `de_stn` | German
+ /// Tax Number (Steuernummer) | | Germany | `eu_vat` | European VAT Number | |
+ /// Greece | `eu_vat` | European VAT Number | | Guinea | `gn_nif` | Guinea Tax Identification
+ /// Number (Número de Identificação Fiscal) | | Hong Kong | `hk_br` | Hong Kong
+ /// BR Number | | Hungary | `eu_vat` | European VAT Number | | Hungary | `hu_tin`
+ /// | Hungary Tax Number (adószám) | | Iceland | `is_vat` | Icelandic VAT | | India
+ /// | `in_gst` | Indian GST Number | | Indonesia | `id_npwp` | Indonesian NPWP
+ /// Number | | Ireland | `eu_vat` | European VAT Number | | Israel | `il_vat` |
+ /// Israel VAT | | Italy | `eu_vat` | European VAT Number | | Japan | `jp_cn` |
+ /// Japanese Corporate Number (*Hōjin Bangō*) | | Japan | `jp_rn` | Japanese Registered
+ /// Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku
+ /// Bangō*) | | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
+ /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | |
+ /// Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
+ /// | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | | Laos | `la_tin`
+ /// | Laos Tax Identification Number | | Latvia | `eu_vat` | European VAT Number
+ /// | | Liechtenstein | `li_uid` | Liechtensteinian UID Number | | Liechtenstein
+ /// | `li_vat` | Liechtenstein VAT Number | | Lithuania | `eu_vat` | European VAT
+ /// Number | | Luxembourg | `eu_vat` | European VAT Number | | Malaysia | `my_frp`
+ /// | Malaysian FRP Number | | Malaysia | `my_itn` | Malaysian ITN | | Malaysia
+ /// | `my_sst` | Malaysian SST Number | | Malta | `eu_vat` | European VAT Number
+ /// | | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de
+ /// Identificação Fiscal) | | Mexico | `mx_rfc` | Mexican RFC Number | | Moldova
+ /// | `md_vat` | Moldova VAT Number | | Montenegro | `me_pib` | Montenegro PIB
+ /// Number | | Morocco | `ma_vat` | Morocco VAT Number | | Nepal | `np_pan` | Nepal
+ /// PAN Number | | Netherlands | `eu_vat` | European VAT Number | | New Zealand
+ /// | `nz_gst` | New Zealand GST Number | | Nigeria | `ng_tin` | Nigerian Tax Identification
+ /// Number | | North Macedonia | `mk_vat` | North Macedonia VAT Number | | Northern
+ /// Ireland | `eu_vat` | Northern Ireland VAT Number | | Norway | `no_vat` | Norwegian
+ /// VAT Number | | Norway | `no_voec` | Norwegian VAT on e-commerce Number | | Oman
+ /// | `om_vat` | Omani VAT Number | | Peru | `pe_ruc` | Peruvian RUC Number | |
+ /// Philippines | `ph_tin` | Philippines Tax Identification Number | | Poland |
+ /// `eu_vat` | European VAT Number | | Portugal | `eu_vat` | European VAT Number
+ /// | | Romania | `eu_vat` | European VAT Number | | Romania | `ro_tin` | Romanian
+ /// Tax ID Number | | Russia | `ru_inn` | Russian INN | | Russia | `ru_kpp` | Russian
+ /// KPP | | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | | Senegal | `sn_ninea`
+ /// | Senegal NINEA Number | | Serbia | `rs_pib` | Serbian PIB Number | | Singapore
+ /// | `sg_gst` | Singaporean GST | | Singapore | `sg_uen` | Singaporean UEN | |
+ /// Slovakia | `eu_vat` | European VAT Number | | Slovenia | `eu_vat` | European
+ /// VAT Number | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
+ /// | South Africa | `za_vat` | South African VAT Number | | South Korea | `kr_brn`
+ /// | Korean BRN | | Spain | `es_cif` | Spanish NIF Number (previously Spanish
+ /// CIF Number) | | Spain | `eu_vat` | European VAT Number | | Suriname | `sr_fin`
+ /// | Suriname FIN Number | | Sweden | `eu_vat` | European VAT Number | | Switzerland
+ /// | `ch_uid` | Switzerland UID Number | | Switzerland | `ch_vat` | Switzerland
+ /// VAT Number | | Taiwan | `tw_vat` | Taiwanese VAT | | Tajikistan | `tj_tin`
+ /// | Tajikistan Tax Identification Number | | Tanzania | `tz_vat` | Tanzania VAT
+ /// Number | | Thailand | `th_vat` | Thai VAT | | Turkey | `tr_tin` | Turkish Tax
+ /// Identification Number | | Uganda | `ug_tin` | Uganda Tax Identification Number
+ /// | | Ukraine | `ua_vat` | Ukrainian VAT | | United Arab Emirates | `ae_trn` |
+ /// United Arab Emirates TRN | | United Kingdom | `gb_vat` | United Kingdom VAT
+ /// Number | | United States | `us_ein` | United States EIN | | Uruguay | `uy_ruc`
+ /// | Uruguayan RUC Number | | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
+ /// | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | | Venezuela | `ve_rif` |
+ /// Venezuelan RIF Number | | Vietnam | `vn_tin` | Vietnamese Tax ID Number | |
+ /// Zambia | `zm_tin` | Zambia Tax Identification Number | | Zimbabwe | `zw_tin`
+ /// | Zimbabwe Tax Identification Number |
///
public Models::CustomerTaxID? TaxID
{
diff --git a/src/Orb/Models/DimensionalPriceGroups/DimensionalPriceGroupUpdateParams.cs b/src/Orb/Models/DimensionalPriceGroups/DimensionalPriceGroupUpdateParams.cs
new file mode 100644
index 000000000..b432d20ab
--- /dev/null
+++ b/src/Orb/Models/DimensionalPriceGroups/DimensionalPriceGroupUpdateParams.cs
@@ -0,0 +1,92 @@
+using Generic = System.Collections.Generic;
+using Http = System.Net.Http;
+using Json = System.Text.Json;
+using Orb = Orb;
+using System = System;
+using Text = System.Text;
+
+namespace Orb.Models.DimensionalPriceGroups;
+
+///
+/// This endpoint can be used to update the `external_dimensional_price_group_id`
+/// and `metadata` of an existing dimensional price group. Other fields on a dimensional
+/// price group are currently immutable.
+///
+public sealed record class DimensionalPriceGroupUpdateParams : Orb::ParamsBase
+{
+ public Generic::Dictionary BodyProperties { get; set; } = [];
+
+ public required string DimensionalPriceGroupID;
+
+ ///
+ /// An optional user-defined ID for this dimensional price group resource, used
+ /// throughout the system as an alias for this dimensional price group. Use this
+ /// field to identify a dimensional price group by an existing identifier in your system.
+ ///
+ public string? ExternalDimensionalPriceGroupID
+ {
+ get
+ {
+ if (
+ !this.BodyProperties.TryGetValue(
+ "external_dimensional_price_group_id",
+ out Json::JsonElement element
+ )
+ )
+ return null;
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set
+ {
+ this.BodyProperties["external_dimensional_price_group_id"] =
+ Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ ///
+ /// User-specified key/value pairs for the resource. Individual keys can be removed
+ /// by setting the value to `null`, and the entire metadata mapping can be cleared
+ /// by setting `metadata` to `null`.
+ ///
+ public Generic::Dictionary? Metadata
+ {
+ get
+ {
+ if (!this.BodyProperties.TryGetValue("metadata", out Json::JsonElement element))
+ return null;
+
+ return Json::JsonSerializer.Deserialize?>(element);
+ }
+ set { this.BodyProperties["metadata"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public override System::Uri Url(Orb::IOrbClient client)
+ {
+ return new System::UriBuilder(
+ client.BaseUrl.ToString().TrimEnd('/')
+ + string.Format("/dimensional_price_groups/{0}", this.DimensionalPriceGroupID)
+ )
+ {
+ Query = this.QueryString(client),
+ }.Uri;
+ }
+
+ public Http::StringContent BodyContent()
+ {
+ return new Http::StringContent(
+ Json::JsonSerializer.Serialize(this.BodyProperties),
+ Text::Encoding.UTF8,
+ "application/json"
+ );
+ }
+
+ public void AddHeadersToRequest(Http::HttpRequestMessage request, Orb::IOrbClient client)
+ {
+ Orb::ParamsBase.AddDefaultHeaders(request, client);
+ foreach (var item in this.HeaderProperties)
+ {
+ Orb::ParamsBase.AddHeaderElementToRequest(request, item.Key, item.Value);
+ }
+ }
+}
diff --git a/src/Orb/Models/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDUpdateParams.cs b/src/Orb/Models/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDUpdateParams.cs
new file mode 100644
index 000000000..f1b3ed739
--- /dev/null
+++ b/src/Orb/Models/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDUpdateParams.cs
@@ -0,0 +1,95 @@
+using Generic = System.Collections.Generic;
+using Http = System.Net.Http;
+using Json = System.Text.Json;
+using Orb = Orb;
+using System = System;
+using Text = System.Text;
+
+namespace Orb.Models.DimensionalPriceGroups.ExternalDimensionalPriceGroupID;
+
+///
+/// This endpoint can be used to update the `external_dimensional_price_group_id`
+/// and `metadata` of an existing dimensional price group. Other fields on a dimensional
+/// price group are currently immutable.
+///
+public sealed record class ExternalDimensionalPriceGroupIDUpdateParams : Orb::ParamsBase
+{
+ public Generic::Dictionary BodyProperties { get; set; } = [];
+
+ public required string ExternalDimensionalPriceGroupID;
+
+ ///
+ /// An optional user-defined ID for this dimensional price group resource, used
+ /// throughout the system as an alias for this dimensional price group. Use this
+ /// field to identify a dimensional price group by an existing identifier in your system.
+ ///
+ public string? ExternalDimensionalPriceGroupID1
+ {
+ get
+ {
+ if (
+ !this.BodyProperties.TryGetValue(
+ "external_dimensional_price_group_id",
+ out Json::JsonElement element
+ )
+ )
+ return null;
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set
+ {
+ this.BodyProperties["external_dimensional_price_group_id"] =
+ Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ ///
+ /// User-specified key/value pairs for the resource. Individual keys can be removed
+ /// by setting the value to `null`, and the entire metadata mapping can be cleared
+ /// by setting `metadata` to `null`.
+ ///
+ public Generic::Dictionary? Metadata
+ {
+ get
+ {
+ if (!this.BodyProperties.TryGetValue("metadata", out Json::JsonElement element))
+ return null;
+
+ return Json::JsonSerializer.Deserialize?>(element);
+ }
+ set { this.BodyProperties["metadata"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public override System::Uri Url(Orb::IOrbClient client)
+ {
+ return new System::UriBuilder(
+ client.BaseUrl.ToString().TrimEnd('/')
+ + string.Format(
+ "/dimensional_price_groups/external_dimensional_price_group_id/{0}",
+ this.ExternalDimensionalPriceGroupID
+ )
+ )
+ {
+ Query = this.QueryString(client),
+ }.Uri;
+ }
+
+ public Http::StringContent BodyContent()
+ {
+ return new Http::StringContent(
+ Json::JsonSerializer.Serialize(this.BodyProperties),
+ Text::Encoding.UTF8,
+ "application/json"
+ );
+ }
+
+ public void AddHeadersToRequest(Http::HttpRequestMessage request, Orb::IOrbClient client)
+ {
+ Orb::ParamsBase.AddDefaultHeaders(request, client);
+ foreach (var item in this.HeaderProperties)
+ {
+ Orb::ParamsBase.AddHeaderElementToRequest(request, item.Key, item.Value);
+ }
+ }
+}
diff --git a/src/Orb/Models/Invoice.cs b/src/Orb/Models/Invoice.cs
index e03394731..48483747b 100644
--- a/src/Orb/Models/Invoice.cs
+++ b/src/Orb/Models/Invoice.cs
@@ -187,111 +187,102 @@ public required CustomerMinified Customer
///
/// ### Supported Tax ID Countries and Types
///
- /// | Country | Type | Description
- /// | |----------------|--------------|---------------------------------------------|
- /// | Andorra | `ad_nrt` | Andorran NRT Number
- /// | | Argentina | `ar_cuit` | Argentinian Tax ID Number
- /// | | Australia | `au_abn` | Australian Business Number (AU ABN)
- /// | | Australia | `au_arn` | Australian Taxation Office
- /// Reference Number | | Austria | `eu_vat` | European VAT Number
- /// | | Bahrain | `bh_vat` | Bahraini VAT Number
- /// | | Belgium | `eu_vat` | European VAT Number
- /// | | Bolivia | `bo_tin` | Bolivian Tax ID
- /// | | Brazil | `br_cnpj` | Brazilian CNPJ
- /// Number | | Brazil | `br_cpf` | Brazilian CPF
- /// Number | | Bulgaria | `bg_uic` | Bulgaria
- /// Unified Identification Code | | Bulgaria | `eu_vat` | European
- /// VAT Number | | Canada | `ca_bn` | Canadian
- /// BN | | Canada | `ca_gst_hst` | Canadian
- /// GST/HST Number | | Canada | `ca_pst_bc` | Canadian
- /// PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
- /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian
- /// PST Number (Saskatchewan) | | Canada | `ca_qst` | Canadian
- /// QST Number (Québec) | | Chile | `cl_tin` | Chilean
- /// TIN | | China | `cn_tin` | Chinese
- /// Tax ID | | Colombia | `co_nit` | Colombian
- /// NIT Number | | Costa Rica | `cr_tin` | Costa
- /// Rican Tax ID | | Croatia | `eu_vat` | European
- /// VAT Number | | Cyprus | `eu_vat` | European
- /// VAT Number | | Czech Republic | `eu_vat` | European
- /// VAT Number | | Denmark | `eu_vat` | European
- /// VAT Number | | Dominican Republic | `do_rcn` | Dominican
- /// RCN Number | | Ecuador | `ec_ruc` | Ecuadorian
- /// RUC Number | | Egypt | `eg_tin` | Egyptian
- /// Tax Identification Number | | El Salvador | `sv_nit`
- /// | El Salvadorian NIT Number | | Estonia | `eu_vat` |
- /// European VAT Number | | EU | `eu_oss_vat` | European One Stop Shop
- /// VAT Number for non-Union scheme | | Finland | `eu_vat` | European VAT
- /// Number | | France | `eu_vat` | European
- /// VAT Number | | Georgia | `ge_vat` |
- /// Georgian VAT | | Germany | `eu_vat`
- /// | European VAT Number | | Greece
- /// | `eu_vat` | European VAT Number | |
- /// Hong Kong | `hk_br` | Hong Kong BR Number
- /// | | Hungary | `eu_vat` | European VAT Number
- /// | | Hungary | `hu_tin` | Hungary Tax Number (adószám)
- /// | | Iceland | `is_vat` | Icelandic VAT
- /// | | India | `in_gst` | Indian GST
- /// Number | | Indonesia | `id_npwp` | Indonesian
- /// NPWP Number | | Ireland | `eu_vat` |
- /// European VAT Number | | Israel | `il_vat`
- /// | Israel VAT | | Italy
- /// | `eu_vat` | European VAT Number | |
- /// Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*)
- /// | | Japan | `jp_rn` | Japanese Registered Foreign Businesses'
- /// Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) | |
- /// Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
- /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification
- /// Number | | Kenya | `ke_pin` | Kenya Revenue Authority
- /// Personal Identification Number | | Latvia | `eu_vat` | European VAT Number
- /// | | Liechtenstein | `li_uid` | Liechtensteinian
- /// UID Number | | Lithuania | `eu_vat` | European VAT Number
- /// | | Luxembourg | `eu_vat` | European VAT Number
- /// | | Malaysia | `my_frp` | Malaysian FRP Number
- /// | | Malaysia | `my_itn` | Malaysian ITN
- /// | | Malaysia | `my_sst` | Malaysian SST Number |
- /// | Malta | `eu_vat ` | European VAT Number | | Mexico
- /// | `mx_rfc` | Mexican RFC Number | | Netherlands
- /// | `eu_vat` | European VAT Number | | New Zealand |
- /// `nz_gst` | New Zealand GST Number | | Nigeria |
- /// `ng_tin` | Nigerian Tax Identification Number | | Norway | `no_vat`
- /// | Norwegian VAT Number | | Norway | `no_voec` | Norwegian
- /// VAT on e-commerce Number | | Oman | `om_vat` | Omani VAT Number
- /// | | Peru | `pe_ruc` | Peruvian RUC Number
- /// | | Philippines | `ph_tin ` | Philippines Tax Identification
- /// Number | | Poland | `eu_vat` | European VAT Number
- /// | | Portugal | `eu_vat` | European VAT Number | |
- /// Romania | `eu_vat` | European VAT Number | | Romania
- /// | `ro_tin` | Romanian Tax ID Number | | Russia
- /// | `ru_inn` | Russian INN | | Russia | `ru_kpp`
- /// | Russian KPP | | Saudi Arabia | `sa_vat` | Saudi
- /// Arabia VAT | | Serbia | `rs_pib` | Serbian PIB
- /// Number | | Singapore | `sg_gst` | Singaporean GST
- /// | | Singapore | `sg_uen` | Singaporean UEN
- /// | | Slovakia | `eu_vat` | European VAT Number
- /// | | Slovenia | `eu_vat` | European VAT Number
- /// | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka)
- /// | | South Africa | `za_vat` | South African VAT
- /// Number | | South Korea | `kr_brn` | Korean
- /// BRN | | Spain | `es_cif`
- /// | Spanish NIF Number (previously Spanish CIF Number) | | Spain
- /// | `eu_vat` | European VAT Number | |
- /// Sweden | `eu_vat` | European VAT Number
- /// | | Switzerland | `ch_vat` | Switzerland VAT Number
- /// | | Taiwan | `tw_vat` | Taiwanese VAT
- /// | | Thailand | `th_vat` |
- /// Thai VAT | | Turkey
- /// | `tr_tin` | Turkish Tax Identification Number | | Ukraine
- /// | `ua_vat` | Ukrainian VAT
- /// | | United Arab Emirates | `ae_trn` | United Arab Emirates TRN
- /// | | United Kingdom | `eu_vat` | Northern Ireland
- /// VAT Number | | United Kingdom | `gb_vat` | United
- /// Kingdom VAT Number | | United States | `us_ein`
- /// | United States EIN | | Uruguay
- /// | `uy_ruc` | Uruguayan RUC Number | | Venezuela
- /// | `ve_rif` | Venezuelan RIF Number
- /// | | Vietnam | `vn_tin` | Vietnamese Tax ID Number
- /// |
+ /// | Country | Type | Description | |---------|------|-------------| | Albania
+ /// | `al_tin` | Albania Tax Identification Number | | Andorra | `ad_nrt` | Andorran
+ /// NRT Number | | Angola | `ao_tin` | Angola Tax Identification Number | | Argentina
+ /// | `ar_cuit` | Argentinian Tax ID Number | | Armenia | `am_tin` | Armenia Tax
+ /// Identification Number | | Aruba | `aw_tin` | Aruba Tax Identification Number
+ /// | | Australia | `au_abn` | Australian Business Number (AU ABN) | | Australia
+ /// | `au_arn` | Australian Taxation Office Reference Number | | Austria | `eu_vat`
+ /// | European VAT Number | | Azerbaijan | `az_tin` | Azerbaijan Tax Identification
+ /// Number | | Bahamas | `bs_tin` | Bahamas Tax Identification Number | | Bahrain
+ /// | `bh_vat` | Bahraini VAT Number | | Bangladesh | `bd_bin` | Bangladesh Business
+ /// Identification Number | | Barbados | `bb_tin` | Barbados Tax Identification
+ /// Number | | Belarus | `by_tin` | Belarus TIN Number | | Belgium | `eu_vat` |
+ /// European VAT Number | | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant
+ /// Fiscal Unique) | | Bolivia | `bo_tin` | Bolivian Tax ID | | Bosnia and Herzegovina
+ /// | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | | Brazil | `br_cnpj`
+ /// | Brazilian CNPJ Number | | Brazil | `br_cpf` | Brazilian CPF Number | | Bulgaria
+ /// | `bg_uic` | Bulgaria Unified Identification Code | | Bulgaria | `eu_vat` |
+ /// European VAT Number | | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification
+ /// Number (Numéro d'Identifiant Fiscal Unique) | | Cambodia | `kh_tin` | Cambodia
+ /// Tax Identification Number | | Cameroon | `cm_niu` | Cameroon Tax Identification
+ /// Number (Numéro d'Identifiant fiscal Unique) | | Canada | `ca_bn` | Canadian
+ /// BN | | Canada | `ca_gst_hst` | Canadian GST/HST Number | | Canada | `ca_pst_bc`
+ /// | Canadian PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
+ /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan)
+ /// | | Canada | `ca_qst` | Canadian QST Number (Québec) | | Cape Verde | `cv_nif`
+ /// | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | |
+ /// Chile | `cl_tin` | Chilean TIN | | China | `cn_tin` | Chinese Tax ID | | Colombia
+ /// | `co_nit` | Colombian NIT Number | | Congo-Kinshasa | `cd_nif` | Congo (DR)
+ /// Tax Identification Number (Número de Identificação Fiscal) | | Costa Rica |
+ /// `cr_tin` | Costa Rican Tax ID | | Croatia | `eu_vat` | European VAT Number |
+ /// | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | | Cyprus
+ /// | `eu_vat` | European VAT Number | | Czech Republic | `eu_vat` | European VAT
+ /// Number | | Denmark | `eu_vat` | European VAT Number | | Dominican Republic
+ /// | `do_rcn` | Dominican RCN Number | | Ecuador | `ec_ruc` | Ecuadorian RUC Number
+ /// | | Egypt | `eg_tin` | Egyptian Tax Identification Number | | El Salvador |
+ /// `sv_nit` | El Salvadorian NIT Number | | Estonia | `eu_vat` | European VAT
+ /// Number | | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | | European
+ /// Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme
+ /// | | Finland | `eu_vat` | European VAT Number | | France | `eu_vat` | European
+ /// VAT Number | | Georgia | `ge_vat` | Georgian VAT | | Germany | `de_stn` | German
+ /// Tax Number (Steuernummer) | | Germany | `eu_vat` | European VAT Number | |
+ /// Greece | `eu_vat` | European VAT Number | | Guinea | `gn_nif` | Guinea Tax Identification
+ /// Number (Número de Identificação Fiscal) | | Hong Kong | `hk_br` | Hong Kong
+ /// BR Number | | Hungary | `eu_vat` | European VAT Number | | Hungary | `hu_tin`
+ /// | Hungary Tax Number (adószám) | | Iceland | `is_vat` | Icelandic VAT | | India
+ /// | `in_gst` | Indian GST Number | | Indonesia | `id_npwp` | Indonesian NPWP
+ /// Number | | Ireland | `eu_vat` | European VAT Number | | Israel | `il_vat` |
+ /// Israel VAT | | Italy | `eu_vat` | European VAT Number | | Japan | `jp_cn` |
+ /// Japanese Corporate Number (*Hōjin Bangō*) | | Japan | `jp_rn` | Japanese Registered
+ /// Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku
+ /// Bangō*) | | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
+ /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | |
+ /// Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
+ /// | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | | Laos | `la_tin`
+ /// | Laos Tax Identification Number | | Latvia | `eu_vat` | European VAT Number
+ /// | | Liechtenstein | `li_uid` | Liechtensteinian UID Number | | Liechtenstein
+ /// | `li_vat` | Liechtenstein VAT Number | | Lithuania | `eu_vat` | European VAT
+ /// Number | | Luxembourg | `eu_vat` | European VAT Number | | Malaysia | `my_frp`
+ /// | Malaysian FRP Number | | Malaysia | `my_itn` | Malaysian ITN | | Malaysia
+ /// | `my_sst` | Malaysian SST Number | | Malta | `eu_vat` | European VAT Number
+ /// | | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de
+ /// Identificação Fiscal) | | Mexico | `mx_rfc` | Mexican RFC Number | | Moldova
+ /// | `md_vat` | Moldova VAT Number | | Montenegro | `me_pib` | Montenegro PIB
+ /// Number | | Morocco | `ma_vat` | Morocco VAT Number | | Nepal | `np_pan` | Nepal
+ /// PAN Number | | Netherlands | `eu_vat` | European VAT Number | | New Zealand
+ /// | `nz_gst` | New Zealand GST Number | | Nigeria | `ng_tin` | Nigerian Tax Identification
+ /// Number | | North Macedonia | `mk_vat` | North Macedonia VAT Number | | Northern
+ /// Ireland | `eu_vat` | Northern Ireland VAT Number | | Norway | `no_vat` | Norwegian
+ /// VAT Number | | Norway | `no_voec` | Norwegian VAT on e-commerce Number | | Oman
+ /// | `om_vat` | Omani VAT Number | | Peru | `pe_ruc` | Peruvian RUC Number | |
+ /// Philippines | `ph_tin` | Philippines Tax Identification Number | | Poland |
+ /// `eu_vat` | European VAT Number | | Portugal | `eu_vat` | European VAT Number
+ /// | | Romania | `eu_vat` | European VAT Number | | Romania | `ro_tin` | Romanian
+ /// Tax ID Number | | Russia | `ru_inn` | Russian INN | | Russia | `ru_kpp` | Russian
+ /// KPP | | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | | Senegal | `sn_ninea`
+ /// | Senegal NINEA Number | | Serbia | `rs_pib` | Serbian PIB Number | | Singapore
+ /// | `sg_gst` | Singaporean GST | | Singapore | `sg_uen` | Singaporean UEN | |
+ /// Slovakia | `eu_vat` | European VAT Number | | Slovenia | `eu_vat` | European
+ /// VAT Number | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
+ /// | South Africa | `za_vat` | South African VAT Number | | South Korea | `kr_brn`
+ /// | Korean BRN | | Spain | `es_cif` | Spanish NIF Number (previously Spanish
+ /// CIF Number) | | Spain | `eu_vat` | European VAT Number | | Suriname | `sr_fin`
+ /// | Suriname FIN Number | | Sweden | `eu_vat` | European VAT Number | | Switzerland
+ /// | `ch_uid` | Switzerland UID Number | | Switzerland | `ch_vat` | Switzerland
+ /// VAT Number | | Taiwan | `tw_vat` | Taiwanese VAT | | Tajikistan | `tj_tin`
+ /// | Tajikistan Tax Identification Number | | Tanzania | `tz_vat` | Tanzania VAT
+ /// Number | | Thailand | `th_vat` | Thai VAT | | Turkey | `tr_tin` | Turkish Tax
+ /// Identification Number | | Uganda | `ug_tin` | Uganda Tax Identification Number
+ /// | | Ukraine | `ua_vat` | Ukrainian VAT | | United Arab Emirates | `ae_trn` |
+ /// United Arab Emirates TRN | | United Kingdom | `gb_vat` | United Kingdom VAT
+ /// Number | | United States | `us_ein` | United States EIN | | Uruguay | `uy_ruc`
+ /// | Uruguayan RUC Number | | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
+ /// | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | | Venezuela | `ve_rif` |
+ /// Venezuelan RIF Number | | Vietnam | `vn_tin` | Vietnamese Tax ID Number | |
+ /// Zambia | `zm_tin` | Zambia Tax Identification Number | | Zimbabwe | `zw_tin`
+ /// | Zimbabwe Tax Identification Number |
///
public required CustomerTaxID? CustomerTaxID
{
diff --git a/src/Orb/Models/Invoices/InvoiceFetchUpcomingResponse.cs b/src/Orb/Models/Invoices/InvoiceFetchUpcomingResponse.cs
index af6e54a50..f75154746 100644
--- a/src/Orb/Models/Invoices/InvoiceFetchUpcomingResponse.cs
+++ b/src/Orb/Models/Invoices/InvoiceFetchUpcomingResponse.cs
@@ -184,111 +184,102 @@ public required string Currency
///
/// ### Supported Tax ID Countries and Types
///
- /// | Country | Type | Description
- /// | |----------------|--------------|---------------------------------------------|
- /// | Andorra | `ad_nrt` | Andorran NRT Number
- /// | | Argentina | `ar_cuit` | Argentinian Tax ID Number
- /// | | Australia | `au_abn` | Australian Business Number (AU ABN)
- /// | | Australia | `au_arn` | Australian Taxation Office
- /// Reference Number | | Austria | `eu_vat` | European VAT Number
- /// | | Bahrain | `bh_vat` | Bahraini VAT Number
- /// | | Belgium | `eu_vat` | European VAT Number
- /// | | Bolivia | `bo_tin` | Bolivian Tax ID
- /// | | Brazil | `br_cnpj` | Brazilian CNPJ
- /// Number | | Brazil | `br_cpf` | Brazilian CPF
- /// Number | | Bulgaria | `bg_uic` | Bulgaria
- /// Unified Identification Code | | Bulgaria | `eu_vat` | European
- /// VAT Number | | Canada | `ca_bn` | Canadian
- /// BN | | Canada | `ca_gst_hst` | Canadian
- /// GST/HST Number | | Canada | `ca_pst_bc` | Canadian
- /// PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
- /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian
- /// PST Number (Saskatchewan) | | Canada | `ca_qst` | Canadian
- /// QST Number (Québec) | | Chile | `cl_tin` | Chilean
- /// TIN | | China | `cn_tin` | Chinese
- /// Tax ID | | Colombia | `co_nit` | Colombian
- /// NIT Number | | Costa Rica | `cr_tin` | Costa
- /// Rican Tax ID | | Croatia | `eu_vat` | European
- /// VAT Number | | Cyprus | `eu_vat` | European
- /// VAT Number | | Czech Republic | `eu_vat` | European
- /// VAT Number | | Denmark | `eu_vat` | European
- /// VAT Number | | Dominican Republic | `do_rcn` | Dominican
- /// RCN Number | | Ecuador | `ec_ruc` | Ecuadorian
- /// RUC Number | | Egypt | `eg_tin` | Egyptian
- /// Tax Identification Number | | El Salvador | `sv_nit`
- /// | El Salvadorian NIT Number | | Estonia | `eu_vat` |
- /// European VAT Number | | EU | `eu_oss_vat` | European One Stop Shop
- /// VAT Number for non-Union scheme | | Finland | `eu_vat` | European VAT
- /// Number | | France | `eu_vat` | European
- /// VAT Number | | Georgia | `ge_vat` |
- /// Georgian VAT | | Germany | `eu_vat`
- /// | European VAT Number | | Greece
- /// | `eu_vat` | European VAT Number | |
- /// Hong Kong | `hk_br` | Hong Kong BR Number
- /// | | Hungary | `eu_vat` | European VAT Number
- /// | | Hungary | `hu_tin` | Hungary Tax Number (adószám)
- /// | | Iceland | `is_vat` | Icelandic VAT
- /// | | India | `in_gst` | Indian GST
- /// Number | | Indonesia | `id_npwp` | Indonesian
- /// NPWP Number | | Ireland | `eu_vat` |
- /// European VAT Number | | Israel | `il_vat`
- /// | Israel VAT | | Italy
- /// | `eu_vat` | European VAT Number | |
- /// Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*)
- /// | | Japan | `jp_rn` | Japanese Registered Foreign Businesses'
- /// Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) | |
- /// Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
- /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification
- /// Number | | Kenya | `ke_pin` | Kenya Revenue Authority
- /// Personal Identification Number | | Latvia | `eu_vat` | European VAT Number
- /// | | Liechtenstein | `li_uid` | Liechtensteinian
- /// UID Number | | Lithuania | `eu_vat` | European VAT Number
- /// | | Luxembourg | `eu_vat` | European VAT Number
- /// | | Malaysia | `my_frp` | Malaysian FRP Number
- /// | | Malaysia | `my_itn` | Malaysian ITN
- /// | | Malaysia | `my_sst` | Malaysian SST Number |
- /// | Malta | `eu_vat ` | European VAT Number | | Mexico
- /// | `mx_rfc` | Mexican RFC Number | | Netherlands
- /// | `eu_vat` | European VAT Number | | New Zealand |
- /// `nz_gst` | New Zealand GST Number | | Nigeria |
- /// `ng_tin` | Nigerian Tax Identification Number | | Norway | `no_vat`
- /// | Norwegian VAT Number | | Norway | `no_voec` | Norwegian
- /// VAT on e-commerce Number | | Oman | `om_vat` | Omani VAT Number
- /// | | Peru | `pe_ruc` | Peruvian RUC Number
- /// | | Philippines | `ph_tin ` | Philippines Tax Identification
- /// Number | | Poland | `eu_vat` | European VAT Number
- /// | | Portugal | `eu_vat` | European VAT Number | |
- /// Romania | `eu_vat` | European VAT Number | | Romania
- /// | `ro_tin` | Romanian Tax ID Number | | Russia
- /// | `ru_inn` | Russian INN | | Russia | `ru_kpp`
- /// | Russian KPP | | Saudi Arabia | `sa_vat` | Saudi
- /// Arabia VAT | | Serbia | `rs_pib` | Serbian PIB
- /// Number | | Singapore | `sg_gst` | Singaporean GST
- /// | | Singapore | `sg_uen` | Singaporean UEN
- /// | | Slovakia | `eu_vat` | European VAT Number
- /// | | Slovenia | `eu_vat` | European VAT Number
- /// | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka)
- /// | | South Africa | `za_vat` | South African VAT
- /// Number | | South Korea | `kr_brn` | Korean
- /// BRN | | Spain | `es_cif`
- /// | Spanish NIF Number (previously Spanish CIF Number) | | Spain
- /// | `eu_vat` | European VAT Number | |
- /// Sweden | `eu_vat` | European VAT Number
- /// | | Switzerland | `ch_vat` | Switzerland VAT Number
- /// | | Taiwan | `tw_vat` | Taiwanese VAT
- /// | | Thailand | `th_vat` |
- /// Thai VAT | | Turkey
- /// | `tr_tin` | Turkish Tax Identification Number | | Ukraine
- /// | `ua_vat` | Ukrainian VAT
- /// | | United Arab Emirates | `ae_trn` | United Arab Emirates TRN
- /// | | United Kingdom | `eu_vat` | Northern Ireland
- /// VAT Number | | United Kingdom | `gb_vat` | United
- /// Kingdom VAT Number | | United States | `us_ein`
- /// | United States EIN | | Uruguay
- /// | `uy_ruc` | Uruguayan RUC Number | | Venezuela
- /// | `ve_rif` | Venezuelan RIF Number
- /// | | Vietnam | `vn_tin` | Vietnamese Tax ID Number
- /// |
+ /// | Country | Type | Description | |---------|------|-------------| | Albania
+ /// | `al_tin` | Albania Tax Identification Number | | Andorra | `ad_nrt` | Andorran
+ /// NRT Number | | Angola | `ao_tin` | Angola Tax Identification Number | | Argentina
+ /// | `ar_cuit` | Argentinian Tax ID Number | | Armenia | `am_tin` | Armenia Tax
+ /// Identification Number | | Aruba | `aw_tin` | Aruba Tax Identification Number
+ /// | | Australia | `au_abn` | Australian Business Number (AU ABN) | | Australia
+ /// | `au_arn` | Australian Taxation Office Reference Number | | Austria | `eu_vat`
+ /// | European VAT Number | | Azerbaijan | `az_tin` | Azerbaijan Tax Identification
+ /// Number | | Bahamas | `bs_tin` | Bahamas Tax Identification Number | | Bahrain
+ /// | `bh_vat` | Bahraini VAT Number | | Bangladesh | `bd_bin` | Bangladesh Business
+ /// Identification Number | | Barbados | `bb_tin` | Barbados Tax Identification
+ /// Number | | Belarus | `by_tin` | Belarus TIN Number | | Belgium | `eu_vat` |
+ /// European VAT Number | | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant
+ /// Fiscal Unique) | | Bolivia | `bo_tin` | Bolivian Tax ID | | Bosnia and Herzegovina
+ /// | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | | Brazil | `br_cnpj`
+ /// | Brazilian CNPJ Number | | Brazil | `br_cpf` | Brazilian CPF Number | | Bulgaria
+ /// | `bg_uic` | Bulgaria Unified Identification Code | | Bulgaria | `eu_vat` |
+ /// European VAT Number | | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification
+ /// Number (Numéro d'Identifiant Fiscal Unique) | | Cambodia | `kh_tin` | Cambodia
+ /// Tax Identification Number | | Cameroon | `cm_niu` | Cameroon Tax Identification
+ /// Number (Numéro d'Identifiant fiscal Unique) | | Canada | `ca_bn` | Canadian
+ /// BN | | Canada | `ca_gst_hst` | Canadian GST/HST Number | | Canada | `ca_pst_bc`
+ /// | Canadian PST Number (British Columbia) | | Canada | `ca_pst_mb` | Canadian
+ /// PST Number (Manitoba) | | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan)
+ /// | | Canada | `ca_qst` | Canadian QST Number (Québec) | | Cape Verde | `cv_nif`
+ /// | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | |
+ /// Chile | `cl_tin` | Chilean TIN | | China | `cn_tin` | Chinese Tax ID | | Colombia
+ /// | `co_nit` | Colombian NIT Number | | Congo-Kinshasa | `cd_nif` | Congo (DR)
+ /// Tax Identification Number (Número de Identificação Fiscal) | | Costa Rica |
+ /// `cr_tin` | Costa Rican Tax ID | | Croatia | `eu_vat` | European VAT Number |
+ /// | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | | Cyprus
+ /// | `eu_vat` | European VAT Number | | Czech Republic | `eu_vat` | European VAT
+ /// Number | | Denmark | `eu_vat` | European VAT Number | | Dominican Republic
+ /// | `do_rcn` | Dominican RCN Number | | Ecuador | `ec_ruc` | Ecuadorian RUC Number
+ /// | | Egypt | `eg_tin` | Egyptian Tax Identification Number | | El Salvador |
+ /// `sv_nit` | El Salvadorian NIT Number | | Estonia | `eu_vat` | European VAT
+ /// Number | | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | | European
+ /// Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme
+ /// | | Finland | `eu_vat` | European VAT Number | | France | `eu_vat` | European
+ /// VAT Number | | Georgia | `ge_vat` | Georgian VAT | | Germany | `de_stn` | German
+ /// Tax Number (Steuernummer) | | Germany | `eu_vat` | European VAT Number | |
+ /// Greece | `eu_vat` | European VAT Number | | Guinea | `gn_nif` | Guinea Tax Identification
+ /// Number (Número de Identificação Fiscal) | | Hong Kong | `hk_br` | Hong Kong
+ /// BR Number | | Hungary | `eu_vat` | European VAT Number | | Hungary | `hu_tin`
+ /// | Hungary Tax Number (adószám) | | Iceland | `is_vat` | Icelandic VAT | | India
+ /// | `in_gst` | Indian GST Number | | Indonesia | `id_npwp` | Indonesian NPWP
+ /// Number | | Ireland | `eu_vat` | European VAT Number | | Israel | `il_vat` |
+ /// Israel VAT | | Italy | `eu_vat` | European VAT Number | | Japan | `jp_cn` |
+ /// Japanese Corporate Number (*Hōjin Bangō*) | | Japan | `jp_rn` | Japanese Registered
+ /// Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku
+ /// Bangō*) | | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*)
+ /// | | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | |
+ /// Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
+ /// | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | | Laos | `la_tin`
+ /// | Laos Tax Identification Number | | Latvia | `eu_vat` | European VAT Number
+ /// | | Liechtenstein | `li_uid` | Liechtensteinian UID Number | | Liechtenstein
+ /// | `li_vat` | Liechtenstein VAT Number | | Lithuania | `eu_vat` | European VAT
+ /// Number | | Luxembourg | `eu_vat` | European VAT Number | | Malaysia | `my_frp`
+ /// | Malaysian FRP Number | | Malaysia | `my_itn` | Malaysian ITN | | Malaysia
+ /// | `my_sst` | Malaysian SST Number | | Malta | `eu_vat` | European VAT Number
+ /// | | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de
+ /// Identificação Fiscal) | | Mexico | `mx_rfc` | Mexican RFC Number | | Moldova
+ /// | `md_vat` | Moldova VAT Number | | Montenegro | `me_pib` | Montenegro PIB
+ /// Number | | Morocco | `ma_vat` | Morocco VAT Number | | Nepal | `np_pan` | Nepal
+ /// PAN Number | | Netherlands | `eu_vat` | European VAT Number | | New Zealand
+ /// | `nz_gst` | New Zealand GST Number | | Nigeria | `ng_tin` | Nigerian Tax Identification
+ /// Number | | North Macedonia | `mk_vat` | North Macedonia VAT Number | | Northern
+ /// Ireland | `eu_vat` | Northern Ireland VAT Number | | Norway | `no_vat` | Norwegian
+ /// VAT Number | | Norway | `no_voec` | Norwegian VAT on e-commerce Number | | Oman
+ /// | `om_vat` | Omani VAT Number | | Peru | `pe_ruc` | Peruvian RUC Number | |
+ /// Philippines | `ph_tin` | Philippines Tax Identification Number | | Poland |
+ /// `eu_vat` | European VAT Number | | Portugal | `eu_vat` | European VAT Number
+ /// | | Romania | `eu_vat` | European VAT Number | | Romania | `ro_tin` | Romanian
+ /// Tax ID Number | | Russia | `ru_inn` | Russian INN | | Russia | `ru_kpp` | Russian
+ /// KPP | | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | | Senegal | `sn_ninea`
+ /// | Senegal NINEA Number | | Serbia | `rs_pib` | Serbian PIB Number | | Singapore
+ /// | `sg_gst` | Singaporean GST | | Singapore | `sg_uen` | Singaporean UEN | |
+ /// Slovakia | `eu_vat` | European VAT Number | | Slovenia | `eu_vat` | European
+ /// VAT Number | | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
+ /// | South Africa | `za_vat` | South African VAT Number | | South Korea | `kr_brn`
+ /// | Korean BRN | | Spain | `es_cif` | Spanish NIF Number (previously Spanish
+ /// CIF Number) | | Spain | `eu_vat` | European VAT Number | | Suriname | `sr_fin`
+ /// | Suriname FIN Number | | Sweden | `eu_vat` | European VAT Number | | Switzerland
+ /// | `ch_uid` | Switzerland UID Number | | Switzerland | `ch_vat` | Switzerland
+ /// VAT Number | | Taiwan | `tw_vat` | Taiwanese VAT | | Tajikistan | `tj_tin`
+ /// | Tajikistan Tax Identification Number | | Tanzania | `tz_vat` | Tanzania VAT
+ /// Number | | Thailand | `th_vat` | Thai VAT | | Turkey | `tr_tin` | Turkish Tax
+ /// Identification Number | | Uganda | `ug_tin` | Uganda Tax Identification Number
+ /// | | Ukraine | `ua_vat` | Ukrainian VAT | | United Arab Emirates | `ae_trn` |
+ /// United Arab Emirates TRN | | United Kingdom | `gb_vat` | United Kingdom VAT
+ /// Number | | United States | `us_ein` | United States EIN | | Uruguay | `uy_ruc`
+ /// | Uruguayan RUC Number | | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
+ /// | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | | Venezuela | `ve_rif` |
+ /// Venezuelan RIF Number | | Vietnam | `vn_tin` | Vietnamese Tax ID Number | |
+ /// Zambia | `zm_tin` | Zambia Tax Identification Number | | Zimbabwe | `zw_tin`
+ /// | Zimbabwe Tax Identification Number |
///
public required Models::CustomerTaxID? CustomerTaxID
{
diff --git a/src/Orb/Models/Price.cs b/src/Orb/Models/Price.cs
index c70602d8a..046cca688 100644
--- a/src/Orb/Models/Price.cs
+++ b/src/Orb/Models/Price.cs
@@ -114,5 +114,9 @@ internal Price() { }
PriceProperties::CumulativeGroupedBulk value
) => new(value);
+ public static PriceVariants::GroupedWithMinMaxThresholds Create(
+ PriceProperties::GroupedWithMinMaxThresholds value
+ ) => new(value);
+
public abstract void Validate();
}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholds.cs b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholds.cs
new file mode 100644
index 000000000..c094eb3e5
--- /dev/null
+++ b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholds.cs
@@ -0,0 +1,541 @@
+using CodeAnalysis = System.Diagnostics.CodeAnalysis;
+using Generic = System.Collections.Generic;
+using GroupedWithMinMaxThresholdsProperties = Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties;
+using Json = System.Text.Json;
+using Models = Orb.Models;
+using Orb = Orb;
+using Serialization = System.Text.Json.Serialization;
+using System = System;
+
+namespace Orb.Models.PriceProperties;
+
+[Serialization::JsonConverter(typeof(Orb::ModelConverter))]
+public sealed record class GroupedWithMinMaxThresholds
+ : Orb::ModelBase,
+ Orb::IFromRaw
+{
+ public required string ID
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("id", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException("id", "Missing required argument");
+
+ return Json::JsonSerializer.Deserialize(element)
+ ?? throw new System::ArgumentNullException("id");
+ }
+ set { this.Properties["id"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required Models::BillableMetricTiny? BillableMetric
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("billable_metric", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "billable_metric",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.Properties["billable_metric"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required Models::BillingCycleConfiguration BillingCycleConfiguration
+ {
+ get
+ {
+ if (
+ !this.Properties.TryGetValue(
+ "billing_cycle_configuration",
+ out Json::JsonElement element
+ )
+ )
+ throw new System::ArgumentOutOfRangeException(
+ "billing_cycle_configuration",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element)
+ ?? throw new System::ArgumentNullException("billing_cycle_configuration");
+ }
+ set
+ {
+ this.Properties["billing_cycle_configuration"] =
+ Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ public required GroupedWithMinMaxThresholdsProperties::Cadence Cadence
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("cadence", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "cadence",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(
+ element
+ ) ?? throw new System::ArgumentNullException("cadence");
+ }
+ set { this.Properties["cadence"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required double? ConversionRate
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("conversion_rate", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "conversion_rate",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.Properties["conversion_rate"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required GroupedWithMinMaxThresholdsProperties::ConversionRateConfig? ConversionRateConfig
+ {
+ get
+ {
+ if (
+ !this.Properties.TryGetValue(
+ "conversion_rate_config",
+ out Json::JsonElement element
+ )
+ )
+ throw new System::ArgumentOutOfRangeException(
+ "conversion_rate_config",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(
+ element
+ );
+ }
+ set
+ {
+ this.Properties["conversion_rate_config"] = Json::JsonSerializer.SerializeToElement(
+ value
+ );
+ }
+ }
+
+ public required System::DateTime CreatedAt
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("created_at", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "created_at",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.Properties["created_at"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required Models::Allocation? CreditAllocation
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("credit_allocation", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "credit_allocation",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set
+ {
+ this.Properties["credit_allocation"] = Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ public required string Currency
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("currency", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "currency",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element)
+ ?? throw new System::ArgumentNullException("currency");
+ }
+ set { this.Properties["currency"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required Models::Discount? Discount
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("discount", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "discount",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.Properties["discount"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required string? ExternalPriceID
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("external_price_id", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "external_price_id",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set
+ {
+ this.Properties["external_price_id"] = Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ public required double? FixedPriceQuantity
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("fixed_price_quantity", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "fixed_price_quantity",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set
+ {
+ this.Properties["fixed_price_quantity"] = Json::JsonSerializer.SerializeToElement(
+ value
+ );
+ }
+ }
+
+ public required Generic::Dictionary GroupedWithMinMaxThresholdsConfig
+ {
+ get
+ {
+ if (
+ !this.Properties.TryGetValue(
+ "grouped_with_min_max_thresholds_config",
+ out Json::JsonElement element
+ )
+ )
+ throw new System::ArgumentOutOfRangeException(
+ "grouped_with_min_max_thresholds_config",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize>(
+ element
+ )
+ ?? throw new System::ArgumentNullException(
+ "grouped_with_min_max_thresholds_config"
+ );
+ }
+ set
+ {
+ this.Properties["grouped_with_min_max_thresholds_config"] =
+ Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ public required Models::BillingCycleConfiguration? InvoicingCycleConfiguration
+ {
+ get
+ {
+ if (
+ !this.Properties.TryGetValue(
+ "invoicing_cycle_configuration",
+ out Json::JsonElement element
+ )
+ )
+ throw new System::ArgumentOutOfRangeException(
+ "invoicing_cycle_configuration",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set
+ {
+ this.Properties["invoicing_cycle_configuration"] =
+ Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ public required Models::ItemSlim Item
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("item", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException("item", "Missing required argument");
+
+ return Json::JsonSerializer.Deserialize(element)
+ ?? throw new System::ArgumentNullException("item");
+ }
+ set { this.Properties["item"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required Models::Maximum? Maximum
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("maximum", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "maximum",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.Properties["maximum"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required string? MaximumAmount
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("maximum_amount", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "maximum_amount",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.Properties["maximum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ ///
+ /// User specified key-value pairs for the resource. If not present, this defaults
+ /// to an empty dictionary. Individual keys can be removed by setting the value
+ /// to `null`, and the entire metadata mapping can be cleared by setting `metadata`
+ /// to `null`.
+ ///
+ public required Generic::Dictionary Metadata
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("metadata", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "metadata",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize>(element)
+ ?? throw new System::ArgumentNullException("metadata");
+ }
+ set { this.Properties["metadata"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required Models::Minimum? Minimum
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("minimum", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "minimum",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.Properties["minimum"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required string? MinimumAmount
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("minimum_amount", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "minimum_amount",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required GroupedWithMinMaxThresholdsProperties::ModelType ModelType
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("model_type", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "model_type",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(
+ element
+ ) ?? throw new System::ArgumentNullException("model_type");
+ }
+ set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required string Name
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("name", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException("name", "Missing required argument");
+
+ return Json::JsonSerializer.Deserialize(element)
+ ?? throw new System::ArgumentNullException("name");
+ }
+ set { this.Properties["name"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ public required long? PlanPhaseOrder
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("plan_phase_order", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "plan_phase_order",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set
+ {
+ this.Properties["plan_phase_order"] = Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ public required GroupedWithMinMaxThresholdsProperties::PriceType PriceType
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("price_type", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "price_type",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(
+ element
+ ) ?? throw new System::ArgumentNullException("price_type");
+ }
+ set { this.Properties["price_type"] = Json::JsonSerializer.SerializeToElement(value); }
+ }
+
+ ///
+ /// The price id this price replaces. This price will take the place of the replaced
+ /// price in plan version migrations.
+ ///
+ public required string? ReplacesPriceID
+ {
+ get
+ {
+ if (!this.Properties.TryGetValue("replaces_price_id", out Json::JsonElement element))
+ throw new System::ArgumentOutOfRangeException(
+ "replaces_price_id",
+ "Missing required argument"
+ );
+
+ return Json::JsonSerializer.Deserialize(element);
+ }
+ set
+ {
+ this.Properties["replaces_price_id"] = Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ public Models::DimensionalPriceConfiguration? DimensionalPriceConfiguration
+ {
+ get
+ {
+ if (
+ !this.Properties.TryGetValue(
+ "dimensional_price_configuration",
+ out Json::JsonElement element
+ )
+ )
+ return null;
+
+ return Json::JsonSerializer.Deserialize(
+ element
+ );
+ }
+ set
+ {
+ this.Properties["dimensional_price_configuration"] =
+ Json::JsonSerializer.SerializeToElement(value);
+ }
+ }
+
+ public override void Validate()
+ {
+ _ = this.ID;
+ this.BillableMetric?.Validate();
+ this.BillingCycleConfiguration.Validate();
+ this.Cadence.Validate();
+ _ = this.ConversionRate;
+ this.ConversionRateConfig?.Validate();
+ _ = this.CreatedAt;
+ this.CreditAllocation?.Validate();
+ _ = this.Currency;
+ this.Discount?.Validate();
+ _ = this.ExternalPriceID;
+ _ = this.FixedPriceQuantity;
+ foreach (var item in this.GroupedWithMinMaxThresholdsConfig.Values)
+ {
+ _ = item;
+ }
+ this.InvoicingCycleConfiguration?.Validate();
+ this.Item.Validate();
+ this.Maximum?.Validate();
+ _ = this.MaximumAmount;
+ foreach (var item in this.Metadata.Values)
+ {
+ _ = item;
+ }
+ this.Minimum?.Validate();
+ _ = this.MinimumAmount;
+ this.ModelType.Validate();
+ _ = this.Name;
+ _ = this.PlanPhaseOrder;
+ this.PriceType.Validate();
+ _ = this.ReplacesPriceID;
+ this.DimensionalPriceConfiguration?.Validate();
+ }
+
+ public GroupedWithMinMaxThresholds() { }
+
+#pragma warning disable CS8618
+ [CodeAnalysis::SetsRequiredMembers]
+ GroupedWithMinMaxThresholds(Generic::Dictionary properties)
+ {
+ Properties = properties;
+ }
+#pragma warning restore CS8618
+
+ public static GroupedWithMinMaxThresholds FromRawUnchecked(
+ Generic::Dictionary properties
+ )
+ {
+ return new(properties);
+ }
+}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/Cadence.cs b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/Cadence.cs
new file mode 100644
index 000000000..579322222
--- /dev/null
+++ b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/Cadence.cs
@@ -0,0 +1,60 @@
+using Orb = Orb;
+using Serialization = System.Text.Json.Serialization;
+using System = System;
+
+namespace Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties;
+
+[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
+public sealed record class Cadence(string value) : Orb::IEnum
+{
+ public static readonly Cadence OneTime = new("one_time");
+
+ public static readonly Cadence Monthly = new("monthly");
+
+ public static readonly Cadence Quarterly = new("quarterly");
+
+ public static readonly Cadence SemiAnnual = new("semi_annual");
+
+ public static readonly Cadence Annual = new("annual");
+
+ public static readonly Cadence Custom = new("custom");
+
+ readonly string _value = value;
+
+ public enum Value
+ {
+ OneTime,
+ Monthly,
+ Quarterly,
+ SemiAnnual,
+ Annual,
+ Custom,
+ }
+
+ public Value Known() =>
+ _value switch
+ {
+ "one_time" => Value.OneTime,
+ "monthly" => Value.Monthly,
+ "quarterly" => Value.Quarterly,
+ "semi_annual" => Value.SemiAnnual,
+ "annual" => Value.Annual,
+ "custom" => Value.Custom,
+ _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
+ };
+
+ public string Raw()
+ {
+ return _value;
+ }
+
+ public void Validate()
+ {
+ Known();
+ }
+
+ public static Cadence FromRaw(string value)
+ {
+ return new(value);
+ }
+}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfig.cs b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfig.cs
new file mode 100644
index 000000000..e0696be82
--- /dev/null
+++ b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfig.cs
@@ -0,0 +1,22 @@
+using ConversionRateConfigVariants = Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties.ConversionRateConfigVariants;
+using Models = Orb.Models;
+using Orb = Orb;
+using Serialization = System.Text.Json.Serialization;
+
+namespace Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties;
+
+[Serialization::JsonConverter(typeof(Orb::UnionConverter))]
+public abstract record class ConversionRateConfig
+{
+ internal ConversionRateConfig() { }
+
+ public static ConversionRateConfigVariants::UnitConversionRateConfig Create(
+ Models::UnitConversionRateConfig value
+ ) => new(value);
+
+ public static ConversionRateConfigVariants::TieredConversionRateConfig Create(
+ Models::TieredConversionRateConfig value
+ ) => new(value);
+
+ public abstract void Validate();
+}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfigVariants/All.cs b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfigVariants/All.cs
new file mode 100644
index 000000000..efa33a8a3
--- /dev/null
+++ b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfigVariants/All.cs
@@ -0,0 +1,42 @@
+using GroupedWithMinMaxThresholdsProperties = Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties;
+using Models = Orb.Models;
+using Orb = Orb;
+using Serialization = System.Text.Json.Serialization;
+
+namespace Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties.ConversionRateConfigVariants;
+
+[Serialization::JsonConverter(
+ typeof(Orb::VariantConverter)
+)]
+public sealed record class UnitConversionRateConfig(Models::UnitConversionRateConfig Value)
+ : GroupedWithMinMaxThresholdsProperties::ConversionRateConfig,
+ Orb::IVariant
+{
+ public static UnitConversionRateConfig From(Models::UnitConversionRateConfig value)
+ {
+ return new(value);
+ }
+
+ public override void Validate()
+ {
+ this.Value.Validate();
+ }
+}
+
+[Serialization::JsonConverter(
+ typeof(Orb::VariantConverter)
+)]
+public sealed record class TieredConversionRateConfig(Models::TieredConversionRateConfig Value)
+ : GroupedWithMinMaxThresholdsProperties::ConversionRateConfig,
+ Orb::IVariant
+{
+ public static TieredConversionRateConfig From(Models::TieredConversionRateConfig value)
+ {
+ return new(value);
+ }
+
+ public override void Validate()
+ {
+ this.Value.Validate();
+ }
+}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ModelType.cs b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ModelType.cs
new file mode 100644
index 000000000..f637956e0
--- /dev/null
+++ b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ModelType.cs
@@ -0,0 +1,42 @@
+using Orb = Orb;
+using Serialization = System.Text.Json.Serialization;
+using System = System;
+
+namespace Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties;
+
+[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
+public sealed record class ModelType(string value) : Orb::IEnum
+{
+ public static readonly ModelType GroupedWithMinMaxThresholds = new(
+ "grouped_with_min_max_thresholds"
+ );
+
+ readonly string _value = value;
+
+ public enum Value
+ {
+ GroupedWithMinMaxThresholds,
+ }
+
+ public Value Known() =>
+ _value switch
+ {
+ "grouped_with_min_max_thresholds" => Value.GroupedWithMinMaxThresholds,
+ _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
+ };
+
+ public string Raw()
+ {
+ return _value;
+ }
+
+ public void Validate()
+ {
+ Known();
+ }
+
+ public static ModelType FromRaw(string value)
+ {
+ return new(value);
+ }
+}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/PriceType.cs b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/PriceType.cs
new file mode 100644
index 000000000..14b6142e4
--- /dev/null
+++ b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/PriceType.cs
@@ -0,0 +1,44 @@
+using Orb = Orb;
+using Serialization = System.Text.Json.Serialization;
+using System = System;
+
+namespace Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties;
+
+[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
+public sealed record class PriceType(string value) : Orb::IEnum
+{
+ public static readonly PriceType UsagePrice = new("usage_price");
+
+ public static readonly PriceType FixedPrice = new("fixed_price");
+
+ readonly string _value = value;
+
+ public enum Value
+ {
+ UsagePrice,
+ FixedPrice,
+ }
+
+ public Value Known() =>
+ _value switch
+ {
+ "usage_price" => Value.UsagePrice,
+ "fixed_price" => Value.FixedPrice,
+ _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
+ };
+
+ public string Raw()
+ {
+ return _value;
+ }
+
+ public void Validate()
+ {
+ Known();
+ }
+
+ public static PriceType FromRaw(string value)
+ {
+ return new(value);
+ }
+}
diff --git a/src/Orb/Models/PriceVariants/All.cs b/src/Orb/Models/PriceVariants/All.cs
index 0e04b6797..7bd311a0c 100644
--- a/src/Orb/Models/PriceVariants/All.cs
+++ b/src/Orb/Models/PriceVariants/All.cs
@@ -522,3 +522,28 @@ public override void Validate()
this.Value.Validate();
}
}
+
+[Serialization::JsonConverter(
+ typeof(Orb::VariantConverter<
+ GroupedWithMinMaxThresholds,
+ PriceProperties::GroupedWithMinMaxThresholds
+ >)
+)]
+public sealed record class GroupedWithMinMaxThresholds(
+ PriceProperties::GroupedWithMinMaxThresholds Value
+)
+ : Models::Price,
+ Orb::IVariant
+{
+ public static GroupedWithMinMaxThresholds From(
+ PriceProperties::GroupedWithMinMaxThresholds value
+ )
+ {
+ return new(value);
+ }
+
+ public override void Validate()
+ {
+ this.Value.Validate();
+ }
+}
diff --git a/src/Orb/Service/DimensionalPriceGroups/DimensionalPriceGroupService.cs b/src/Orb/Service/DimensionalPriceGroups/DimensionalPriceGroupService.cs
index 96ef3a076..2ed92ac61 100644
--- a/src/Orb/Service/DimensionalPriceGroups/DimensionalPriceGroupService.cs
+++ b/src/Orb/Service/DimensionalPriceGroups/DimensionalPriceGroupService.cs
@@ -69,6 +69,29 @@ await response.Content.ReadAsStringAsync()
) ?? throw new System::NullReferenceException();
}
+ public async Tasks::Task Update(
+ DimensionalPriceGroups::DimensionalPriceGroupUpdateParams @params
+ )
+ {
+ Http::HttpRequestMessage webRequest = new(Http::HttpMethod.Put, @params.Url(this._client))
+ {
+ Content = @params.BodyContent(),
+ };
+ @params.AddHeadersToRequest(webRequest, this._client);
+ using Http::HttpResponseMessage response = await _client.HttpClient.SendAsync(webRequest);
+ try
+ {
+ response.EnsureSuccessStatusCode();
+ }
+ catch (Http::HttpRequestException e)
+ {
+ throw new Orb::HttpException(e.StatusCode, await response.Content.ReadAsStringAsync());
+ }
+ return Json::JsonSerializer.Deserialize(
+ await response.Content.ReadAsStringAsync()
+ ) ?? throw new System::NullReferenceException();
+ }
+
public async Tasks::Task List(
DimensionalPriceGroups::DimensionalPriceGroupListParams @params
)
diff --git a/src/Orb/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDService.cs b/src/Orb/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDService.cs
index 1698f482d..fc02d86dc 100644
--- a/src/Orb/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDService.cs
+++ b/src/Orb/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/ExternalDimensionalPriceGroupIDService.cs
@@ -36,4 +36,27 @@ public ExternalDimensionalPriceGroupIDService(Orb::IOrbClient client)
await response.Content.ReadAsStringAsync()
) ?? throw new System::NullReferenceException();
}
+
+ public async Tasks::Task Update(
+ ExternalDimensionalPriceGroupID::ExternalDimensionalPriceGroupIDUpdateParams @params
+ )
+ {
+ Http::HttpRequestMessage webRequest = new(Http::HttpMethod.Put, @params.Url(this._client))
+ {
+ Content = @params.BodyContent(),
+ };
+ @params.AddHeadersToRequest(webRequest, this._client);
+ using Http::HttpResponseMessage response = await _client.HttpClient.SendAsync(webRequest);
+ try
+ {
+ response.EnsureSuccessStatusCode();
+ }
+ catch (Http::HttpRequestException e)
+ {
+ throw new Orb::HttpException(e.StatusCode, await response.Content.ReadAsStringAsync());
+ }
+ return Json::JsonSerializer.Deserialize(
+ await response.Content.ReadAsStringAsync()
+ ) ?? throw new System::NullReferenceException();
+ }
}
diff --git a/src/Orb/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/IExternalDimensionalPriceGroupIDService.cs b/src/Orb/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/IExternalDimensionalPriceGroupIDService.cs
index c7f3740a7..64bbcdef5 100644
--- a/src/Orb/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/IExternalDimensionalPriceGroupIDService.cs
+++ b/src/Orb/Service/DimensionalPriceGroups/ExternalDimensionalPriceGroupID/IExternalDimensionalPriceGroupIDService.cs
@@ -12,4 +12,13 @@ public interface IExternalDimensionalPriceGroupIDService
Tasks::Task Retrieve(
ExternalDimensionalPriceGroupID::ExternalDimensionalPriceGroupIDRetrieveParams @params
);
+
+ ///
+ /// This endpoint can be used to update the `external_dimensional_price_group_id`
+ /// and `metadata` of an existing dimensional price group. Other fields on a dimensional
+ /// price group are currently immutable.
+ ///
+ Tasks::Task Update(
+ ExternalDimensionalPriceGroupID::ExternalDimensionalPriceGroupIDUpdateParams @params
+ );
}
diff --git a/src/Orb/Service/DimensionalPriceGroups/IDimensionalPriceGroupService.cs b/src/Orb/Service/DimensionalPriceGroups/IDimensionalPriceGroupService.cs
index 743e6bf5f..7a26b90d6 100644
--- a/src/Orb/Service/DimensionalPriceGroups/IDimensionalPriceGroupService.cs
+++ b/src/Orb/Service/DimensionalPriceGroups/IDimensionalPriceGroupService.cs
@@ -29,6 +29,15 @@ public interface IDimensionalPriceGroupService
DimensionalPriceGroups::DimensionalPriceGroupRetrieveParams @params
);
+ ///
+ /// This endpoint can be used to update the `external_dimensional_price_group_id`
+ /// and `metadata` of an existing dimensional price group. Other fields on a dimensional
+ /// price group are currently immutable.
+ ///
+ Tasks::Task Update(
+ DimensionalPriceGroups::DimensionalPriceGroupUpdateParams @params
+ );
+
///
/// List dimensional price groups
///
From 25e678a352492d8119389201e754ffa1b96b85a0 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 28 Jul 2025 16:04:32 +0000
Subject: [PATCH 07/15] feat(client): automatically set constants for user
---
.../Service/Coupons/CouponServiceTest.cs | 7 +---
.../Credits/Ledger/LedgerServiceTest.cs | 2 -
.../Subscriptions/SubscriptionServiceTest.cs | 7 +---
.../DiscountProperties/Amount.cs | 20 ++++++---
.../AmountProperties/DiscountType.cs | 40 ------------------
.../DiscountProperties/Percentage.cs | 20 ++++++---
.../PercentageProperties/DiscountType.cs | 40 ------------------
.../BodyProperties/Amendment.cs | 20 ++++++---
.../AmendmentProperties/EntryType.cs | 40 ------------------
.../BodyProperties/Decrement.cs | 20 ++++++---
.../DecrementProperties/EntryType.cs | 40 ------------------
.../BodyProperties/ExpirationChange.cs | 22 +++++++---
.../ExpirationChangeProperties/EntryType.cs | 40 ------------------
.../BodyProperties/Increment.cs | 19 ++++++---
.../IncrementProperties/EntryType.cs | 40 ------------------
.../BodyProperties/Void.cs | 15 ++++---
.../VoidProperties/EntryType.cs | 40 ------------------
.../BodyProperties/Amendment.cs | 20 ++++++---
.../AmendmentProperties/EntryType.cs | 40 ------------------
.../BodyProperties/Decrement.cs | 20 ++++++---
.../DecrementProperties/EntryType.cs | 40 ------------------
.../BodyProperties/ExpirationChange.cs | 22 +++++++---
.../ExpirationChangeProperties/EntryType.cs | 40 ------------------
.../BodyProperties/Increment.cs | 19 ++++++---
.../IncrementProperties/EntryType.cs | 40 ------------------
.../BodyProperties/Void.cs | 15 ++++---
.../VoidProperties/EntryType.cs | 40 ------------------
src/Orb/Models/PriceProperties/BPS.cs | 15 ++++---
.../BPSProperties/ModelType.cs | 40 ------------------
src/Orb/Models/PriceProperties/Bulk.cs | 15 ++++---
src/Orb/Models/PriceProperties/BulkBPS.cs | 19 ++++++---
.../BulkBPSProperties/ModelType.cs | 40 ------------------
.../BulkProperties/ModelType.cs | 40 ------------------
.../PriceProperties/BulkWithProration.cs | 21 +++++++---
.../BulkWithProrationProperties/ModelType.cs | 40 ------------------
.../PriceProperties/CumulativeGroupedBulk.cs | 22 +++++++---
.../ModelType.cs | 40 ------------------
.../PriceProperties/GroupedAllocation.cs | 21 +++++++---
.../GroupedAllocationProperties/ModelType.cs | 40 ------------------
.../Models/PriceProperties/GroupedTiered.cs | 19 ++++++---
.../PriceProperties/GroupedTieredPackage.cs | 22 +++++++---
.../ModelType.cs | 40 ------------------
.../GroupedTieredProperties/ModelType.cs | 40 ------------------
.../GroupedWithMeteredMinimum.cs | 24 ++++++++---
.../ModelType.cs | 42 -------------------
.../GroupedWithMinMaxThresholds.cs | 24 ++++++++---
.../ModelType.cs | 42 -------------------
.../GroupedWithProratedMinimum.cs | 24 ++++++++---
.../ModelType.cs | 42 -------------------
src/Orb/Models/PriceProperties/Matrix.cs | 19 ++++++---
.../MatrixProperties/ModelType.cs | 40 ------------------
.../PriceProperties/MatrixWithAllocation.cs | 22 +++++++---
.../ModelType.cs | 40 ------------------
.../PriceProperties/MatrixWithDisplayName.cs | 22 +++++++---
.../ModelType.cs | 40 ------------------
.../PriceProperties/MaxGroupTieredPackage.cs | 22 +++++++---
.../ModelType.cs | 40 ------------------
src/Orb/Models/PriceProperties/Package.cs | 19 ++++++---
.../PackageProperties/ModelType.cs | 40 ------------------
.../PriceProperties/PackageWithAllocation.cs | 22 +++++++---
.../ModelType.cs | 40 ------------------
.../ScalableMatrixWithTieredPricing.cs | 24 ++++++++---
.../ModelType.cs | 42 -------------------
.../ScalableMatrixWithUnitPricing.cs | 24 ++++++++---
.../ModelType.cs | 42 -------------------
.../PriceProperties/ThresholdTotalAmount.cs | 22 +++++++---
.../ModelType.cs | 40 ------------------
src/Orb/Models/PriceProperties/Tiered.cs | 19 ++++++---
src/Orb/Models/PriceProperties/TieredBPS.cs | 19 ++++++---
.../TieredBPSProperties/ModelType.cs | 40 ------------------
.../Models/PriceProperties/TieredPackage.cs | 19 ++++++---
.../TieredPackageProperties/ModelType.cs | 40 ------------------
.../TieredPackageWithMinimum.cs | 24 ++++++++---
.../ModelType.cs | 40 ------------------
.../TieredProperties/ModelType.cs | 40 ------------------
.../PriceProperties/TieredWithMinimum.cs | 21 +++++++---
.../TieredWithMinimumProperties/ModelType.cs | 40 ------------------
.../PriceProperties/TieredWithProration.cs | 22 +++++++---
.../ModelType.cs | 40 ------------------
src/Orb/Models/PriceProperties/Unit.cs | 15 ++++---
.../UnitProperties/ModelType.cs | 40 ------------------
.../Models/PriceProperties/UnitWithPercent.cs | 21 +++++++---
.../UnitWithPercentProperties/ModelType.cs | 40 ------------------
.../PriceProperties/UnitWithProration.cs | 21 +++++++---
.../UnitWithProrationProperties/ModelType.cs | 40 ------------------
.../DiscountProperties/Amount.cs | 20 ++++++---
.../AmountProperties/DiscountType.cs | 40 ------------------
.../DiscountProperties/Percentage.cs | 20 ++++++---
.../PercentageProperties/DiscountType.cs | 40 ------------------
.../AddProperties/DiscountProperties/Usage.cs | 20 ++++++---
.../UsageProperties/DiscountType.cs | 40 ------------------
91 files changed, 652 insertions(+), 2029 deletions(-)
delete mode 100644 src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/AmountProperties/DiscountType.cs
delete mode 100644 src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/PercentageProperties/DiscountType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/AmendmentProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/DecrementProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/ExpirationChangeProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/VoidProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/AmendmentProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/DecrementProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/ExpirationChangeProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/EntryType.cs
delete mode 100644 src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/VoidProperties/EntryType.cs
delete mode 100644 src/Orb/Models/PriceProperties/BPSProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/BulkBPSProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/BulkProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/BulkWithProrationProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/CumulativeGroupedBulkProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/GroupedAllocationProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/GroupedTieredPackageProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/GroupedTieredProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/GroupedWithMeteredMinimumProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/GroupedWithProratedMinimumProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/MatrixProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/MatrixWithAllocationProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/MatrixWithDisplayNameProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/MaxGroupTieredPackageProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/PackageProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/PackageWithAllocationProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/ScalableMatrixWithTieredPricingProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/ScalableMatrixWithUnitPricingProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/ThresholdTotalAmountProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/TieredBPSProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/TieredPackageProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/TieredPackageWithMinimumProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/TieredProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/TieredWithMinimumProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/TieredWithProrationProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/UnitProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/UnitWithPercentProperties/ModelType.cs
delete mode 100644 src/Orb/Models/PriceProperties/UnitWithProrationProperties/ModelType.cs
delete mode 100644 src/Orb/Models/Subscriptions/SubscriptionPriceIntervalsParamsProperties/AddProperties/DiscountProperties/AmountProperties/DiscountType.cs
delete mode 100644 src/Orb/Models/Subscriptions/SubscriptionPriceIntervalsParamsProperties/AddProperties/DiscountProperties/PercentageProperties/DiscountType.cs
delete mode 100644 src/Orb/Models/Subscriptions/SubscriptionPriceIntervalsParamsProperties/AddProperties/DiscountProperties/UsageProperties/DiscountType.cs
diff --git a/src/Orb.Tests/Service/Coupons/CouponServiceTest.cs b/src/Orb.Tests/Service/Coupons/CouponServiceTest.cs
index 3cd0d0320..c0e5ea8a6 100644
--- a/src/Orb.Tests/Service/Coupons/CouponServiceTest.cs
+++ b/src/Orb.Tests/Service/Coupons/CouponServiceTest.cs
@@ -1,7 +1,6 @@
using CouponCreateParamsProperties = Orb.Models.Coupons.CouponCreateParamsProperties;
using Coupons = Orb.Models.Coupons;
using DiscountProperties = Orb.Models.Coupons.CouponCreateParamsProperties.DiscountProperties;
-using PercentageProperties = Orb.Models.Coupons.CouponCreateParamsProperties.DiscountProperties.PercentageProperties;
using Tasks = System.Threading.Tasks;
using Tests = Orb.Tests;
@@ -16,11 +15,7 @@ public class CouponServiceTest : Tests::TestBase
new Coupons::CouponCreateParams()
{
Discount = CouponCreateParamsProperties::Discount.Create(
- new DiscountProperties::Percentage()
- {
- DiscountType = PercentageProperties::DiscountType.Percentage,
- PercentageDiscount = 0,
- }
+ new DiscountProperties::Percentage() { PercentageDiscount = 0 }
),
RedemptionCode = "HALFOFF",
DurationInMonths = 12,
diff --git a/src/Orb.Tests/Service/Customers/Credits/Ledger/LedgerServiceTest.cs b/src/Orb.Tests/Service/Customers/Credits/Ledger/LedgerServiceTest.cs
index 3d01de1c3..40a1a0bb0 100644
--- a/src/Orb.Tests/Service/Customers/Credits/Ledger/LedgerServiceTest.cs
+++ b/src/Orb.Tests/Service/Customers/Credits/Ledger/LedgerServiceTest.cs
@@ -50,7 +50,6 @@ public class LedgerServiceTest : Tests::TestBase
new BodyProperties::Increment()
{
Amount = 0,
- EntryType = IncrementProperties::EntryType.Increment,
Currency = "currency",
Description = "description",
EffectiveDate = System::DateTime.Parse("2019-12-27T18:11:19.117Z"),
@@ -85,7 +84,6 @@ public class LedgerServiceTest : Tests::TestBase
new BodyProperties1::Increment()
{
Amount = 0,
- EntryType = IncrementProperties1::EntryType.Increment,
Currency = "currency",
Description = "description",
EffectiveDate = System::DateTime.Parse("2019-12-27T18:11:19.117Z"),
diff --git a/src/Orb.Tests/Service/Subscriptions/SubscriptionServiceTest.cs b/src/Orb.Tests/Service/Subscriptions/SubscriptionServiceTest.cs
index 3c6dffc82..fe1db92f5 100644
--- a/src/Orb.Tests/Service/Subscriptions/SubscriptionServiceTest.cs
+++ b/src/Orb.Tests/Service/Subscriptions/SubscriptionServiceTest.cs
@@ -4,7 +4,6 @@
using AddPriceProperties = Orb.Models.Subscriptions.SubscriptionCreateParamsProperties.AddPriceProperties;
using AddPriceProperties1 = Orb.Models.Subscriptions.SubscriptionSchedulePlanChangeParamsProperties.AddPriceProperties;
using AddProperties = Orb.Models.Subscriptions.SubscriptionPriceIntervalsParamsProperties.AddProperties;
-using AmountProperties = Orb.Models.Subscriptions.SubscriptionPriceIntervalsParamsProperties.AddProperties.DiscountProperties.AmountProperties;
using CustomExpirationProperties = Orb.Models.CustomExpirationProperties;
using DiscountOverrideProperties = Orb.Models.Subscriptions.DiscountOverrideProperties;
using DiscountProperties = Orb.Models.Subscriptions.SubscriptionPriceIntervalsParamsProperties.AddProperties.DiscountProperties;
@@ -493,11 +492,7 @@ public class SubscriptionServiceTest : Tests::TestBase
Discounts =
[
AddProperties::Discount.Create(
- new DiscountProperties::Amount()
- {
- AmountDiscount = 0,
- DiscountType = AmountProperties::DiscountType.Amount,
- }
+ new DiscountProperties::Amount() { AmountDiscount = 0 }
),
],
EndDate = AddProperties::EndDate.Create(
diff --git a/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/Amount.cs b/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/Amount.cs
index 60e4c6ce3..906ace27c 100644
--- a/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/Amount.cs
+++ b/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/Amount.cs
@@ -1,4 +1,3 @@
-using AmountProperties = Orb.Models.Coupons.CouponCreateParamsProperties.DiscountProperties.AmountProperties;
using CodeAnalysis = System.Diagnostics.CodeAnalysis;
using Generic = System.Collections.Generic;
using Json = System.Text.Json;
@@ -27,7 +26,7 @@ public required string AmountDiscount
set { this.Properties["amount_discount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required AmountProperties::DiscountType DiscountType
+ public Json::JsonElement DiscountType
{
get
{
@@ -37,8 +36,7 @@ public required string AmountDiscount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("discount_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["discount_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -46,10 +44,20 @@ public required string AmountDiscount
public override void Validate()
{
_ = this.AmountDiscount;
- this.DiscountType.Validate();
+ if (
+ !this.DiscountType.Equals(
+ Json::JsonSerializer.Deserialize("\"amount\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
}
- public Amount() { }
+ public Amount()
+ {
+ this.DiscountType = Json::JsonSerializer.Deserialize("\"amount\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/AmountProperties/DiscountType.cs b/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/AmountProperties/DiscountType.cs
deleted file mode 100644
index 29c8d648f..000000000
--- a/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/AmountProperties/DiscountType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Coupons.CouponCreateParamsProperties.DiscountProperties.AmountProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class DiscountType(string value) : Orb::IEnum
-{
- public static readonly DiscountType Amount = new("amount");
-
- readonly string _value = value;
-
- public enum Value
- {
- Amount,
- }
-
- public Value Known() =>
- _value switch
- {
- "amount" => Value.Amount,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static DiscountType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/Percentage.cs b/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/Percentage.cs
index db1056163..8ba83a1c4 100644
--- a/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/Percentage.cs
+++ b/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/Percentage.cs
@@ -2,7 +2,6 @@
using Generic = System.Collections.Generic;
using Json = System.Text.Json;
using Orb = Orb;
-using PercentageProperties = Orb.Models.Coupons.CouponCreateParamsProperties.DiscountProperties.PercentageProperties;
using Serialization = System.Text.Json.Serialization;
using System = System;
@@ -11,7 +10,7 @@ namespace Orb.Models.Coupons.CouponCreateParamsProperties.DiscountProperties;
[Serialization::JsonConverter(typeof(Orb::ModelConverter))]
public sealed record class Percentage : Orb::ModelBase, Orb::IFromRaw
{
- public required PercentageProperties::DiscountType DiscountType
+ public Json::JsonElement DiscountType
{
get
{
@@ -21,8 +20,7 @@ public sealed record class Percentage : Orb::ModelBase, Orb::IFromRaw(element)
- ?? throw new System::ArgumentNullException("discount_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["discount_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -47,11 +45,21 @@ public required double PercentageDiscount
public override void Validate()
{
- this.DiscountType.Validate();
+ if (
+ !this.DiscountType.Equals(
+ Json::JsonSerializer.Deserialize("\"percentage\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.PercentageDiscount;
}
- public Percentage() { }
+ public Percentage()
+ {
+ this.DiscountType = Json::JsonSerializer.Deserialize("\"percentage\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/PercentageProperties/DiscountType.cs b/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/PercentageProperties/DiscountType.cs
deleted file mode 100644
index fd1a73b21..000000000
--- a/src/Orb/Models/Coupons/CouponCreateParamsProperties/DiscountProperties/PercentageProperties/DiscountType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Coupons.CouponCreateParamsProperties.DiscountProperties.PercentageProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class DiscountType(string value) : Orb::IEnum
-{
- public static readonly DiscountType Percentage = new("percentage");
-
- readonly string _value = value;
-
- public enum Value
- {
- Percentage,
- }
-
- public Value Known() =>
- _value switch
- {
- "percentage" => Value.Percentage,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static DiscountType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Amendment.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Amendment.cs
index bf8f4f588..5452c8427 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Amendment.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Amendment.cs
@@ -1,4 +1,3 @@
-using AmendmentProperties = Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParamsProperties.BodyProperties.AmendmentProperties;
using CodeAnalysis = System.Diagnostics.CodeAnalysis;
using Generic = System.Collections.Generic;
using Json = System.Text.Json;
@@ -49,7 +48,7 @@ public required string BlockID
set { this.Properties["block_id"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required AmendmentProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -59,8 +58,7 @@ public required string BlockID
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -119,7 +117,14 @@ public override void Validate()
{
_ = this.Amount;
_ = this.BlockID;
- this.EntryType.Validate();
+ if (
+ !this.EntryType.Equals(
+ Json::JsonSerializer.Deserialize("\"amendment\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Currency;
_ = this.Description;
if (this.Metadata != null)
@@ -131,7 +136,10 @@ public override void Validate()
}
}
- public Amendment() { }
+ public Amendment()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize("\"amendment\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/AmendmentProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/AmendmentProperties/EntryType.cs
deleted file mode 100644
index 5d718f374..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/AmendmentProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParamsProperties.BodyProperties.AmendmentProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType Amendment = new("amendment");
-
- readonly string _value = value;
-
- public enum Value
- {
- Amendment,
- }
-
- public Value Known() =>
- _value switch
- {
- "amendment" => Value.Amendment,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Decrement.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Decrement.cs
index bc5139518..928f39bf8 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Decrement.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Decrement.cs
@@ -1,5 +1,4 @@
using CodeAnalysis = System.Diagnostics.CodeAnalysis;
-using DecrementProperties = Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParamsProperties.BodyProperties.DecrementProperties;
using Generic = System.Collections.Generic;
using Json = System.Text.Json;
using Orb = Orb;
@@ -30,7 +29,7 @@ public required double Amount
set { this.Properties["amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required DecrementProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -40,8 +39,7 @@ public required double Amount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -99,7 +97,14 @@ public string? Description
public override void Validate()
{
_ = this.Amount;
- this.EntryType.Validate();
+ if (
+ !this.EntryType.Equals(
+ Json::JsonSerializer.Deserialize("\"decrement\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Currency;
_ = this.Description;
if (this.Metadata != null)
@@ -111,7 +116,10 @@ public override void Validate()
}
}
- public Decrement() { }
+ public Decrement()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize("\"decrement\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/DecrementProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/DecrementProperties/EntryType.cs
deleted file mode 100644
index 83266bfb2..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/DecrementProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParamsProperties.BodyProperties.DecrementProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType Decrement = new("decrement");
-
- readonly string _value = value;
-
- public enum Value
- {
- Decrement,
- }
-
- public Value Known() =>
- _value switch
- {
- "decrement" => Value.Decrement,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/ExpirationChange.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/ExpirationChange.cs
index 29355e607..a5ff0044d 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/ExpirationChange.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/ExpirationChange.cs
@@ -1,5 +1,4 @@
using CodeAnalysis = System.Diagnostics.CodeAnalysis;
-using ExpirationChangeProperties = Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParamsProperties.BodyProperties.ExpirationChangeProperties;
using Generic = System.Collections.Generic;
using Json = System.Text.Json;
using Orb = Orb;
@@ -11,7 +10,7 @@ namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParam
[Serialization::JsonConverter(typeof(Orb::ModelConverter))]
public sealed record class ExpirationChange : Orb::ModelBase, Orb::IFromRaw
{
- public required ExpirationChangeProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -21,8 +20,7 @@ public sealed record class ExpirationChange : Orb::ModelBase, Orb::IFromRaw(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -148,7 +146,14 @@ public string? Description
public override void Validate()
{
- this.EntryType.Validate();
+ if (
+ !this.EntryType.Equals(
+ Json::JsonSerializer.Deserialize("\"expiration_change\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.TargetExpiryDate;
_ = this.Amount;
_ = this.BlockID;
@@ -164,7 +169,12 @@ public override void Validate()
}
}
- public ExpirationChange() { }
+ public ExpirationChange()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize(
+ "\"expiration_change\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/ExpirationChangeProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/ExpirationChangeProperties/EntryType.cs
deleted file mode 100644
index 7c0399c76..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/ExpirationChangeProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParamsProperties.BodyProperties.ExpirationChangeProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType ExpirationChange = new("expiration_change");
-
- readonly string _value = value;
-
- public enum Value
- {
- ExpirationChange,
- }
-
- public Value Known() =>
- _value switch
- {
- "expiration_change" => Value.ExpirationChange,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Increment.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Increment.cs
index c759cc5ed..1a9d10424 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Increment.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Increment.cs
@@ -30,7 +30,7 @@ public required double Amount
set { this.Properties["amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required IncrementProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -40,8 +40,7 @@ public required double Amount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -169,7 +168,14 @@ public string? PerUnitCostBasis
public override void Validate()
{
_ = this.Amount;
- this.EntryType.Validate();
+ if (
+ !this.EntryType.Equals(
+ Json::JsonSerializer.Deserialize("\"increment\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Currency;
_ = this.Description;
_ = this.EffectiveDate;
@@ -185,7 +191,10 @@ public override void Validate()
_ = this.PerUnitCostBasis;
}
- public Increment() { }
+ public Increment()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize("\"increment\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/EntryType.cs
deleted file mode 100644
index 7f047af8c..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/IncrementProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParamsProperties.BodyProperties.IncrementProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType Increment = new("increment");
-
- readonly string _value = value;
-
- public enum Value
- {
- Increment,
- }
-
- public Value Known() =>
- _value switch
- {
- "increment" => Value.Increment,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Void.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Void.cs
index 6f3d1d36b..dd47dbd23 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Void.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/Void.cs
@@ -49,7 +49,7 @@ public required string BlockID
set { this.Properties["block_id"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required VoidProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -59,8 +59,7 @@ public required string BlockID
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -134,7 +133,10 @@ public override void Validate()
{
_ = this.Amount;
_ = this.BlockID;
- this.EntryType.Validate();
+ if (!this.EntryType.Equals(Json::JsonSerializer.Deserialize("\"void\"")))
+ {
+ throw new System::Exception();
+ }
_ = this.Currency;
_ = this.Description;
if (this.Metadata != null)
@@ -147,7 +149,10 @@ public override void Validate()
this.VoidReason?.Validate();
}
- public Void() { }
+ public Void()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize("\"void\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/VoidProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/VoidProperties/EntryType.cs
deleted file mode 100644
index a2868395e..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParamsProperties/BodyProperties/VoidProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryByExternalIDParamsProperties.BodyProperties.VoidProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType Void = new("void");
-
- readonly string _value = value;
-
- public enum Value
- {
- Void,
- }
-
- public Value Known() =>
- _value switch
- {
- "void" => Value.Void,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Amendment.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Amendment.cs
index 2dd02daeb..a5e1edb57 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Amendment.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Amendment.cs
@@ -1,4 +1,3 @@
-using AmendmentProperties = Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.BodyProperties.AmendmentProperties;
using CodeAnalysis = System.Diagnostics.CodeAnalysis;
using Generic = System.Collections.Generic;
using Json = System.Text.Json;
@@ -49,7 +48,7 @@ public required string BlockID
set { this.Properties["block_id"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required AmendmentProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -59,8 +58,7 @@ public required string BlockID
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -119,7 +117,14 @@ public override void Validate()
{
_ = this.Amount;
_ = this.BlockID;
- this.EntryType.Validate();
+ if (
+ !this.EntryType.Equals(
+ Json::JsonSerializer.Deserialize("\"amendment\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Currency;
_ = this.Description;
if (this.Metadata != null)
@@ -131,7 +136,10 @@ public override void Validate()
}
}
- public Amendment() { }
+ public Amendment()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize("\"amendment\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/AmendmentProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/AmendmentProperties/EntryType.cs
deleted file mode 100644
index 9efb1cbf2..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/AmendmentProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.BodyProperties.AmendmentProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType Amendment = new("amendment");
-
- readonly string _value = value;
-
- public enum Value
- {
- Amendment,
- }
-
- public Value Known() =>
- _value switch
- {
- "amendment" => Value.Amendment,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Decrement.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Decrement.cs
index 854e870ac..8f52a0e35 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Decrement.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Decrement.cs
@@ -1,5 +1,4 @@
using CodeAnalysis = System.Diagnostics.CodeAnalysis;
-using DecrementProperties = Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.BodyProperties.DecrementProperties;
using Generic = System.Collections.Generic;
using Json = System.Text.Json;
using Orb = Orb;
@@ -30,7 +29,7 @@ public required double Amount
set { this.Properties["amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required DecrementProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -40,8 +39,7 @@ public required double Amount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -99,7 +97,14 @@ public string? Description
public override void Validate()
{
_ = this.Amount;
- this.EntryType.Validate();
+ if (
+ !this.EntryType.Equals(
+ Json::JsonSerializer.Deserialize("\"decrement\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Currency;
_ = this.Description;
if (this.Metadata != null)
@@ -111,7 +116,10 @@ public override void Validate()
}
}
- public Decrement() { }
+ public Decrement()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize("\"decrement\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/DecrementProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/DecrementProperties/EntryType.cs
deleted file mode 100644
index a720a3de2..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/DecrementProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.BodyProperties.DecrementProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType Decrement = new("decrement");
-
- readonly string _value = value;
-
- public enum Value
- {
- Decrement,
- }
-
- public Value Known() =>
- _value switch
- {
- "decrement" => Value.Decrement,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/ExpirationChange.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/ExpirationChange.cs
index b89e3e036..86c5aafe8 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/ExpirationChange.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/ExpirationChange.cs
@@ -1,5 +1,4 @@
using CodeAnalysis = System.Diagnostics.CodeAnalysis;
-using ExpirationChangeProperties = Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.BodyProperties.ExpirationChangeProperties;
using Generic = System.Collections.Generic;
using Json = System.Text.Json;
using Orb = Orb;
@@ -11,7 +10,7 @@ namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.
[Serialization::JsonConverter(typeof(Orb::ModelConverter))]
public sealed record class ExpirationChange : Orb::ModelBase, Orb::IFromRaw
{
- public required ExpirationChangeProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -21,8 +20,7 @@ public sealed record class ExpirationChange : Orb::ModelBase, Orb::IFromRaw(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -148,7 +146,14 @@ public string? Description
public override void Validate()
{
- this.EntryType.Validate();
+ if (
+ !this.EntryType.Equals(
+ Json::JsonSerializer.Deserialize("\"expiration_change\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.TargetExpiryDate;
_ = this.Amount;
_ = this.BlockID;
@@ -164,7 +169,12 @@ public override void Validate()
}
}
- public ExpirationChange() { }
+ public ExpirationChange()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize(
+ "\"expiration_change\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/ExpirationChangeProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/ExpirationChangeProperties/EntryType.cs
deleted file mode 100644
index 78e2b0a03..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/ExpirationChangeProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.BodyProperties.ExpirationChangeProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType ExpirationChange = new("expiration_change");
-
- readonly string _value = value;
-
- public enum Value
- {
- ExpirationChange,
- }
-
- public Value Known() =>
- _value switch
- {
- "expiration_change" => Value.ExpirationChange,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Increment.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Increment.cs
index b851597df..a36f06066 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Increment.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Increment.cs
@@ -30,7 +30,7 @@ public required double Amount
set { this.Properties["amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required IncrementProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -40,8 +40,7 @@ public required double Amount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -169,7 +168,14 @@ public string? PerUnitCostBasis
public override void Validate()
{
_ = this.Amount;
- this.EntryType.Validate();
+ if (
+ !this.EntryType.Equals(
+ Json::JsonSerializer.Deserialize("\"increment\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Currency;
_ = this.Description;
_ = this.EffectiveDate;
@@ -185,7 +191,10 @@ public override void Validate()
_ = this.PerUnitCostBasis;
}
- public Increment() { }
+ public Increment()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize("\"increment\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/EntryType.cs
deleted file mode 100644
index b7a800c7f..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/IncrementProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.BodyProperties.IncrementProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType Increment = new("increment");
-
- readonly string _value = value;
-
- public enum Value
- {
- Increment,
- }
-
- public Value Known() =>
- _value switch
- {
- "increment" => Value.Increment,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Void.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Void.cs
index 241e839d4..be205169b 100644
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Void.cs
+++ b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/Void.cs
@@ -49,7 +49,7 @@ public required string BlockID
set { this.Properties["block_id"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required VoidProperties::EntryType EntryType
+ public Json::JsonElement EntryType
{
get
{
@@ -59,8 +59,7 @@ public required string BlockID
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("entry_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["entry_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -134,7 +133,10 @@ public override void Validate()
{
_ = this.Amount;
_ = this.BlockID;
- this.EntryType.Validate();
+ if (!this.EntryType.Equals(Json::JsonSerializer.Deserialize("\"void\"")))
+ {
+ throw new System::Exception();
+ }
_ = this.Currency;
_ = this.Description;
if (this.Metadata != null)
@@ -147,7 +149,10 @@ public override void Validate()
this.VoidReason?.Validate();
}
- public Void() { }
+ public Void()
+ {
+ this.EntryType = Json::JsonSerializer.Deserialize("\"void\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/VoidProperties/EntryType.cs b/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/VoidProperties/EntryType.cs
deleted file mode 100644
index d1cfb7572..000000000
--- a/src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParamsProperties/BodyProperties/VoidProperties/EntryType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.Customers.Credits.Ledger.LedgerCreateEntryParamsProperties.BodyProperties.VoidProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class EntryType(string value) : Orb::IEnum
-{
- public static readonly EntryType Void = new("void");
-
- readonly string _value = value;
-
- public enum Value
- {
- Void,
- }
-
- public Value Known() =>
- _value switch
- {
- "void" => Value.Void,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static EntryType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/BPS.cs b/src/Orb/Models/PriceProperties/BPS.cs
index 9e37cf6a7..856035b5b 100644
--- a/src/Orb/Models/PriceProperties/BPS.cs
+++ b/src/Orb/Models/PriceProperties/BPS.cs
@@ -358,7 +358,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required BPSProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -368,8 +368,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -491,7 +490,10 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (!this.ModelType.Equals(Json::JsonSerializer.Deserialize("\"bps\"")))
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -499,7 +501,10 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public BPS() { }
+ public BPS()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize("\"bps\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/BPSProperties/ModelType.cs b/src/Orb/Models/PriceProperties/BPSProperties/ModelType.cs
deleted file mode 100644
index 4b294553e..000000000
--- a/src/Orb/Models/PriceProperties/BPSProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.BPSProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType BPS = new("bps");
-
- readonly string _value = value;
-
- public enum Value
- {
- BPS,
- }
-
- public Value Known() =>
- _value switch
- {
- "bps" => Value.BPS,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/Bulk.cs b/src/Orb/Models/PriceProperties/Bulk.cs
index c724cec2c..3c1a23c9f 100644
--- a/src/Orb/Models/PriceProperties/Bulk.cs
+++ b/src/Orb/Models/PriceProperties/Bulk.cs
@@ -358,7 +358,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required BulkProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -368,8 +368,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -491,7 +490,10 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (!this.ModelType.Equals(Json::JsonSerializer.Deserialize("\"bulk\"")))
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -499,7 +501,10 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public Bulk() { }
+ public Bulk()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize("\"bulk\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/BulkBPS.cs b/src/Orb/Models/PriceProperties/BulkBPS.cs
index b9ff5f5d0..b1b420a1b 100644
--- a/src/Orb/Models/PriceProperties/BulkBPS.cs
+++ b/src/Orb/Models/PriceProperties/BulkBPS.cs
@@ -360,7 +360,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required BulkBPSProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -370,8 +370,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -493,7 +492,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"bulk_bps\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -501,7 +507,10 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public BulkBPS() { }
+ public BulkBPS()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize("\"bulk_bps\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/BulkBPSProperties/ModelType.cs b/src/Orb/Models/PriceProperties/BulkBPSProperties/ModelType.cs
deleted file mode 100644
index 2bdf4cde2..000000000
--- a/src/Orb/Models/PriceProperties/BulkBPSProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.BulkBPSProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType BulkBPS = new("bulk_bps");
-
- readonly string _value = value;
-
- public enum Value
- {
- BulkBPS,
- }
-
- public Value Known() =>
- _value switch
- {
- "bulk_bps" => Value.BulkBPS,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/BulkProperties/ModelType.cs b/src/Orb/Models/PriceProperties/BulkProperties/ModelType.cs
deleted file mode 100644
index e857d5b0b..000000000
--- a/src/Orb/Models/PriceProperties/BulkProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.BulkProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType Bulk = new("bulk");
-
- readonly string _value = value;
-
- public enum Value
- {
- Bulk,
- }
-
- public Value Known() =>
- _value switch
- {
- "bulk" => Value.Bulk,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/BulkWithProration.cs b/src/Orb/Models/PriceProperties/BulkWithProration.cs
index a07d1038b..427f59a94 100644
--- a/src/Orb/Models/PriceProperties/BulkWithProration.cs
+++ b/src/Orb/Models/PriceProperties/BulkWithProration.cs
@@ -371,7 +371,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required BulkWithProrationProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -381,8 +381,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -507,7 +506,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"bulk_with_proration\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -515,7 +521,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public BulkWithProration() { }
+ public BulkWithProration()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"bulk_with_proration\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/BulkWithProrationProperties/ModelType.cs b/src/Orb/Models/PriceProperties/BulkWithProrationProperties/ModelType.cs
deleted file mode 100644
index 97b927e9d..000000000
--- a/src/Orb/Models/PriceProperties/BulkWithProrationProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.BulkWithProrationProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType BulkWithProration = new("bulk_with_proration");
-
- readonly string _value = value;
-
- public enum Value
- {
- BulkWithProration,
- }
-
- public Value Known() =>
- _value switch
- {
- "bulk_with_proration" => Value.BulkWithProration,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/CumulativeGroupedBulk.cs b/src/Orb/Models/PriceProperties/CumulativeGroupedBulk.cs
index c5d42fd6c..b2a87ef5f 100644
--- a/src/Orb/Models/PriceProperties/CumulativeGroupedBulk.cs
+++ b/src/Orb/Models/PriceProperties/CumulativeGroupedBulk.cs
@@ -373,7 +373,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required CumulativeGroupedBulkProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -383,9 +383,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(
- element
- ) ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -511,7 +509,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"cumulative_grouped_bulk\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -519,7 +524,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public CumulativeGroupedBulk() { }
+ public CumulativeGroupedBulk()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"cumulative_grouped_bulk\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/CumulativeGroupedBulkProperties/ModelType.cs b/src/Orb/Models/PriceProperties/CumulativeGroupedBulkProperties/ModelType.cs
deleted file mode 100644
index ea123de56..000000000
--- a/src/Orb/Models/PriceProperties/CumulativeGroupedBulkProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.CumulativeGroupedBulkProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType CumulativeGroupedBulk = new("cumulative_grouped_bulk");
-
- readonly string _value = value;
-
- public enum Value
- {
- CumulativeGroupedBulk,
- }
-
- public Value Known() =>
- _value switch
- {
- "cumulative_grouped_bulk" => Value.CumulativeGroupedBulk,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/GroupedAllocation.cs b/src/Orb/Models/PriceProperties/GroupedAllocation.cs
index 7bf480289..1d1ed2868 100644
--- a/src/Orb/Models/PriceProperties/GroupedAllocation.cs
+++ b/src/Orb/Models/PriceProperties/GroupedAllocation.cs
@@ -371,7 +371,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required GroupedAllocationProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -381,8 +381,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -507,7 +506,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"grouped_allocation\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -515,7 +521,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public GroupedAllocation() { }
+ public GroupedAllocation()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"grouped_allocation\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/GroupedAllocationProperties/ModelType.cs b/src/Orb/Models/PriceProperties/GroupedAllocationProperties/ModelType.cs
deleted file mode 100644
index 0c314bef9..000000000
--- a/src/Orb/Models/PriceProperties/GroupedAllocationProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.GroupedAllocationProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType GroupedAllocation = new("grouped_allocation");
-
- readonly string _value = value;
-
- public enum Value
- {
- GroupedAllocation,
- }
-
- public Value Known() =>
- _value switch
- {
- "grouped_allocation" => Value.GroupedAllocation,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/GroupedTiered.cs b/src/Orb/Models/PriceProperties/GroupedTiered.cs
index f197c0986..ce7bbfb33 100644
--- a/src/Orb/Models/PriceProperties/GroupedTiered.cs
+++ b/src/Orb/Models/PriceProperties/GroupedTiered.cs
@@ -368,7 +368,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required GroupedTieredProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -378,8 +378,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -504,7 +503,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"grouped_tiered\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -512,7 +518,10 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public GroupedTiered() { }
+ public GroupedTiered()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize("\"grouped_tiered\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/GroupedTieredPackage.cs b/src/Orb/Models/PriceProperties/GroupedTieredPackage.cs
index 081748393..6ef5d7c63 100644
--- a/src/Orb/Models/PriceProperties/GroupedTieredPackage.cs
+++ b/src/Orb/Models/PriceProperties/GroupedTieredPackage.cs
@@ -373,7 +373,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required GroupedTieredPackageProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -383,9 +383,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(
- element
- ) ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -511,7 +509,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"grouped_tiered_package\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -519,7 +524,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public GroupedTieredPackage() { }
+ public GroupedTieredPackage()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"grouped_tiered_package\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/GroupedTieredPackageProperties/ModelType.cs b/src/Orb/Models/PriceProperties/GroupedTieredPackageProperties/ModelType.cs
deleted file mode 100644
index aa00e7757..000000000
--- a/src/Orb/Models/PriceProperties/GroupedTieredPackageProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.GroupedTieredPackageProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType GroupedTieredPackage = new("grouped_tiered_package");
-
- readonly string _value = value;
-
- public enum Value
- {
- GroupedTieredPackage,
- }
-
- public Value Known() =>
- _value switch
- {
- "grouped_tiered_package" => Value.GroupedTieredPackage,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/GroupedTieredProperties/ModelType.cs b/src/Orb/Models/PriceProperties/GroupedTieredProperties/ModelType.cs
deleted file mode 100644
index eccf9fb98..000000000
--- a/src/Orb/Models/PriceProperties/GroupedTieredProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.GroupedTieredProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType GroupedTiered = new("grouped_tiered");
-
- readonly string _value = value;
-
- public enum Value
- {
- GroupedTiered,
- }
-
- public Value Known() =>
- _value switch
- {
- "grouped_tiered" => Value.GroupedTiered,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMeteredMinimum.cs b/src/Orb/Models/PriceProperties/GroupedWithMeteredMinimum.cs
index e299d68c0..c0f75e82c 100644
--- a/src/Orb/Models/PriceProperties/GroupedWithMeteredMinimum.cs
+++ b/src/Orb/Models/PriceProperties/GroupedWithMeteredMinimum.cs
@@ -373,7 +373,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required GroupedWithMeteredMinimumProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -383,9 +383,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(
- element
- ) ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -511,7 +509,16 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize(
+ "\"grouped_with_metered_minimum\""
+ )
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -519,7 +526,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public GroupedWithMeteredMinimum() { }
+ public GroupedWithMeteredMinimum()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"grouped_with_metered_minimum\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMeteredMinimumProperties/ModelType.cs b/src/Orb/Models/PriceProperties/GroupedWithMeteredMinimumProperties/ModelType.cs
deleted file mode 100644
index 2c5e63ea5..000000000
--- a/src/Orb/Models/PriceProperties/GroupedWithMeteredMinimumProperties/ModelType.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.GroupedWithMeteredMinimumProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType GroupedWithMeteredMinimum = new(
- "grouped_with_metered_minimum"
- );
-
- readonly string _value = value;
-
- public enum Value
- {
- GroupedWithMeteredMinimum,
- }
-
- public Value Known() =>
- _value switch
- {
- "grouped_with_metered_minimum" => Value.GroupedWithMeteredMinimum,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholds.cs b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholds.cs
index c094eb3e5..9a3d02592 100644
--- a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholds.cs
+++ b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholds.cs
@@ -376,7 +376,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required GroupedWithMinMaxThresholdsProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -386,9 +386,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(
- element
- ) ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -514,7 +512,16 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize(
+ "\"grouped_with_min_max_thresholds\""
+ )
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -522,7 +529,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public GroupedWithMinMaxThresholds() { }
+ public GroupedWithMinMaxThresholds()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"grouped_with_min_max_thresholds\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ModelType.cs b/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ModelType.cs
deleted file mode 100644
index f637956e0..000000000
--- a/src/Orb/Models/PriceProperties/GroupedWithMinMaxThresholdsProperties/ModelType.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.GroupedWithMinMaxThresholdsProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType GroupedWithMinMaxThresholds = new(
- "grouped_with_min_max_thresholds"
- );
-
- readonly string _value = value;
-
- public enum Value
- {
- GroupedWithMinMaxThresholds,
- }
-
- public Value Known() =>
- _value switch
- {
- "grouped_with_min_max_thresholds" => Value.GroupedWithMinMaxThresholds,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/GroupedWithProratedMinimum.cs b/src/Orb/Models/PriceProperties/GroupedWithProratedMinimum.cs
index 41f698c57..4b8a09090 100644
--- a/src/Orb/Models/PriceProperties/GroupedWithProratedMinimum.cs
+++ b/src/Orb/Models/PriceProperties/GroupedWithProratedMinimum.cs
@@ -374,7 +374,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required GroupedWithProratedMinimumProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -384,9 +384,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(
- element
- ) ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -512,7 +510,16 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize(
+ "\"grouped_with_prorated_minimum\""
+ )
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -520,7 +527,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public GroupedWithProratedMinimum() { }
+ public GroupedWithProratedMinimum()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"grouped_with_prorated_minimum\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/GroupedWithProratedMinimumProperties/ModelType.cs b/src/Orb/Models/PriceProperties/GroupedWithProratedMinimumProperties/ModelType.cs
deleted file mode 100644
index 131cfeae9..000000000
--- a/src/Orb/Models/PriceProperties/GroupedWithProratedMinimumProperties/ModelType.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.GroupedWithProratedMinimumProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType GroupedWithProratedMinimum = new(
- "grouped_with_prorated_minimum"
- );
-
- readonly string _value = value;
-
- public enum Value
- {
- GroupedWithProratedMinimum,
- }
-
- public Value Known() =>
- _value switch
- {
- "grouped_with_prorated_minimum" => Value.GroupedWithProratedMinimum,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/Matrix.cs b/src/Orb/Models/PriceProperties/Matrix.cs
index 55bb6f4ee..b58a49dbf 100644
--- a/src/Orb/Models/PriceProperties/Matrix.cs
+++ b/src/Orb/Models/PriceProperties/Matrix.cs
@@ -360,7 +360,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required MatrixProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -370,8 +370,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -493,7 +492,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"matrix\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -501,7 +507,10 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public Matrix() { }
+ public Matrix()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize("\"matrix\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/MatrixProperties/ModelType.cs b/src/Orb/Models/PriceProperties/MatrixProperties/ModelType.cs
deleted file mode 100644
index e4630d3ac..000000000
--- a/src/Orb/Models/PriceProperties/MatrixProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.MatrixProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType Matrix = new("matrix");
-
- readonly string _value = value;
-
- public enum Value
- {
- Matrix,
- }
-
- public Value Known() =>
- _value switch
- {
- "matrix" => Value.Matrix,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/MatrixWithAllocation.cs b/src/Orb/Models/PriceProperties/MatrixWithAllocation.cs
index c0d2c3e66..c92c82829 100644
--- a/src/Orb/Models/PriceProperties/MatrixWithAllocation.cs
+++ b/src/Orb/Models/PriceProperties/MatrixWithAllocation.cs
@@ -372,7 +372,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required MatrixWithAllocationProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -382,9 +382,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(
- element
- ) ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -507,7 +505,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"matrix_with_allocation\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -515,7 +520,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public MatrixWithAllocation() { }
+ public MatrixWithAllocation()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"matrix_with_allocation\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/MatrixWithAllocationProperties/ModelType.cs b/src/Orb/Models/PriceProperties/MatrixWithAllocationProperties/ModelType.cs
deleted file mode 100644
index 4b98b4679..000000000
--- a/src/Orb/Models/PriceProperties/MatrixWithAllocationProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.MatrixWithAllocationProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType MatrixWithAllocation = new("matrix_with_allocation");
-
- readonly string _value = value;
-
- public enum Value
- {
- MatrixWithAllocation,
- }
-
- public Value Known() =>
- _value switch
- {
- "matrix_with_allocation" => Value.MatrixWithAllocation,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/MatrixWithDisplayName.cs b/src/Orb/Models/PriceProperties/MatrixWithDisplayName.cs
index 2d7a262ca..7249261af 100644
--- a/src/Orb/Models/PriceProperties/MatrixWithDisplayName.cs
+++ b/src/Orb/Models/PriceProperties/MatrixWithDisplayName.cs
@@ -373,7 +373,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required MatrixWithDisplayNameProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -383,9 +383,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(
- element
- ) ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -511,7 +509,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"matrix_with_display_name\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -519,7 +524,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public MatrixWithDisplayName() { }
+ public MatrixWithDisplayName()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"matrix_with_display_name\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/MatrixWithDisplayNameProperties/ModelType.cs b/src/Orb/Models/PriceProperties/MatrixWithDisplayNameProperties/ModelType.cs
deleted file mode 100644
index cd32ab4d3..000000000
--- a/src/Orb/Models/PriceProperties/MatrixWithDisplayNameProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.MatrixWithDisplayNameProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType MatrixWithDisplayName = new("matrix_with_display_name");
-
- readonly string _value = value;
-
- public enum Value
- {
- MatrixWithDisplayName,
- }
-
- public Value Known() =>
- _value switch
- {
- "matrix_with_display_name" => Value.MatrixWithDisplayName,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/MaxGroupTieredPackage.cs b/src/Orb/Models/PriceProperties/MaxGroupTieredPackage.cs
index fb251eece..da2a8fe49 100644
--- a/src/Orb/Models/PriceProperties/MaxGroupTieredPackage.cs
+++ b/src/Orb/Models/PriceProperties/MaxGroupTieredPackage.cs
@@ -373,7 +373,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required MaxGroupTieredPackageProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -383,9 +383,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(
- element
- ) ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -511,7 +509,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"max_group_tiered_package\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
_ = this.PlanPhaseOrder;
this.PriceType.Validate();
@@ -519,7 +524,12 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public MaxGroupTieredPackage() { }
+ public MaxGroupTieredPackage()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize(
+ "\"max_group_tiered_package\""
+ );
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/MaxGroupTieredPackageProperties/ModelType.cs b/src/Orb/Models/PriceProperties/MaxGroupTieredPackageProperties/ModelType.cs
deleted file mode 100644
index 091424d8f..000000000
--- a/src/Orb/Models/PriceProperties/MaxGroupTieredPackageProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.MaxGroupTieredPackageProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType MaxGroupTieredPackage = new("max_group_tiered_package");
-
- readonly string _value = value;
-
- public enum Value
- {
- MaxGroupTieredPackage,
- }
-
- public Value Known() =>
- _value switch
- {
- "max_group_tiered_package" => Value.MaxGroupTieredPackage,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/Package.cs b/src/Orb/Models/PriceProperties/Package.cs
index 76acf22df..cb4470003 100644
--- a/src/Orb/Models/PriceProperties/Package.cs
+++ b/src/Orb/Models/PriceProperties/Package.cs
@@ -344,7 +344,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required PackageProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -354,8 +354,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize(element)
- ?? throw new System::ArgumentNullException("model_type");
+ return Json::JsonSerializer.Deserialize(element);
}
set { this.Properties["model_type"] = Json::JsonSerializer.SerializeToElement(value); }
}
@@ -492,7 +491,14 @@ public override void Validate()
}
this.Minimum?.Validate();
_ = this.MinimumAmount;
- this.ModelType.Validate();
+ if (
+ !this.ModelType.Equals(
+ Json::JsonSerializer.Deserialize("\"package\"")
+ )
+ )
+ {
+ throw new System::Exception();
+ }
_ = this.Name;
this.PackageConfig.Validate();
_ = this.PlanPhaseOrder;
@@ -501,7 +507,10 @@ public override void Validate()
this.DimensionalPriceConfiguration?.Validate();
}
- public Package() { }
+ public Package()
+ {
+ this.ModelType = Json::JsonSerializer.Deserialize("\"package\"");
+ }
#pragma warning disable CS8618
[CodeAnalysis::SetsRequiredMembers]
diff --git a/src/Orb/Models/PriceProperties/PackageProperties/ModelType.cs b/src/Orb/Models/PriceProperties/PackageProperties/ModelType.cs
deleted file mode 100644
index 18685d7e4..000000000
--- a/src/Orb/Models/PriceProperties/PackageProperties/ModelType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Orb = Orb;
-using Serialization = System.Text.Json.Serialization;
-using System = System;
-
-namespace Orb.Models.PriceProperties.PackageProperties;
-
-[Serialization::JsonConverter(typeof(Orb::EnumConverter))]
-public sealed record class ModelType(string value) : Orb::IEnum
-{
- public static readonly ModelType Package = new("package");
-
- readonly string _value = value;
-
- public enum Value
- {
- Package,
- }
-
- public Value Known() =>
- _value switch
- {
- "package" => Value.Package,
- _ => throw new System::ArgumentOutOfRangeException(nameof(_value)),
- };
-
- public string Raw()
- {
- return _value;
- }
-
- public void Validate()
- {
- Known();
- }
-
- public static ModelType FromRaw(string value)
- {
- return new(value);
- }
-}
diff --git a/src/Orb/Models/PriceProperties/PackageWithAllocation.cs b/src/Orb/Models/PriceProperties/PackageWithAllocation.cs
index e3f6832cd..cbcdc4dac 100644
--- a/src/Orb/Models/PriceProperties/PackageWithAllocation.cs
+++ b/src/Orb/Models/PriceProperties/PackageWithAllocation.cs
@@ -347,7 +347,7 @@ public required string? MinimumAmount
set { this.Properties["minimum_amount"] = Json::JsonSerializer.SerializeToElement(value); }
}
- public required PackageWithAllocationProperties::ModelType ModelType
+ public Json::JsonElement ModelType
{
get
{
@@ -357,9 +357,7 @@ public required string? MinimumAmount
"Missing required argument"
);
- return Json::JsonSerializer.Deserialize