diff --git a/src/gen/.openapi-generator/FILES b/src/gen/.openapi-generator/FILES
index 2c6c60a105..2f99525923 100644
--- a/src/gen/.openapi-generator/FILES
+++ b/src/gen/.openapi-generator/FILES
@@ -20,6 +20,7 @@ docs/ActivitiesSort.md
docs/Activity.md
docs/ActivityAttendee.md
docs/Address.md
+docs/Allocation.md
docs/Api.md
docs/ApiResource.md
docs/ApiResourceCoverage.md
@@ -501,7 +502,6 @@ docs/Owner.md
docs/PaginationCoverage.md
docs/PassThroughQuery.md
docs/Payment.md
-docs/PaymentAllocations.md
docs/PaymentCard.md
docs/PaymentFrequency.md
docs/PaymentRequiredResponse.md
@@ -683,6 +683,7 @@ src/Apideck.Test/Model/ActivitiesSortTests.cs
src/Apideck.Test/Model/ActivityAttendeeTests.cs
src/Apideck.Test/Model/ActivityTests.cs
src/Apideck.Test/Model/AddressTests.cs
+src/Apideck.Test/Model/AllocationTests.cs
src/Apideck.Test/Model/ApiResourceCoverageCoverageTests.cs
src/Apideck.Test/Model/ApiResourceCoverageTests.cs
src/Apideck.Test/Model/ApiResourceLinkedResourcesTests.cs
@@ -1155,7 +1156,6 @@ src/Apideck.Test/Model/OrdersSortTests.cs
src/Apideck.Test/Model/OwnerTests.cs
src/Apideck.Test/Model/PaginationCoverageTests.cs
src/Apideck.Test/Model/PassThroughQueryTests.cs
-src/Apideck.Test/Model/PaymentAllocationsTests.cs
src/Apideck.Test/Model/PaymentCardTests.cs
src/Apideck.Test/Model/PaymentFrequencyTests.cs
src/Apideck.Test/Model/PaymentRequiredResponseTests.cs
@@ -1350,6 +1350,7 @@ src/Apideck/Model/ActivitiesSort.cs
src/Apideck/Model/Activity.cs
src/Apideck/Model/ActivityAttendee.cs
src/Apideck/Model/Address.cs
+src/Apideck/Model/Allocation.cs
src/Apideck/Model/Api.cs
src/Apideck/Model/ApiResource.cs
src/Apideck/Model/ApiResourceCoverage.cs
@@ -1823,7 +1824,6 @@ src/Apideck/Model/Owner.cs
src/Apideck/Model/PaginationCoverage.cs
src/Apideck/Model/PassThroughQuery.cs
src/Apideck/Model/Payment.cs
-src/Apideck/Model/PaymentAllocations.cs
src/Apideck/Model/PaymentCard.cs
src/Apideck/Model/PaymentFrequency.cs
src/Apideck/Model/PaymentRequiredResponse.cs
diff --git a/src/gen/Apideck.sln b/src/gen/Apideck.sln
index 993f923e4d..f59910ae47 100644
--- a/src/gen/Apideck.sln
+++ b/src/gen/Apideck.sln
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{30FD109B-986B-4D0A-9E5A-647BF0415BF7}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{5CF5D723-7FEB-4F40-B04C-BAE196E783E3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck.Test", "src\Apideck.Test\Apideck.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
@@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {30FD109B-986B-4D0A-9E5A-647BF0415BF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {30FD109B-986B-4D0A-9E5A-647BF0415BF7}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {30FD109B-986B-4D0A-9E5A-647BF0415BF7}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {30FD109B-986B-4D0A-9E5A-647BF0415BF7}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5CF5D723-7FEB-4F40-B04C-BAE196E783E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5CF5D723-7FEB-4F40-B04C-BAE196E783E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5CF5D723-7FEB-4F40-B04C-BAE196E783E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5CF5D723-7FEB-4F40-B04C-BAE196E783E3}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/src/gen/docs/PaymentAllocations.md b/src/gen/docs/Allocation.md
similarity index 85%
rename from src/gen/docs/PaymentAllocations.md
rename to src/gen/docs/Allocation.md
index 037d132ebf..6344cf536d 100644
--- a/src/gen/docs/PaymentAllocations.md
+++ b/src/gen/docs/Allocation.md
@@ -1,4 +1,4 @@
-# Apideck.Model.PaymentAllocations
+# Apideck.Model.Allocation
## Properties
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Type** | **string** | Type of entity this payment should be attributed to. | [optional]
**Code** | **string** | | [optional] [readonly]
**Amount** | **decimal?** | Amount of payment that should be attributed to this allocation. If null, the total_amount will be used. | [optional]
+**AllocationId** | **string** | Unique identifier of the allocation | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/src/gen/docs/Applicant.md b/src/gen/docs/Applicant.md
index b0a85228de..30c5e2c0b3 100644
--- a/src/gen/docs/Applicant.md
+++ b/src/gen/docs/Applicant.md
@@ -5,7 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | A unique identifier for an object. | [optional] [readonly]
-**PositionId** | **string** | The PositionId the applicant applied for. | [optional]
**Name** | **string** | The name of an applicant. | [optional]
**FirstName** | **string** | The first name of the person. | [optional]
**LastName** | **string** | The last name of the person. | [optional]
diff --git a/src/gen/docs/BalanceSheetAccount.md b/src/gen/docs/BalanceSheetAccount.md
index 727c082f6e..4ad4f840a8 100644
--- a/src/gen/docs/BalanceSheetAccount.md
+++ b/src/gen/docs/BalanceSheetAccount.md
@@ -1,10 +1,12 @@
# Apideck.Model.BalanceSheetAccount
+A balance sheet account represents the financial position of a company at a specific point in time.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccountId** | **string** | The unique identifier for the account. | [optional] [readonly]
+**Code** | **string** | The code of the account. | [optional]
**Name** | **string** | Name of the report item | [optional]
**Value** | **decimal** | The value of the account. | [optional]
**Items** | [**List<AnyOfBalanceSheetAccountBalanceSheetAccountRecord>**](AnyOfBalanceSheetAccountBalanceSheetAccountRecord.md) | | [optional]
diff --git a/src/gen/docs/BalanceSheetAccountRecord.md b/src/gen/docs/BalanceSheetAccountRecord.md
index 6cd2e9f5a2..7bfddf9409 100644
--- a/src/gen/docs/BalanceSheetAccountRecord.md
+++ b/src/gen/docs/BalanceSheetAccountRecord.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccountId** | **string** | The unique identifier for the account. | [optional] [readonly]
+**Code** | **string** | The code of the account. | [optional]
**Name** | **string** | Name of the report item | [optional]
**Value** | **decimal** | The value of the account. | [optional]
diff --git a/src/gen/docs/BalanceSheetReports.md b/src/gen/docs/BalanceSheetReports.md
index 5a159d887a..1a5c3a623b 100644
--- a/src/gen/docs/BalanceSheetReports.md
+++ b/src/gen/docs/BalanceSheetReports.md
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
**CreatedBy** | **string** | The user who created the object. | [optional] [readonly]
**UpdatedAt** | **DateTime?** | The date and time when the object was last updated. | [optional] [readonly]
**CreatedAt** | **DateTime?** | The date and time when the object was created. | [optional] [readonly]
+**UncategorizedItems** | [**List<AnyOfBalanceSheetAccountBalanceSheetAccountRecord>**](AnyOfBalanceSheetAccountBalanceSheetAccountRecord.md) | Items that are not categorized in the balance sheet | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/src/gen/docs/CreditNote.md b/src/gen/docs/CreditNote.md
index 4ee2d551ec..3f45138baa 100644
--- a/src/gen/docs/CreditNote.md
+++ b/src/gen/docs/CreditNote.md
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
**Type** | **string** | Type of payment | [optional]
**Account** | [**LinkedLedgerAccount**](LinkedLedgerAccount.md) | | [optional]
**LineItems** | [**List<InvoiceLineItem>**](InvoiceLineItem.md) | | [optional]
-**Allocations** | **List<Object>** | | [optional]
+**Allocations** | [**List<Allocation>**](Allocation.md) | | [optional]
**Note** | **string** | Optional note to be associated with the credit note. | [optional]
**Terms** | **string** | Optional terms to be associated with the credit note. | [optional]
**BillingAddress** | [**Address**](Address.md) | | [optional]
diff --git a/src/gen/docs/EcommerceOrder.md b/src/gen/docs/EcommerceOrder.md
index acd9f63071..dd7670a1ec 100644
--- a/src/gen/docs/EcommerceOrder.md
+++ b/src/gen/docs/EcommerceOrder.md
@@ -10,9 +10,11 @@ Name | Type | Description | Notes
**Discounts** | [**List<EcommerceDiscount>**](EcommerceDiscount.md) | | [optional]
**SubTotal** | **string** | Sub-total amount, normally before tax. | [optional]
**ShippingCost** | **string** | Shipping cost, if any. | [optional]
+**CouponDiscount** | **string** | Coupon discount, if any. | [optional]
**TotalDiscount** | **string** | Total discount, if any. | [optional]
**TotalTax** | **string** | Total tax, if any. | [optional]
**TotalAmount** | **string** | Total amount due. | [optional]
+**RefundedAmount** | **string** | Refunded amount, if any. | [optional]
**Status** | **EcommerceOrderStatus** | | [optional]
**PaymentStatus** | **string** | Current payment status of the order. | [optional]
**FulfillmentStatus** | **string** | Current fulfillment status of the order. | [optional]
diff --git a/src/gen/docs/EcommerceOrderLineItem.md b/src/gen/docs/EcommerceOrderLineItem.md
index 4410178588..3f5009ef97 100644
--- a/src/gen/docs/EcommerceOrderLineItem.md
+++ b/src/gen/docs/EcommerceOrderLineItem.md
@@ -16,6 +16,10 @@ Name | Type | Description | Notes
**UnitPrice** | **string** | The unit price of the product or variant associated with the line item. | [optional]
**TaxRate** | **string** | The tax rate applied to the product or variant associated with the line item. | [optional]
**TaxAmount** | **string** | The total tax amount applied to the product or variant associated with the line item. | [optional]
+**IsRefunded** | **bool?** | Whether the line item has been refunded. | [optional]
+**RefundedAmount** | **string** | The amount of the line item that has been refunded. | [optional]
+**RefundedQuantity** | **string** | The quantity of the line item that has been refunded. | [optional]
+**SubTotal** | **string** | The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts. | [optional]
**TotalAmount** | **string** | The total amount for the product(s) or variant associated with the line item, including taxes and discounts. |
**Discounts** | [**List<EcommerceDiscount>**](EcommerceDiscount.md) | | [optional]
diff --git a/src/gen/docs/Payment.md b/src/gen/docs/Payment.md
index 95014bc545..3ffae0d49f 100644
--- a/src/gen/docs/Payment.md
+++ b/src/gen/docs/Payment.md
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
**Reconciled** | **bool** | Payment has been reconciled | [optional]
**Status** | **string** | Status of payment | [optional]
**Type** | **string** | Type of payment | [optional]
-**Allocations** | [**List<PaymentAllocations>**](PaymentAllocations.md) | | [optional]
+**Allocations** | [**List<Allocation>**](Allocation.md) | | [optional]
**Note** | **string** | Optional note to be associated with the payment. | [optional]
**Number** | **string** | Payment number. | [optional]
**CustomFields** | [**List<CustomField>**](CustomField.md) | | [optional]
diff --git a/src/gen/src/Apideck.Test/Model/PaymentAllocationsTests.cs b/src/gen/src/Apideck.Test/Model/AllocationTests.cs
similarity index 71%
rename from src/gen/src/Apideck.Test/Model/PaymentAllocationsTests.cs
rename to src/gen/src/Apideck.Test/Model/AllocationTests.cs
index 6588b38765..1ea62c2f65 100644
--- a/src/gen/src/Apideck.Test/Model/PaymentAllocationsTests.cs
+++ b/src/gen/src/Apideck.Test/Model/AllocationTests.cs
@@ -23,21 +23,21 @@
namespace Apideck.Test.Model
{
///
- /// Class for testing PaymentAllocations
+ /// Class for testing Allocation
///
///
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
///
- public class PaymentAllocationsTests : IDisposable
+ public class AllocationTests : IDisposable
{
- // TODO uncomment below to declare an instance variable for PaymentAllocations
- //private PaymentAllocations instance;
+ // TODO uncomment below to declare an instance variable for Allocation
+ //private Allocation instance;
- public PaymentAllocationsTests()
+ public AllocationTests()
{
- // TODO uncomment below to create an instance of PaymentAllocations
- //instance = new PaymentAllocations();
+ // TODO uncomment below to create an instance of Allocation
+ //instance = new Allocation();
}
public void Dispose()
@@ -46,13 +46,13 @@ public void Dispose()
}
///
- /// Test an instance of PaymentAllocations
+ /// Test an instance of Allocation
///
[Fact]
- public void PaymentAllocationsInstanceTest()
+ public void AllocationInstanceTest()
{
- // TODO uncomment below to test "IsType" PaymentAllocations
- //Assert.IsType(instance);
+ // TODO uncomment below to test "IsType" Allocation
+ //Assert.IsType(instance);
}
@@ -88,6 +88,14 @@ public void AmountTest()
{
// TODO unit test for the property 'Amount'
}
+ ///
+ /// Test the property 'AllocationId'
+ ///
+ [Fact]
+ public void AllocationIdTest()
+ {
+ // TODO unit test for the property 'AllocationId'
+ }
}
diff --git a/src/gen/src/Apideck.Test/Model/ApplicantTests.cs b/src/gen/src/Apideck.Test/Model/ApplicantTests.cs
index 88fa111dec..440b7c984d 100644
--- a/src/gen/src/Apideck.Test/Model/ApplicantTests.cs
+++ b/src/gen/src/Apideck.Test/Model/ApplicantTests.cs
@@ -65,14 +65,6 @@ public void IdTest()
// TODO unit test for the property 'Id'
}
///
- /// Test the property 'PositionId'
- ///
- [Fact]
- public void PositionIdTest()
- {
- // TODO unit test for the property 'PositionId'
- }
- ///
/// Test the property 'Name'
///
[Fact]
diff --git a/src/gen/src/Apideck.Test/Model/BalanceSheetAccountRecordTests.cs b/src/gen/src/Apideck.Test/Model/BalanceSheetAccountRecordTests.cs
index d592c082ef..bc9185319d 100644
--- a/src/gen/src/Apideck.Test/Model/BalanceSheetAccountRecordTests.cs
+++ b/src/gen/src/Apideck.Test/Model/BalanceSheetAccountRecordTests.cs
@@ -65,6 +65,14 @@ public void AccountIdTest()
// TODO unit test for the property 'AccountId'
}
///
+ /// Test the property 'Code'
+ ///
+ [Fact]
+ public void CodeTest()
+ {
+ // TODO unit test for the property 'Code'
+ }
+ ///
/// Test the property 'Name'
///
[Fact]
diff --git a/src/gen/src/Apideck.Test/Model/BalanceSheetAccountTests.cs b/src/gen/src/Apideck.Test/Model/BalanceSheetAccountTests.cs
index b50569f4ca..02a274494d 100644
--- a/src/gen/src/Apideck.Test/Model/BalanceSheetAccountTests.cs
+++ b/src/gen/src/Apideck.Test/Model/BalanceSheetAccountTests.cs
@@ -65,6 +65,14 @@ public void AccountIdTest()
// TODO unit test for the property 'AccountId'
}
///
+ /// Test the property 'Code'
+ ///
+ [Fact]
+ public void CodeTest()
+ {
+ // TODO unit test for the property 'Code'
+ }
+ ///
/// Test the property 'Name'
///
[Fact]
diff --git a/src/gen/src/Apideck.Test/Model/BalanceSheetReportsTests.cs b/src/gen/src/Apideck.Test/Model/BalanceSheetReportsTests.cs
index 52d032bc73..eb17783c2c 100644
--- a/src/gen/src/Apideck.Test/Model/BalanceSheetReportsTests.cs
+++ b/src/gen/src/Apideck.Test/Model/BalanceSheetReportsTests.cs
@@ -168,6 +168,14 @@ public void CreatedAtTest()
{
// TODO unit test for the property 'CreatedAt'
}
+ ///
+ /// Test the property 'UncategorizedItems'
+ ///
+ [Fact]
+ public void UncategorizedItemsTest()
+ {
+ // TODO unit test for the property 'UncategorizedItems'
+ }
}
diff --git a/src/gen/src/Apideck.Test/Model/EcommerceOrderLineItemTests.cs b/src/gen/src/Apideck.Test/Model/EcommerceOrderLineItemTests.cs
index 5b3bdfbefc..d4dff91501 100644
--- a/src/gen/src/Apideck.Test/Model/EcommerceOrderLineItemTests.cs
+++ b/src/gen/src/Apideck.Test/Model/EcommerceOrderLineItemTests.cs
@@ -145,6 +145,38 @@ public void TaxAmountTest()
// TODO unit test for the property 'TaxAmount'
}
///
+ /// Test the property 'IsRefunded'
+ ///
+ [Fact]
+ public void IsRefundedTest()
+ {
+ // TODO unit test for the property 'IsRefunded'
+ }
+ ///
+ /// Test the property 'RefundedAmount'
+ ///
+ [Fact]
+ public void RefundedAmountTest()
+ {
+ // TODO unit test for the property 'RefundedAmount'
+ }
+ ///
+ /// Test the property 'RefundedQuantity'
+ ///
+ [Fact]
+ public void RefundedQuantityTest()
+ {
+ // TODO unit test for the property 'RefundedQuantity'
+ }
+ ///
+ /// Test the property 'SubTotal'
+ ///
+ [Fact]
+ public void SubTotalTest()
+ {
+ // TODO unit test for the property 'SubTotal'
+ }
+ ///
/// Test the property 'TotalAmount'
///
[Fact]
diff --git a/src/gen/src/Apideck.Test/Model/EcommerceOrderTests.cs b/src/gen/src/Apideck.Test/Model/EcommerceOrderTests.cs
index 60310248f8..8155d76ecd 100644
--- a/src/gen/src/Apideck.Test/Model/EcommerceOrderTests.cs
+++ b/src/gen/src/Apideck.Test/Model/EcommerceOrderTests.cs
@@ -105,6 +105,14 @@ public void ShippingCostTest()
// TODO unit test for the property 'ShippingCost'
}
///
+ /// Test the property 'CouponDiscount'
+ ///
+ [Fact]
+ public void CouponDiscountTest()
+ {
+ // TODO unit test for the property 'CouponDiscount'
+ }
+ ///
/// Test the property 'TotalDiscount'
///
[Fact]
@@ -129,6 +137,14 @@ public void TotalAmountTest()
// TODO unit test for the property 'TotalAmount'
}
///
+ /// Test the property 'RefundedAmount'
+ ///
+ [Fact]
+ public void RefundedAmountTest()
+ {
+ // TODO unit test for the property 'RefundedAmount'
+ }
+ ///
/// Test the property 'Status'
///
[Fact]
diff --git a/src/gen/src/Apideck/Model/PaymentAllocations.cs b/src/gen/src/Apideck/Model/Allocation.cs
similarity index 79%
rename from src/gen/src/Apideck/Model/PaymentAllocations.cs
rename to src/gen/src/Apideck/Model/Allocation.cs
index c649f3ca3c..99796509ec 100644
--- a/src/gen/src/Apideck/Model/PaymentAllocations.cs
+++ b/src/gen/src/Apideck/Model/Allocation.cs
@@ -26,10 +26,10 @@
namespace Apideck.Model
{
///
- /// PaymentAllocations
+ /// Allocation
///
- [DataContract(Name = "Payment_allocations")]
- public partial class PaymentAllocations : IEquatable, IValidatableObject
+ [DataContract(Name = "Allocation")]
+ public partial class Allocation : IEquatable, IValidatableObject
{
///
/// Type of entity this payment should be attributed to.
@@ -72,7 +72,19 @@ public enum TypeEnum
/// Enum PrePayment for value: pre_payment
///
[EnumMember(Value = "pre_payment")]
- PrePayment = 6
+ PrePayment = 6,
+
+ ///
+ /// Enum JournalEntry for value: journal_entry
+ ///
+ [EnumMember(Value = "journal_entry")]
+ JournalEntry = 7,
+
+ ///
+ /// Enum Other for value: other
+ ///
+ [EnumMember(Value = "other")]
+ Other = 8
}
@@ -84,16 +96,18 @@ public enum TypeEnum
[DataMember(Name = "type", EmitDefaultValue = false)]
public TypeEnum? Type { get; set; }
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
/// Unique identifier of entity this payment should be attributed to..
/// Type of entity this payment should be attributed to..
/// Amount of payment that should be attributed to this allocation. If null, the total_amount will be used..
- public PaymentAllocations(string id = default(string), TypeEnum? type = default(TypeEnum?), decimal? amount = default(decimal?))
+ /// Unique identifier of the allocation.
+ public Allocation(string id = default(string), TypeEnum? type = default(TypeEnum?), decimal? amount = default(decimal?), string allocationId = default(string))
{
this.Id = id;
this.Type = type;
this.Amount = amount;
+ this.AllocationId = allocationId;
}
///
@@ -124,6 +138,13 @@ public bool ShouldSerializeCode()
[DataMember(Name = "amount", EmitDefaultValue = true)]
public decimal? Amount { get; set; }
+ ///
+ /// Unique identifier of the allocation
+ ///
+ /// Unique identifier of the allocation
+ [DataMember(Name = "allocation_id", EmitDefaultValue = false)]
+ public string AllocationId { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -131,11 +152,12 @@ public bool ShouldSerializeCode()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class PaymentAllocations {\n");
+ sb.Append("class Allocation {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Amount: ").Append(Amount).Append("\n");
+ sb.Append(" AllocationId: ").Append(AllocationId).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -156,15 +178,15 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as PaymentAllocations);
+ return this.Equals(input as Allocation);
}
///
- /// Returns true if PaymentAllocations instances are equal
+ /// Returns true if Allocation instances are equal
///
- /// Instance of PaymentAllocations to be compared
+ /// Instance of Allocation to be compared
/// Boolean
- public bool Equals(PaymentAllocations input)
+ public bool Equals(Allocation input)
{
if (input == null)
{
@@ -189,6 +211,11 @@ public bool Equals(PaymentAllocations input)
this.Amount == input.Amount ||
(this.Amount != null &&
this.Amount.Equals(input.Amount))
+ ) &&
+ (
+ this.AllocationId == input.AllocationId ||
+ (this.AllocationId != null &&
+ this.AllocationId.Equals(input.AllocationId))
);
}
@@ -214,6 +241,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Amount.GetHashCode();
}
+ if (this.AllocationId != null)
+ {
+ hashCode = (hashCode * 59) + this.AllocationId.GetHashCode();
+ }
return hashCode;
}
}
diff --git a/src/gen/src/Apideck/Model/Applicant.cs b/src/gen/src/Apideck/Model/Applicant.cs
index 3649e35241..2cf42ff6d1 100644
--- a/src/gen/src/Apideck/Model/Applicant.cs
+++ b/src/gen/src/Apideck/Model/Applicant.cs
@@ -34,7 +34,6 @@ public partial class Applicant : IEquatable, IValidatableObject
///
/// Initializes a new instance of the class.
///
- /// The PositionId the applicant applied for..
/// The name of an applicant..
/// The first name of the person..
/// The last name of the person..
@@ -65,9 +64,8 @@ public partial class Applicant : IEquatable, IValidatableObject
/// ownerId.
/// recordUrl.
/// Flag to indicate if the object is deleted..
- public Applicant(string positionId = default(string), string name = default(string), string firstName = default(string), string lastName = default(string), string middleName = default(string), string initials = default(string), DateTime? birthday = default(DateTime?), string coverLetter = default(string), string photoUrl = default(string), string headline = default(string), string title = default(string), List emails = default(List), List customFields = default(List), List phoneNumbers = default(List), List addresses = default(List), List websites = default(List), List socialLinks = default(List), string stageId = default(string), string recruiterId = default(string), string coordinatorId = default(string), List applicationIds = default(List), List applications = default(List), List followers = default(List), List sources = default(List), bool confidential = default(bool), bool anonymized = default(bool), List tags = default(List), bool? archived = default(bool?), string ownerId = default(string), string recordUrl = default(string), bool? deleted = default(bool?))
+ public Applicant(string name = default(string), string firstName = default(string), string lastName = default(string), string middleName = default(string), string initials = default(string), DateTime? birthday = default(DateTime?), string coverLetter = default(string), string photoUrl = default(string), string headline = default(string), string title = default(string), List emails = default(List), List customFields = default(List), List phoneNumbers = default(List), List addresses = default(List), List websites = default(List), List socialLinks = default(List), string stageId = default(string), string recruiterId = default(string), string coordinatorId = default(string), List applicationIds = default(List), List applications = default(List), List followers = default(List), List sources = default(List), bool confidential = default(bool), bool anonymized = default(bool), List tags = default(List), bool? archived = default(bool?), string ownerId = default(string), string recordUrl = default(string), bool? deleted = default(bool?))
{
- this.PositionId = positionId;
this.Name = name;
this.FirstName = firstName;
this.LastName = lastName;
@@ -115,13 +113,6 @@ public bool ShouldSerializeId()
{
return false;
}
- ///
- /// The PositionId the applicant applied for.
- ///
- /// The PositionId the applicant applied for.
- [DataMember(Name = "position_id", EmitDefaultValue = false)]
- public string PositionId { get; set; }
-
///
/// The name of an applicant.
///
@@ -511,7 +502,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class Applicant {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
- sb.Append(" PositionId: ").Append(PositionId).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" FirstName: ").Append(FirstName).Append("\n");
sb.Append(" LastName: ").Append(LastName).Append("\n");
@@ -595,11 +585,6 @@ public bool Equals(Applicant input)
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
- (
- this.PositionId == input.PositionId ||
- (this.PositionId != null &&
- this.PositionId.Equals(input.PositionId))
- ) &&
(
this.Name == input.Name ||
(this.Name != null &&
@@ -839,10 +824,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
- if (this.PositionId != null)
- {
- hashCode = (hashCode * 59) + this.PositionId.GetHashCode();
- }
if (this.Name != null)
{
hashCode = (hashCode * 59) + this.Name.GetHashCode();
diff --git a/src/gen/src/Apideck/Model/BalanceSheetAccount.cs b/src/gen/src/Apideck/Model/BalanceSheetAccount.cs
index 9545def0ef..ea02a84239 100644
--- a/src/gen/src/Apideck/Model/BalanceSheetAccount.cs
+++ b/src/gen/src/Apideck/Model/BalanceSheetAccount.cs
@@ -26,7 +26,7 @@
namespace Apideck.Model
{
///
- /// BalanceSheetAccount
+ /// A balance sheet account represents the financial position of a company at a specific point in time.
///
[DataContract(Name = "BalanceSheetAccount")]
public partial class BalanceSheetAccount : IEquatable, IValidatableObject
@@ -34,11 +34,13 @@ public partial class BalanceSheetAccount : IEquatable, IVal
///
/// Initializes a new instance of the class.
///
+ /// The code of the account..
/// Name of the report item.
/// The value of the account..
/// items.
- public BalanceSheetAccount(string name = default(string), decimal value = default(decimal), List
+ /// The code of the account..
/// Name of the report item.
/// The value of the account..
- public BalanceSheetAccountRecord(string name = default(string), decimal value = default(decimal))
+ public BalanceSheetAccountRecord(string code = default(string), string name = default(string), decimal value = default(decimal))
{
+ this.Code = code;
this.Name = name;
this.Value = value;
}
@@ -57,6 +59,13 @@ public bool ShouldSerializeAccountId()
{
return false;
}
+ ///
+ /// The code of the account.
+ ///
+ /// The code of the account.
+ [DataMember(Name = "code", EmitDefaultValue = false)]
+ public string Code { get; set; }
+
///
/// Name of the report item
///
@@ -80,6 +89,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class BalanceSheetAccountRecord {\n");
sb.Append(" AccountId: ").Append(AccountId).Append("\n");
+ sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
@@ -122,6 +132,11 @@ public bool Equals(BalanceSheetAccountRecord input)
(this.AccountId != null &&
this.AccountId.Equals(input.AccountId))
) &&
+ (
+ this.Code == input.Code ||
+ (this.Code != null &&
+ this.Code.Equals(input.Code))
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
@@ -146,6 +161,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountId.GetHashCode();
}
+ if (this.Code != null)
+ {
+ hashCode = (hashCode * 59) + this.Code.GetHashCode();
+ }
if (this.Name != null)
{
hashCode = (hashCode * 59) + this.Name.GetHashCode();
diff --git a/src/gen/src/Apideck/Model/BalanceSheetReports.cs b/src/gen/src/Apideck/Model/BalanceSheetReports.cs
index 0b62544404..e544190091 100644
--- a/src/gen/src/Apideck/Model/BalanceSheetReports.cs
+++ b/src/gen/src/Apideck/Model/BalanceSheetReports.cs
@@ -53,7 +53,8 @@ protected BalanceSheetReports() { }
/// liabilities (required).
/// equity (required).
/// The net assets of the balance sheet.
- public BalanceSheetReports(string reportName = default(string), string startDate = default(string), string endDate = default(string), Currency? currency = default(Currency?), BalanceSheetAccount assets = default(BalanceSheetAccount), BalanceSheetAccount liabilities = default(BalanceSheetAccount), BalanceSheetAccount equity = default(BalanceSheetAccount), decimal netAssets = default(decimal))
+ /// Items that are not categorized in the balance sheet.
+ public BalanceSheetReports(string reportName = default(string), string startDate = default(string), string endDate = default(string), Currency? currency = default(Currency?), BalanceSheetAccount assets = default(BalanceSheetAccount), BalanceSheetAccount liabilities = default(BalanceSheetAccount), BalanceSheetAccount equity = default(BalanceSheetAccount), decimal netAssets = default(decimal), List uncategorizedItems = default(List))
{
// to ensure "endDate" is required (not null)
if (endDate == null) {
@@ -79,6 +80,7 @@ protected BalanceSheetReports() { }
this.StartDate = startDate;
this.Currency = currency;
this.NetAssets = netAssets;
+ this.UncategorizedItems = uncategorizedItems;
}
///
@@ -217,6 +219,13 @@ public bool ShouldSerializeCreatedAt()
{
return false;
}
+ ///
+ /// Items that are not categorized in the balance sheet
+ ///
+ /// Items that are not categorized in the balance sheet
+ [DataMember(Name = "uncategorized_items", EmitDefaultValue = false)]
+ public List UncategorizedItems { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -239,6 +248,7 @@ public override string ToString()
sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
+ sb.Append(" UncategorizedItems: ").Append(UncategorizedItems).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -341,6 +351,12 @@ public bool Equals(BalanceSheetReports input)
this.CreatedAt == input.CreatedAt ||
(this.CreatedAt != null &&
this.CreatedAt.Equals(input.CreatedAt))
+ ) &&
+ (
+ this.UncategorizedItems == input.UncategorizedItems ||
+ this.UncategorizedItems != null &&
+ input.UncategorizedItems != null &&
+ this.UncategorizedItems.SequenceEqual(input.UncategorizedItems)
);
}
@@ -403,6 +419,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
}
+ if (this.UncategorizedItems != null)
+ {
+ hashCode = (hashCode * 59) + this.UncategorizedItems.GetHashCode();
+ }
return hashCode;
}
}
diff --git a/src/gen/src/Apideck/Model/CreditNote.cs b/src/gen/src/Apideck/Model/CreditNote.cs
index e165e00923..26ce12f548 100644
--- a/src/gen/src/Apideck/Model/CreditNote.cs
+++ b/src/gen/src/Apideck/Model/CreditNote.cs
@@ -145,7 +145,7 @@ protected CreditNote() { }
/// shippingAddress.
/// customFields.
/// A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object..
- public CreditNote(string number = default(string), LinkedCustomer customer = default(LinkedCustomer), string companyId = default(string), Currency? currency = default(Currency?), decimal? currencyRate = default(decimal?), bool? taxInclusive = default(bool?), decimal? subTotal = default(decimal?), decimal totalAmount = default(decimal), decimal? totalTax = default(decimal?), string taxCode = default(string), decimal? balance = default(decimal?), decimal? remainingCredit = default(decimal?), StatusEnum? status = default(StatusEnum?), string reference = default(string), DateTime dateIssued = default(DateTime), DateTime? datePaid = default(DateTime?), TypeEnum? type = default(TypeEnum?), LinkedLedgerAccount account = default(LinkedLedgerAccount), List lineItems = default(List), List allocations = default(List), string note = default(string), string terms = default(string), Address billingAddress = default(Address), Address shippingAddress = default(Address), List customFields = default(List), string rowVersion = default(string))
+ public CreditNote(string number = default(string), LinkedCustomer customer = default(LinkedCustomer), string companyId = default(string), Currency? currency = default(Currency?), decimal? currencyRate = default(decimal?), bool? taxInclusive = default(bool?), decimal? subTotal = default(decimal?), decimal totalAmount = default(decimal), decimal? totalTax = default(decimal?), string taxCode = default(string), decimal? balance = default(decimal?), decimal? remainingCredit = default(decimal?), StatusEnum? status = default(StatusEnum?), string reference = default(string), DateTime dateIssued = default(DateTime), DateTime? datePaid = default(DateTime?), TypeEnum? type = default(TypeEnum?), LinkedLedgerAccount account = default(LinkedLedgerAccount), List lineItems = default(List), List allocations = default(List), string note = default(string), string terms = default(string), Address billingAddress = default(Address), Address shippingAddress = default(Address), List customFields = default(List), string rowVersion = default(string))
{
this.TotalAmount = totalAmount;
this.Number = number;
@@ -303,7 +303,7 @@ public bool ShouldSerializeId()
/// Gets or Sets Allocations
///
[DataMember(Name = "allocations", EmitDefaultValue = false)]
- public List Allocations { get; set; }
+ public List Allocations { get; set; }
///
/// Optional note to be associated with the credit note.
diff --git a/src/gen/src/Apideck/Model/EcommerceOrder.cs b/src/gen/src/Apideck/Model/EcommerceOrder.cs
index 0413030180..50994e42ab 100644
--- a/src/gen/src/Apideck/Model/EcommerceOrder.cs
+++ b/src/gen/src/Apideck/Model/EcommerceOrder.cs
@@ -172,9 +172,11 @@ protected EcommerceOrder() { }
/// discounts.
/// Sub-total amount, normally before tax..
/// Shipping cost, if any..
+ /// Coupon discount, if any..
/// Total discount, if any..
/// Total tax, if any..
/// Total amount due..
+ /// Refunded amount, if any..
/// status.
/// Current payment status of the order..
/// Current fulfillment status of the order..
@@ -185,16 +187,18 @@ protected EcommerceOrder() { }
/// tracking.
/// lineItems.
/// Note for the order..
- public EcommerceOrder(string orderNumber = default(string), Currency? currency = default(Currency?), List discounts = default(List), string subTotal = default(string), string shippingCost = default(string), string totalDiscount = default(string), string totalTax = default(string), string totalAmount = default(string), EcommerceOrderStatus? status = default(EcommerceOrderStatus?), PaymentStatusEnum? paymentStatus = default(PaymentStatusEnum?), FulfillmentStatusEnum? fulfillmentStatus = default(FulfillmentStatusEnum?), string paymentMethod = default(string), LinkedEcommerceCustomer customer = default(LinkedEcommerceCustomer), EcommerceAddress billingAddress = default(EcommerceAddress), EcommerceAddress shippingAddress = default(EcommerceAddress), List tracking = default(List), List lineItems = default(List), string note = default(string))
+ public EcommerceOrder(string orderNumber = default(string), Currency? currency = default(Currency?), List discounts = default(List), string subTotal = default(string), string shippingCost = default(string), string couponDiscount = default(string), string totalDiscount = default(string), string totalTax = default(string), string totalAmount = default(string), string refundedAmount = default(string), EcommerceOrderStatus? status = default(EcommerceOrderStatus?), PaymentStatusEnum? paymentStatus = default(PaymentStatusEnum?), FulfillmentStatusEnum? fulfillmentStatus = default(FulfillmentStatusEnum?), string paymentMethod = default(string), LinkedEcommerceCustomer customer = default(LinkedEcommerceCustomer), EcommerceAddress billingAddress = default(EcommerceAddress), EcommerceAddress shippingAddress = default(EcommerceAddress), List tracking = default(List), List lineItems = default(List), string note = default(string))
{
this.OrderNumber = orderNumber;
this.Currency = currency;
this.Discounts = discounts;
this.SubTotal = subTotal;
this.ShippingCost = shippingCost;
+ this.CouponDiscount = couponDiscount;
this.TotalDiscount = totalDiscount;
this.TotalTax = totalTax;
this.TotalAmount = totalAmount;
+ this.RefundedAmount = refundedAmount;
this.Status = status;
this.PaymentStatus = paymentStatus;
this.FulfillmentStatus = fulfillmentStatus;
@@ -249,6 +253,13 @@ public bool ShouldSerializeId()
[DataMember(Name = "shipping_cost", EmitDefaultValue = true)]
public string ShippingCost { get; set; }
+ ///
+ /// Coupon discount, if any.
+ ///
+ /// Coupon discount, if any.
+ [DataMember(Name = "coupon_discount", EmitDefaultValue = true)]
+ public string CouponDiscount { get; set; }
+
///
/// Total discount, if any.
///
@@ -270,6 +281,13 @@ public bool ShouldSerializeId()
[DataMember(Name = "total_amount", EmitDefaultValue = true)]
public string TotalAmount { get; set; }
+ ///
+ /// Refunded amount, if any.
+ ///
+ /// Refunded amount, if any.
+ [DataMember(Name = "refunded_amount", EmitDefaultValue = true)]
+ public string RefundedAmount { get; set; }
+
///
/// Payment method used for this order.
///
@@ -373,9 +391,11 @@ public override string ToString()
sb.Append(" Discounts: ").Append(Discounts).Append("\n");
sb.Append(" SubTotal: ").Append(SubTotal).Append("\n");
sb.Append(" ShippingCost: ").Append(ShippingCost).Append("\n");
+ sb.Append(" CouponDiscount: ").Append(CouponDiscount).Append("\n");
sb.Append(" TotalDiscount: ").Append(TotalDiscount).Append("\n");
sb.Append(" TotalTax: ").Append(TotalTax).Append("\n");
sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n");
+ sb.Append(" RefundedAmount: ").Append(RefundedAmount).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" PaymentStatus: ").Append(PaymentStatus).Append("\n");
sb.Append(" FulfillmentStatus: ").Append(FulfillmentStatus).Append("\n");
@@ -454,6 +474,11 @@ public bool Equals(EcommerceOrder input)
(this.ShippingCost != null &&
this.ShippingCost.Equals(input.ShippingCost))
) &&
+ (
+ this.CouponDiscount == input.CouponDiscount ||
+ (this.CouponDiscount != null &&
+ this.CouponDiscount.Equals(input.CouponDiscount))
+ ) &&
(
this.TotalDiscount == input.TotalDiscount ||
(this.TotalDiscount != null &&
@@ -469,6 +494,11 @@ public bool Equals(EcommerceOrder input)
(this.TotalAmount != null &&
this.TotalAmount.Equals(input.TotalAmount))
) &&
+ (
+ this.RefundedAmount == input.RefundedAmount ||
+ (this.RefundedAmount != null &&
+ this.RefundedAmount.Equals(input.RefundedAmount))
+ ) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
@@ -565,6 +595,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.ShippingCost.GetHashCode();
}
+ if (this.CouponDiscount != null)
+ {
+ hashCode = (hashCode * 59) + this.CouponDiscount.GetHashCode();
+ }
if (this.TotalDiscount != null)
{
hashCode = (hashCode * 59) + this.TotalDiscount.GetHashCode();
@@ -577,6 +611,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.TotalAmount.GetHashCode();
}
+ if (this.RefundedAmount != null)
+ {
+ hashCode = (hashCode * 59) + this.RefundedAmount.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Status.GetHashCode();
hashCode = (hashCode * 59) + this.PaymentStatus.GetHashCode();
hashCode = (hashCode * 59) + this.FulfillmentStatus.GetHashCode();
diff --git a/src/gen/src/Apideck/Model/EcommerceOrderLineItem.cs b/src/gen/src/Apideck/Model/EcommerceOrderLineItem.cs
index 38bc178949..8d43b847ea 100644
--- a/src/gen/src/Apideck/Model/EcommerceOrderLineItem.cs
+++ b/src/gen/src/Apideck/Model/EcommerceOrderLineItem.cs
@@ -49,9 +49,13 @@ protected EcommerceOrderLineItem() { }
/// The unit price of the product or variant associated with the line item..
/// The tax rate applied to the product or variant associated with the line item..
/// The total tax amount applied to the product or variant associated with the line item..
+ /// Whether the line item has been refunded..
+ /// The amount of the line item that has been refunded..
+ /// The quantity of the line item that has been refunded..
+ /// The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts..
/// The total amount for the product(s) or variant associated with the line item, including taxes and discounts. (required).
/// discounts.
- public EcommerceOrderLineItem(string productId = default(string), string variantId = default(string), string sku = default(string), string name = default(string), string description = default(string), List options = default(List), string quantity = default(string), string unitPrice = default(string), string taxRate = default(string), string taxAmount = default(string), string totalAmount = default(string), List discounts = default(List))
+ public EcommerceOrderLineItem(string productId = default(string), string variantId = default(string), string sku = default(string), string name = default(string), string description = default(string), List options = default(List), string quantity = default(string), string unitPrice = default(string), string taxRate = default(string), string taxAmount = default(string), bool? isRefunded = default(bool?), string refundedAmount = default(string), string refundedQuantity = default(string), string subTotal = default(string), string totalAmount = default(string), List discounts = default(List))
{
// to ensure "name" is required (not null)
if (name == null) {
@@ -76,6 +80,10 @@ protected EcommerceOrderLineItem() { }
this.UnitPrice = unitPrice;
this.TaxRate = taxRate;
this.TaxAmount = taxAmount;
+ this.IsRefunded = isRefunded;
+ this.RefundedAmount = refundedAmount;
+ this.RefundedQuantity = refundedQuantity;
+ this.SubTotal = subTotal;
this.Discounts = discounts;
}
@@ -163,6 +171,34 @@ public bool ShouldSerializeId()
[DataMember(Name = "tax_amount", EmitDefaultValue = true)]
public string TaxAmount { get; set; }
+ ///
+ /// Whether the line item has been refunded.
+ ///
+ /// Whether the line item has been refunded.
+ [DataMember(Name = "is_refunded", EmitDefaultValue = true)]
+ public bool? IsRefunded { get; set; }
+
+ ///
+ /// The amount of the line item that has been refunded.
+ ///
+ /// The amount of the line item that has been refunded.
+ [DataMember(Name = "refunded_amount", EmitDefaultValue = true)]
+ public string RefundedAmount { get; set; }
+
+ ///
+ /// The quantity of the line item that has been refunded.
+ ///
+ /// The quantity of the line item that has been refunded.
+ [DataMember(Name = "refunded_quantity", EmitDefaultValue = true)]
+ public string RefundedQuantity { get; set; }
+
+ ///
+ /// The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts.
+ ///
+ /// The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts.
+ [DataMember(Name = "sub_total", EmitDefaultValue = true)]
+ public string SubTotal { get; set; }
+
///
/// The total amount for the product(s) or variant associated with the line item, including taxes and discounts.
///
@@ -195,6 +231,10 @@ public override string ToString()
sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n");
sb.Append(" TaxRate: ").Append(TaxRate).Append("\n");
sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n");
+ sb.Append(" IsRefunded: ").Append(IsRefunded).Append("\n");
+ sb.Append(" RefundedAmount: ").Append(RefundedAmount).Append("\n");
+ sb.Append(" RefundedQuantity: ").Append(RefundedQuantity).Append("\n");
+ sb.Append(" SubTotal: ").Append(SubTotal).Append("\n");
sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n");
sb.Append(" Discounts: ").Append(Discounts).Append("\n");
sb.Append("}\n");
@@ -288,6 +328,26 @@ public bool Equals(EcommerceOrderLineItem input)
(this.TaxAmount != null &&
this.TaxAmount.Equals(input.TaxAmount))
) &&
+ (
+ this.IsRefunded == input.IsRefunded ||
+ (this.IsRefunded != null &&
+ this.IsRefunded.Equals(input.IsRefunded))
+ ) &&
+ (
+ this.RefundedAmount == input.RefundedAmount ||
+ (this.RefundedAmount != null &&
+ this.RefundedAmount.Equals(input.RefundedAmount))
+ ) &&
+ (
+ this.RefundedQuantity == input.RefundedQuantity ||
+ (this.RefundedQuantity != null &&
+ this.RefundedQuantity.Equals(input.RefundedQuantity))
+ ) &&
+ (
+ this.SubTotal == input.SubTotal ||
+ (this.SubTotal != null &&
+ this.SubTotal.Equals(input.SubTotal))
+ ) &&
(
this.TotalAmount == input.TotalAmount ||
(this.TotalAmount != null &&
@@ -354,6 +414,22 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.TaxAmount.GetHashCode();
}
+ if (this.IsRefunded != null)
+ {
+ hashCode = (hashCode * 59) + this.IsRefunded.GetHashCode();
+ }
+ if (this.RefundedAmount != null)
+ {
+ hashCode = (hashCode * 59) + this.RefundedAmount.GetHashCode();
+ }
+ if (this.RefundedQuantity != null)
+ {
+ hashCode = (hashCode * 59) + this.RefundedQuantity.GetHashCode();
+ }
+ if (this.SubTotal != null)
+ {
+ hashCode = (hashCode * 59) + this.SubTotal.GetHashCode();
+ }
if (this.TotalAmount != null)
{
hashCode = (hashCode * 59) + this.TotalAmount.GetHashCode();
diff --git a/src/gen/src/Apideck/Model/Payment.cs b/src/gen/src/Apideck/Model/Payment.cs
index b024cf649e..248c46b399 100644
--- a/src/gen/src/Apideck/Model/Payment.cs
+++ b/src/gen/src/Apideck/Model/Payment.cs
@@ -172,7 +172,7 @@ protected Payment() { }
/// customFields.
/// A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object..
/// Payment id to be displayed..
- public Payment(Currency? currency = default(Currency?), decimal? currencyRate = default(decimal?), decimal totalAmount = default(decimal), string reference = default(string), string paymentMethod = default(string), string paymentMethodReference = default(string), string paymentMethodId = default(string), string accountsReceivableAccountType = default(string), string accountsReceivableAccountId = default(string), LinkedLedgerAccount account = default(LinkedLedgerAccount), DateTime transactionDate = default(DateTime), LinkedCustomer customer = default(LinkedCustomer), LinkedSupplier supplier = default(LinkedSupplier), string companyId = default(string), bool reconciled = default(bool), StatusEnum? status = default(StatusEnum?), TypeEnum? type = default(TypeEnum?), List allocations = default(List), string note = default(string), string number = default(string), List customFields = default(List), string rowVersion = default(string), string displayId = default(string))
+ public Payment(Currency? currency = default(Currency?), decimal? currencyRate = default(decimal?), decimal totalAmount = default(decimal), string reference = default(string), string paymentMethod = default(string), string paymentMethodReference = default(string), string paymentMethodId = default(string), string accountsReceivableAccountType = default(string), string accountsReceivableAccountId = default(string), LinkedLedgerAccount account = default(LinkedLedgerAccount), DateTime transactionDate = default(DateTime), LinkedCustomer customer = default(LinkedCustomer), LinkedSupplier supplier = default(LinkedSupplier), string companyId = default(string), bool reconciled = default(bool), StatusEnum? status = default(StatusEnum?), TypeEnum? type = default(TypeEnum?), List allocations = default(List), string note = default(string), string number = default(string), List customFields = default(List), string rowVersion = default(string), string displayId = default(string))
{
this.TotalAmount = totalAmount;
this.TransactionDate = transactionDate;
@@ -330,7 +330,7 @@ public bool ShouldSerializeDownstreamId()
/// Gets or Sets Allocations
///
[DataMember(Name = "allocations", EmitDefaultValue = false)]
- public List Allocations { get; set; }
+ public List Allocations { get; set; }
///
/// Optional note to be associated with the payment.