Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GC-2069: Fix Setting Color to false Produces API Validation Error #31

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -364,4 +364,7 @@ MigrationBackup/
FodyWeavers.xsd

.env
LOCAL.env
LOCAL.env

# Rider
.idea/
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/Address.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public enum ObjectEnum
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/AddressDeletion.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public enum ObjectEnum
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/lob.dotnet/Model/AddressList.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ public partial class AddressList : IEquatable<AddressList>, IValidatableObject
/// number of resources in a set
/// </summary>
/// <value>number of resources in a set</value>
[DataMember(Name = "count", EmitDefaultValue = false)]
[DataMember(Name = "count", EmitDefaultValue = true)]
public int Count { get; set; }

/// <summary>
/// indicates the total number of records. Provided when the request specifies an \&quot;include\&quot; query parameter
/// </summary>
/// <value>indicates the total number of records. Provided when the request specifies an \&quot;include\&quot; query parameter</value>
[DataMember(Name = "total_count", EmitDefaultValue = false)]
[DataMember(Name = "total_count", EmitDefaultValue = true)]
public int TotalCount { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/lob.dotnet/Model/BankAccount.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected BankAccount() { }
/// A bank account must be verified before a check can be created.
/// </summary>
/// <value>A bank account must be verified before a check can be created.</value>
[DataMember(Name = "verified", EmitDefaultValue = false)]
[DataMember(Name = "verified", EmitDefaultValue = true)]
public bool Verified { get; set; }

/// <summary>
Expand All @@ -223,7 +223,7 @@ protected BankAccount() { }
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/BankAccountDeletion.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public enum ObjectEnum
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/lob.dotnet/Model/BankAccountList.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ public partial class BankAccountList : IEquatable<BankAccountList>, IValidatable
/// number of resources in a set
/// </summary>
/// <value>number of resources in a set</value>
[DataMember(Name = "count", EmitDefaultValue = false)]
[DataMember(Name = "count", EmitDefaultValue = true)]
public int Count { get; set; }

/// <summary>
/// indicates the total number of records. Provided when the request specifies an \&quot;include\&quot; query parameter
/// </summary>
/// <value>indicates the total number of records. Provided when the request specifies an \&quot;include\&quot; query parameter</value>
[DataMember(Name = "total_count", EmitDefaultValue = false)]
[DataMember(Name = "total_count", EmitDefaultValue = true)]
public int TotalCount { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/BillingGroupList.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public partial class BillingGroupList : IEquatable<BillingGroupList>, IValidatab
/// number of resources in a set
/// </summary>
/// <value>number of resources in a set</value>
[DataMember(Name = "count", EmitDefaultValue = false)]
[DataMember(Name = "count", EmitDefaultValue = true)]
public int Count { get; set; }

/// <summary>
Expand Down
10 changes: 5 additions & 5 deletions src/lob.dotnet/Model/Card.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ protected Card() { }
/// True if the cards should be auto-reordered.
/// </summary>
/// <value>True if the cards should be auto-reordered.</value>
[DataMember(Name = "auto_reorder", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "auto_reorder", IsRequired = true, EmitDefaultValue = true)]
public bool AutoReorder { get; set; }

/// <summary>
Expand Down Expand Up @@ -267,21 +267,21 @@ protected Card() { }
/// The available quantity of cards.
/// </summary>
/// <value>The available quantity of cards.</value>
[DataMember(Name = "available_quantity", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "available_quantity", IsRequired = true, EmitDefaultValue = true)]
public int AvailableQuantity { get; set; }

/// <summary>
/// The pending quantity of cards.
/// </summary>
/// <value>The pending quantity of cards.</value>
[DataMember(Name = "pending_quantity", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "pending_quantity", IsRequired = true, EmitDefaultValue = true)]
public int PendingQuantity { get; set; }

/// <summary>
/// The threshold amount of the card
/// </summary>
/// <value>The threshold amount of the card</value>
[DataMember(Name = "threshold_amount", EmitDefaultValue = false)]
[DataMember(Name = "threshold_amount", EmitDefaultValue = true)]
public int ThresholdAmount { get; set; }

/// <summary>
Expand All @@ -302,7 +302,7 @@ protected Card() { }
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/CardDeletion.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public enum ObjectEnum
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/lob.dotnet/Model/CardList.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ public partial class CardList : IEquatable<CardList>, IValidatableObject
/// number of resources in a set
/// </summary>
/// <value>number of resources in a set</value>
[DataMember(Name = "count", EmitDefaultValue = false)]
[DataMember(Name = "count", EmitDefaultValue = true)]
public int Count { get; set; }

/// <summary>
/// indicates the total number of records. Provided when the request specifies an \&quot;include\&quot; query parameter
/// </summary>
/// <value>indicates the total number of records. Provided when the request specifies an \&quot;include\&quot; query parameter</value>
[DataMember(Name = "total_count", EmitDefaultValue = false)]
[DataMember(Name = "total_count", EmitDefaultValue = true)]
public int TotalCount { get; set; }

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions src/lob.dotnet/Model/CardOrder.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,21 @@ protected CardOrder() { }
/// The inventory of the card order.
/// </summary>
/// <value>The inventory of the card order.</value>
[DataMember(Name = "inventory", EmitDefaultValue = false)]
[DataMember(Name = "inventory", EmitDefaultValue = true)]
public decimal Inventory { get; set; }

/// <summary>
/// The quantity of cards ordered
/// </summary>
/// <value>The quantity of cards ordered</value>
[DataMember(Name = "quantity_ordered", EmitDefaultValue = false)]
[DataMember(Name = "quantity_ordered", EmitDefaultValue = true)]
public decimal QuantityOrdered { get; set; }

/// <summary>
/// The unit price for the card order.
/// </summary>
/// <value>The unit price for the card order.</value>
[DataMember(Name = "unit_price", EmitDefaultValue = false)]
[DataMember(Name = "unit_price", EmitDefaultValue = true)]
public decimal UnitPrice { get; set; }

/// <summary>
Expand Down Expand Up @@ -200,7 +200,7 @@ protected CardOrder() { }
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/CardOrderEditable.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected CardOrderEditable() { }
/// <summary>
/// Gets or Sets Quantity
/// </summary>
[DataMember(Name = "quantity", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "quantity", IsRequired = true, EmitDefaultValue = true)]
public int Quantity { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/CardOrderList.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public partial class CardOrderList : IEquatable<CardOrderList>, IValidatableObje
/// number of resources in a set
/// </summary>
/// <value>number of resources in a set</value>
[DataMember(Name = "count", EmitDefaultValue = false)]
[DataMember(Name = "count", EmitDefaultValue = true)]
public int Count { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/lob.dotnet/Model/CardUpdatable.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ public partial class CardUpdatable : IEquatable<CardUpdatable>, IValidatableObje
/// Allows for auto reordering
/// </summary>
/// <value>Allows for auto reordering</value>
[DataMember(Name = "auto_reorder", EmitDefaultValue = false)]
[DataMember(Name = "auto_reorder", EmitDefaultValue = true)]
public bool AutoReorder { get; set; }

/// <summary>
/// The quantity of items to be reordered (only required when auto_reorder is true).
/// </summary>
/// <value>The quantity of items to be reordered (only required when auto_reorder is true).</value>
[DataMember(Name = "reorder_quantity", EmitDefaultValue = false)]
[DataMember(Name = "reorder_quantity", EmitDefaultValue = true)]
public decimal ReorderQuantity { get; set; }

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions src/lob.dotnet/Model/Check.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ protected Check() { }
/// An integer that designates the check number. If &#x60;check_number&#x60; is not provided, checks created from a new &#x60;bank_account&#x60; will start at &#x60;10000&#x60; and increment with each check created with the &#x60;bank_account&#x60;. A provided &#x60;check_number&#x60; overrides the defaults. Subsequent checks created with the same &#x60;bank_account&#x60; will increment from the provided check number.
/// </summary>
/// <value>An integer that designates the check number. If &#x60;check_number&#x60; is not provided, checks created from a new &#x60;bank_account&#x60; will start at &#x60;10000&#x60; and increment with each check created with the &#x60;bank_account&#x60;. A provided &#x60;check_number&#x60; overrides the defaults. Subsequent checks created with the same &#x60;bank_account&#x60; will increment from the provided check number.</value>
[DataMember(Name = "check_number", EmitDefaultValue = false)]
[DataMember(Name = "check_number", EmitDefaultValue = true)]
public int CheckNumber { get; set; }

/// <summary>
Expand All @@ -260,7 +260,7 @@ protected Check() { }
/// The payment amount to be sent in US dollars.
/// </summary>
/// <value>The payment amount to be sent in US dollars.</value>
[DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)]
public float Amount { get; set; }

/// <summary>
Expand Down Expand Up @@ -343,7 +343,7 @@ protected Check() { }
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/CheckDeletion.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public enum ObjectEnum
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/lob.dotnet/Model/CheckEditable.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected CheckEditable() { }
/// The payment amount to be sent in US dollars.
/// </summary>
/// <value>The payment amount to be sent in US dollars.</value>
[DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)]
public float Amount { get; set; }

/// <summary>
Expand Down Expand Up @@ -208,7 +208,7 @@ protected CheckEditable() { }
/// An integer that designates the check number.
/// </summary>
/// <value>An integer that designates the check number.</value>
[DataMember(Name = "check_number", EmitDefaultValue = false)]
[DataMember(Name = "check_number", EmitDefaultValue = true)]
public int CheckNumber { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/lob.dotnet/Model/CheckList.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ public partial class CheckList : IEquatable<CheckList>, IValidatableObject
/// number of resources in a set
/// </summary>
/// <value>number of resources in a set</value>
[DataMember(Name = "count", EmitDefaultValue = false)]
[DataMember(Name = "count", EmitDefaultValue = true)]
public int Count { get; set; }

/// <summary>
/// indicates the total number of records. Provided when the request specifies an \&quot;include\&quot; query parameter
/// </summary>
/// <value>indicates the total number of records. Provided when the request specifies an \&quot;include\&quot; query parameter</value>
[DataMember(Name = "total_count", EmitDefaultValue = false)]
[DataMember(Name = "total_count", EmitDefaultValue = true)]
public int TotalCount { get; set; }

/// <summary>
Expand Down
Empty file modified src/lob.dotnet/Model/CountryExtended.cs
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/DeliverabilityAnalysis.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ protected DeliverabilityAnalysis() { }
/// indicates whether or not an address has been flagged in the [Early Warning System](https://docs.informatica.com/data-engineering/data-engineering-quality/10-4-0/address-validator-port-reference/postal-carrier-certification-data-ports/early-warning-system-return-code.html), meaning the address is under development and not yet ready to receive mail. However, it should become available in a few months.
/// </summary>
/// <value>indicates whether or not an address has been flagged in the [Early Warning System](https://docs.informatica.com/data-engineering/data-engineering-quality/10-4-0/address-validator-port-reference/postal-carrier-certification-data-ports/early-warning-system-return-code.html), meaning the address is under development and not yet ready to receive mail. However, it should become available in a few months. </value>
[DataMember(Name = "ews_match", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "ews_match", IsRequired = true, EmitDefaultValue = true)]
public bool EwsMatch { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/EventType.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected EventType() { }
/// Value is &#x60;true&#x60; if the event type is enabled in both the test and live environments.
/// </summary>
/// <value>Value is &#x60;true&#x60; if the event type is enabled in both the test and live environments.</value>
[DataMember(Name = "enabled_for_test", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "enabled_for_test", IsRequired = true, EmitDefaultValue = true)]
public bool EnabledForTest { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/IntlVerifications.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected IntlVerifications() { }
/// Indicates whether any errors occurred during the verification process.
/// </summary>
/// <value>Indicates whether any errors occurred during the verification process.</value>
[DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = false)]
[DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)]
public bool Errors { get; set; }

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions src/lob.dotnet/Model/Letter.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ protected Letter() { }
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down Expand Up @@ -356,14 +356,14 @@ protected Letter() { }
/// Set this key to &#x60;true&#x60; if you would like to print in color. Set to &#x60;false&#x60; if you would like to print in black and white.
/// </summary>
/// <value>Set this key to &#x60;true&#x60; if you would like to print in color. Set to &#x60;false&#x60; if you would like to print in black and white.</value>
[DataMember(Name = "color", EmitDefaultValue = false)]
[DataMember(Name = "color", EmitDefaultValue = true)]
public bool Color { get; set; }

/// <summary>
/// Set this attribute to &#x60;true&#x60; for double sided printing, or &#x60;false&#x60; for for single sided printing. Defaults to &#x60;true&#x60;.
/// </summary>
/// <value>Set this attribute to &#x60;true&#x60; for double sided printing, or &#x60;false&#x60; for for single sided printing. Defaults to &#x60;true&#x60;.</value>
[DataMember(Name = "double_sided", EmitDefaultValue = false)]
[DataMember(Name = "double_sided", EmitDefaultValue = true)]
public bool DoubleSided { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/lob.dotnet/Model/LetterDeletion.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public enum ObjectEnum
/// Only returned if the resource has been successfully deleted.
/// </summary>
/// <value>Only returned if the resource has been successfully deleted.</value>
[DataMember(Name = "deleted", EmitDefaultValue = false)]
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }

/// <summary>
Expand Down
Loading