From 2c276109e3ce6c39bb1965cc9af15c5c4688c586 Mon Sep 17 00:00:00 2001 From: Loke Uei Date: Tue, 5 Aug 2014 13:55:22 -0700 Subject: [PATCH] Updated DocType Enums to support 14.4 Added ReverseChargeOrder and ReverseChargeInvoice enums. --- AvaTax-Calc-SDK/AvaTaxCancelTaxRequest.m | 10 ++++++++++ AvaTax-Calc-SDK/AvaTaxGetTaxRequest.h | 4 +++- AvaTax-Calc-SDK/AvaTaxGetTaxRequest.m | 10 ++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/AvaTax-Calc-SDK/AvaTaxCancelTaxRequest.m b/AvaTax-Calc-SDK/AvaTaxCancelTaxRequest.m index 31bb6fe..0f67700 100644 --- a/AvaTax-Calc-SDK/AvaTaxCancelTaxRequest.m +++ b/AvaTax-Calc-SDK/AvaTaxCancelTaxRequest.m @@ -33,6 +33,10 @@ - (void)setDocTypeNSString:(NSString*)docTypeString { self.DocType = DocType_PurchaseOrder; } else if ([docTypeString isEqualToString:@"PurchaseInvoice"]) { self.DocType = DocType_PurchaseInvoice; + } else if ([docTypeString isEqualToString:@"ReverseChargeOrder"]) { + self.DocType = DocType_ReverseChargeOrder; + } else if ([docTypeString isEqualToString:@"ReverseChargeInvoice"]) { + self.DocType = DocType_ReverseChargeInvoice; } } @@ -56,6 +60,12 @@ - (id)JSONObjectForDocType { case DocType_PurchaseInvoice: return @"PurchaseInvoice"; break; + case DocType_ReverseChargeOrder: + return @"ReverseChargeOrder"; + break; + case DocType_ReverseChargeInvoice: + return @"ReverseChargeInvoice"; + break; default: return nil; break; diff --git a/AvaTax-Calc-SDK/AvaTaxGetTaxRequest.h b/AvaTax-Calc-SDK/AvaTaxGetTaxRequest.h index a0678c6..3dc0d6c 100644 --- a/AvaTax-Calc-SDK/AvaTaxGetTaxRequest.h +++ b/AvaTax-Calc-SDK/AvaTaxGetTaxRequest.h @@ -26,7 +26,9 @@ typedef enum { DocType_ReturnOrder, DocType_ReturnInvoice, DocType_PurchaseOrder, - DocType_PurchaseInvoice + DocType_PurchaseInvoice, + DocType_ReverseChargeOrder, + DocType_ReverseChargeInvoice } AvaTaxDocType; typedef enum { DetailLevel_Tax, diff --git a/AvaTax-Calc-SDK/AvaTaxGetTaxRequest.m b/AvaTax-Calc-SDK/AvaTaxGetTaxRequest.m index febf977..9d65412 100644 --- a/AvaTax-Calc-SDK/AvaTaxGetTaxRequest.m +++ b/AvaTax-Calc-SDK/AvaTaxGetTaxRequest.m @@ -93,6 +93,10 @@ - (void)setDocTypeNSString:(NSString*)docTypeString { self.DocType = DocType_PurchaseOrder; } else if ([docTypeString isEqualToString:@"PurchaseInvoice"]) { self.DocType = DocType_PurchaseInvoice; + } else if ([docTypeString isEqualToString:@"ReverseChargeOrder"]) { + self.DocType = DocType_ReverseChargeOrder; + } else if ([docTypeString isEqualToString:@"ReverseChargeInvoice"]) { + self.DocType = DocType_ReverseChargeInvoice; } } @@ -116,6 +120,12 @@ - (id)JSONObjectForDocType { case DocType_PurchaseInvoice: return @"PurchaseInvoice"; break; + case DocType_ReverseChargeOrder: + return @"ReverseChargeOrder"; + break; + case DocType_ReverseChargeInvoice: + return @"ReverseChargeInvoice"; + break; default: return nil; break;