Skip to content

Commit

Permalink
Generate java client & update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-vinod committed May 23, 2023
1 parent 762194d commit d97651b
Show file tree
Hide file tree
Showing 98 changed files with 7,837 additions and 1,399 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ hs_err_pid*
target
.gradle
build
.DS_Store
.idea
28 changes: 22 additions & 6 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ docs/Computation.md
docs/ComputeRevenueSummaryRequest.md
docs/ComputeRevenueSummaryResponse.md
docs/CreateAccountRequest.md
docs/CreateAccountRequestWithoutCustomerId.md
docs/CreateAddOnRequest.md
docs/CreateCreditRequest.md
docs/CreateCustomerRequest.md
Expand All @@ -48,6 +49,7 @@ docs/CustomerPaginatedResponse.md
docs/CustomersApi.md
docs/Dependency.md
docs/DimensionsSchema.md
docs/EditPricingScheduleRequest.md
docs/EnrichedField.md
docs/EnrichmentDependency.md
docs/Enrichments.md
Expand All @@ -69,19 +71,19 @@ docs/EventSchemaListDataAllOf.md
docs/EventSchemaListPaginatedResponse.md
docs/EventSchemaVersionsResponse.md
docs/EventSchemasApi.md
docs/EventSource.md
docs/EventWithStatus.md
docs/EventWithStatusAndEventPipelineInfo.md
docs/EventWithStatusAndEventPipelineInfoAllOf.md
docs/Field.md
docs/FixedFeeRate.md
docs/FixedFeeRateCard.md
docs/FixedFeeType.md
docs/GetEventResponse.md
docs/GetEventsResponse.md
docs/GetMetricsRequest.md
docs/GetMetricsResponse.md
docs/IngestBatchEventRequest.md
docs/IngestBatchEventResponse.md
docs/IngestError.md
docs/IngestEventRequest.md
docs/IngestEventResponse.md
docs/IngestionStatus.md
Expand All @@ -98,6 +100,7 @@ docs/InvoiceTiming.md
docs/InvoicesApi.md
docs/ListCreditsResponse.md
docs/ListInvoicesResponse.md
docs/ManageMiscellaneousChargesRequest.md
docs/MetricDataPoints.md
docs/MetricDataPointsGroupedBy.md
docs/MetricName.md
Expand All @@ -106,10 +109,12 @@ docs/MetricQueryFilterEntry.md
docs/MetricQueryResponse.md
docs/MetricsApi.md
docs/MinimumCommitment.md
docs/MiscellaneousApi.md
docs/MiscellaneousCharge.md
docs/MiscellaneousChargesResponse.md
docs/OrganizationSetting.md
docs/PaginationOptions.md
docs/PlanOverride.md
docs/PriceExperimentationApi.md
docs/PricePlan.md
docs/PricePlanDetails.md
docs/PricePlanDetailsConfig.md
Expand All @@ -123,6 +128,9 @@ docs/PricingCycleConfig.md
docs/PricingCycleConfigStartOffset.md
docs/PricingModel.md
docs/PricingSchedule.md
docs/PricingSchedulePaginatedResponse.md
docs/PricingScheduleWithPricePlanId.md
docs/PricingScheduleWithPricePlanIdAllOf.md
docs/RatePlan.md
docs/RateValue.md
docs/RemoveAccountAliasesRequest.md
Expand Down Expand Up @@ -198,7 +206,7 @@ src/main/java/com/togai/client/api/EventManagementApi.java
src/main/java/com/togai/client/api/EventSchemasApi.java
src/main/java/com/togai/client/api/InvoicesApi.java
src/main/java/com/togai/client/api/MetricsApi.java
src/main/java/com/togai/client/api/MiscellaneousApi.java
src/main/java/com/togai/client/api/PriceExperimentationApi.java
src/main/java/com/togai/client/api/PricePlansApi.java
src/main/java/com/togai/client/api/SettingsApi.java
src/main/java/com/togai/client/api/UsageMetersApi.java
Expand All @@ -224,6 +232,7 @@ src/main/java/com/togai/client/models/Computation.java
src/main/java/com/togai/client/models/ComputeRevenueSummaryRequest.java
src/main/java/com/togai/client/models/ComputeRevenueSummaryResponse.java
src/main/java/com/togai/client/models/CreateAccountRequest.java
src/main/java/com/togai/client/models/CreateAccountRequestWithoutCustomerId.java
src/main/java/com/togai/client/models/CreateAddOnRequest.java
src/main/java/com/togai/client/models/CreateCreditRequest.java
src/main/java/com/togai/client/models/CreateCustomerRequest.java
Expand All @@ -246,6 +255,7 @@ src/main/java/com/togai/client/models/Customer.java
src/main/java/com/togai/client/models/CustomerPaginatedResponse.java
src/main/java/com/togai/client/models/Dependency.java
src/main/java/com/togai/client/models/DimensionsSchema.java
src/main/java/com/togai/client/models/EditPricingScheduleRequest.java
src/main/java/com/togai/client/models/EnrichedField.java
src/main/java/com/togai/client/models/EnrichmentDependency.java
src/main/java/com/togai/client/models/Enrichments.java
Expand All @@ -264,19 +274,19 @@ src/main/java/com/togai/client/models/EventSchemaListData.java
src/main/java/com/togai/client/models/EventSchemaListDataAllOf.java
src/main/java/com/togai/client/models/EventSchemaListPaginatedResponse.java
src/main/java/com/togai/client/models/EventSchemaVersionsResponse.java
src/main/java/com/togai/client/models/EventSource.java
src/main/java/com/togai/client/models/EventWithStatus.java
src/main/java/com/togai/client/models/EventWithStatusAndEventPipelineInfo.java
src/main/java/com/togai/client/models/EventWithStatusAndEventPipelineInfoAllOf.java
src/main/java/com/togai/client/models/Field.java
src/main/java/com/togai/client/models/FixedFeeRate.java
src/main/java/com/togai/client/models/FixedFeeRateCard.java
src/main/java/com/togai/client/models/FixedFeeType.java
src/main/java/com/togai/client/models/GetEventResponse.java
src/main/java/com/togai/client/models/GetEventsResponse.java
src/main/java/com/togai/client/models/GetMetricsRequest.java
src/main/java/com/togai/client/models/GetMetricsResponse.java
src/main/java/com/togai/client/models/IngestBatchEventRequest.java
src/main/java/com/togai/client/models/IngestBatchEventResponse.java
src/main/java/com/togai/client/models/IngestError.java
src/main/java/com/togai/client/models/IngestEventRequest.java
src/main/java/com/togai/client/models/IngestEventResponse.java
src/main/java/com/togai/client/models/IngestionStatus.java
Expand All @@ -292,13 +302,16 @@ src/main/java/com/togai/client/models/InvoiceLineItem.java
src/main/java/com/togai/client/models/InvoiceTiming.java
src/main/java/com/togai/client/models/ListCreditsResponse.java
src/main/java/com/togai/client/models/ListInvoicesResponse.java
src/main/java/com/togai/client/models/ManageMiscellaneousChargesRequest.java
src/main/java/com/togai/client/models/MetricDataPoints.java
src/main/java/com/togai/client/models/MetricDataPointsGroupedBy.java
src/main/java/com/togai/client/models/MetricName.java
src/main/java/com/togai/client/models/MetricQuery.java
src/main/java/com/togai/client/models/MetricQueryFilterEntry.java
src/main/java/com/togai/client/models/MetricQueryResponse.java
src/main/java/com/togai/client/models/MinimumCommitment.java
src/main/java/com/togai/client/models/MiscellaneousCharge.java
src/main/java/com/togai/client/models/MiscellaneousChargesResponse.java
src/main/java/com/togai/client/models/OrganizationSetting.java
src/main/java/com/togai/client/models/PaginationOptions.java
src/main/java/com/togai/client/models/PlanOverride.java
Expand All @@ -314,6 +327,9 @@ src/main/java/com/togai/client/models/PricingCycleConfig.java
src/main/java/com/togai/client/models/PricingCycleConfigStartOffset.java
src/main/java/com/togai/client/models/PricingModel.java
src/main/java/com/togai/client/models/PricingSchedule.java
src/main/java/com/togai/client/models/PricingSchedulePaginatedResponse.java
src/main/java/com/togai/client/models/PricingScheduleWithPricePlanId.java
src/main/java/com/togai/client/models/PricingScheduleWithPricePlanIdAllOf.java
src/main/java/com/togai/client/models/RatePlan.java
src/main/java/com/togai/client/models/RateValue.java
src/main/java/com/togai/client/models/RemoveAccountAliasesRequest.java
Expand Down
13 changes: 8 additions & 5 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
### These are the steps for running the examples

