Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #335 from MJMortimer/0718Bugs
Browse files Browse the repository at this point in the history
Allow nullable LineAmountTypes to be serialized correctly. Includes support for nullable ManualJournalStatus
  • Loading branch information
MJMortimer authored Jul 19, 2018
2 parents 75b2dc6 + f85af6a commit 7b75048
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Xero.Api/Serialization/DefaultMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ private void BuildCore()
JsConfig<ExpenseClaimStatus>.DeSerializeFn = EnumDeserializer<ExpenseClaimStatus>;
JsConfig<InvoiceStatus>.DeSerializeFn = EnumDeserializer<InvoiceStatus>;
JsConfig<ManualJournalStatus>.DeSerializeFn = EnumDeserializer<ManualJournalStatus>;
JsConfig<ManualJournalStatus?>.DeSerializeFn = EnumDeserializerNullable<ManualJournalStatus>;
JsConfig<OrganisationStatus>.DeSerializeFn = EnumDeserializer<OrganisationStatus>;
JsConfig<PaymentStatus>.DeSerializeFn = EnumDeserializer<PaymentStatus>;
JsConfig<PurchaseOrderStatus>.DeSerializeFn = EnumDeserializer<PurchaseOrderStatus>;
Expand All @@ -84,6 +85,8 @@ private void BuildCore()
JsConfig<BankTransactionType>.DeSerializeFn = EnumDeserializer<BankTransactionType>;
JsConfig<CreditNoteType>.DeSerializeFn = EnumDeserializer<CreditNoteType>;
JsConfig<InvoiceType>.DeSerializeFn = EnumDeserializer<InvoiceType>;
JsConfig<LineAmountType>.DeSerializeFn = EnumDeserializer<LineAmountType>;
JsConfig<LineAmountType?>.DeSerializeFn = EnumDeserializerNullable<LineAmountType>;
JsConfig<ObjectGroupType>.DeSerializeFn = EnumDeserializer<ObjectGroupType>;
JsConfig<ObjectGroupType?>.DeSerializeFn = EnumDeserializerNullable<ObjectGroupType>;
JsConfig<ObjectType>.DeSerializeFn = EnumDeserializer<ObjectType>;
Expand Down

0 comments on commit 7b75048

Please sign in to comment.