Skip to content

Commit

Permalink
Update endpoint definitions with code generator
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaumov committed Jan 15, 2021
1 parent 2b2ba3c commit 488c109
Show file tree
Hide file tree
Showing 639 changed files with 751 additions and 625 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<Compile Include="Api\AccountSummaryInquiryApi.cs" />
<Compile Include="Api\AdjustmentApi.cs" />
<Compile Include="Api\AttributeDefinitionApi.cs" />
<Compile Include="Api\BaseEndpointApi.cs" />
<Compile Include="Api\BillApi.cs" />
<Compile Include="Api\BusinessAccountApi.cs" />
<Compile Include="Api\CarrierApi.cs" />
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/AccountApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class AccountApi : EntityAPI<Account>
public class AccountApi : BaseEndpointApi<Account>
{
public AccountApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class AccountByPeriodInquiryApi : EntityAPI<AccountByPeriodInquiry>
public class AccountByPeriodInquiryApi : BaseEndpointApi<AccountByPeriodInquiry>
{
public AccountByPeriodInquiryApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class AccountBySubaccountInquiryApi : EntityAPI<AccountBySubaccountInquiry>
public class AccountBySubaccountInquiryApi : BaseEndpointApi<AccountBySubaccountInquiry>
{
public AccountBySubaccountInquiryApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class AccountDetailsInquiryApi : EntityAPI<AccountDetailsInquiry>
public class AccountDetailsInquiryApi : BaseEndpointApi<AccountDetailsInquiry>
{
public AccountDetailsInquiryApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/AccountLocationApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class AccountLocationApi : EntityAPI<AccountLocation>
public class AccountLocationApi : BaseEndpointApi<AccountLocation>
{
public AccountLocationApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class AccountSummaryInquiryApi : EntityAPI<AccountSummaryInquiry>
public class AccountSummaryInquiryApi : BaseEndpointApi<AccountSummaryInquiry>
{
public AccountSummaryInquiryApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/AdjustmentApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class AdjustmentApi : EntityAPI<Adjustment>
public class AdjustmentApi : BaseEndpointApi<Adjustment>
{
public AdjustmentApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/AttributeDefinitionApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class AttributeDefinitionApi : EntityAPI<AttributeDefinition>
public class AttributeDefinitionApi : BaseEndpointApi<AttributeDefinition>
{
public AttributeDefinitionApi(Configuration configuration) : base(configuration)
{ }
Expand Down
17 changes: 17 additions & 0 deletions Acumatica.Default_17.200.001/Api/BaseEndpointApi.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Acumatica.RESTClient.Api;
using Acumatica.RESTClient.Client;
using Acumatica.RESTClient.Model;

namespace Acumatica.Default_17_200_001.Api
{
public abstract class BaseEndpointApi<EntityType> : EntityAPI<EntityType>
where EntityType : Entity
{
public BaseEndpointApi(Configuration configuration) : base(configuration)
{ }
public override string GetEndpointPath()
{
return "entity/Default/17.200.001";
}
}
}
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/BillApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class BillApi : EntityAPI<Bill>
public class BillApi : BaseEndpointApi<Bill>
{
public BillApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/BusinessAccountApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class BusinessAccountApi : EntityAPI<BusinessAccount>
public class BusinessAccountApi : BaseEndpointApi<BusinessAccount>
{
public BusinessAccountApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CarrierApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CarrierApi : EntityAPI<Carrier>
public class CarrierApi : BaseEndpointApi<Carrier>
{
public CarrierApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CaseApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CaseApi : EntityAPI<Case>
public class CaseApi : BaseEndpointApi<Case>
{
public CaseApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CashSaleApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CashSaleApi : EntityAPI<CashSale>
public class CashSaleApi : BaseEndpointApi<CashSale>
{
public CashSaleApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CheckApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CheckApi : EntityAPI<Check>
public class CheckApi : BaseEndpointApi<Check>
{
public CheckApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/ContactApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class ContactApi : EntityAPI<Contact>
public class ContactApi : BaseEndpointApi<Contact>
{
public ContactApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/ContractUsageApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class ContractUsageApi : EntityAPI<ContractUsage>
public class ContractUsageApi : BaseEndpointApi<ContractUsage>
{
public ContractUsageApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CurrencyApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CurrencyApi : EntityAPI<Currency>
public class CurrencyApi : BaseEndpointApi<Currency>
{
public CurrencyApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CustomerApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CustomerApi : EntityAPI<Customer>
public class CustomerApi : BaseEndpointApi<Customer>
{
public CustomerApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CustomerClassApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CustomerClassApi : EntityAPI<CustomerClass>
public class CustomerClassApi : BaseEndpointApi<CustomerClass>
{
public CustomerClassApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CustomerLocationApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CustomerLocationApi : EntityAPI<CustomerLocation>
public class CustomerLocationApi : BaseEndpointApi<CustomerLocation>
{
public CustomerLocationApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CustomerPaymentMethodApi : EntityAPI<CustomerPaymentMethod>
public class CustomerPaymentMethodApi : BaseEndpointApi<CustomerPaymentMethod>
{
public CustomerPaymentMethodApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/CustomerPriceClassApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class CustomerPriceClassApi : EntityAPI<CustomerPriceClass>
public class CustomerPriceClassApi : BaseEndpointApi<CustomerPriceClass>
{
public CustomerPriceClassApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/DiscountApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class DiscountApi : EntityAPI<Discount>
public class DiscountApi : BaseEndpointApi<Discount>
{
public DiscountApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/DiscountCodeApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class DiscountCodeApi : EntityAPI<DiscountCode>
public class DiscountCodeApi : BaseEndpointApi<DiscountCode>
{
public DiscountCodeApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/EmailApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class EmailApi : EntityAPI<Email>
public class EmailApi : BaseEndpointApi<Email>
{
public EmailApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/EmailProcessingApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class EmailProcessingApi : EntityAPI<EmailProcessing>
public class EmailProcessingApi : BaseEndpointApi<EmailProcessing>
{
public EmailProcessingApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/EmployeeApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class EmployeeApi : EntityAPI<Employee>
public class EmployeeApi : BaseEndpointApi<Employee>
{
public EmployeeApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/EventApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class EventApi : EntityAPI<Event>
public class EventApi : BaseEndpointApi<Event>
{
public EventApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/FOBPointApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class FOBPointApi : EntityAPI<FOBPoint>
public class FOBPointApi : BaseEndpointApi<FOBPoint>
{
public FOBPointApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/FinancialPeriodApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class FinancialPeriodApi : EntityAPI<FinancialPeriod>
public class FinancialPeriodApi : BaseEndpointApi<FinancialPeriod>
{
public FinancialPeriodApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/FinancialYearApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class FinancialYearApi : EntityAPI<FinancialYear>
public class FinancialYearApi : BaseEndpointApi<FinancialYear>
{
public FinancialYearApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class InterBranchAccountMappingApi : EntityAPI<InterBranchAccountMapping>
public class InterBranchAccountMappingApi : BaseEndpointApi<InterBranchAccountMapping>
{
public InterBranchAccountMappingApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class InventoryAllocationInquiryApi : EntityAPI<InventoryAllocationInquiry>
public class InventoryAllocationInquiryApi : BaseEndpointApi<InventoryAllocationInquiry>
{
public InventoryAllocationInquiryApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/InventoryReceiptApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class InventoryReceiptApi : EntityAPI<InventoryReceipt>
public class InventoryReceiptApi : BaseEndpointApi<InventoryReceipt>
{
public InventoryReceiptApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class InventorySummaryInquiryApi : EntityAPI<InventorySummaryInquiry>
public class InventorySummaryInquiryApi : BaseEndpointApi<InventorySummaryInquiry>
{
public InventorySummaryInquiryApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/InvoiceApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class InvoiceApi : EntityAPI<Invoice>
public class InvoiceApi : BaseEndpointApi<Invoice>
{
public InvoiceApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/ItemClassApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class ItemClassApi : EntityAPI<ItemClass>
public class ItemClassApi : BaseEndpointApi<ItemClass>
{
public ItemClassApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/ItemSalesCategoryApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class ItemSalesCategoryApi : EntityAPI<ItemSalesCategory>
public class ItemSalesCategoryApi : BaseEndpointApi<ItemSalesCategory>
{
public ItemSalesCategoryApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/ItemWarehouseApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class ItemWarehouseApi : EntityAPI<ItemWarehouse>
public class ItemWarehouseApi : BaseEndpointApi<ItemWarehouse>
{
public ItemWarehouseApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/JournalTransactionApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class JournalTransactionApi : EntityAPI<JournalTransaction>
public class JournalTransactionApi : BaseEndpointApi<JournalTransaction>
{
public JournalTransactionApi(Configuration configuration) : base(configuration)
{ }
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Default_17.200.001/Api/JournalVoucherApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Acumatica.Default_17_200_001.Api
{
public class JournalVoucherApi : EntityAPI<JournalVoucher>
public class JournalVoucherApi : BaseEndpointApi<JournalVoucher>
{
public JournalVoucherApi(Configuration configuration) : base(configuration)
{ }
Expand Down
Loading

0 comments on commit 488c109

Please sign in to comment.