Skip to content

Commit

Permalink
Updated DocType Enums to support 14.4
Browse files Browse the repository at this point in the history
Added ReverseChargeOrder and ReverseChargeInvoice enums.
  • Loading branch information
lokeuei committed Aug 5, 2014
1 parent ed251ee commit 2c27610
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
10 changes: 10 additions & 0 deletions AvaTax-Calc-SDK/AvaTaxCancelTaxRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand All @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion AvaTax-Calc-SDK/AvaTaxGetTaxRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions AvaTax-Calc-SDK/AvaTaxGetTaxRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand All @@ -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;
Expand Down

0 comments on commit 2c27610

Please sign in to comment.