```
./gradlew build
./gradlew build shadowJar
mvn clean package
```
Replace the '{{Version}}' with the actual version
Then manually install the following JARs:

* `target/togai-java-client-1.0.2.jar`
* `target/lib/*.jar`

```
javac -cp ".:build/libs/togai-java-client-{{version}}.jar" examples/Example.java
java -cp ".:examples:build/libs/togai-java-client-{{version}}-all.jar" Example
mvn compile exec:java -Dexec.mainClass="Example"
```
50 changes: 31 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ public class Example {
bearerAuth.setBearerToken("BEARER TOKEN");

AccountsApi apiInstance = new AccountsApi(defaultClient);
String customerId = "customerId_example"; // String |
String accountId = "accountId_example"; // String | account_id corresponding to an account
AddAccountAliasesRequest addAccountAliasesRequest = new AddAccountAliasesRequest(); // AddAccountAliasesRequest | Payload to add aliases to account
try {
Account result = apiInstance.addAliases(customerId, accountId, addAccountAliasesRequest);
Account result = apiInstance.addAliases(accountId, addAccountAliasesRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#addAliases");
Expand All @@ -120,14 +119,16 @@ All URIs are relative to *https://api.togai.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccountsApi* | [**addAliases**](docs/AccountsApi.md#addAliases) | **POST** /customers/{customer_id}/accounts/{account_id}/add_aliases | Add Aliases to account
*AccountsApi* | [**createAccount**](docs/AccountsApi.md#createAccount) | **POST** /customers/{customer_id}/accounts | Create an account
*AccountsApi* | [**deleteAccount**](docs/AccountsApi.md#deleteAccount) | **DELETE** /customers/{customer_id}/accounts/{account_id} | Delete an account
*AccountsApi* | [**getAccount**](docs/AccountsApi.md#getAccount) | **GET** /customers/{customer_id}/accounts/{account_id} | Get an account
*AccountsApi* | [**getAccounts**](docs/AccountsApi.md#getAccounts) | **GET** /customers/{customer_id}/accounts | List accounts of customer
*AccountsApi* | [**removeAliases**](docs/AccountsApi.md#removeAliases) | **POST** /customers/{customer_id}/accounts/{account_id}/remove_aliases | Remove Aliases to account
*AccountsApi* | [**updateAccount**](docs/AccountsApi.md#updateAccount) | **PATCH** /customers/{customer_id}/accounts/{account_id} | Update an account
*AccountsApi* | [**updatePricingSchedule**](docs/AccountsApi.md#updatePricingSchedule) | **POST** /customers/{customer_id}/accounts/{account_id}/price_plans | Dis/associate a plan from/to an account
*AccountsApi* | [**addAliases**](docs/AccountsApi.md#addAliases) | **POST** /accounts/{account_id}/add_aliases | Add Aliases to account
*AccountsApi* | [**createAccount**](docs/AccountsApi.md#createAccount) | **POST** /accounts | Create an account
*AccountsApi* | [**deleteAccount**](docs/AccountsApi.md#deleteAccount) | **DELETE** /accounts/{account_id} | Delete an account
*AccountsApi* | [**getAccount**](docs/AccountsApi.md#getAccount) | **GET** /accounts/{account_id} | Get an account
*AccountsApi* | [**getAccounts**](docs/AccountsApi.md#getAccounts) | **GET** /accounts | List accounts of customer
*AccountsApi* | [**getPricingSchedules**](docs/AccountsApi.md#getPricingSchedules) | **GET** /accounts/{account_id}/pricing_schedules | List pricing schedules of an account
*AccountsApi* | [**removeAliases**](docs/AccountsApi.md#removeAliases) | **POST** /accounts/{account_id}/remove_aliases | Remove Aliases to account
*AccountsApi* | [**updateAccount**](docs/AccountsApi.md#updateAccount) | **PATCH** /accounts/{account_id} | Update an account
*AccountsApi* | [**updatePricingSchedule**](docs/AccountsApi.md#updatePricingSchedule) | **POST** /accounts/{account_id}/price_plans | Dis/associate a plan from/to an account
*AccountsApi* | [**updatePricingScheduleBatch**](docs/AccountsApi.md#updatePricingScheduleBatch) | **POST** /accounts/{account_id}/edit_schedules | Edit schedules of an account.
*AddOnsApi* | [**createAddOn**](docs/AddOnsApi.md#createAddOn) | **POST** /addons | Create an AddOn
*AddOnsApi* | [**deleteAddOn**](docs/AddOnsApi.md#deleteAddOn) | **DELETE** /addons/{addon_id} | Delete an addon
*AddOnsApi* | [**getAddOn**](docs/AddOnsApi.md#getAddOn) | **GET** /addons/{addon_id} | Get an addon
Expand Down Expand Up @@ -157,8 +158,10 @@ Class | Method | HTTP request | Description
*EventSchemasApi* | [**listEventSchemas**](docs/EventSchemasApi.md#listEventSchemas) | **GET** /event_schema | List event schemas
*InvoicesApi* | [**getInvoice**](docs/InvoicesApi.md#getInvoice) | **GET** /invoices/{invoice_id} | Get an invoice
*InvoicesApi* | [**listInvoices**](docs/InvoicesApi.md#listInvoices) | **GET** /invoices | List invoices
*InvoicesApi* | [**manageMiscellaneousChargesInAccount**](docs/InvoicesApi.md#manageMiscellaneousChargesInAccount) | **PUT** /accounts/{account_id}/miscellaneous_charges | Add or update miscellaneous charges in upcoming Invoice for a account
*InvoicesApi* | [**manageMiscellaneousChargesInInvoice**](docs/InvoicesApi.md#manageMiscellaneousChargesInInvoice) | **PUT** /invoices/{invoice_id}/miscellaneous_charges | Add or update miscellaneous charges in Invoice
*MetricsApi* | [**getMetrics**](docs/MetricsApi.md#getMetrics) | **POST** /metrics | Get Togai Metrics
*MiscellaneousApi* | [**calculateRevenue**](docs/MiscellaneousApi.md#calculateRevenue) | **POST** /revenue_calculator | Calculate and return the revenue for a existing or new price plan
*PriceExperimentationApi* | [**calculateRevenue**](docs/PriceExperimentationApi.md#calculateRevenue) | **POST** /revenue_calculator | Calculate and return the revenue for a existing or new price plan
*PricePlansApi* | [**activatePricePlan**](docs/PricePlansApi.md#activatePricePlan) | **POST** /price_plans/{price_plan_id}/activate | Activate a price plan
*PricePlansApi* | [**addCurrencyToPricePlan**](docs/PricePlansApi.md#addCurrencyToPricePlan) | **POST** /price_plans/{price_plan_id}/currencies | Add currencies to a price plan
*PricePlansApi* | [**createPricePlan**](docs/PricePlansApi.md#createPricePlan) | **POST** /price_plans | Create a price plan
Expand All @@ -170,12 +173,13 @@ Class | Method | HTTP request | Description
*SettingsApi* | [**insertSetting**](docs/SettingsApi.md#insertSetting) | **POST** /settings | Create a setting
*SettingsApi* | [**listSetting**](docs/SettingsApi.md#listSetting) | **GET** /settings | Lists settings
*SettingsApi* | [**updateSetting**](docs/SettingsApi.md#updateSetting) | **PATCH** /settings/{setting_id_str} | Update a setting
*UsageMetersApi* | [**activateUsageMeter**](docs/UsageMetersApi.md#activateUsageMeter) | **POST** /event_schema/{event_schema_name}/usage_meters/{usage_meter_id}/activate | Activate usage meter
*UsageMetersApi* | [**createUsageMeter**](docs/UsageMetersApi.md#createUsageMeter) | **POST** /event_schema/{event_schema_name}/usage_meters | Create an usage meter
*UsageMetersApi* | [**deactivateUsageMeter**](docs/UsageMetersApi.md#deactivateUsageMeter) | **POST** /event_schema/{event_schema_name}/usage_meters/{usage_meter_id}/deactivate | Deactivate usage meter
*UsageMetersApi* | [**getUsageMeter**](docs/UsageMetersApi.md#getUsageMeter) | **GET** /event_schema/{event_schema_name}/usage_meters/{usage_meter_id} | Get usage meter
*UsageMetersApi* | [**getUsageMetersForEventSchema**](docs/UsageMetersApi.md#getUsageMetersForEventSchema) | **GET** /event_schema/{event_schema_name}/usage_meters | List usage meters for event schema
*UsageMetersApi* | [**updateUsageMeter**](docs/UsageMetersApi.md#updateUsageMeter) | **PATCH** /event_schema/{event_schema_name}/usage_meters/{usage_meter_id} | Update an usage meter
*UsageMetersApi* | [**activateUsageMeter**](docs/UsageMetersApi.md#activateUsageMeter) | **POST** /usage_meters/{usage_meter_id}/activate | Activate usage meter
*UsageMetersApi* | [**createUsageMeter**](docs/UsageMetersApi.md#createUsageMeter) | **POST** /usage_meters | Create an usage meter
*UsageMetersApi* | [**deactivateUsageMeter**](docs/UsageMetersApi.md#deactivateUsageMeter) | **POST** /usage_meters/{usage_meter_id}/deactivate | Deactivate usage meter
*UsageMetersApi* | [**deleteUsageMeter**](docs/UsageMetersApi.md#deleteUsageMeter) | **DELETE** /usage_meters/{usage_meter_id} | Delete an Usage Meter
*UsageMetersApi* | [**getUsageMeter**](docs/UsageMetersApi.md#getUsageMeter) | **GET** /usage_meters/{usage_meter_id} | Get usage meter
*UsageMetersApi* | [**getUsageMetersForEventSchema**](docs/UsageMetersApi.md#getUsageMetersForEventSchema) | **GET** /usage_meters | List usage meters for event schema
*UsageMetersApi* | [**updateUsageMeter**](docs/UsageMetersApi.md#updateUsageMeter) | **PATCH** /usage_meters/{usage_meter_id} | Update an usage meter


## Documentation for Models
Expand All @@ -197,6 +201,7 @@ Class | Method | HTTP request | Description
- [ComputeRevenueSummaryRequest](docs/ComputeRevenueSummaryRequest.md)
- [ComputeRevenueSummaryResponse](docs/ComputeRevenueSummaryResponse.md)
- [CreateAccountRequest](docs/CreateAccountRequest.md)
- [CreateAccountRequestWithoutCustomerId](docs/CreateAccountRequestWithoutCustomerId.md)
- [CreateAddOnRequest](docs/CreateAddOnRequest.md)
- [CreateCreditRequest](docs/CreateCreditRequest.md)
- [CreateCustomerRequest](docs/CreateCustomerRequest.md)
Expand All @@ -219,6 +224,7 @@ Class | Method | HTTP request | Description
- [CustomerPaginatedResponse](docs/CustomerPaginatedResponse.md)
- [Dependency](docs/Dependency.md)
- [DimensionsSchema](docs/DimensionsSchema.md)
- [EditPricingScheduleRequest](docs/EditPricingScheduleRequest.md)
- [EnrichedField](docs/EnrichedField.md)
- [EnrichmentDependency](docs/EnrichmentDependency.md)
- [Enrichments](docs/Enrichments.md)
Expand All @@ -237,19 +243,19 @@ Class | Method | HTTP request | Description
- [EventSchemaListDataAllOf](docs/EventSchemaListDataAllOf.md)
- [EventSchemaListPaginatedResponse](docs/EventSchemaListPaginatedResponse.md)
- [EventSchemaVersionsResponse](docs/EventSchemaVersionsResponse.md)
- [EventSource](docs/EventSource.md)
- [EventWithStatus](docs/EventWithStatus.md)
- [EventWithStatusAndEventPipelineInfo](docs/EventWithStatusAndEventPipelineInfo.md)
- [EventWithStatusAndEventPipelineInfoAllOf](docs/EventWithStatusAndEventPipelineInfoAllOf.md)
- [Field](docs/Field.md)
- [FixedFeeRate](docs/FixedFeeRate.md)
- [FixedFeeRateCard](docs/FixedFeeRateCard.md)
- [FixedFeeType](docs/FixedFeeType.md)
- [GetEventResponse](docs/GetEventResponse.md)
- [GetEventsResponse](docs/GetEventsResponse.md)
- [GetMetricsRequest](docs/GetMetricsRequest.md)
- [GetMetricsResponse](docs/GetMetricsResponse.md)
- [IngestBatchEventRequest](docs/IngestBatchEventRequest.md)
- [IngestBatchEventResponse](docs/IngestBatchEventResponse.md)
- [IngestError](docs/IngestError.md)
- [IngestEventRequest](docs/IngestEventRequest.md)
- [IngestEventResponse](docs/IngestEventResponse.md)
- [IngestionStatus](docs/IngestionStatus.md)
Expand All @@ -265,13 +271,16 @@ Class | Method | HTTP request | Description
- [InvoiceTiming](docs/InvoiceTiming.md)
- [ListCreditsResponse](docs/ListCreditsResponse.md)
- [ListInvoicesResponse](docs/ListInvoicesResponse.md)
- [ManageMiscellaneousChargesRequest](docs/ManageMiscellaneousChargesRequest.md)
- [MetricDataPoints](docs/MetricDataPoints.md)
- [MetricDataPointsGroupedBy](docs/MetricDataPointsGroupedBy.md)
- [MetricName](docs/MetricName.md)
- [MetricQuery](docs/MetricQuery.md)
- [MetricQueryFilterEntry](docs/MetricQueryFilterEntry.md)
- [MetricQueryResponse](docs/MetricQueryResponse.md)
- [MinimumCommitment](docs/MinimumCommitment.md)
- [MiscellaneousCharge](docs/MiscellaneousCharge.md)
- [MiscellaneousChargesResponse](docs/MiscellaneousChargesResponse.md)
- [OrganizationSetting](docs/OrganizationSetting.md)
- [PaginationOptions](docs/PaginationOptions.md)
- [PlanOverride](docs/PlanOverride.md)
Expand All @@ -287,6 +296,9 @@ Class | Method | HTTP request | Description
- [PricingCycleConfigStartOffset](docs/PricingCycleConfigStartOffset.md)
- [PricingModel](docs/PricingModel.md)
- [PricingSchedule](docs/PricingSchedule.md)
- [PricingSchedulePaginatedResponse](docs/PricingSchedulePaginatedResponse.md)
- [PricingScheduleWithPricePlanId](docs/PricingScheduleWithPricePlanId.md)
- [PricingScheduleWithPricePlanIdAllOf](docs/PricingScheduleWithPricePlanIdAllOf.md)
- [RatePlan](docs/RatePlan.md)
- [RateValue](docs/RateValue.md)
- [RemoveAccountAliasesRequest](docs/RemoveAccountAliasesRequest.md)
Expand Down
Loading

0 comments on commit d97651b

Please sign in to comment.