From fa34f1b60d6ab0e3ba45a11d97bf1f3b33c8ae18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Denquin?= Date: Fri, 24 Nov 2023 15:47:50 +0100 Subject: [PATCH] misc(version): Generate version 0.52.0-beta (#4) * misc(version): Generate version 0.52.0-beta * add files * fix specs --- .openapi-generator/FILES | 117 +- .openapi-generator/VERSION | 2 +- README.md | 63 +- api/openapi.yaml | 2186 ++++++++++++++--- build.gradle | 14 +- config.yml | 2 +- docs/AddOnBaseInput.md | 1 + docs/AddOnCreateInputAddOn.md | 1 + docs/AddOnObject.md | 1 + docs/AddOnsApi.md | 76 - docs/AnalyticsApi.md | 304 +++ docs/AppliedAddOnInputAppliedAddOn.md | 16 - docs/AppliedAddOnObject.md | 20 - docs/BillableMetricBaseInput.md | 13 +- ...BillableMetricCreateInputBillableMetric.md | 13 +- docs/BillableMetricObject.md | 13 +- docs/ChargeObject.md | 1 + docs/CouponObject.md | 1 + docs/CreateWebhookEndpoint200Response.md | 13 - docs/CreateWebhookEndpointRequest.md | 13 - docs/CreditNoteCreateInputCreditNote.md | 2 +- docs/CreditNoteEstimateInput.md | 13 + docs/CreditNoteEstimateInputCreditNote.md | 14 + ...tNoteEstimateInputCreditNoteItemsInner.md} | 2 +- docs/CreditNoteEstimated.md | 13 + .../CreditNoteEstimatedEstimatedCreditNote.md | 23 + ...tedEstimatedCreditNoteAppliedTaxesInner.md | 20 + ...eEstimatedEstimatedCreditNoteItemsInner.md | 14 + docs/CreditNoteItemObjectFee.md | 10 +- docs/CreditNoteObject.md | 2 +- docs/CreditNotesApi.md | 75 + docs/CreditObjectItem.md | 2 +- docs/CustomerChargeUsageObject.md | 1 + docs/CustomerChargeUsageObjectCharge.md | 1 + docs/CustomerChargeUsageObjectGroupsInner.md | 1 + ...nts200Response.md => CustomerPastUsage.md} | 4 +- docs/CustomerUsageObject.md | 1 + docs/CustomersApi.md | 160 ++ docs/EventInputEvent.md | 4 +- docs/EventInputEventTimestamp.md | 13 + docs/EventObject.md | 2 +- docs/EventObjectProperties.md | 23 + docs/EventsApi.md | 9 +- docs/FeeObject.md | 10 +- docs/FeeObjectItem.md | 2 + .../GenerateCustomerCheckoutURL200Response.md | 17 + docs/GrossRevenueObject.md | 15 + ...{AppliedAddOnInput.md => GrossRevenues.md} | 4 +- docs/GroupPropertiesObject.md | 1 + ...nvoiceOneOffCreateInputInvoiceFeesInner.md | 1 + docs/InvoicedUsageObject.md | 16 + docs/InvoicedUsages.md | 13 + docs/MrrObject.md | 15 + docs/{AppliedAddOn.md => Mrrs.md} | 4 +- docs/OrganizationObject.md | 1 + docs/OrganizationUpdateInputOrganization.md | 1 + docs/OutstandingInvoiceObject.md | 27 + docs/OutstandingInvoices.md | 13 + docs/PlanCreateInputPlan.md | 1 + docs/PlanCreateInputPlanChargesInner.md | 1 + docs/PlanObject.md | 1 + docs/PlanOverridesObject.md | 21 + docs/PlanOverridesObjectChargesInner.md | 19 + docs/PlanUpdateInputPlan.md | 1 + docs/PlanUpdateInputPlanChargesInner.md | 1 + docs/Subscription.md | 2 +- docs/SubscriptionCreateInputSubscription.md | 2 + docs/SubscriptionObject.md | 1 + docs/SubscriptionObjectExtended.md | 50 + docs/SubscriptionUpdateInputSubscription.md | 2 + docs/SubscriptionsApi.md | 74 + docs/WebhookEndpoint.md | 13 + docs/WebhookEndpointCreateInput.md | 13 + ...hookEndpointCreateInputWebhookEndpoint.md} | 2 +- ...okEndpoint.md => WebhookEndpointObject.md} | 2 +- docs/WebhookEndpointUpdateInput.md | 13 + docs/WebhookEndpointsApi.md | 38 +- docs/WebhookEndpointsPaginated.md | 14 + pom.xml | 14 +- .../java/org/getlago/client/ApiClient.java | 4 +- .../org/getlago/client/JavaTimeFormatter.java | 4 +- .../org/getlago/client/RFC3339DateFormat.java | 2 +- .../java/org/getlago/client/StringUtil.java | 4 +- .../org/getlago/client/api/AddOnsApi.java | 96 +- .../org/getlago/client/api/AnalyticsApi.java | 360 +++ .../client/api/BillableMetricsApi.java | 2 +- .../org/getlago/client/api/CouponsApi.java | 2 +- .../getlago/client/api/CreditNotesApi.java | 86 +- .../org/getlago/client/api/CustomersApi.java | 206 +- .../org/getlago/client/api/EventsApi.java | 25 +- .../java/org/getlago/client/api/FeesApi.java | 2 +- .../org/getlago/client/api/InvoicesApi.java | 2 +- .../getlago/client/api/OrganizationsApi.java | 2 +- .../java/org/getlago/client/api/PlansApi.java | 2 +- .../getlago/client/api/SubscriptionsApi.java | 84 +- .../java/org/getlago/client/api/TaxesApi.java | 2 +- .../org/getlago/client/api/WalletsApi.java | 2 +- .../client/api/WebhookEndpointsApi.java | 141 +- .../org/getlago/client/api/WebhooksApi.java | 2 +- .../org/getlago/client/auth/ApiKeyAuth.java | 2 +- .../getlago/client/auth/HttpBasicAuth.java | 2 +- .../getlago/client/auth/HttpBearerAuth.java | 2 +- .../org/openapitools/client/model/AddOn.java | 4 +- .../client/model/AddOnBaseInput.java | 39 +- .../client/model/AddOnCreateInput.java | 4 +- .../client/model/AddOnCreateInputAddOn.java | 39 +- .../client/model/AddOnObject.java | 39 +- .../client/model/AddOnUpdateInput.java | 4 +- .../client/model/AddOnsPaginated.java | 5 +- .../client/model/ApiErrorBadRequest.java | 4 +- .../client/model/ApiErrorForbidden.java | 4 +- .../client/model/ApiErrorNotAllowed.java | 4 +- .../client/model/ApiErrorNotFound.java | 4 +- .../client/model/ApiErrorUnauthorized.java | 4 +- .../model/ApiErrorUnprocessableEntity.java | 4 +- .../model/AppliedAddOnInputAppliedAddOn.java | 224 -- .../client/model/AppliedAddOnObject.java | 330 --- .../client/model/AppliedCoupon.java | 4 +- .../client/model/AppliedCouponInput.java | 4 +- .../AppliedCouponInputAppliedCoupon.java | 4 +- .../client/model/AppliedCouponObject.java | 4 +- .../model/AppliedCouponObjectExtended.java | 5 +- .../client/model/AppliedCouponsPaginated.java | 5 +- .../client/model/BaseAppliedTax.java | 4 +- .../client/model/BillableMetric.java | 4 +- .../client/model/BillableMetricBaseInput.java | 89 +- .../model/BillableMetricCreateInput.java | 4 +- ...llableMetricCreateInputBillableMetric.java | 89 +- .../client/model/BillableMetricGroup.java | 5 +- .../model/BillableMetricGroupValuesInner.java | 5 +- .../BillableMetricGroupValuesInnerOneOf.java | 5 +- .../client/model/BillableMetricObject.java | 89 +- .../model/BillableMetricUpdateInput.java | 4 +- .../model/BillableMetricsPaginated.java | 5 +- .../client/model/ChargeObject.java | 39 +- .../client/model/ChargeObjectProperties.java | 5 +- .../client/model/ChargeProperties.java | 5 +- ...pertiesGraduatedPercentageRangesInner.java | 4 +- .../ChargePropertiesGraduatedRangesInner.java | 4 +- .../ChargePropertiesVolumeRangesInner.java | 4 +- .../openapitools/client/model/Country.java | 2 +- .../org/openapitools/client/model/Coupon.java | 4 +- .../client/model/CouponBaseInput.java | 4 +- .../model/CouponBaseInputAppliesTo.java | 5 +- .../client/model/CouponCreateInput.java | 4 +- .../client/model/CouponCreateInputCoupon.java | 4 +- .../client/model/CouponObject.java | 43 +- .../client/model/CouponUpdateInput.java | 4 +- .../client/model/CouponsPaginated.java | 5 +- .../openapitools/client/model/CreditNote.java | 4 +- .../model/CreditNoteAppliedTaxObject.java | 4 +- .../client/model/CreditNoteCreateInput.java | 4 +- .../CreditNoteCreateInputCreditNote.java | 17 +- ...nput.java => CreditNoteEstimateInput.java} | 48 +- .../CreditNoteEstimateInputCreditNote.java | 149 ++ ...oteEstimateInputCreditNoteItemsInner.java} | 28 +- .../client/model/CreditNoteEstimated.java | 104 + ...reditNoteEstimatedEstimatedCreditNote.java | 448 ++++ ...dEstimatedCreditNoteAppliedTaxesInner.java | 331 +++ ...stimatedEstimatedCreditNoteItemsInner.java | 137 ++ .../client/model/CreditNoteItemObject.java | 4 +- .../client/model/CreditNoteItemObjectFee.java | 79 +- .../client/model/CreditNoteObject.java | 35 +- .../client/model/CreditNoteUpdateInput.java | 4 +- .../CreditNoteUpdateInputCreditNote.java | 4 +- .../client/model/CreditNotes.java | 5 +- .../client/model/CreditObject.java | 4 +- .../client/model/CreditObjectInvoice.java | 4 +- .../client/model/CreditObjectItem.java | 34 +- .../openapitools/client/model/Currency.java | 2 +- .../openapitools/client/model/Customer.java | 4 +- .../model/CustomerBillingConfiguration.java | 5 +- .../model/CustomerChargeUsageObject.java | 39 +- ...stomerChargeUsageObjectBillableMetric.java | 4 +- .../CustomerChargeUsageObjectCharge.java | 42 +- .../CustomerChargeUsageObjectGroupsInner.java | 38 +- .../client/model/CustomerCreateInput.java | 4 +- .../model/CustomerCreateInputCustomer.java | 5 +- ...tomerCreateInputCustomerMetadataInner.java | 4 +- .../client/model/CustomerMetadata.java | 4 +- .../client/model/CustomerObject.java | 5 +- .../client/model/CustomerObjectExtended.java | 5 +- .../client/model/CustomerPastUsage.java | 148 ++ .../client/model/CustomerUsage.java | 4 +- .../client/model/CustomerUsageObject.java | 63 +- .../client/model/CustomersPaginated.java | 5 +- .../org/openapitools/client/model/Event.java | 4 +- .../client/model/EventBatchInput.java | 4 +- .../client/model/EventBatchInputEvent.java | 5 +- .../model/EventBatchInputEventProperties.java | 4 +- .../client/model/EventEstimateFeesInput.java | 4 +- .../model/EventEstimateFeesInputEvent.java | 4 +- .../openapitools/client/model/EventInput.java | 4 +- .../client/model/EventInputEvent.java | 36 +- .../model/EventInputEventTimestamp.java | 68 + .../client/model/EventObject.java | 22 +- .../client/model/EventObjectProperties.java | 144 ++ .../org/openapitools/client/model/Fee.java | 4 +- .../client/model/FeeAppliedTaxObject.java | 4 +- .../openapitools/client/model/FeeObject.java | 79 +- .../client/model/FeeObjectItem.java | 70 +- .../client/model/FeeUpdateInput.java | 4 +- .../client/model/FeeUpdateInputFee.java | 4 +- .../org/openapitools/client/model/Fees.java | 5 +- .../client/model/FeesPaginated.java | 5 +- ...enerateCustomerCheckoutURL200Response.java | 200 ++ .../GetCustomerPortalUrl200Response.java | 4 +- ...tCustomerPortalUrl200ResponseCustomer.java | 4 +- .../client/model/GrossRevenueObject.java | 168 ++ .../client/model/GrossRevenues.java | 115 + .../client/model/GroupObject.java | 4 +- .../client/model/GroupPropertiesObject.java | 38 +- .../model/GroupPropertiesObjectValues.java | 5 +- .../client/model/GroupsPaginated.java | 5 +- .../openapitools/client/model/Invoice.java | 4 +- .../client/model/InvoiceAppliedTaxObject.java | 4 +- .../client/model/InvoiceMetadataObject.java | 4 +- .../client/model/InvoiceObject.java | 5 +- .../client/model/InvoiceObjectCustomer.java | 5 +- .../client/model/InvoiceObjectExtended.java | 5 +- .../model/InvoiceOneOffCreateInput.java | 4 +- .../InvoiceOneOffCreateInputInvoice.java | 5 +- ...oiceOneOffCreateInputInvoiceFeesInner.java | 39 +- .../client/model/InvoiceUpdateInput.java | 4 +- .../model/InvoiceUpdateInputInvoice.java | 5 +- ...nvoiceUpdateInputInvoiceMetadataInner.java | 4 +- .../client/model/InvoicedUsageObject.java | 200 ++ .../client/model/InvoicedUsages.java | 115 + .../client/model/InvoicesPaginated.java | 5 +- .../openapitools/client/model/MrrObject.java | 168 ++ .../model/{AppliedAddOn.java => Mrrs.java} | 59 +- .../client/model/Organization.java | 4 +- .../OrganizationBillingConfiguration.java | 4 +- .../client/model/OrganizationObject.java | 40 +- .../client/model/OrganizationUpdateInput.java | 4 +- .../OrganizationUpdateInputOrganization.java | 40 +- .../model/OutstandingInvoiceObject.java | 269 ++ .../client/model/OutstandingInvoices.java | 115 + .../client/model/PaginationMeta.java | 4 +- .../org/openapitools/client/model/Plan.java | 4 +- .../client/model/PlanCreateInput.java | 4 +- .../client/model/PlanCreateInputPlan.java | 39 +- .../PlanCreateInputPlanChargesInner.java | 39 +- ...tPlanChargesInnerGroupPropertiesInner.java | 4 +- .../openapitools/client/model/PlanObject.java | 39 +- .../client/model/PlanOverridesObject.java | 349 +++ .../PlanOverridesObjectChargesInner.java | 318 +++ .../client/model/PlanUpdateInput.java | 4 +- .../client/model/PlanUpdateInputPlan.java | 39 +- .../PlanUpdateInputPlanChargesInner.java | 39 +- .../client/model/PlansPaginated.java | 5 +- .../client/model/Subscription.java | 14 +- .../client/model/SubscriptionCreateInput.java | 4 +- .../SubscriptionCreateInputSubscription.java | 75 +- .../client/model/SubscriptionObject.java | 38 +- .../model/SubscriptionObjectExtended.java | 795 ++++++ .../client/model/SubscriptionUpdateInput.java | 4 +- .../SubscriptionUpdateInputSubscription.java | 75 +- .../client/model/SubscriptionsPaginated.java | 5 +- .../org/openapitools/client/model/Tax.java | 4 +- .../client/model/TaxBaseInput.java | 4 +- .../client/model/TaxCreateInput.java | 4 +- .../client/model/TaxCreateInputTax.java | 4 +- .../openapitools/client/model/TaxObject.java | 4 +- .../client/model/TaxUpdateInput.java | 4 +- .../client/model/TaxesPaginated.java | 5 +- .../openapitools/client/model/Timezone.java | 2 +- .../org/openapitools/client/model/Wallet.java | 4 +- .../client/model/WalletCreateInput.java | 4 +- .../client/model/WalletCreateInputWallet.java | 4 +- .../client/model/WalletObject.java | 4 +- .../model/WalletTransactionCreateInput.java | 4 +- ...ansactionCreateInputWalletTransaction.java | 4 +- .../client/model/WalletTransactionObject.java | 4 +- .../client/model/WalletTransactions.java | 5 +- .../model/WalletTransactionsPaginated.java | 5 +- .../client/model/WalletUpdateInput.java | 4 +- .../client/model/WalletUpdateInputWallet.java | 4 +- .../client/model/WalletsPaginated.java | 5 +- ...t200Response.java => WebhookEndpoint.java} | 29 +- ...t.java => WebhookEndpointCreateInput.java} | 29 +- ...okEndpointCreateInputWebhookEndpoint.java} | 28 +- ...dpoint.java => WebhookEndpointObject.java} | 45 +- .../model/WebhookEndpointUpdateInput.java | 104 + ...se.java => WebhookEndpointsPaginated.java} | 37 +- .../org/getlago/client/api/AddOnsApiTest.java | 17 +- .../getlago/client/api/AnalyticsApiTest.java | 94 + .../client/api/BillableMetricsApiTest.java | 2 +- .../getlago/client/api/CouponsApiTest.java | 2 +- .../client/api/CreditNotesApiTest.java | 17 +- .../getlago/client/api/CustomersApiTest.java | 35 +- .../org/getlago/client/api/EventsApiTest.java | 4 +- .../org/getlago/client/api/FeesApiTest.java | 2 +- .../getlago/client/api/InvoicesApiTest.java | 2 +- .../client/api/OrganizationsApiTest.java | 2 +- .../org/getlago/client/api/PlansApiTest.java | 2 +- .../client/api/SubscriptionsApiTest.java | 15 +- .../org/getlago/client/api/TaxesApiTest.java | 2 +- .../getlago/client/api/WalletsApiTest.java | 2 +- .../client/api/WebhookEndpointsApiTest.java | 23 +- .../getlago/client/api/WebhooksApiTest.java | 2 +- .../client/model/AddOnBaseInputTest.java | 11 +- .../model/AddOnCreateInputAddOnTest.java | 11 +- .../client/model/AddOnCreateInputTest.java | 2 +- .../client/model/AddOnObjectTest.java | 11 +- .../openapitools/client/model/AddOnTest.java | 2 +- .../client/model/AddOnUpdateInputTest.java | 2 +- .../client/model/AddOnsPaginatedTest.java | 3 +- .../client/model/ApiErrorBadRequestTest.java | 2 +- .../client/model/ApiErrorForbiddenTest.java | 2 +- .../client/model/ApiErrorNotAllowedTest.java | 2 +- .../client/model/ApiErrorNotFoundTest.java | 2 +- .../model/ApiErrorUnauthorizedTest.java | 2 +- .../ApiErrorUnprocessableEntityTest.java | 2 +- .../AppliedCouponInputAppliedCouponTest.java | 2 +- .../client/model/AppliedCouponInputTest.java | 2 +- .../AppliedCouponObjectExtendedTest.java | 3 +- .../client/model/AppliedCouponObjectTest.java | 2 +- .../client/model/AppliedCouponTest.java | 2 +- .../model/AppliedCouponsPaginatedTest.java | 3 +- .../client/model/BaseAppliedTaxTest.java | 2 +- .../model/BillableMetricBaseInputTest.java | 10 +- ...leMetricCreateInputBillableMetricTest.java | 10 +- .../model/BillableMetricCreateInputTest.java | 2 +- .../client/model/BillableMetricGroupTest.java | 3 +- ...llableMetricGroupValuesInnerOneOfTest.java | 3 +- .../BillableMetricGroupValuesInnerTest.java | 3 +- .../model/BillableMetricObjectTest.java | 10 +- .../client/model/BillableMetricTest.java | 2 +- .../model/BillableMetricUpdateInputTest.java | 2 +- .../model/BillableMetricsPaginatedTest.java | 3 +- .../model/ChargeObjectPropertiesTest.java | 3 +- .../client/model/ChargeObjectTest.java | 11 +- ...iesGraduatedPercentageRangesInnerTest.java | 2 +- ...rgePropertiesGraduatedRangesInnerTest.java | 2 +- .../client/model/ChargePropertiesTest.java | 3 +- ...ChargePropertiesVolumeRangesInnerTest.java | 2 +- .../client/model/CountryTest.java | 2 +- .../model/CouponBaseInputAppliesToTest.java | 3 +- .../client/model/CouponBaseInputTest.java | 2 +- .../model/CouponCreateInputCouponTest.java | 2 +- .../client/model/CouponCreateInputTest.java | 2 +- .../client/model/CouponObjectTest.java | 11 +- .../openapitools/client/model/CouponTest.java | 2 +- .../client/model/CouponUpdateInputTest.java | 2 +- .../client/model/CouponsPaginatedTest.java | 3 +- .../model/CreditNoteAppliedTaxObjectTest.java | 2 +- .../CreditNoteCreateInputCreditNoteTest.java | 5 +- .../model/CreditNoteCreateInputTest.java | 2 +- ...stimateInputCreditNoteItemsInnerTest.java} | 14 +- ...CreditNoteEstimateInputCreditNoteTest.java | 60 + .../model/CreditNoteEstimateInputTest.java | 48 + ...imatedCreditNoteAppliedTaxesInnerTest.java | 106 + ...atedEstimatedCreditNoteItemsInnerTest.java | 56 + ...tNoteEstimatedEstimatedCreditNoteTest.java | 135 + .../client/model/CreditNoteEstimatedTest.java | 48 + .../model/CreditNoteItemObjectFeeTest.java | 19 +- .../model/CreditNoteItemObjectTest.java | 2 +- .../client/model/CreditNoteObjectTest.java | 9 +- .../client/model/CreditNoteTest.java | 2 +- .../CreditNoteUpdateInputCreditNoteTest.java | 2 +- .../model/CreditNoteUpdateInputTest.java | 2 +- .../client/model/CreditNotesTest.java | 3 +- .../client/model/CreditObjectInvoiceTest.java | 2 +- .../client/model/CreditObjectItemTest.java | 8 +- .../client/model/CreditObjectTest.java | 2 +- .../client/model/CurrencyTest.java | 2 +- .../CustomerBillingConfigurationTest.java | 3 +- ...erChargeUsageObjectBillableMetricTest.java | 2 +- .../CustomerChargeUsageObjectChargeTest.java | 10 +- ...tomerChargeUsageObjectGroupsInnerTest.java | 10 +- .../model/CustomerChargeUsageObjectTest.java | 11 +- ...rCreateInputCustomerMetadataInnerTest.java | 2 +- .../CustomerCreateInputCustomerTest.java | 3 +- .../client/model/CustomerCreateInputTest.java | 2 +- .../client/model/CustomerMetadataTest.java | 2 +- .../model/CustomerObjectExtendedTest.java | 3 +- .../client/model/CustomerObjectTest.java | 3 +- .../client/model/CustomerPastUsageTest.java | 60 + .../client/model/CustomerTest.java | 2 +- .../client/model/CustomerUsageObjectTest.java | 16 +- .../client/model/CustomerUsageTest.java | 2 +- .../client/model/CustomersPaginatedTest.java | 3 +- .../EventBatchInputEventPropertiesTest.java | 2 +- .../model/EventBatchInputEventTest.java | 3 +- .../client/model/EventBatchInputTest.java | 2 +- .../EventEstimateFeesInputEventTest.java | 2 +- .../model/EventEstimateFeesInputTest.java | 2 +- .../client/model/EventInputEventTest.java | 6 +- .../model/EventInputEventTimestampTest.java | 35 + .../client/model/EventInputTest.java | 2 +- ...st.java => EventObjectPropertiesTest.java} | 23 +- .../client/model/EventObjectTest.java | 4 +- .../openapitools/client/model/EventTest.java | 2 +- .../client/model/FeeAppliedTaxObjectTest.java | 2 +- .../client/model/FeeObjectItemTest.java | 18 +- .../client/model/FeeObjectTest.java | 19 +- .../openapitools/client/model/FeeTest.java | 2 +- .../client/model/FeeUpdateInputFeeTest.java | 2 +- .../client/model/FeeUpdateInputTest.java | 2 +- .../client/model/FeesPaginatedTest.java | 3 +- .../openapitools/client/model/FeesTest.java | 3 +- ...ateCustomerCheckoutURL200ResponseTest.java | 71 + ...tomerPortalUrl200ResponseCustomerTest.java | 2 +- .../GetCustomerPortalUrl200ResponseTest.java | 2 +- .../client/model/GrossRevenueObjectTest.java | 64 + .../client/model/GrossRevenuesTest.java | 51 + .../client/model/GroupObjectTest.java | 2 +- .../model/GroupPropertiesObjectTest.java | 10 +- .../GroupPropertiesObjectValuesTest.java | 3 +- .../client/model/GroupsPaginatedTest.java | 3 +- .../model/InvoiceAppliedTaxObjectTest.java | 2 +- .../model/InvoiceMetadataObjectTest.java | 2 +- .../model/InvoiceObjectCustomerTest.java | 3 +- .../model/InvoiceObjectExtendedTest.java | 3 +- .../client/model/InvoiceObjectTest.java | 3 +- ...OneOffCreateInputInvoiceFeesInnerTest.java | 11 +- .../InvoiceOneOffCreateInputInvoiceTest.java | 3 +- .../model/InvoiceOneOffCreateInputTest.java | 2 +- .../client/model/InvoiceTest.java | 2 +- ...ceUpdateInputInvoiceMetadataInnerTest.java | 2 +- .../model/InvoiceUpdateInputInvoiceTest.java | 3 +- .../client/model/InvoiceUpdateInputTest.java | 2 +- ...Test.java => InvoicedUsageObjectTest.java} | 36 +- .../client/model/InvoicedUsagesTest.java | 51 + .../client/model/InvoicesPaginatedTest.java | 3 +- .../client/model/MrrObjectTest.java | 64 + .../{AppliedAddOnTest.java => MrrsTest.java} | 25 +- .../OrganizationBillingConfigurationTest.java | 2 +- .../client/model/OrganizationObjectTest.java | 12 +- .../client/model/OrganizationTest.java | 2 +- ...ganizationUpdateInputOrganizationTest.java | 12 +- .../model/OrganizationUpdateInputTest.java | 2 +- .../model/OutstandingInvoiceObjectTest.java | 80 + .../client/model/OutstandingInvoicesTest.java | 51 + .../client/model/PaginationMetaTest.java | 2 +- ...nChargesInnerGroupPropertiesInnerTest.java | 2 +- .../PlanCreateInputPlanChargesInnerTest.java | 11 +- .../client/model/PlanCreateInputPlanTest.java | 11 +- .../client/model/PlanCreateInputTest.java | 2 +- .../client/model/PlanObjectTest.java | 11 +- .../PlanOverridesObjectChargesInnerTest.java | 101 + ...Test.java => PlanOverridesObjectTest.java} | 69 +- .../openapitools/client/model/PlanTest.java | 2 +- .../PlanUpdateInputPlanChargesInnerTest.java | 11 +- .../client/model/PlanUpdateInputPlanTest.java | 11 +- .../client/model/PlanUpdateInputTest.java | 2 +- .../client/model/PlansPaginatedTest.java | 3 +- ...bscriptionCreateInputSubscriptionTest.java | 19 +- .../model/SubscriptionCreateInputTest.java | 2 +- .../model/SubscriptionObjectExtendedTest.java | 190 ++ .../client/model/SubscriptionObjectTest.java | 10 +- .../client/model/SubscriptionTest.java | 4 +- ...bscriptionUpdateInputSubscriptionTest.java | 19 +- .../model/SubscriptionUpdateInputTest.java | 2 +- .../model/SubscriptionsPaginatedTest.java | 3 +- .../client/model/TaxBaseInputTest.java | 2 +- .../client/model/TaxCreateInputTaxTest.java | 2 +- .../client/model/TaxCreateInputTest.java | 2 +- .../client/model/TaxObjectTest.java | 2 +- .../openapitools/client/model/TaxTest.java | 2 +- .../client/model/TaxUpdateInputTest.java | 2 +- .../client/model/TaxesPaginatedTest.java | 3 +- .../client/model/TimezoneTest.java | 2 +- .../client/model/WalletCreateInputTest.java | 2 +- .../model/WalletCreateInputWalletTest.java | 2 +- .../client/model/WalletObjectTest.java | 2 +- .../openapitools/client/model/WalletTest.java | 2 +- .../WalletTransactionCreateInputTest.java | 2 +- ...ctionCreateInputWalletTransactionTest.java | 2 +- .../model/WalletTransactionObjectTest.java | 2 +- .../WalletTransactionsPaginatedTest.java | 3 +- .../client/model/WalletTransactionsTest.java | 3 +- .../client/model/WalletUpdateInputTest.java | 2 +- .../model/WalletUpdateInputWalletTest.java | 2 +- .../client/model/WalletsPaginatedTest.java | 3 +- ...va => WebhookEndpointCreateInputTest.java} | 16 +- ...dpointCreateInputWebhookEndpointTest.java} | 14 +- ...st.java => WebhookEndpointObjectTest.java} | 14 +- ...onseTest.java => WebhookEndpointTest.java} | 16 +- .../model/WebhookEndpointUpdateInputTest.java | 48 + ...ava => WebhookEndpointsPaginatedTest.java} | 16 +- 482 files changed, 12314 insertions(+), 2241 deletions(-) create mode 100644 docs/AnalyticsApi.md delete mode 100644 docs/AppliedAddOnInputAppliedAddOn.md delete mode 100644 docs/AppliedAddOnObject.md delete mode 100644 docs/CreateWebhookEndpoint200Response.md delete mode 100644 docs/CreateWebhookEndpointRequest.md create mode 100644 docs/CreditNoteEstimateInput.md create mode 100644 docs/CreditNoteEstimateInputCreditNote.md rename docs/{CreditNoteCreateInputCreditNoteItemsInner.md => CreditNoteEstimateInputCreditNoteItemsInner.md} (86%) create mode 100644 docs/CreditNoteEstimated.md create mode 100644 docs/CreditNoteEstimatedEstimatedCreditNote.md create mode 100644 docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md create mode 100644 docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md rename docs/{FindAllWebhookEndpoints200Response.md => CustomerPastUsage.md} (65%) create mode 100644 docs/EventInputEventTimestamp.md create mode 100644 docs/EventObjectProperties.md create mode 100644 docs/GenerateCustomerCheckoutURL200Response.md create mode 100644 docs/GrossRevenueObject.md rename docs/{AppliedAddOnInput.md => GrossRevenues.md} (51%) create mode 100644 docs/InvoicedUsageObject.md create mode 100644 docs/InvoicedUsages.md create mode 100644 docs/MrrObject.md rename docs/{AppliedAddOn.md => Mrrs.md} (57%) create mode 100644 docs/OutstandingInvoiceObject.md create mode 100644 docs/OutstandingInvoices.md create mode 100644 docs/PlanOverridesObject.md create mode 100644 docs/PlanOverridesObjectChargesInner.md create mode 100644 docs/SubscriptionObjectExtended.md create mode 100644 docs/WebhookEndpoint.md create mode 100644 docs/WebhookEndpointCreateInput.md rename docs/{CreateWebhookEndpointRequestWebhookEndpoint.md => WebhookEndpointCreateInputWebhookEndpoint.md} (90%) rename docs/{CreateWebhookEndpoint200ResponseWebhookEndpoint.md => WebhookEndpointObject.md} (95%) create mode 100644 docs/WebhookEndpointUpdateInput.md create mode 100644 docs/WebhookEndpointsPaginated.md create mode 100644 src/main/java/org/getlago/client/api/AnalyticsApi.java delete mode 100644 src/main/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOn.java delete mode 100644 src/main/java/org/openapitools/client/model/AppliedAddOnObject.java rename src/main/java/org/openapitools/client/model/{AppliedAddOnInput.java => CreditNoteEstimateInput.java} (57%) create mode 100644 src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNote.java rename src/main/java/org/openapitools/client/model/{CreditNoteCreateInputCreditNoteItemsInner.java => CreditNoteEstimateInputCreditNoteItemsInner.java} (73%) create mode 100644 src/main/java/org/openapitools/client/model/CreditNoteEstimated.java create mode 100644 src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNote.java create mode 100644 src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.java create mode 100644 src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInner.java create mode 100644 src/main/java/org/openapitools/client/model/CustomerPastUsage.java create mode 100644 src/main/java/org/openapitools/client/model/EventInputEventTimestamp.java create mode 100644 src/main/java/org/openapitools/client/model/EventObjectProperties.java create mode 100644 src/main/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200Response.java create mode 100644 src/main/java/org/openapitools/client/model/GrossRevenueObject.java create mode 100644 src/main/java/org/openapitools/client/model/GrossRevenues.java create mode 100644 src/main/java/org/openapitools/client/model/InvoicedUsageObject.java create mode 100644 src/main/java/org/openapitools/client/model/InvoicedUsages.java create mode 100644 src/main/java/org/openapitools/client/model/MrrObject.java rename src/main/java/org/openapitools/client/model/{AppliedAddOn.java => Mrrs.java} (60%) create mode 100644 src/main/java/org/openapitools/client/model/OutstandingInvoiceObject.java create mode 100644 src/main/java/org/openapitools/client/model/OutstandingInvoices.java create mode 100644 src/main/java/org/openapitools/client/model/PlanOverridesObject.java create mode 100644 src/main/java/org/openapitools/client/model/PlanOverridesObjectChargesInner.java create mode 100644 src/main/java/org/openapitools/client/model/SubscriptionObjectExtended.java rename src/main/java/org/openapitools/client/model/{CreateWebhookEndpoint200Response.java => WebhookEndpoint.java} (66%) rename src/main/java/org/openapitools/client/model/{CreateWebhookEndpointRequest.java => WebhookEndpointCreateInput.java} (68%) rename src/main/java/org/openapitools/client/model/{CreateWebhookEndpointRequestWebhookEndpoint.java => WebhookEndpointCreateInputWebhookEndpoint.java} (81%) rename src/main/java/org/openapitools/client/model/{CreateWebhookEndpoint200ResponseWebhookEndpoint.java => WebhookEndpointObject.java} (76%) create mode 100644 src/main/java/org/openapitools/client/model/WebhookEndpointUpdateInput.java rename src/main/java/org/openapitools/client/model/{FindAllWebhookEndpoints200Response.java => WebhookEndpointsPaginated.java} (71%) create mode 100644 src/test/java/org/getlago/client/api/AnalyticsApiTest.java rename src/test/java/org/openapitools/client/model/{CreditNoteCreateInputCreditNoteItemsInnerTest.java => CreditNoteEstimateInputCreditNoteItemsInnerTest.java} (68%) create mode 100644 src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteTest.java create mode 100644 src/test/java/org/openapitools/client/model/CreditNoteEstimateInputTest.java create mode 100644 src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInnerTest.java create mode 100644 src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInnerTest.java create mode 100644 src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteTest.java create mode 100644 src/test/java/org/openapitools/client/model/CreditNoteEstimatedTest.java create mode 100644 src/test/java/org/openapitools/client/model/CustomerPastUsageTest.java create mode 100644 src/test/java/org/openapitools/client/model/EventInputEventTimestampTest.java rename src/test/java/org/openapitools/client/model/{AppliedAddOnInputTest.java => EventObjectPropertiesTest.java} (61%) create mode 100644 src/test/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200ResponseTest.java create mode 100644 src/test/java/org/openapitools/client/model/GrossRevenueObjectTest.java create mode 100644 src/test/java/org/openapitools/client/model/GrossRevenuesTest.java rename src/test/java/org/openapitools/client/model/{AppliedAddOnInputAppliedAddOnTest.java => InvoicedUsageObjectTest.java} (53%) create mode 100644 src/test/java/org/openapitools/client/model/InvoicedUsagesTest.java create mode 100644 src/test/java/org/openapitools/client/model/MrrObjectTest.java rename src/test/java/org/openapitools/client/model/{AppliedAddOnTest.java => MrrsTest.java} (64%) create mode 100644 src/test/java/org/openapitools/client/model/OutstandingInvoiceObjectTest.java create mode 100644 src/test/java/org/openapitools/client/model/OutstandingInvoicesTest.java create mode 100644 src/test/java/org/openapitools/client/model/PlanOverridesObjectChargesInnerTest.java rename src/test/java/org/openapitools/client/model/{AppliedAddOnObjectTest.java => PlanOverridesObjectTest.java} (53%) create mode 100644 src/test/java/org/openapitools/client/model/SubscriptionObjectExtendedTest.java rename src/test/java/org/openapitools/client/model/{CreateWebhookEndpointRequestTest.java => WebhookEndpointCreateInputTest.java} (66%) rename src/test/java/org/openapitools/client/model/{CreateWebhookEndpointRequestWebhookEndpointTest.java => WebhookEndpointCreateInputWebhookEndpointTest.java} (71%) rename src/test/java/org/openapitools/client/model/{CreateWebhookEndpoint200ResponseWebhookEndpointTest.java => WebhookEndpointObjectTest.java} (74%) rename src/test/java/org/openapitools/client/model/{CreateWebhookEndpoint200ResponseTest.java => WebhookEndpointTest.java} (64%) create mode 100644 src/test/java/org/openapitools/client/model/WebhookEndpointUpdateInputTest.java rename src/test/java/org/openapitools/client/model/{FindAllWebhookEndpoints200ResponseTest.java => WebhookEndpointsPaginatedTest.java} (71%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 32d6b32..7a8e0ff 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -13,16 +13,13 @@ docs/AddOnObject.md docs/AddOnUpdateInput.md docs/AddOnsApi.md docs/AddOnsPaginated.md +docs/AnalyticsApi.md docs/ApiErrorBadRequest.md docs/ApiErrorForbidden.md docs/ApiErrorNotAllowed.md docs/ApiErrorNotFound.md docs/ApiErrorUnauthorized.md docs/ApiErrorUnprocessableEntity.md -docs/AppliedAddOn.md -docs/AppliedAddOnInput.md -docs/AppliedAddOnInputAppliedAddOn.md -docs/AppliedAddOnObject.md docs/AppliedCoupon.md docs/AppliedCouponInput.md docs/AppliedCouponInputAppliedCoupon.md @@ -57,15 +54,17 @@ docs/CouponObject.md docs/CouponUpdateInput.md docs/CouponsApi.md docs/CouponsPaginated.md -docs/CreateWebhookEndpoint200Response.md -docs/CreateWebhookEndpoint200ResponseWebhookEndpoint.md -docs/CreateWebhookEndpointRequest.md -docs/CreateWebhookEndpointRequestWebhookEndpoint.md docs/CreditNote.md docs/CreditNoteAppliedTaxObject.md docs/CreditNoteCreateInput.md docs/CreditNoteCreateInputCreditNote.md -docs/CreditNoteCreateInputCreditNoteItemsInner.md +docs/CreditNoteEstimateInput.md +docs/CreditNoteEstimateInputCreditNote.md +docs/CreditNoteEstimateInputCreditNoteItemsInner.md +docs/CreditNoteEstimated.md +docs/CreditNoteEstimatedEstimatedCreditNote.md +docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md +docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md docs/CreditNoteItemObject.md docs/CreditNoteItemObjectFee.md docs/CreditNoteObject.md @@ -89,6 +88,7 @@ docs/CustomerCreateInputCustomerMetadataInner.md docs/CustomerMetadata.md docs/CustomerObject.md docs/CustomerObjectExtended.md +docs/CustomerPastUsage.md docs/CustomerUsage.md docs/CustomerUsageObject.md docs/CustomersApi.md @@ -101,7 +101,9 @@ docs/EventEstimateFeesInput.md docs/EventEstimateFeesInputEvent.md docs/EventInput.md docs/EventInputEvent.md +docs/EventInputEventTimestamp.md docs/EventObject.md +docs/EventObjectProperties.md docs/EventsApi.md docs/Fee.md docs/FeeAppliedTaxObject.md @@ -112,9 +114,11 @@ docs/FeeUpdateInputFee.md docs/Fees.md docs/FeesApi.md docs/FeesPaginated.md -docs/FindAllWebhookEndpoints200Response.md +docs/GenerateCustomerCheckoutURL200Response.md docs/GetCustomerPortalUrl200Response.md docs/GetCustomerPortalUrl200ResponseCustomer.md +docs/GrossRevenueObject.md +docs/GrossRevenues.md docs/GroupObject.md docs/GroupPropertiesObject.md docs/GroupPropertiesObjectValues.md @@ -131,14 +135,20 @@ docs/InvoiceOneOffCreateInputInvoiceFeesInner.md docs/InvoiceUpdateInput.md docs/InvoiceUpdateInputInvoice.md docs/InvoiceUpdateInputInvoiceMetadataInner.md +docs/InvoicedUsageObject.md +docs/InvoicedUsages.md docs/InvoicesApi.md docs/InvoicesPaginated.md +docs/MrrObject.md +docs/Mrrs.md docs/Organization.md docs/OrganizationBillingConfiguration.md docs/OrganizationObject.md docs/OrganizationUpdateInput.md docs/OrganizationUpdateInputOrganization.md docs/OrganizationsApi.md +docs/OutstandingInvoiceObject.md +docs/OutstandingInvoices.md docs/PaginationMeta.md docs/Plan.md docs/PlanCreateInput.md @@ -146,6 +156,8 @@ docs/PlanCreateInputPlan.md docs/PlanCreateInputPlanChargesInner.md docs/PlanCreateInputPlanChargesInnerGroupPropertiesInner.md docs/PlanObject.md +docs/PlanOverridesObject.md +docs/PlanOverridesObjectChargesInner.md docs/PlanUpdateInput.md docs/PlanUpdateInputPlan.md docs/PlanUpdateInputPlanChargesInner.md @@ -155,6 +167,7 @@ docs/Subscription.md docs/SubscriptionCreateInput.md docs/SubscriptionCreateInputSubscription.md docs/SubscriptionObject.md +docs/SubscriptionObjectExtended.md docs/SubscriptionUpdateInput.md docs/SubscriptionUpdateInputSubscription.md docs/SubscriptionsApi.md @@ -181,7 +194,13 @@ docs/WalletUpdateInput.md docs/WalletUpdateInputWallet.md docs/WalletsApi.md docs/WalletsPaginated.md +docs/WebhookEndpoint.md +docs/WebhookEndpointCreateInput.md +docs/WebhookEndpointCreateInputWebhookEndpoint.md +docs/WebhookEndpointObject.md +docs/WebhookEndpointUpdateInput.md docs/WebhookEndpointsApi.md +docs/WebhookEndpointsPaginated.md docs/WebhooksApi.md git_push.sh gradle.properties @@ -199,6 +218,7 @@ src/main/java/org/getlago/client/ServerConfiguration.java src/main/java/org/getlago/client/ServerVariable.java src/main/java/org/getlago/client/StringUtil.java src/main/java/org/getlago/client/api/AddOnsApi.java +src/main/java/org/getlago/client/api/AnalyticsApi.java src/main/java/org/getlago/client/api/BillableMetricsApi.java src/main/java/org/getlago/client/api/CouponsApi.java src/main/java/org/getlago/client/api/CreditNotesApi.java @@ -230,10 +250,6 @@ src/main/java/org/openapitools/client/model/ApiErrorNotAllowed.java src/main/java/org/openapitools/client/model/ApiErrorNotFound.java src/main/java/org/openapitools/client/model/ApiErrorUnauthorized.java src/main/java/org/openapitools/client/model/ApiErrorUnprocessableEntity.java -src/main/java/org/openapitools/client/model/AppliedAddOn.java -src/main/java/org/openapitools/client/model/AppliedAddOnInput.java -src/main/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOn.java -src/main/java/org/openapitools/client/model/AppliedAddOnObject.java src/main/java/org/openapitools/client/model/AppliedCoupon.java src/main/java/org/openapitools/client/model/AppliedCouponInput.java src/main/java/org/openapitools/client/model/AppliedCouponInputAppliedCoupon.java @@ -266,15 +282,17 @@ src/main/java/org/openapitools/client/model/CouponCreateInputCoupon.java src/main/java/org/openapitools/client/model/CouponObject.java src/main/java/org/openapitools/client/model/CouponUpdateInput.java src/main/java/org/openapitools/client/model/CouponsPaginated.java -src/main/java/org/openapitools/client/model/CreateWebhookEndpoint200Response.java -src/main/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseWebhookEndpoint.java -src/main/java/org/openapitools/client/model/CreateWebhookEndpointRequest.java -src/main/java/org/openapitools/client/model/CreateWebhookEndpointRequestWebhookEndpoint.java src/main/java/org/openapitools/client/model/CreditNote.java src/main/java/org/openapitools/client/model/CreditNoteAppliedTaxObject.java src/main/java/org/openapitools/client/model/CreditNoteCreateInput.java src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNote.java -src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteItemsInner.java +src/main/java/org/openapitools/client/model/CreditNoteEstimateInput.java +src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNote.java +src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteItemsInner.java +src/main/java/org/openapitools/client/model/CreditNoteEstimated.java +src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNote.java +src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.java +src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInner.java src/main/java/org/openapitools/client/model/CreditNoteItemObject.java src/main/java/org/openapitools/client/model/CreditNoteItemObjectFee.java src/main/java/org/openapitools/client/model/CreditNoteObject.java @@ -297,6 +315,7 @@ src/main/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataI src/main/java/org/openapitools/client/model/CustomerMetadata.java src/main/java/org/openapitools/client/model/CustomerObject.java src/main/java/org/openapitools/client/model/CustomerObjectExtended.java +src/main/java/org/openapitools/client/model/CustomerPastUsage.java src/main/java/org/openapitools/client/model/CustomerUsage.java src/main/java/org/openapitools/client/model/CustomerUsageObject.java src/main/java/org/openapitools/client/model/CustomersPaginated.java @@ -308,7 +327,9 @@ src/main/java/org/openapitools/client/model/EventEstimateFeesInput.java src/main/java/org/openapitools/client/model/EventEstimateFeesInputEvent.java src/main/java/org/openapitools/client/model/EventInput.java src/main/java/org/openapitools/client/model/EventInputEvent.java +src/main/java/org/openapitools/client/model/EventInputEventTimestamp.java src/main/java/org/openapitools/client/model/EventObject.java +src/main/java/org/openapitools/client/model/EventObjectProperties.java src/main/java/org/openapitools/client/model/Fee.java src/main/java/org/openapitools/client/model/FeeAppliedTaxObject.java src/main/java/org/openapitools/client/model/FeeObject.java @@ -317,9 +338,11 @@ src/main/java/org/openapitools/client/model/FeeUpdateInput.java src/main/java/org/openapitools/client/model/FeeUpdateInputFee.java src/main/java/org/openapitools/client/model/Fees.java src/main/java/org/openapitools/client/model/FeesPaginated.java -src/main/java/org/openapitools/client/model/FindAllWebhookEndpoints200Response.java +src/main/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200Response.java src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200Response.java src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomer.java +src/main/java/org/openapitools/client/model/GrossRevenueObject.java +src/main/java/org/openapitools/client/model/GrossRevenues.java src/main/java/org/openapitools/client/model/GroupObject.java src/main/java/org/openapitools/client/model/GroupPropertiesObject.java src/main/java/org/openapitools/client/model/GroupPropertiesObjectValues.java @@ -336,12 +359,18 @@ src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesI src/main/java/org/openapitools/client/model/InvoiceUpdateInput.java src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoice.java src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInner.java +src/main/java/org/openapitools/client/model/InvoicedUsageObject.java +src/main/java/org/openapitools/client/model/InvoicedUsages.java src/main/java/org/openapitools/client/model/InvoicesPaginated.java +src/main/java/org/openapitools/client/model/MrrObject.java +src/main/java/org/openapitools/client/model/Mrrs.java src/main/java/org/openapitools/client/model/Organization.java src/main/java/org/openapitools/client/model/OrganizationBillingConfiguration.java src/main/java/org/openapitools/client/model/OrganizationObject.java src/main/java/org/openapitools/client/model/OrganizationUpdateInput.java src/main/java/org/openapitools/client/model/OrganizationUpdateInputOrganization.java +src/main/java/org/openapitools/client/model/OutstandingInvoiceObject.java +src/main/java/org/openapitools/client/model/OutstandingInvoices.java src/main/java/org/openapitools/client/model/PaginationMeta.java src/main/java/org/openapitools/client/model/Plan.java src/main/java/org/openapitools/client/model/PlanCreateInput.java @@ -349,6 +378,8 @@ src/main/java/org/openapitools/client/model/PlanCreateInputPlan.java src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInner.java src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInner.java src/main/java/org/openapitools/client/model/PlanObject.java +src/main/java/org/openapitools/client/model/PlanOverridesObject.java +src/main/java/org/openapitools/client/model/PlanOverridesObjectChargesInner.java src/main/java/org/openapitools/client/model/PlanUpdateInput.java src/main/java/org/openapitools/client/model/PlanUpdateInputPlan.java src/main/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInner.java @@ -357,6 +388,7 @@ src/main/java/org/openapitools/client/model/Subscription.java src/main/java/org/openapitools/client/model/SubscriptionCreateInput.java src/main/java/org/openapitools/client/model/SubscriptionCreateInputSubscription.java src/main/java/org/openapitools/client/model/SubscriptionObject.java +src/main/java/org/openapitools/client/model/SubscriptionObjectExtended.java src/main/java/org/openapitools/client/model/SubscriptionUpdateInput.java src/main/java/org/openapitools/client/model/SubscriptionUpdateInputSubscription.java src/main/java/org/openapitools/client/model/SubscriptionsPaginated.java @@ -380,7 +412,14 @@ src/main/java/org/openapitools/client/model/WalletTransactionsPaginated.java src/main/java/org/openapitools/client/model/WalletUpdateInput.java src/main/java/org/openapitools/client/model/WalletUpdateInputWallet.java src/main/java/org/openapitools/client/model/WalletsPaginated.java +src/main/java/org/openapitools/client/model/WebhookEndpoint.java +src/main/java/org/openapitools/client/model/WebhookEndpointCreateInput.java +src/main/java/org/openapitools/client/model/WebhookEndpointCreateInputWebhookEndpoint.java +src/main/java/org/openapitools/client/model/WebhookEndpointObject.java +src/main/java/org/openapitools/client/model/WebhookEndpointUpdateInput.java +src/main/java/org/openapitools/client/model/WebhookEndpointsPaginated.java src/test/java/org/getlago/client/api/AddOnsApiTest.java +src/test/java/org/getlago/client/api/AnalyticsApiTest.java src/test/java/org/getlago/client/api/BillableMetricsApiTest.java src/test/java/org/getlago/client/api/CouponsApiTest.java src/test/java/org/getlago/client/api/CreditNotesApiTest.java @@ -408,10 +447,6 @@ src/test/java/org/openapitools/client/model/ApiErrorNotAllowedTest.java src/test/java/org/openapitools/client/model/ApiErrorNotFoundTest.java src/test/java/org/openapitools/client/model/ApiErrorUnauthorizedTest.java src/test/java/org/openapitools/client/model/ApiErrorUnprocessableEntityTest.java -src/test/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOnTest.java -src/test/java/org/openapitools/client/model/AppliedAddOnInputTest.java -src/test/java/org/openapitools/client/model/AppliedAddOnObjectTest.java -src/test/java/org/openapitools/client/model/AppliedAddOnTest.java src/test/java/org/openapitools/client/model/AppliedCouponInputAppliedCouponTest.java src/test/java/org/openapitools/client/model/AppliedCouponInputTest.java src/test/java/org/openapitools/client/model/AppliedCouponObjectExtendedTest.java @@ -444,14 +479,16 @@ src/test/java/org/openapitools/client/model/CouponObjectTest.java src/test/java/org/openapitools/client/model/CouponTest.java src/test/java/org/openapitools/client/model/CouponUpdateInputTest.java src/test/java/org/openapitools/client/model/CouponsPaginatedTest.java -src/test/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseTest.java -src/test/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseWebhookEndpointTest.java -src/test/java/org/openapitools/client/model/CreateWebhookEndpointRequestTest.java -src/test/java/org/openapitools/client/model/CreateWebhookEndpointRequestWebhookEndpointTest.java src/test/java/org/openapitools/client/model/CreditNoteAppliedTaxObjectTest.java -src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteItemsInnerTest.java src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteTest.java src/test/java/org/openapitools/client/model/CreditNoteCreateInputTest.java +src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteItemsInnerTest.java +src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteTest.java +src/test/java/org/openapitools/client/model/CreditNoteEstimateInputTest.java +src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInnerTest.java +src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInnerTest.java +src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteTest.java +src/test/java/org/openapitools/client/model/CreditNoteEstimatedTest.java src/test/java/org/openapitools/client/model/CreditNoteItemObjectFeeTest.java src/test/java/org/openapitools/client/model/CreditNoteItemObjectTest.java src/test/java/org/openapitools/client/model/CreditNoteObjectTest.java @@ -474,6 +511,7 @@ src/test/java/org/openapitools/client/model/CustomerCreateInputTest.java src/test/java/org/openapitools/client/model/CustomerMetadataTest.java src/test/java/org/openapitools/client/model/CustomerObjectExtendedTest.java src/test/java/org/openapitools/client/model/CustomerObjectTest.java +src/test/java/org/openapitools/client/model/CustomerPastUsageTest.java src/test/java/org/openapitools/client/model/CustomerTest.java src/test/java/org/openapitools/client/model/CustomerUsageObjectTest.java src/test/java/org/openapitools/client/model/CustomerUsageTest.java @@ -484,7 +522,9 @@ src/test/java/org/openapitools/client/model/EventBatchInputTest.java src/test/java/org/openapitools/client/model/EventEstimateFeesInputEventTest.java src/test/java/org/openapitools/client/model/EventEstimateFeesInputTest.java src/test/java/org/openapitools/client/model/EventInputEventTest.java +src/test/java/org/openapitools/client/model/EventInputEventTimestampTest.java src/test/java/org/openapitools/client/model/EventInputTest.java +src/test/java/org/openapitools/client/model/EventObjectPropertiesTest.java src/test/java/org/openapitools/client/model/EventObjectTest.java src/test/java/org/openapitools/client/model/EventTest.java src/test/java/org/openapitools/client/model/FeeAppliedTaxObjectTest.java @@ -495,9 +535,11 @@ src/test/java/org/openapitools/client/model/FeeUpdateInputFeeTest.java src/test/java/org/openapitools/client/model/FeeUpdateInputTest.java src/test/java/org/openapitools/client/model/FeesPaginatedTest.java src/test/java/org/openapitools/client/model/FeesTest.java -src/test/java/org/openapitools/client/model/FindAllWebhookEndpoints200ResponseTest.java +src/test/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200ResponseTest.java src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomerTest.java src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseTest.java +src/test/java/org/openapitools/client/model/GrossRevenueObjectTest.java +src/test/java/org/openapitools/client/model/GrossRevenuesTest.java src/test/java/org/openapitools/client/model/GroupObjectTest.java src/test/java/org/openapitools/client/model/GroupPropertiesObjectTest.java src/test/java/org/openapitools/client/model/GroupPropertiesObjectValuesTest.java @@ -514,18 +556,26 @@ src/test/java/org/openapitools/client/model/InvoiceTest.java src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInnerTest.java src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceTest.java src/test/java/org/openapitools/client/model/InvoiceUpdateInputTest.java +src/test/java/org/openapitools/client/model/InvoicedUsageObjectTest.java +src/test/java/org/openapitools/client/model/InvoicedUsagesTest.java src/test/java/org/openapitools/client/model/InvoicesPaginatedTest.java +src/test/java/org/openapitools/client/model/MrrObjectTest.java +src/test/java/org/openapitools/client/model/MrrsTest.java src/test/java/org/openapitools/client/model/OrganizationBillingConfigurationTest.java src/test/java/org/openapitools/client/model/OrganizationObjectTest.java src/test/java/org/openapitools/client/model/OrganizationTest.java src/test/java/org/openapitools/client/model/OrganizationUpdateInputOrganizationTest.java src/test/java/org/openapitools/client/model/OrganizationUpdateInputTest.java +src/test/java/org/openapitools/client/model/OutstandingInvoiceObjectTest.java +src/test/java/org/openapitools/client/model/OutstandingInvoicesTest.java src/test/java/org/openapitools/client/model/PaginationMetaTest.java src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInnerTest.java src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerTest.java src/test/java/org/openapitools/client/model/PlanCreateInputPlanTest.java src/test/java/org/openapitools/client/model/PlanCreateInputTest.java src/test/java/org/openapitools/client/model/PlanObjectTest.java +src/test/java/org/openapitools/client/model/PlanOverridesObjectChargesInnerTest.java +src/test/java/org/openapitools/client/model/PlanOverridesObjectTest.java src/test/java/org/openapitools/client/model/PlanTest.java src/test/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInnerTest.java src/test/java/org/openapitools/client/model/PlanUpdateInputPlanTest.java @@ -533,6 +583,7 @@ src/test/java/org/openapitools/client/model/PlanUpdateInputTest.java src/test/java/org/openapitools/client/model/PlansPaginatedTest.java src/test/java/org/openapitools/client/model/SubscriptionCreateInputSubscriptionTest.java src/test/java/org/openapitools/client/model/SubscriptionCreateInputTest.java +src/test/java/org/openapitools/client/model/SubscriptionObjectExtendedTest.java src/test/java/org/openapitools/client/model/SubscriptionObjectTest.java src/test/java/org/openapitools/client/model/SubscriptionTest.java src/test/java/org/openapitools/client/model/SubscriptionUpdateInputSubscriptionTest.java @@ -558,3 +609,9 @@ src/test/java/org/openapitools/client/model/WalletTransactionsTest.java src/test/java/org/openapitools/client/model/WalletUpdateInputTest.java src/test/java/org/openapitools/client/model/WalletUpdateInputWalletTest.java src/test/java/org/openapitools/client/model/WalletsPaginatedTest.java +src/test/java/org/openapitools/client/model/WebhookEndpointCreateInputTest.java +src/test/java/org/openapitools/client/model/WebhookEndpointCreateInputWebhookEndpointTest.java +src/test/java/org/openapitools/client/model/WebhookEndpointObjectTest.java +src/test/java/org/openapitools/client/model/WebhookEndpointTest.java +src/test/java/org/openapitools/client/model/WebhookEndpointUpdateInputTest.java +src/test/java/org/openapitools/client/model/WebhookEndpointsPaginatedTest.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 757e674..0f78c31 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.0-SNAPSHOT \ No newline at end of file +7.2.0-SNAPSHOT \ No newline at end of file diff --git a/README.md b/README.md index 196a34b..79cb34f 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ Lago API documentation -- API version: 0.46.0-beta +- API version: 0.52.0-beta -- Build date: 2023-08-31T15:04:44.084574Z[Etc/UTC] +- Build date: 2023-11-24T14:46:07.416771019Z[Etc/UTC] Lago API allows your application to push customer information and metrics (events) from your application to the billing application. @@ -42,7 +42,7 @@ Add this dependency to your project's POM: org.openapitools lago-java-client - 0.46.0-beta + 0.52.0-beta compile ``` @@ -58,7 +58,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "org.openapitools:lago-java-client:0.46.0-beta" + implementation "org.openapitools:lago-java-client:0.52.0-beta" } ``` @@ -72,7 +72,7 @@ mvn clean package Then manually install the following JARs: -- `target/lago-java-client-0.46.0-beta.jar` +- `target/lago-java-client-0.52.0-beta.jar` - `target/lib/*.jar` ## Getting Started @@ -97,12 +97,12 @@ public class AddOnsApiExample { bearerAuth.setBearerToken("BEARER TOKEN"); AddOnsApi apiInstance = new AddOnsApi(defaultClient); - AppliedAddOnInput appliedAddOnInput = new AppliedAddOnInput(); // AppliedAddOnInput | Apply add-on payload + AddOnCreateInput addOnCreateInput = new AddOnCreateInput(); // AddOnCreateInput | Add-on payload try { - AppliedAddOn result = apiInstance.applyAddOn(appliedAddOnInput); + AddOn result = apiInstance.createAddOn(addOnCreateInput); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AddOnsApi#applyAddOn"); + System.err.println("Exception when calling AddOnsApi#createAddOn"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -119,12 +119,15 @@ All URIs are relative to *https://api.getlago.com/api/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AddOnsApi* | [**applyAddOn**](docs/AddOnsApi.md#applyAddOn) | **POST** /applied_add_ons | Apply an add-on to a customer *AddOnsApi* | [**createAddOn**](docs/AddOnsApi.md#createAddOn) | **POST** /add_ons | Create an add-on *AddOnsApi* | [**destroyAddOn**](docs/AddOnsApi.md#destroyAddOn) | **DELETE** /add_ons/{code} | Delete an add-on *AddOnsApi* | [**findAddOn**](docs/AddOnsApi.md#findAddOn) | **GET** /add_ons/{code} | Retrieve an add-on *AddOnsApi* | [**findAllAddOns**](docs/AddOnsApi.md#findAllAddOns) | **GET** /add_ons | List all add-ons *AddOnsApi* | [**updateAddOn**](docs/AddOnsApi.md#updateAddOn) | **PUT** /add_ons/{code} | Update an add-on +*AnalyticsApi* | [**findAllGrossRevenues**](docs/AnalyticsApi.md#findAllGrossRevenues) | **GET** /analytics/gross_revenue | List gross revenue +*AnalyticsApi* | [**findAllInvoicedUsages**](docs/AnalyticsApi.md#findAllInvoicedUsages) | **GET** /analytics/invoiced_usage | List usage revenue +*AnalyticsApi* | [**findAllMrrs**](docs/AnalyticsApi.md#findAllMrrs) | **GET** /analytics/mrr | List MRR +*AnalyticsApi* | [**findAllOutstandingInvoices**](docs/AnalyticsApi.md#findAllOutstandingInvoices) | **GET** /analytics/outstanding_invoices | List outstanding invoices *BillableMetricsApi* | [**createBillableMetric**](docs/BillableMetricsApi.md#createBillableMetric) | **POST** /billable_metrics | Create a billable metric *BillableMetricsApi* | [**destroyBillableMetric**](docs/BillableMetricsApi.md#destroyBillableMetric) | **DELETE** /billable_metrics/{code} | Delete a billable metric *BillableMetricsApi* | [**findAllBillableMetricGroups**](docs/BillableMetricsApi.md#findAllBillableMetricGroups) | **GET** /billable_metrics/{code}/groups | Find a billable metric's groups @@ -141,6 +144,7 @@ Class | Method | HTTP request | Description *CouponsApi* | [**updateCoupon**](docs/CouponsApi.md#updateCoupon) | **PUT** /coupons/{code} | Update a coupon *CreditNotesApi* | [**createCreditNote**](docs/CreditNotesApi.md#createCreditNote) | **POST** /credit_notes | Create a credit note *CreditNotesApi* | [**downloadCreditNote**](docs/CreditNotesApi.md#downloadCreditNote) | **POST** /credit_notes/{lago_id}/download | Download a credit note PDF +*CreditNotesApi* | [**estimateCreditNote**](docs/CreditNotesApi.md#estimateCreditNote) | **POST** /credit_notes/estimate | Estimate amounts for a new credit note *CreditNotesApi* | [**findAllCreditNotes**](docs/CreditNotesApi.md#findAllCreditNotes) | **GET** /credit_notes | List all credit notes *CreditNotesApi* | [**findCreditNote**](docs/CreditNotesApi.md#findCreditNote) | **GET** /credit_notes/{lago_id} | Retrieve a credit note *CreditNotesApi* | [**updateCreditNote**](docs/CreditNotesApi.md#updateCreditNote) | **PUT** /credit_notes/{lago_id} | Update a credit note @@ -148,9 +152,11 @@ Class | Method | HTTP request | Description *CustomersApi* | [**createCustomer**](docs/CustomersApi.md#createCustomer) | **POST** /customers | Create a customer *CustomersApi* | [**deleteAppliedCoupon**](docs/CustomersApi.md#deleteAppliedCoupon) | **DELETE** /customers/{external_customer_id}/applied_coupons/{applied_coupon_id} | Delete an applied coupon *CustomersApi* | [**destroyCustomer**](docs/CustomersApi.md#destroyCustomer) | **DELETE** /customers/{external_id} | Delete a customer +*CustomersApi* | [**findAllCustomerPastUsage**](docs/CustomersApi.md#findAllCustomerPastUsage) | **GET** /customers/{external_customer_id}/past_usage | Retrieve customer past usage *CustomersApi* | [**findAllCustomers**](docs/CustomersApi.md#findAllCustomers) | **GET** /customers | List all customers *CustomersApi* | [**findCustomer**](docs/CustomersApi.md#findCustomer) | **GET** /customers/{external_id} | Retrieve a customer *CustomersApi* | [**findCustomerCurrentUsage**](docs/CustomersApi.md#findCustomerCurrentUsage) | **GET** /customers/{external_customer_id}/current_usage | Retrieve customer current usage +*CustomersApi* | [**generateCustomerCheckoutURL**](docs/CustomersApi.md#generateCustomerCheckoutURL) | **POST** /customers/{external_customer_id}/checkout_url | Generate a Customer Payment Provider Checkout URL *CustomersApi* | [**getCustomerPortalUrl**](docs/CustomersApi.md#getCustomerPortalUrl) | **GET** /customers/{external_customer_id}/portal_url | Get a customer portal URL *EventsApi* | [**createBatchEvents**](docs/EventsApi.md#createBatchEvents) | **POST** /events/batch | Batch multiple events *EventsApi* | [**createEvent**](docs/EventsApi.md#createEvent) | **POST** /events | Send usage events @@ -176,6 +182,7 @@ Class | Method | HTTP request | Description *SubscriptionsApi* | [**createSubscription**](docs/SubscriptionsApi.md#createSubscription) | **POST** /subscriptions | Assign a plan to a customer *SubscriptionsApi* | [**destroySubscription**](docs/SubscriptionsApi.md#destroySubscription) | **DELETE** /subscriptions/{external_id} | Terminate a subscription *SubscriptionsApi* | [**findAllSubscriptions**](docs/SubscriptionsApi.md#findAllSubscriptions) | **GET** /subscriptions | List all subscriptions +*SubscriptionsApi* | [**findSubscription**](docs/SubscriptionsApi.md#findSubscription) | **GET** /subscriptions/{external_id} | Retrieve a subscription *SubscriptionsApi* | [**updateSubscription**](docs/SubscriptionsApi.md#updateSubscription) | **PUT** /subscriptions/{external_id} | Update a subscription *TaxesApi* | [**createTax**](docs/TaxesApi.md#createTax) | **POST** /taxes | Create a tax *TaxesApi* | [**destroyTax**](docs/TaxesApi.md#destroyTax) | **DELETE** /taxes/{code} | Delete a tax @@ -212,10 +219,6 @@ Class | Method | HTTP request | Description - [ApiErrorNotFound](docs/ApiErrorNotFound.md) - [ApiErrorUnauthorized](docs/ApiErrorUnauthorized.md) - [ApiErrorUnprocessableEntity](docs/ApiErrorUnprocessableEntity.md) - - [AppliedAddOn](docs/AppliedAddOn.md) - - [AppliedAddOnInput](docs/AppliedAddOnInput.md) - - [AppliedAddOnInputAppliedAddOn](docs/AppliedAddOnInputAppliedAddOn.md) - - [AppliedAddOnObject](docs/AppliedAddOnObject.md) - [AppliedCoupon](docs/AppliedCoupon.md) - [AppliedCouponInput](docs/AppliedCouponInput.md) - [AppliedCouponInputAppliedCoupon](docs/AppliedCouponInputAppliedCoupon.md) @@ -248,15 +251,17 @@ Class | Method | HTTP request | Description - [CouponObject](docs/CouponObject.md) - [CouponUpdateInput](docs/CouponUpdateInput.md) - [CouponsPaginated](docs/CouponsPaginated.md) - - [CreateWebhookEndpoint200Response](docs/CreateWebhookEndpoint200Response.md) - - [CreateWebhookEndpoint200ResponseWebhookEndpoint](docs/CreateWebhookEndpoint200ResponseWebhookEndpoint.md) - - [CreateWebhookEndpointRequest](docs/CreateWebhookEndpointRequest.md) - - [CreateWebhookEndpointRequestWebhookEndpoint](docs/CreateWebhookEndpointRequestWebhookEndpoint.md) - [CreditNote](docs/CreditNote.md) - [CreditNoteAppliedTaxObject](docs/CreditNoteAppliedTaxObject.md) - [CreditNoteCreateInput](docs/CreditNoteCreateInput.md) - [CreditNoteCreateInputCreditNote](docs/CreditNoteCreateInputCreditNote.md) - - [CreditNoteCreateInputCreditNoteItemsInner](docs/CreditNoteCreateInputCreditNoteItemsInner.md) + - [CreditNoteEstimateInput](docs/CreditNoteEstimateInput.md) + - [CreditNoteEstimateInputCreditNote](docs/CreditNoteEstimateInputCreditNote.md) + - [CreditNoteEstimateInputCreditNoteItemsInner](docs/CreditNoteEstimateInputCreditNoteItemsInner.md) + - [CreditNoteEstimated](docs/CreditNoteEstimated.md) + - [CreditNoteEstimatedEstimatedCreditNote](docs/CreditNoteEstimatedEstimatedCreditNote.md) + - [CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner](docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md) + - [CreditNoteEstimatedEstimatedCreditNoteItemsInner](docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md) - [CreditNoteItemObject](docs/CreditNoteItemObject.md) - [CreditNoteItemObjectFee](docs/CreditNoteItemObjectFee.md) - [CreditNoteObject](docs/CreditNoteObject.md) @@ -279,6 +284,7 @@ Class | Method | HTTP request | Description - [CustomerMetadata](docs/CustomerMetadata.md) - [CustomerObject](docs/CustomerObject.md) - [CustomerObjectExtended](docs/CustomerObjectExtended.md) + - [CustomerPastUsage](docs/CustomerPastUsage.md) - [CustomerUsage](docs/CustomerUsage.md) - [CustomerUsageObject](docs/CustomerUsageObject.md) - [CustomersPaginated](docs/CustomersPaginated.md) @@ -290,7 +296,9 @@ Class | Method | HTTP request | Description - [EventEstimateFeesInputEvent](docs/EventEstimateFeesInputEvent.md) - [EventInput](docs/EventInput.md) - [EventInputEvent](docs/EventInputEvent.md) + - [EventInputEventTimestamp](docs/EventInputEventTimestamp.md) - [EventObject](docs/EventObject.md) + - [EventObjectProperties](docs/EventObjectProperties.md) - [Fee](docs/Fee.md) - [FeeAppliedTaxObject](docs/FeeAppliedTaxObject.md) - [FeeObject](docs/FeeObject.md) @@ -299,9 +307,11 @@ Class | Method | HTTP request | Description - [FeeUpdateInputFee](docs/FeeUpdateInputFee.md) - [Fees](docs/Fees.md) - [FeesPaginated](docs/FeesPaginated.md) - - [FindAllWebhookEndpoints200Response](docs/FindAllWebhookEndpoints200Response.md) + - [GenerateCustomerCheckoutURL200Response](docs/GenerateCustomerCheckoutURL200Response.md) - [GetCustomerPortalUrl200Response](docs/GetCustomerPortalUrl200Response.md) - [GetCustomerPortalUrl200ResponseCustomer](docs/GetCustomerPortalUrl200ResponseCustomer.md) + - [GrossRevenueObject](docs/GrossRevenueObject.md) + - [GrossRevenues](docs/GrossRevenues.md) - [GroupObject](docs/GroupObject.md) - [GroupPropertiesObject](docs/GroupPropertiesObject.md) - [GroupPropertiesObjectValues](docs/GroupPropertiesObjectValues.md) @@ -318,12 +328,18 @@ Class | Method | HTTP request | Description - [InvoiceUpdateInput](docs/InvoiceUpdateInput.md) - [InvoiceUpdateInputInvoice](docs/InvoiceUpdateInputInvoice.md) - [InvoiceUpdateInputInvoiceMetadataInner](docs/InvoiceUpdateInputInvoiceMetadataInner.md) + - [InvoicedUsageObject](docs/InvoicedUsageObject.md) + - [InvoicedUsages](docs/InvoicedUsages.md) - [InvoicesPaginated](docs/InvoicesPaginated.md) + - [MrrObject](docs/MrrObject.md) + - [Mrrs](docs/Mrrs.md) - [Organization](docs/Organization.md) - [OrganizationBillingConfiguration](docs/OrganizationBillingConfiguration.md) - [OrganizationObject](docs/OrganizationObject.md) - [OrganizationUpdateInput](docs/OrganizationUpdateInput.md) - [OrganizationUpdateInputOrganization](docs/OrganizationUpdateInputOrganization.md) + - [OutstandingInvoiceObject](docs/OutstandingInvoiceObject.md) + - [OutstandingInvoices](docs/OutstandingInvoices.md) - [PaginationMeta](docs/PaginationMeta.md) - [Plan](docs/Plan.md) - [PlanCreateInput](docs/PlanCreateInput.md) @@ -331,6 +347,8 @@ Class | Method | HTTP request | Description - [PlanCreateInputPlanChargesInner](docs/PlanCreateInputPlanChargesInner.md) - [PlanCreateInputPlanChargesInnerGroupPropertiesInner](docs/PlanCreateInputPlanChargesInnerGroupPropertiesInner.md) - [PlanObject](docs/PlanObject.md) + - [PlanOverridesObject](docs/PlanOverridesObject.md) + - [PlanOverridesObjectChargesInner](docs/PlanOverridesObjectChargesInner.md) - [PlanUpdateInput](docs/PlanUpdateInput.md) - [PlanUpdateInputPlan](docs/PlanUpdateInputPlan.md) - [PlanUpdateInputPlanChargesInner](docs/PlanUpdateInputPlanChargesInner.md) @@ -339,6 +357,7 @@ Class | Method | HTTP request | Description - [SubscriptionCreateInput](docs/SubscriptionCreateInput.md) - [SubscriptionCreateInputSubscription](docs/SubscriptionCreateInputSubscription.md) - [SubscriptionObject](docs/SubscriptionObject.md) + - [SubscriptionObjectExtended](docs/SubscriptionObjectExtended.md) - [SubscriptionUpdateInput](docs/SubscriptionUpdateInput.md) - [SubscriptionUpdateInputSubscription](docs/SubscriptionUpdateInputSubscription.md) - [SubscriptionsPaginated](docs/SubscriptionsPaginated.md) @@ -362,6 +381,12 @@ Class | Method | HTTP request | Description - [WalletUpdateInput](docs/WalletUpdateInput.md) - [WalletUpdateInputWallet](docs/WalletUpdateInputWallet.md) - [WalletsPaginated](docs/WalletsPaginated.md) + - [WebhookEndpoint](docs/WebhookEndpoint.md) + - [WebhookEndpointCreateInput](docs/WebhookEndpointCreateInput.md) + - [WebhookEndpointCreateInputWebhookEndpoint](docs/WebhookEndpointCreateInputWebhookEndpoint.md) + - [WebhookEndpointObject](docs/WebhookEndpointObject.md) + - [WebhookEndpointUpdateInput](docs/WebhookEndpointUpdateInput.md) + - [WebhookEndpointsPaginated](docs/WebhookEndpointsPaginated.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index ab085d8..d61fd4a 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -7,7 +7,7 @@ info: license: name: AGPLv3 title: Lago API documentation - version: 0.46.0-beta + version: 0.52.0-beta externalDocs: description: Lago Github url: https://github.com/getlago @@ -16,6 +16,8 @@ servers: security: - bearerAuth: [] tags: +- description: Everything about Analytics + name: analytics - description: Everything about Billable metric collection externalDocs: description: Find out more @@ -302,54 +304,6 @@ paths: - add_ons x-content-type: application/json x-accepts: application/json - /applied_add_ons: - post: - deprecated: true - description: Apply an add-on to a customer - operationId: applyAddOn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AppliedAddOnInput' - description: Apply add-on payload - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/AppliedAddOn' - description: Add-on applied - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiErrorBadRequest' - description: Bad Request error - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiErrorUnauthorized' - description: Unauthorized error - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiErrorNotFound' - description: Not Found error - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiErrorUnprocessableEntity' - description: Unprocessable entity error - summary: Apply an add-on to a customer - tags: - - add_ons - x-content-type: application/json - x-accepts: application/json /applied_coupons: get: description: This endpoint is used to list all applied coupons. You can filter @@ -1172,6 +1126,47 @@ paths: tags: - credit_notes x-accepts: application/json + /credit_notes/estimate: + post: + description: This endpoint allows you to retrieve amounts for a new credit note + creation. + operationId: estimateCreditNote + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreditNoteEstimateInput' + description: Credit note estimate payload + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CreditNoteEstimated' + description: Credit note amounts + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorBadRequest' + description: Bad Request error + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnauthorized' + description: Unauthorized error + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnprocessableEntity' + description: Unprocessable entity error + summary: Estimate amounts for a new credit note + tags: + - credit_notes + x-content-type: application/json + x-accepts: application/json /credit_notes/{lago_id}/void: put: description: This endpoint voids an existing credit note. @@ -1513,6 +1508,141 @@ paths: tags: - customers x-accepts: application/json + /customers/{external_customer_id}/past_usage: + get: + description: This endpoint enables the retrieval of the usage-based billing + data for a customer within past periods. + operationId: findAllCustomerPastUsage + parameters: + - description: Page number. + explode: true + in: query + name: page + required: false + schema: + example: 1 + type: integer + style: form + - description: Number of records per page. + explode: true + in: query + name: per_page + required: false + schema: + example: 20 + type: integer + style: form + - description: The customer external unique identifier (provided by your own + application). + explode: false + in: path + name: external_customer_id + required: true + schema: + example: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba + type: string + style: simple + - description: The unique identifier of the subscription within your application. + explode: true + in: query + name: external_subscription_id + required: true + schema: + example: sub_1234567890 + type: string + style: form + - description: Billable metric code filter to apply to the charge usage + explode: true + in: query + name: billable_metric_code + required: false + schema: + example: cpu + type: string + style: form + - description: Number of past billing period to returns in the result + explode: true + in: query + name: periods_count + required: false + schema: + example: 5 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CustomerPastUsage' + description: Customer past usage + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnauthorized' + description: Unauthorized error + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorNotFound' + description: Not Found error + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnprocessableEntity' + description: Unprocessable entity error + summary: Retrieve customer past usage + tags: + - customers + x-accepts: application/json + /customers/{external_customer_id}/checkout_url: + post: + description: This endpoint regenerates the Payment Provider Checkout URL of + a Customer. + operationId: generateCustomerCheckoutURL + parameters: + - description: The customer external unique identifier (provided by your own + application). + explode: false + in: path + name: external_customer_id + required: true + schema: + example: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/generateCustomerCheckoutURL_200_response' + description: Customer Checkout URL + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnauthorized' + description: Unauthorized error + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorNotFound' + description: Not Found error + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnprocessableEntity' + description: Unprocessable entity error + summary: Generate a Customer Payment Provider Checkout URL + tags: + - customers + x-accepts: application/json /events: post: description: This endpoint is used for transmitting usage measurement events @@ -1527,7 +1657,11 @@ paths: required: true responses: "200": - description: Event received + content: + application/json: + schema: + $ref: '#/components/schemas/Event' + description: Event "400": content: application/json: @@ -1553,6 +1687,7 @@ paths: x-accepts: application/json /events/batch: post: + deprecated: true description: This endpoint is used for transmitting a batch of usage measurement events to multiple subscriptions for a single customer. operationId: createBatchEvents @@ -1978,6 +2113,87 @@ paths: - fees x-content-type: application/json x-accepts: application/json + /analytics/gross_revenue: + get: + description: Gross revenue is the sum of monthly `finalized` invoice payments + and fees paid in advance that are not invoiceable. This total is calculated + after deducting taxes and discounts. + operationId: findAllGrossRevenues + parameters: + - description: Currency of revenue analytics. Format must be ISO 4217. + explode: true + in: query + name: currency + required: false + schema: + allOf: + - $ref: '#/components/schemas/Currency' + - example: USD + style: form + - description: The customer external unique identifier (provided by your own + application). Use it to filter revenue analytics at the customer level. + explode: true + in: query + name: external_customer_id + required: false + schema: + example: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GrossRevenues' + description: Gross revenue + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnauthorized' + description: Unauthorized error + summary: List gross revenue + tags: + - analytics + x-accepts: application/json + /analytics/invoiced_usage: + get: + description: "Reports a monthly analysis focused on the revenue generated from\ + \ all usage-based fees. It exclusively accounts for revenue that has been\ + \ formally invoiced. Importantly, this report does not include revenue related\ + \ to the usage in the current billing period, limiting its scope to previously\ + \ invoiced amounts." + operationId: findAllInvoicedUsages + parameters: + - description: The currency of invoiced usage analytics. Format must be ISO + 4217. + explode: true + in: query + name: currency + required: false + schema: + allOf: + - $ref: '#/components/schemas/Currency' + - example: USD + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/InvoicedUsages' + description: Invoiced usage + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnauthorized' + description: Unauthorized error + summary: List usage revenue + tags: + - analytics + x-accepts: application/json /invoices: get: description: This endpoint is used for retrievign all invoices. @@ -2373,8 +2589,55 @@ paths: tags: - invoices x-accepts: application/json - /organizations: - put: + /analytics/mrr: + get: + description: This endpoint is used to list MRR. + operationId: findAllMrrs + parameters: + - description: |- + Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and prior to the deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: + + - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. + - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next three months) as well as to fees paid in arrears (allocated to the preceding three months). + - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next twelve months) and for fees paid in arrears (spread over the previous twelve months). + - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month. + explode: true + in: query + name: currency + required: false + schema: + allOf: + - $ref: '#/components/schemas/Currency' + - example: USD + style: form + - description: Show data only for given number of months. + explode: true + in: query + name: months + required: false + schema: + example: 12 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Mrrs' + description: MRR + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnauthorized' + description: Unauthorized error + summary: List MRR + tags: + - analytics + x-accepts: application/json + /organizations: + put: description: This endpoint is used to update your own organization's settings. operationId: updateOrganization requestBody: @@ -2414,6 +2677,40 @@ paths: - organizations x-content-type: application/json x-accepts: application/json + /analytics/outstanding_invoices: + get: + description: "Represents a monthly aggregation, detailing both the total count\ + \ and the cumulative amount of invoices that have been marked as `finalized`.\ + \ This report sorts invoices categorically based on their `payment_status`." + operationId: findAllOutstandingInvoices + parameters: + - description: The currency of revenue analytics. Format must be ISO 4217. + explode: true + in: query + name: currency + required: false + schema: + allOf: + - $ref: '#/components/schemas/Currency' + - example: USD + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OutstandingInvoices' + description: Outstanding invoices + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnauthorized' + description: Unauthorized error + summary: List outstanding invoices + tags: + - analytics + x-accepts: application/json /plans: get: description: This endpoint retrieves all existing plans. @@ -2828,6 +3125,42 @@ paths: tags: - subscriptions x-accepts: application/json + get: + description: This endpoint retrieves a specific subscription. + operationId: findSubscription + parameters: + - description: External ID of the existing subscription + explode: false + in: path + name: external_id + required: true + schema: + example: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + description: Subscription + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorUnauthorized' + description: Unauthorized error + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorNotFound' + description: Not Found error + summary: Retrieve a subscription + tags: + - subscriptions + x-accepts: application/json put: description: This endpoint allows you to update a subscription. operationId: updateSubscription @@ -3536,7 +3869,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/findAllWebhookEndpoints_200_response' + $ref: '#/components/schemas/WebhookEndpointsPaginated' description: WebhookEndpoints "401": content: @@ -3555,7 +3888,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createWebhookEndpoint_request' + $ref: '#/components/schemas/WebhookEndpointCreateInput' description: Webhook Endpoint payload required: true responses: @@ -3563,7 +3896,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createWebhookEndpoint_200_response' + $ref: '#/components/schemas/WebhookEndpoint' description: Webhook Endpoint created "400": content: @@ -3610,7 +3943,7 @@ paths: content: application/json: schema: - $ref: '#/paths/~1webhook_endpoints/post/responses/200/content/application~1json/schema' + $ref: '#/components/schemas/WebhookEndpoint' description: Webhook Endpoint deleted "401": content: @@ -3655,7 +3988,7 @@ paths: content: application/json: schema: - $ref: '#/paths/~1webhook_endpoints/post/responses/200/content/application~1json/schema' + $ref: '#/components/schemas/WebhookEndpoint' description: WebhookEndpoint "401": content: @@ -3693,7 +4026,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createWebhookEndpoint_request' + $ref: '#/components/schemas/WebhookEndpointUpdateInput' description: Webhook Endpoint update payload required: true responses: @@ -3701,7 +4034,7 @@ paths: content: application/json: schema: - $ref: '#/paths/~1webhook_endpoints/post/responses/200/content/application~1json/schema' + $ref: '#/components/schemas/WebhookEndpoint' description: Webhook Endpoint updated "400": content: @@ -3830,6 +4163,7 @@ components: tax_codes: - french_standard_vat code: setup_fee + invoice_display_name: Setup Fee (SF1) amount_cents: 50000 amount_currency: "" name: Setup Fee @@ -3839,6 +4173,12 @@ components: description: The name of the add-on. example: Setup Fee type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup Fee (SF1) + type: string code: description: Unique code used to identify the add-on. example: setup_fee @@ -3879,6 +4219,7 @@ components: AddOnObject: example: code: setup_fee + invoice_display_name: Setup Fee (SF1) amount_cents: 50000 amount_currency: "" name: Setup Fee @@ -3918,6 +4259,12 @@ components: description: The name of the add-on. example: Setup Fee type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup Fee (SF1) + type: string code: description: Unique code used to identify the add-on. example: setup_fee @@ -3963,6 +4310,7 @@ components: example: add_on: code: setup_fee + invoice_display_name: Setup Fee (SF1) amount_cents: 50000 amount_currency: "" name: Setup Fee @@ -4008,6 +4356,7 @@ components: current_page: 2 add_ons: - code: setup_fee + invoice_display_name: Setup Fee (SF1) amount_cents: 50000 amount_currency: "" name: Setup Fee @@ -4038,6 +4387,7 @@ components: charges_count: 0 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - code: setup_fee + invoice_display_name: Setup Fee (SF1) amount_cents: 50000 amount_currency: "" name: Setup Fee @@ -4084,6 +4434,7 @@ components: tax_codes: - french_standard_vat code: setup_fee + invoice_display_name: Setup Fee (SF1) amount_cents: 50000 amount_currency: "" name: Setup Fee @@ -4191,97 +4542,6 @@ components: - error - status type: object - AppliedAddOn: - example: - applied_add_on: - lago_add_on_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - amount_cents: 50000 - external_customer_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba - amount_currency: "" - created_at: 2022-09-14T16:35:31Z - add_on_code: setup_fee - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - lago_customer_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - properties: - applied_add_on: - $ref: '#/components/schemas/AppliedAddOnObject' - required: - - applied_add_on - type: object - AppliedAddOnInput: - example: - applied_add_on: - amount_cents: 50000 - external_customer_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba - amount_currency: "" - add_on_code: setup_fee - properties: - applied_add_on: - $ref: '#/components/schemas/AppliedAddOnInput_applied_add_on' - required: - - applied_add_on - type: object - AppliedAddOnObject: - example: - lago_add_on_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - amount_cents: 50000 - external_customer_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba - amount_currency: "" - created_at: 2022-09-14T16:35:31Z - add_on_code: setup_fee - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - lago_customer_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - properties: - lago_id: - description: Unique identifier of the applied add-on created by Lago. - example: 1a901a90-1a90-1a90-1a90-1a901a901a90 - format: uuid - type: string - lago_add_on_id: - description: Unique identifier of the add-on created by Lago. - example: 1a901a90-1a90-1a90-1a90-1a901a901a90 - format: uuid - type: string - add_on_code: - description: Unique code used to identify the add-on. - example: setup_fee - type: string - lago_customer_id: - description: Unique identifier of the customer created by Lago. - example: 1a901a90-1a90-1a90-1a90-1a901a901a90 - format: uuid - type: string - external_customer_id: - description: The customer external unique identifier (provided by your own - application) - example: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba - type: string - amount_cents: - description: "The cost of the add-on in cents, excluding any applicable\ - \ taxes, that is billed to a customer. By creating a one-off invoice,\ - \ you will be able to override this value." - example: 50000 - type: integer - amount_currency: - allOf: - - $ref: '#/components/schemas/Currency' - - description: The currency of the add-on. - example: USD - nullable: true - created_at: - example: 2022-09-14T16:35:31Z - format: date-time - type: string - required: - - add_on_code - - amount_cents - - amount_currency - - created_at - - external_customer_id - - lago_add_on_id - - lago_customer_id - - lago_id - type: object AppliedCoupon: example: applied_coupon: @@ -4550,17 +4810,18 @@ components: BillableMetric: example: billable_metric: - aggregation_type: sum_agg code: storage - plans_count: 4 recurring: false - name: Storage description: GB of storage used in my application created_at: 2022-09-14T16:35:31Z - active_subscriptions_count: 4 draft_invoices_count: 10 - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + weighted_interval: seconds field_name: gb + aggregation_type: sum_agg + plans_count: 4 + name: Storage + active_subscriptions_count: 4 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 group: values: - us-east-1 @@ -4575,17 +4836,18 @@ components: type: object BillableMetricObject: example: - aggregation_type: sum_agg code: storage - plans_count: 4 recurring: false - name: Storage description: GB of storage used in my application created_at: 2022-09-14T16:35:31Z - active_subscriptions_count: 4 draft_invoices_count: 10 - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + weighted_interval: seconds field_name: gb + aggregation_type: sum_agg + plans_count: 4 + name: Storage + active_subscriptions_count: 4 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 group: values: - us-east-1 @@ -4634,15 +4896,28 @@ components: nullable: true type: string aggregation_type: - description: "Aggregation method used to compute usage for this billable\ - \ metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`." + description: Aggregation method used to compute usage for this billable + metric. enum: - count_agg - sum_agg - max_agg - unique_count_agg + - weighted_sum_agg + - latest_agg example: sum_agg type: string + weighted_interval: + description: "Parameter exclusively utilized in conjunction with the `weighted_sum`\ + \ aggregation type. It serves to adjust the aggregation result by assigning\ + \ weights and proration to the result based on time intervals. When this\ + \ field is not provided, the default time interval is assumed to be in\ + \ `seconds`." + enum: + - seconds + example: seconds + nullable: true + type: string group: $ref: '#/components/schemas/BillableMetricGroup' active_subscriptions_count: @@ -4676,6 +4951,7 @@ components: recurring: false name: Storage description: GB of storage used in my application + weighted_interval: seconds field_name: gb group: values: @@ -4715,15 +4991,28 @@ components: nullable: true type: string aggregation_type: - description: "Aggregation method used to compute usage for this billable\ - \ metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`." + description: Aggregation method used to compute usage for this billable + metric. enum: - count_agg - sum_agg - max_agg - unique_count_agg + - weighted_sum_agg + - latest_agg example: sum_agg type: string + weighted_interval: + description: "Parameter exclusively utilized in conjunction with the `weighted_sum`\ + \ aggregation type. It serves to adjust the aggregation result by assigning\ + \ weights and proration to the result based on time intervals. When this\ + \ field is not provided, the default time interval is assumed to be in\ + \ `seconds`." + enum: + - seconds + example: seconds + nullable: true + type: string group: $ref: '#/components/schemas/BillableMetricGroup' type: object @@ -4744,6 +5033,7 @@ components: recurring: false name: Storage description: GB of storage used in my application + weighted_interval: seconds field_name: gb group: values: @@ -4793,34 +5083,36 @@ components: prev_page: 1 current_page: 2 billable_metrics: - - aggregation_type: sum_agg - code: storage - plans_count: 4 + - code: storage recurring: false - name: Storage description: GB of storage used in my application created_at: 2022-09-14T16:35:31Z - active_subscriptions_count: 4 draft_invoices_count: 10 - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + weighted_interval: seconds field_name: gb + aggregation_type: sum_agg + plans_count: 4 + name: Storage + active_subscriptions_count: 4 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 group: values: - us-east-1 - us-east-2 - eu-west-1 key: region - - aggregation_type: sum_agg - code: storage - plans_count: 4 + - code: storage recurring: false - name: Storage description: GB of storage used in my application created_at: 2022-09-14T16:35:31Z - active_subscriptions_count: 4 draft_invoices_count: 10 - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + weighted_interval: seconds field_name: gb + aggregation_type: sum_agg + plans_count: 4 + name: Storage + active_subscriptions_count: 4 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 group: values: - us-east-1 @@ -4854,6 +5146,12 @@ components: description: Unique code identifying a billable metric. example: requests type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup + type: string created_at: description: The date and time when the charge was created. It is expressed in UTC format according to the ISO 8601 datetime standard. @@ -5279,6 +5577,7 @@ components: lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 expiration_at: 2022-08-08T23:59:59Z coupon_type: fixed_amount + terminated_at: 2022-08-08T23:59:59Z properties: coupon: $ref: '#/components/schemas/CouponObject' @@ -5412,6 +5711,7 @@ components: lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 expiration_at: 2022-08-08T23:59:59Z coupon_type: fixed_amount + terminated_at: 2022-08-08T23:59:59Z properties: lago_id: description: "Unique identifier of the coupon, created by Lago." @@ -5545,6 +5845,14 @@ components: example: 2022-04-29T08:59:51Z format: date-time type: string + terminated_at: + description: "This field indicates if the coupon has been terminated and\ + \ is no longer usable. If it's not null, it won't be removed for existing\ + \ customers using it, but it prevents the coupon from being applied in\ + \ the future." + example: 2022-08-08T23:59:59Z + format: date-time + type: string required: - code - coupon_type @@ -5579,6 +5887,7 @@ components: lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 expiration_at: 2022-08-08T23:59:59Z coupon_type: fixed_amount + terminated_at: 2022-08-08T23:59:59Z - limited_plans: true code: startup_deal limited_billable_metrics: false @@ -5598,6 +5907,7 @@ components: lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 expiration_at: 2022-08-08T23:59:59Z coupon_type: fixed_amount + terminated_at: 2022-08-08T23:59:59Z meta: next_page: 3 total_count: 70 @@ -5625,6 +5935,61 @@ components: required: - coupon type: object + CreditNoteEstimateInput: + example: + credit_note: + invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + items: + - fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 10 + - fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 + amount_cents: 5 + properties: + credit_note: + $ref: '#/components/schemas/CreditNoteEstimateInput_credit_note' + required: + - credit_note + type: object + CreditNoteEstimated: + example: + estimated_credit_note: + taxes_amount_cents: 20 + taxes_rate: 20 + lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + max_creditable_amount_cents: 100 + max_refundable_amount_cents: 0 + currency: "" + applied_taxes: + - tax_code: french_standard_vat + amount_cents: 2000 + tax_name: TVA + amount_currency: "" + lago_tax_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + tax_description: French standard VAT + base_amount_cents: 100 + tax_rate: 20 + - tax_code: french_standard_vat + amount_cents: 2000 + tax_name: TVA + amount_currency: "" + lago_tax_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + tax_description: French standard VAT + base_amount_cents: 100 + tax_rate: 20 + sub_total_excluding_taxes_amount_cents: 100 + invoice_number: LAG-1234 + items: + - lago_fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 100 + - lago_fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 100 + coupons_adjustment_amount_cents: 20 + properties: + estimated_credit_note: + $ref: '#/components/schemas/CreditNoteEstimated_estimated_credit_note' + required: + - estimated_credit_note + type: object CreditObject: properties: lago_id: @@ -5676,13 +6041,13 @@ components: description: Free text created_at: 2022-09-14T16:35:31Z sub_total_excluding_taxes_amount_cents: 100 + coupons_adjustment_amount_cents: 20 total_amount_cents: 120 number: LAG-1234-CN2 credit_status: available credit_amount_cents: 100 balance_amount_cents: 100 updated_at: 2022-09-14T16:35:31Z - coupons_adjustement_amount_cents: 20 refund_amount_cents: 0 currency: "" lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -5765,13 +6130,13 @@ components: description: Free text created_at: 2022-09-14T16:35:31Z sub_total_excluding_taxes_amount_cents: 100 + coupons_adjustment_amount_cents: 20 total_amount_cents: 120 number: LAG-1234-CN2 credit_status: available credit_amount_cents: 100 balance_amount_cents: 100 updated_at: 2022-09-14T16:35:31Z - coupons_adjustement_amount_cents: 20 refund_amount_cents: 0 currency: "" lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -5903,7 +6268,7 @@ components: description: "The refunded amount of the credit note, expressed in cents." example: 0 type: integer - coupons_adjustement_amount_cents: + coupons_adjustment_amount_cents: description: The pro-rated amount of the coupons applied to the source invoice. example: 20 type: integer @@ -5935,7 +6300,7 @@ components: type: array required: - balance_amount_cents - - coupons_adjustement_amount_cents + - coupons_adjustment_amount_cents - created_at - credit_amount_cents - currency @@ -5967,13 +6332,13 @@ components: description: Free text created_at: 2022-09-14T16:35:31Z sub_total_excluding_taxes_amount_cents: 100 + coupons_adjustment_amount_cents: 20 total_amount_cents: 120 number: LAG-1234-CN2 credit_status: available credit_amount_cents: 100 balance_amount_cents: 100 updated_at: 2022-09-14T16:35:31Z - coupons_adjustement_amount_cents: 20 refund_amount_cents: 0 currency: "" lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -6003,13 +6368,13 @@ components: description: Free text created_at: 2022-09-14T16:35:31Z sub_total_excluding_taxes_amount_cents: 100 + coupons_adjustment_amount_cents: 20 total_amount_cents: 120 number: LAG-1234-CN2 credit_status: available credit_amount_cents: 100 balance_amount_cents: 100 updated_at: 2022-09-14T16:35:31Z - coupons_adjustement_amount_cents: 20 refund_amount_cents: 0 currency: "" lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -6294,18 +6659,22 @@ components: code: storage name: Storage lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 charge: + invoice_display_name: Setup charge_model: graduated lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 amount_cents: 123 amount_currency: "" groups: - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe key: key - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe @@ -6318,6 +6687,12 @@ components: example: "1.0" pattern: "^[0-9]+.?[0-9]*$" type: string + events_count: + description: The quantity of usage events that have been recorded for a + particular charge during the specified time period. These events may also + be referred to as the number of transactions in some contexts. + example: 10 + type: integer amount_cents: description: "The amount in cents, tax excluded, consumed by the customer\ \ for a specific charge item." @@ -6339,6 +6714,7 @@ components: $ref: '#/components/schemas/CustomerChargeUsageObject_groups_inner' required: - amount_cents + - events_count - lago_id - units - value @@ -6348,6 +6724,7 @@ components: - amount_currency - billable_metric - charge + - events_count - groups - units type: object @@ -6609,7 +6986,7 @@ components: $ref: '#/components/schemas/TaxObject' type: array type: object - CustomersPaginated: + CustomerPastUsage: example: meta: next_page: 3 @@ -6617,10 +6994,154 @@ components: total_pages: 4 prev_page: 1 current_page: 2 - customers: - - null - - null - properties: + usage_periods: + - customer_usage: + total_amount_cents: 123 + charges_usage: + - billable_metric: + aggregation_type: sum_agg + code: storage + name: Storage + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 + charge: + invoice_display_name: Setup + charge_model: graduated + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 123 + amount_currency: "" + groups: + - events_count: 10 + amount_cents: 1000 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + units: "0.9" + value: europe + key: key + - events_count: 10 + amount_cents: 1000 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + units: "0.9" + value: europe + key: key + units: "1.0" + - billable_metric: + aggregation_type: sum_agg + code: storage + name: Storage + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 + charge: + invoice_display_name: Setup + charge_model: graduated + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 123 + amount_currency: "" + groups: + - events_count: 10 + amount_cents: 1000 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + units: "0.9" + value: europe + key: key + - events_count: 10 + amount_cents: 1000 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + units: "0.9" + value: europe + key: key + units: "1.0" + taxes_amount_cents: 200 + issuing_date: 2022-08-01T23:59:59Z + lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 123 + to_datetime: 2022-07-31T23:59:59Z + currency: "" + from_datetime: 2022-07-01T00:00:00Z + - customer_usage: + total_amount_cents: 123 + charges_usage: + - billable_metric: + aggregation_type: sum_agg + code: storage + name: Storage + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 + charge: + invoice_display_name: Setup + charge_model: graduated + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 123 + amount_currency: "" + groups: + - events_count: 10 + amount_cents: 1000 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + units: "0.9" + value: europe + key: key + - events_count: 10 + amount_cents: 1000 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + units: "0.9" + value: europe + key: key + units: "1.0" + - billable_metric: + aggregation_type: sum_agg + code: storage + name: Storage + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 + charge: + invoice_display_name: Setup + charge_model: graduated + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 123 + amount_currency: "" + groups: + - events_count: 10 + amount_cents: 1000 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + units: "0.9" + value: europe + key: key + - events_count: 10 + amount_cents: 1000 + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + units: "0.9" + value: europe + key: key + units: "1.0" + taxes_amount_cents: 200 + issuing_date: 2022-08-01T23:59:59Z + lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 123 + to_datetime: 2022-07-31T23:59:59Z + currency: "" + from_datetime: 2022-07-01T00:00:00Z + properties: + usage_periods: + items: + $ref: '#/components/schemas/CustomerUsage' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + required: + - meta + - usage_periods + type: object + CustomersPaginated: + example: + meta: + next_page: 3 + total_count: 70 + total_pages: 4 + prev_page: 1 + current_page: 2 + customers: + - null + - null + properties: customers: items: $ref: '#/components/schemas/CustomerObjectExtended' @@ -6641,18 +7162,22 @@ components: code: storage name: Storage lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 charge: + invoice_display_name: Setup charge_model: graduated lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 amount_cents: 123 amount_currency: "" groups: - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe key: key - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe @@ -6663,18 +7188,22 @@ components: code: storage name: Storage lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 charge: + invoice_display_name: Setup charge_model: graduated lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 amount_cents: 123 amount_currency: "" groups: - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe key: key - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe @@ -6682,6 +7211,7 @@ components: units: "1.0" taxes_amount_cents: 200 issuing_date: 2022-08-01T23:59:59Z + lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 amount_cents: 123 to_datetime: 2022-07-31T23:59:59Z currency: "" @@ -6701,18 +7231,22 @@ components: code: storage name: Storage lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 charge: + invoice_display_name: Setup charge_model: graduated lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 amount_cents: 123 amount_currency: "" groups: - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe key: key - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe @@ -6723,18 +7257,22 @@ components: code: storage name: Storage lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + events_count: 10 charge: + invoice_display_name: Setup charge_model: graduated lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 amount_cents: 123 amount_currency: "" groups: - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe key: key - - amount_cents: 1000 + - events_count: 10 + amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" value: europe @@ -6742,6 +7280,7 @@ components: units: "1.0" taxes_amount_cents: 200 issuing_date: 2022-08-01T23:59:59Z + lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 amount_cents: 123 to_datetime: 2022-07-31T23:59:59Z currency: "" @@ -6764,6 +7303,13 @@ components: example: 2022-08-01T23:59:59Z format: date-time type: string + lago_invoice_id: + description: A unique identifier associated with the invoice related to + this particular usage record. + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + format: uuid + nullable: true + type: string currency: allOf: - $ref: '#/components/schemas/Currency' @@ -6810,7 +7356,7 @@ components: properties: gb: 10 lago_customer_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - timestamp: 2022-04-29T08:59:51Z + timestamp: 2022-04-29T08:59:51.123Z properties: event: $ref: '#/components/schemas/EventObject' @@ -6857,7 +7403,7 @@ components: external_subscription_id: sub_1234567890 properties: gb: 10 - timestamp: 1651240791 + timestamp: "1651240791.123" properties: event: $ref: '#/components/schemas/EventInput_event' @@ -6876,7 +7422,7 @@ components: properties: gb: 10 lago_customer_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - timestamp: 2022-04-29T08:59:51Z + timestamp: 2022-04-29T08:59:51.123Z properties: lago_id: description: Unique identifier assigned to the event within the Lago application. @@ -6898,12 +7444,14 @@ components: identifier for the customer's record within the Lago system example: 1a901a90-1a90-1a90-1a90-1a901a901a90 format: uuid + nullable: true type: string external_customer_id: description: "The customer external unique identifier (provided by your\ \ own application). This field is optional if you send the `external_subscription_id`,\ \ targeting a specific subscription." example: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba + nullable: true type: string code: description: "The code that identifies a targeted billable metric. It is\ @@ -6917,23 +7465,25 @@ components: \ the occurrence of the event in Coordinated Universal Time (UTC). If\ \ this timestamp is not provided, the API will automatically set it to\ \ the time of event reception." - example: 2022-04-29T08:59:51Z + example: 2022-04-29T08:59:51.123Z format: date-time type: string properties: - $ref: '#/components/schemas/EventBatchInput_event_properties' + $ref: '#/components/schemas/EventObject_properties' lago_subscription_id: description: Unique identifier assigned to the subscription within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the subscription’s record within the Lago system example: 1a901a90-1a90-1a90-1a90-1a901a901a90 format: uuid + nullable: true type: string external_subscription_id: description: The unique identifier of the subscription within your application. It is a mandatory field when the customer possesses multiple subscriptions or when the `external_customer_id` is not provided. example: sub_1234567890 + nullable: true type: string created_at: description: "The creation date of the event's record in the Lago application,\ @@ -6962,6 +7512,7 @@ components: amount_cents: 100 external_customer_id: external_id created_at: 2022-08-24T14:58:59Z + precise_unit_amount: "312.5" units: "0.32" total_amount_currency: "" event_transaction_id: transaction_1234567890 @@ -6973,6 +7524,8 @@ components: item: lago_item_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 code: startup + invoice_display_name: Setup Fee (SF1) + group_invoice_display_name: Transactions - ACH item_type: Subscription name: Startup type: subscription @@ -6984,6 +7537,7 @@ components: succeeded_at: 2022-08-24T14:58:59Z total_amount_cents: 120 events_count: 23 + invoice_display_name: Setup Fee (SF1) pay_in_advance: true lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 lago_group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -7018,6 +7572,7 @@ components: amount_cents: 100 external_customer_id: external_id created_at: 2022-08-24T14:58:59Z + precise_unit_amount: "312.5" units: "0.32" total_amount_currency: "" event_transaction_id: transaction_1234567890 @@ -7029,6 +7584,8 @@ components: item: lago_item_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 code: startup + invoice_display_name: Setup Fee (SF1) + group_invoice_display_name: Transactions - ACH item_type: Subscription name: Startup type: subscription @@ -7040,6 +7597,7 @@ components: succeeded_at: 2022-08-24T14:58:59Z total_amount_cents: 120 events_count: 23 + invoice_display_name: Setup Fee (SF1) pay_in_advance: true lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 lago_group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -7092,35 +7650,37 @@ components: lago_subscription_id: description: "Unique identifier assigned to the subscription, created by\ \ Lago. This field is specifically displayed when the fee type is charge\ - \ and the payment for the fee is made in advance (`pay_in_advance` is\ - \ set to true)." + \ or subscription." example: 1a901a90-1a90-1a90-1a90-1a901a901a90 format: uuid nullable: true type: string lago_customer_id: description: "Unique identifier assigned to the customer, created by Lago.\ - \ This field is specifically displayed when the fee type is charge and\ - \ the payment for the fee is made in advance (`pay_in_advance` is set\ - \ to true)." + \ This field is specifically displayed when the fee type is charge or\ + \ subscription." example: 1a901a90-1a90-1a90-1a90-1a901a901a90 format: uuid nullable: true type: string external_customer_id: description: Unique identifier assigned to the customer in your application. - This field is specifically displayed when the fee type is charge and the - payment for the fee is made in advance (`pay_in_advance` is set to true). + This field is specifically displayed when the fee type is charge or subscription. example: external_id nullable: true type: string external_subscription_id: description: Unique identifier assigned to the subscription in your application. - This field is specifically displayed when the fee type is charge and the - payment for the fee is made in advance (`pay_in_advance` is set to true). + This field is specifically displayed when the fee type is charge or subscription. example: external_id nullable: true type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup Fee (SF1) + type: string amount_cents: description: "The cost of this specific fee, excluding any applicable taxes." example: 100 @@ -7147,6 +7707,10 @@ components: the customer. example: "0.32" type: string + precise_unit_amount: + description: "The unit amount of the fee per unit, with precision." + example: "312.5" + type: string total_amount_cents: description: "The cost of this specific fee, including any applicable taxes." example: 120 @@ -7255,11 +7819,11 @@ components: - item - pay_in_advance - payment_status + - precise_unit_amount - taxes_amount_cents - taxes_rate - total_amount_cents - total_amount_currency - - unit_amount_cents - units type: object Fees: @@ -7270,6 +7834,7 @@ components: amount_cents: 100 external_customer_id: external_id created_at: 2022-08-24T14:58:59Z + precise_unit_amount: "312.5" units: "0.32" total_amount_currency: "" event_transaction_id: transaction_1234567890 @@ -7281,6 +7846,8 @@ components: item: lago_item_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 code: startup + invoice_display_name: Setup Fee (SF1) + group_invoice_display_name: Transactions - ACH item_type: Subscription name: Startup type: subscription @@ -7292,6 +7859,7 @@ components: succeeded_at: 2022-08-24T14:58:59Z total_amount_cents: 120 events_count: 23 + invoice_display_name: Setup Fee (SF1) pay_in_advance: true lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 lago_group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -7306,6 +7874,7 @@ components: amount_cents: 100 external_customer_id: external_id created_at: 2022-08-24T14:58:59Z + precise_unit_amount: "312.5" units: "0.32" total_amount_currency: "" event_transaction_id: transaction_1234567890 @@ -7317,6 +7886,8 @@ components: item: lago_item_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 code: startup + invoice_display_name: Setup Fee (SF1) + group_invoice_display_name: Transactions - ACH item_type: Subscription name: Startup type: subscription @@ -7328,6 +7899,7 @@ components: succeeded_at: 2022-08-24T14:58:59Z total_amount_cents: 120 events_count: 23 + invoice_display_name: Setup Fee (SF1) pay_in_advance: true lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 lago_group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -7364,6 +7936,45 @@ components: required: - fee type: object + GrossRevenueObject: + example: + month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + properties: + month: + description: Identifies the month to analyze revenue. + example: 2023-11-01T00:00:00.000Z + type: string + amount_cents: + description: "The total amount of revenue for a period, expressed in cents." + example: 50000 + type: integer + currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: The currency of revenue analytics. Format must be ISO 4217. + example: USD + required: + - month + type: object + GrossRevenues: + example: + gross_revenues: + - month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + - month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + properties: + gross_revenues: + items: + $ref: '#/components/schemas/GrossRevenueObject' + type: array + required: + - gross_revenues + type: object GroupObject: example: lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -7397,6 +8008,12 @@ components: example: 1a901a90-1a90-1a90-1a90-1a901a901a90 format: uuid type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual group will be\ + \ used as the default display name." + example: AWS + type: string values: $ref: '#/components/schemas/GroupPropertiesObject_values' required: @@ -7429,6 +8046,45 @@ components: - groups - meta type: object + MrrObject: + example: + month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + properties: + month: + description: Identifies the month to analyze MRR. + example: 2023-11-01T00:00:00.000Z + type: string + amount_cents: + description: "The total amount of MRR, expressed in cents." + example: 50000 + type: integer + currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: The currency of MRR analytics. Format must be ISO 4217. + example: USD + required: + - month + type: object + Mrrs: + example: + mrrs: + - month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + - month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + properties: + mrrs: + items: + $ref: '#/components/schemas/MrrObject' + type: array + required: + - mrrs + type: object Invoice: example: invoice: null @@ -7455,6 +8111,54 @@ components: example: 20000 type: integer type: object + InvoicedUsageObject: + example: + code: code1 + month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + properties: + month: + description: Identifies the month to analyze revenue. + example: 2023-11-01T00:00:00.000Z + type: string + code: + description: The code of the usage-based billable metrics. + example: code1 + type: string + amount_cents: + description: "The total amount of revenue for a period, expressed in cents." + example: 50000 + type: integer + currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: The currency of revenue analytics. Format must be ISO 4217. + example: USD + required: + - amount_cents + - currency + - month + type: object + InvoicedUsages: + example: + invoiced_usages: + - code: code1 + month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + - code: code1 + month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + currency: "" + properties: + invoiced_usages: + items: + $ref: '#/components/schemas/InvoicedUsageObject' + type: array + required: + - invoiced_usages + type: object InvoiceMetadataObject: example: created_at: 2022-04-29T08:59:51Z @@ -7713,6 +8417,7 @@ components: - unit_amount_cents: 12000 tax_codes: - french_standard_vat + invoice_display_name: Setup Fee (SF1) description: "The description of the fee line item in the invoice. By\ \ default, the description of the add-on is used." add_on_code: setup_fee @@ -7720,6 +8425,7 @@ components: - unit_amount_cents: 12000 tax_codes: - french_standard_vat + invoice_display_name: Setup Fee (SF1) description: "The description of the fee line item in the invoice. By\ \ default, the description of the add-on is used." add_on_code: setup_fee @@ -7839,6 +8545,65 @@ components: required: - invoice type: object + OutstandingInvoiceObject: + example: + month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + payment_status: succeeded + currency: "" + invoices_count: 10 + properties: + month: + description: Identifies the month to analyze revenue. + example: 2023-11-01T00:00:00.000Z + type: string + payment_status: + description: The payment status of the invoices. + enum: + - pending + - succeeded + - failed + example: succeeded + type: string + invoices_count: + description: Contains invoices count. + example: 10 + type: integer + amount_cents: + description: "The total amount of revenue for a period, expressed in cents." + example: 50000 + type: integer + currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: The currency of revenue analytics. Format must be ISO 4217. + example: USD + required: + - amount_cents + - invoices_count + - month + type: object + OutstandingInvoices: + example: + outstanding_invoices: + - month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + payment_status: succeeded + currency: "" + invoices_count: 10 + - month: 2023-11-01T00:00:00.000Z + amount_cents: 50000 + payment_status: succeeded + currency: "" + invoices_count: 10 + properties: + outstanding_invoices: + items: + $ref: '#/components/schemas/OutstandingInvoiceObject' + type: array + required: + - outstanding_invoices + type: object Organization: example: organization: @@ -7886,6 +8651,7 @@ components: - https://webhook2.brex.com state: NYC legal_name: legal_name + default_currency: "" email: brex@brex.com tax_identification_number: US123456789 properties: @@ -7967,6 +8733,7 @@ components: - https://webhook2.brex.com state: NYC legal_name: legal_name + default_currency: "" email: brex@brex.com tax_identification_number: US123456789 properties: @@ -8013,6 +8780,11 @@ components: - description: The country of your organization. example: US nullable: true + default_currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: The default currency of an organization. + example: USD address_line1: description: The first line of your organization’s billing address. example: 100 Brex Street @@ -8106,6 +8878,7 @@ components: net_payment_term: 30 state: NYC legal_name: legal_name + default_currency: "" email: brex@brex.com tax_identification_number: US123456789 properties: @@ -8187,6 +8960,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -8201,6 +8975,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8221,18 +8996,22 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 @@ -8241,6 +9020,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8261,6 +9041,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -8270,6 +9051,7 @@ components: free_units_per_events: 5 free_units_per_total_aggregation: "500" group_properties: [] + invoice_display_name: Startup plan amount_currency: "" bill_charges_monthly: true name: Startup @@ -8293,6 +9075,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -8306,6 +9089,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a92 charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8323,23 +9107,28 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a93 charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8357,6 +9146,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a95 charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -8367,6 +9157,7 @@ components: free_units_per_total_aggregation: "500" group_properties: [] code: startup + invoice_display_name: Startup plan amount_cents: 10000 amount_currency: "" bill_charges_monthly: true @@ -8381,6 +9172,88 @@ components: required: - plan type: object + PlanOverridesObject: + description: Based plan overrides. + example: + tax_codes: + - french_standard_vat + charges: + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + invoice_display_name: Startup plan + amount_cents: 10000 + amount_currency: "" + name: Startup + description: Plan for early stage startups. + trial_period: 5 + properties: + amount_cents: + description: "The base cost of the plan, excluding any applicable taxes,\ + \ that is billed on a recurring basis. This value is defined at 0 if your\ + \ plan is a pay-as-you-go plan." + example: 10000 + type: integer + amount_currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: "The currency of the plan. It indicates the monetary unit\ + \ in which the plan's cost, including taxes and usage-based charges,\ + \ is expressed." + example: USD + description: + description: The description on the plan. + example: Plan for early stage startups. + type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the plan will be used as\ + \ the default display name." + example: Startup plan + type: string + name: + description: The name of the plan. + example: Startup + type: string + tax_codes: + description: List of unique code used to identify the taxes. + example: + - french_standard_vat + items: + type: string + type: array + trial_period: + description: The duration in days during which the base cost of the plan + is offered for free. + example: 5 + type: number + charges: + description: Additional usage-based charges for this plan. + items: + $ref: '#/components/schemas/PlanOverridesObject_charges_inner' + type: array + type: object PlanUpdateInput: example: plan: @@ -8390,6 +9263,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -8403,6 +9277,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a92 charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8420,23 +9295,28 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a93 charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8454,6 +9334,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a95 charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -8464,6 +9345,7 @@ components: free_units_per_total_aggregation: "500" group_properties: [] code: startup + invoice_display_name: Startup plan amount_cents: 10000 amount_currency: "" bill_charges_monthly: true @@ -8515,6 +9397,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -8529,6 +9412,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8549,18 +9433,22 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 @@ -8569,6 +9457,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8589,6 +9478,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -8598,6 +9488,7 @@ components: free_units_per_events: 5 free_units_per_total_aggregation: "500" group_properties: [] + invoice_display_name: Startup plan amount_currency: "" bill_charges_monthly: true name: Startup @@ -8616,6 +9507,12 @@ components: description: The name of the plan. example: Startup type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the plan will be used as\ + \ the default display name." + example: Startup plan + type: string created_at: description: The date and time when the plan was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field @@ -8702,6 +9599,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -8716,6 +9614,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8736,18 +9635,22 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 @@ -8756,6 +9659,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8776,6 +9680,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -8842,6 +9747,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -8856,6 +9762,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8876,18 +9783,22 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 @@ -8896,6 +9807,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -8916,6 +9828,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -8925,6 +9838,7 @@ components: free_units_per_events: 5 free_units_per_total_aggregation: "500" group_properties: [] + invoice_display_name: Startup plan amount_currency: "" bill_charges_monthly: true name: Startup @@ -8968,6 +9882,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -8982,6 +9897,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -9002,18 +9918,22 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 @@ -9022,6 +9942,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -9042,6 +9963,7 @@ components: created_at: 2023-06-27T19:43:42Z charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -9051,6 +9973,7 @@ components: free_units_per_events: 5 free_units_per_total_aggregation: "500" group_properties: [] + invoice_display_name: Startup plan amount_currency: "" bill_charges_monthly: true name: Startup @@ -9078,32 +10001,51 @@ components: type: object Subscription: example: - subscription: - canceled_at: 2022-09-14T16:35:31Z - external_customer_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba - next_plan_code: next_plan_code - plan_code: premium - created_at: 2022-08-08T00:00:00Z - external_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba - downgrade_plan_date: 2000-01-23T04:56:07.000+00:00 - billing_time: anniversary - name: Repository A - subscription_at: 2022-08-08T00:00:00Z - started_at: 2022-08-08T00:00:00Z - lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - previous_plan_code: previous_plan_code - terminated_at: 2022-09-14T16:35:31Z - lago_customer_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 - status: active + subscription: null properties: subscription: - $ref: '#/components/schemas/SubscriptionObject' + $ref: '#/components/schemas/SubscriptionObjectExtended' required: - subscription type: object SubscriptionCreateInput: example: subscription: + ending_at: 2022-10-08T00:00:00Z + plan_overrides: + tax_codes: + - french_standard_vat + charges: + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + invoice_display_name: Startup plan + amount_cents: 10000 + amount_currency: "" + name: Startup + description: Plan for early stage startups. + trial_period: 5 external_customer_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba billing_time: anniversary name: Repository A @@ -9119,6 +10061,41 @@ components: SubscriptionUpdateInput: example: subscription: + ending_at: 2022-10-08T00:00:00Z + plan_overrides: + tax_codes: + - french_standard_vat + charges: + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + invoice_display_name: Startup plan + amount_cents: 10000 + amount_currency: "" + name: Startup + description: Plan for early stage startups. + trial_period: 5 name: Repository B subscription_at: 2022-08-08T00:00:00Z properties: @@ -9135,6 +10112,7 @@ components: plan_code: premium created_at: 2022-08-08T00:00:00Z external_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba + ending_at: 2022-10-08T00:00:00Z downgrade_plan_date: 2000-01-23T04:56:07.000+00:00 billing_time: anniversary name: Repository A @@ -9237,6 +10215,14 @@ components: format: date-time nullable: true type: string + ending_at: + description: "The effective end date of the subscription. If this field\ + \ is set to null, the subscription will automatically renew. This date\ + \ should be provided in ISO 8601 datetime format, and use Coordinated\ + \ Universal Time (UTC)." + example: 2022-10-08T00:00:00Z + format: date-time + type: string subscription_at: description: The anniversary date and time of the initial subscription. This date serves as the basis for billing subscriptions with `anniversary` @@ -9283,6 +10269,13 @@ components: - status - subscription_at type: object + SubscriptionObjectExtended: + allOf: + - $ref: '#/components/schemas/SubscriptionObject' + - properties: + plan: + $ref: '#/components/schemas/PlanObject' + type: object SubscriptionsPaginated: example: subscriptions: @@ -9292,6 +10285,7 @@ components: plan_code: premium created_at: 2022-08-08T00:00:00Z external_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba + ending_at: 2022-10-08T00:00:00Z downgrade_plan_date: 2000-01-23T04:56:07.000+00:00 billing_time: anniversary name: Repository A @@ -9308,6 +10302,7 @@ components: plan_code: premium created_at: 2022-08-08T00:00:00Z external_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba + ending_at: 2022-10-08T00:00:00Z downgrade_plan_date: 2000-01-23T04:56:07.000+00:00 billing_time: anniversary name: Repository A @@ -10000,72 +10995,30 @@ components: required: - wallet type: object - getCustomerPortalUrl_200_response_customer: + WebhookEndpoint: example: - portal_url: https://app.lago.com/customer-portal/1234567890 + webhook_endpoint: + webhook_url: Prepaid + lago_organization_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + created_at: 2022-04-29T08:59:51Z + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + signature_algo: hmac properties: - portal_url: - description: An embeddable link for displaying a customer portal - example: https://app.lago.com/customer-portal/1234567890 - type: string + webhook_endpoint: + $ref: '#/components/schemas/WebhookEndpointObject' required: - - portal_url - type: object - getCustomerPortalUrl_200_response: - example: - customer: - portal_url: https://app.lago.com/customer-portal/1234567890 - properties: - customer: - $ref: '#/components/schemas/getCustomerPortalUrl_200_response_customer' - required: - - customer + - webhook_endpoint type: object - findAllWebhookEndpoints_200_response: + WebhookEndpointCreateInput: example: - webhook_endpoints: - - "{}" - - "{}" - meta: - next_page: 3 - total_count: 70 - total_pages: 4 - prev_page: 1 - current_page: 2 - properties: - webhook_endpoints: - items: - $ref: '#/paths/~1webhook_endpoints/post/responses/200/content/application~1json/schema/properties/webhook_endpoint' - type: array - meta: - $ref: '#/components/schemas/PaginationMeta' - required: - - meta - - webhook_endpoints - type: object - createWebhookEndpoint_request_webhook_endpoint: - properties: - webhook_url: - description: The URL of the webhook endpoint. - example: https://foo.bar - type: string - signature_algo: - description: "The signature used for the webhook. If no value is passed," - enum: - - jwt - - hmac - example: hmac - nullable: true - type: string - required: - - webhook_url - type: object - createWebhookEndpoint_request: + webhook_endpoint: + webhook_url: https://foo.bar + signature_algo: hmac properties: webhook_endpoint: - $ref: '#/components/schemas/createWebhookEndpoint_request_webhook_endpoint' + $ref: '#/components/schemas/WebhookEndpointCreateInput_webhook_endpoint' type: object - createWebhookEndpoint_200_response_webhook_endpoint: + WebhookEndpointObject: example: webhook_url: Prepaid lago_organization_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -10112,61 +11065,102 @@ components: - lago_organization_id - webhook_url type: object - createWebhookEndpoint_200_response: + WebhookEndpointsPaginated: example: - webhook_endpoint: - webhook_url: Prepaid + webhook_endpoints: + - webhook_url: Prepaid lago_organization_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 created_at: 2022-04-29T08:59:51Z lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 signature_algo: hmac + - webhook_url: Prepaid + lago_organization_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + created_at: 2022-04-29T08:59:51Z + lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + signature_algo: hmac + meta: + next_page: 3 + total_count: 70 + total_pages: 4 + prev_page: 1 + current_page: 2 + properties: + webhook_endpoints: + items: + $ref: '#/components/schemas/WebhookEndpointObject' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + required: + - meta + - webhook_endpoints + type: object + WebhookEndpointUpdateInput: + example: + webhook_endpoint: + webhook_url: https://foo.bar + signature_algo: hmac properties: webhook_endpoint: - $ref: '#/components/schemas/createWebhookEndpoint_200_response_webhook_endpoint' + $ref: '#/components/schemas/WebhookEndpointCreateInput_webhook_endpoint' + type: object + getCustomerPortalUrl_200_response_customer: + example: + portal_url: https://app.lago.com/customer-portal/1234567890 + properties: + portal_url: + description: An embeddable link for displaying a customer portal + example: https://app.lago.com/customer-portal/1234567890 + type: string required: - - webhook_endpoint + - portal_url type: object - AddOnCreateInput_add_on: - allOf: - - $ref: '#/components/schemas/AddOnBaseInput' - - required: - - amount_cents - - amount_currency - - code - - name - AppliedAddOnInput_applied_add_on: + getCustomerPortalUrl_200_response: example: - amount_cents: 50000 + customer: + portal_url: https://app.lago.com/customer-portal/1234567890 + properties: + customer: + $ref: '#/components/schemas/getCustomerPortalUrl_200_response_customer' + required: + - customer + type: object + generateCustomerCheckoutURL_200_response: + description: "." + example: + checkout_url: https://foo.bar external_customer_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba - amount_currency: "" - add_on_code: setup_fee + payment_provider: stripe + lago_customer_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 properties: + lago_customer_id: + description: Unique identifier assigned to the customer within the Lago + application. This ID is exclusively created by Lago and serves as a unique + identifier for the customer's record within the Lago system + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + type: string external_customer_id: description: The customer external unique identifier (provided by your own application) example: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba type: string - add_on_code: - description: Unique code used to identify the add-on. - example: setup_fee + payment_provider: + description: The Payment Provider name linked to the Customer. + example: stripe + type: string + checkout_url: + description: The new generated Payment Provider Checkout URL for the Customer. + example: https://foo.bar type: string - amount_cents: - description: "The cost of the add-on in cents, excluding any applicable\ - \ taxes, that is billed to a customer. By creating a one-off invoice,\ - \ you will be able to override this value." - example: 50000 - nullable: true - type: integer - amount_currency: - allOf: - - $ref: '#/components/schemas/Currency' - - description: The currency of the add-on. - example: USD - nullable: true - required: - - add_on_code - - external_customer_id type: object + AddOnCreateInput_add_on: + allOf: + - $ref: '#/components/schemas/AddOnBaseInput' + - required: + - amount_cents + - amount_currency + - code + - name AppliedCouponInput_applied_coupon: example: coupon_code: startup_deal @@ -10400,10 +11394,215 @@ components: - coupon_type - frequency - name + CreditNoteEstimateInput_credit_note_items_inner: + properties: + fee_id: + description: "The fee unique identifier, created by Lago." + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + format: uuid + type: string + amount_cents: + description: "The amount of the credit note item, expressed in cents." + example: 10 + type: integer + required: + - amount_cents + - fee_id + type: object + CreditNoteEstimateInput_credit_note: + example: + invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + items: + - fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 10 + - fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 + amount_cents: 5 + properties: + invoice_id: + description: "The invoice unique identifier, created by Lago." + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + format: uuid + type: string + items: + description: The list of credit note’s items. + example: + - fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 10 + - fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 + amount_cents: 5 + items: + $ref: '#/components/schemas/CreditNoteEstimateInput_credit_note_items_inner' + type: array + required: + - invoice_id + - items + type: object + CreditNoteEstimated_estimated_credit_note_items_inner: + example: + lago_fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 100 + properties: + amount_cents: + description: "The credit note’s item amount, expressed in cents." + example: 100 + type: integer + lago_fee_id: + description: Unique identifier assigned to the fee within the Lago application. + This ID is exclusively created by Lago and serves as a unique identifier + for the fee’s record within the Lago system. + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + format: uuid + nullable: true + type: string + required: + - amount_cents + - lago_fee_id + type: object + CreditNoteEstimated_estimated_credit_note_applied_taxes_inner: + example: + tax_code: french_standard_vat + amount_cents: 2000 + tax_name: TVA + amount_currency: "" + lago_tax_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + tax_description: French standard VAT + base_amount_cents: 100 + tax_rate: 20 + properties: + lago_tax_id: + description: "Unique identifier of the tax, created by Lago." + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + format: uuid + type: string + tax_name: + description: Name of the tax. + example: TVA + type: string + tax_code: + description: Unique code used to identify the tax associated with the API + request. + example: french_standard_vat + type: string + tax_rate: + description: The percentage rate of the tax + example: 20 + type: number + tax_description: + description: Internal description of the taxe + example: French standard VAT + type: string + base_amount_cents: + example: 100 + type: integer + amount_cents: + description: Amount of the tax + example: 2000 + type: integer + amount_currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: Currency of the tax + example: USD + type: object + CreditNoteEstimated_estimated_credit_note: + example: + taxes_amount_cents: 20 + taxes_rate: 20 + lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + max_creditable_amount_cents: 100 + max_refundable_amount_cents: 0 + currency: "" + applied_taxes: + - tax_code: french_standard_vat + amount_cents: 2000 + tax_name: TVA + amount_currency: "" + lago_tax_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + tax_description: French standard VAT + base_amount_cents: 100 + tax_rate: 20 + - tax_code: french_standard_vat + amount_cents: 2000 + tax_name: TVA + amount_currency: "" + lago_tax_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + tax_description: French standard VAT + base_amount_cents: 100 + tax_rate: 20 + sub_total_excluding_taxes_amount_cents: 100 + invoice_number: LAG-1234 + items: + - lago_fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 100 + - lago_fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + amount_cents: 100 + coupons_adjustment_amount_cents: 20 + properties: + lago_invoice_id: + description: Unique identifier assigned to the invoice that the credit note + belongs to + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + format: uuid + type: string + invoice_number: + description: "The invoice unique number, related to the credit note." + example: LAG-1234 + type: string + currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: The currency of the credit note. + example: EUR + taxes_amount_cents: + description: "The tax amount of the credit note, expressed in cents." + example: 20 + type: integer + taxes_rate: + description: The tax rate associated with this specific credit note. + example: 20 + type: number + sub_total_excluding_taxes_amount_cents: + description: "The subtotal of the credit note excluding any applicable taxes,\ + \ expressed in cents." + example: 100 + type: integer + max_creditable_amount_cents: + description: "The credited amount of the credit note, expressed in cents." + example: 100 + type: integer + max_refundable_amount_cents: + description: "The refunded amount of the credit note, expressed in cents." + example: 0 + type: integer + coupons_adjustment_amount_cents: + description: The pro-rated amount of the coupons applied to the source invoice. + example: 20 + type: integer + items: + description: Array of credit note’s items. + items: + $ref: '#/components/schemas/CreditNoteEstimated_estimated_credit_note_items_inner' + type: array + applied_taxes: + items: + $ref: '#/components/schemas/CreditNoteEstimated_estimated_credit_note_applied_taxes_inner' + type: array + required: + - coupons_adjustment_amount_cents + - currency + - invoice_number + - items + - lago_invoice_id + - max_creditable_amount_cents + - max_refundable_amount_cents + - sub_total_excluding_taxes_amount_cents + - taxes_amount_cents + - taxes_rate + type: object CreditObject_item: description: The item attached to the credit. properties: - lago_id: + lago_item_id: description: Unique identifier assigned to the credit item within the Lago application. example: 1a901a90-1a90-1a90-1a90-1a901a901a90 @@ -10430,7 +11629,7 @@ components: type: string required: - code - - lago_id + - lago_item_id - name - type type: object @@ -10455,21 +11654,6 @@ components: allOf: - $ref: '#/components/schemas/FeeObject' - description: The fee object related to the credit note item. - CreditNoteCreateInput_credit_note_items_inner: - properties: - fee_id: - description: "The fee unique identifier, created by Lago." - example: 1a901a90-1a90-1a90-1a90-1a901a901a90 - format: uuid - type: string - amount_cents: - description: "The amount of the credit note item, expressed in cents." - example: 10 - type: integer - required: - - amount_cents - - fee_id - type: object CreditNoteCreateInput_credit_note: example: reason: duplicated_charge @@ -10524,7 +11708,7 @@ components: - fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 amount_cents: 5 items: - $ref: '#/components/schemas/CreditNoteCreateInput_credit_note_items_inner' + $ref: '#/components/schemas/CreditNoteEstimateInput_credit_note_items_inner' type: array required: - invoice_id @@ -10553,6 +11737,7 @@ components: CustomerChargeUsageObject_charge: description: Object listing all the properties for a specific charge item. example: + invoice_display_name: Setup charge_model: graduated lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 properties: @@ -10574,6 +11759,12 @@ components: - volume example: graduated type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup + type: string required: - charge_model - lago_id @@ -10619,6 +11810,7 @@ components: type: object CustomerChargeUsageObject_groups_inner: example: + events_count: 10 amount_cents: 1000 lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 units: "0.9" @@ -10647,6 +11839,12 @@ components: example: "0.9" pattern: "^[0-9]+.?[0-9]*$" type: string + events_count: + description: The quantity of usage events that have been recorded for a + particular charge during the specified time period. These events may also + be referred to as the number of transactions in some contexts. + example: 10 + type: integer amount_cents: description: "The amount in cents, tax excluded, consumed for a specific\ \ group related to a charge item." @@ -10956,6 +12154,15 @@ components: required: - code type: object + EventInput_event_timestamp: + anyOf: + - type: integer + - type: string + description: | + This field captures the Unix timestamp in seconds indicating the occurrence of the event in Coordinated Universal Time (UTC). + If this timestamp is not provided, the API will automatically set it to the time of event reception. + You can also provide miliseconds precision by appending decimals to the timestamp. + example: "1651240791.123" EventInput_event: example: transaction_id: transaction_1234567890 @@ -10964,7 +12171,7 @@ components: external_subscription_id: sub_1234567890 properties: gb: 10 - timestamp: 1651240791 + timestamp: "1651240791.123" properties: transaction_id: description: "This field represents a unique identifier for the event. It\ @@ -10993,23 +12200,52 @@ components: example: storage type: string timestamp: - description: "This field captures the Unix timestamp in seconds indicating\ - \ the occurrence of the event in Coordinated Universal Time (UTC). If\ - \ this timestamp is not provided, the API will automatically set it to\ - \ the time of event reception." - example: 1651240791 - type: integer + $ref: '#/components/schemas/EventInput_event_timestamp' properties: - $ref: '#/components/schemas/EventBatchInput_event_properties' + additionalProperties: + type: string + description: "This field represents additional properties associated with\ + \ the event, which are utilized in the calculation of the final fee. This\ + \ object becomes mandatory when the targeted billable metric employs a\ + \ `sum_agg`, `max_agg`, or `unique_count_agg` aggregation method. However,\ + \ when using a simple `count_agg`, this object is not required." + example: + gb: 10 + type: object required: - code - transaction_id type: object + EventObject_properties: + additionalProperties: + type: string + description: "This field represents additional properties associated with the\ + \ event, which are utilized in the calculation of the final fee. This object\ + \ becomes mandatory when the targeted billable metric employs a `sum_agg`,\ + \ `max_agg`, or `unique_count_agg` aggregation method. However, when using\ + \ a simple `count_agg`, this object is not required." + example: + gb: 10 + properties: + operation_type: + description: "The `operation_type` field is only necessary when adding or\ + \ removing a specific unit when the targeted billable metric adopts a\ + \ `unique_count_agg` aggregation method. In other cases, the `operation_type`\ + \ field is not required. The valid values for the `operation_type` field\ + \ are `add` or `remove`, which indicate whether the unit is being added\ + \ or removed from the unique count aggregation, respectively." + enum: + - add + - remove + type: string + type: object FeeObject_item: description: Item attached to the fee example: lago_item_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 code: startup + invoice_display_name: Setup Fee (SF1) + group_invoice_display_name: Transactions - ACH item_type: Subscription name: Startup type: subscription @@ -11036,6 +12272,18 @@ components: \ `subscription`." example: Startup type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup Fee (SF1) + type: string + group_invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Transactions - ACH + type: string lago_item_id: description: "Unique identifier of the fee item, created by Lago. It can\ \ be the identifier of the `add-on`, the identifier of the `charge`, the\ @@ -11092,6 +12340,7 @@ components: unit_amount_cents: 12000 tax_codes: - french_standard_vat + invoice_display_name: Setup Fee (SF1) description: "The description of the fee line item in the invoice. By default,\ \ the description of the add-on is used." add_on_code: setup_fee @@ -11101,6 +12350,12 @@ components: description: The code of the add-on used as invoice item. example: setup_fee type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup Fee (SF1) + type: string unit_amount_cents: description: "The amount of the fee per unit, expressed in cents. By default,\ \ the amount of the add-on is used." @@ -11136,6 +12391,7 @@ components: - unit_amount_cents: 12000 tax_codes: - french_standard_vat + invoice_display_name: Setup Fee (SF1) description: "The description of the fee line item in the invoice. By default,\ \ the description of the add-on is used." add_on_code: setup_fee @@ -11143,6 +12399,7 @@ components: - unit_amount_cents: 12000 tax_codes: - french_standard_vat + invoice_display_name: Setup Fee (SF1) description: "The description of the fee line item in the invoice. By default,\ \ the description of the add-on is used." add_on_code: setup_fee @@ -11233,6 +12490,7 @@ components: net_payment_term: 30 state: NYC legal_name: legal_name + default_currency: "" email: brex@brex.com tax_identification_number: US123456789 properties: @@ -11251,6 +12509,11 @@ components: - description: The country of your organization. example: US nullable: true + default_currency: + allOf: + - $ref: '#/components/schemas/Currency' + - description: The default currency of an organization. + example: USD address_line1: description: The first line of your organization’s billing address. example: 100 Brex Street @@ -11329,6 +12592,9 @@ components: $ref: '#/components/schemas/OrganizationBillingConfiguration' type: object PlanCreateInput_plan_charges_inner_group_properties_inner: + example: + group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null properties: group_id: description: "Unique identifier of a billable metric group, created by Lago." @@ -11374,6 +12640,12 @@ components: \ `true`." example: true type: boolean + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup + type: string prorated: description: |- Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully. @@ -11412,6 +12684,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -11425,6 +12698,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a92 charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -11442,23 +12716,28 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a93 charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -11476,6 +12755,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a95 charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -11486,6 +12766,7 @@ components: free_units_per_total_aggregation: "500" group_properties: [] code: startup + invoice_display_name: Startup plan amount_cents: 10000 amount_currency: "" bill_charges_monthly: true @@ -11499,6 +12780,12 @@ components: description: The name of the plan. example: Startup type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the plan will be used as\ + \ the default display name." + example: Startup plan + type: string code: description: "The code of the plan. It serves as a unique identifier associated\ \ with a particular plan. The code is typically used for internal or system-level\ @@ -11566,6 +12853,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -11579,6 +12867,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a92 charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -11596,23 +12885,28 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a93 charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -11630,6 +12924,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a95 charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -11643,6 +12938,58 @@ components: $ref: '#/components/schemas/PlanCreateInput_plan_charges_inner' type: array type: object + PlanOverridesObject_charges_inner: + example: + tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + properties: + id: + description: Unique identifier of the charge created by Lago. + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + format: uuid + type: string + billable_metric_id: + description: Unique identifier of the billable metric created by Lago. + example: 1a901a90-1a90-1a90-1a90-1a901a901a90 + format: uuid + type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup + type: string + min_amount_cents: + description: "The minimum spending amount required for the charge, measured\ + \ in cents and excluding any applicable taxes. It indicates the minimum\ + \ amount that needs to be charged for each billing period." + example: 0 + type: integer + properties: + $ref: '#/components/schemas/ChargeObject_properties' + group_properties: + description: "All charge information, sorted by groups." + items: + $ref: '#/components/schemas/PlanCreateInput_plan_charges_inner_group_properties_inner' + type: array + tax_codes: + description: List of unique code used to identify the taxes. + example: + - french_standard_vat + items: + type: string + type: array + type: object PlanUpdateInput_plan_charges_inner: properties: id: @@ -11682,6 +13029,12 @@ components: \ `true`." example: true type: boolean + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the actual charge will be\ + \ used as the default display name." + example: Setup + type: string prorated: description: |- Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully. @@ -11720,6 +13073,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -11733,6 +13087,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a92 charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -11750,23 +13105,28 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a93 charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -11784,6 +13144,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a95 charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -11794,6 +13155,7 @@ components: free_units_per_total_aggregation: "500" group_properties: [] code: startup + invoice_display_name: Startup plan amount_cents: 10000 amount_currency: "" bill_charges_monthly: true @@ -11807,6 +13169,12 @@ components: description: The name of the plan. example: Startup type: string + invoice_display_name: + description: "Specifies the name that will be displayed on an invoice. If\ + \ no value is set for this field, the name of the plan will be used as\ + \ the default display name." + example: Startup plan + type: string code: description: "The code of the plan. It serves as a unique identifier associated\ \ with a particular plan. The code is typically used for internal or system-level\ @@ -11874,6 +13242,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a91 charge_model: package invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 3000 @@ -11887,6 +13256,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a92 charge_model: graduated invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -11904,23 +13274,28 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a93 charge_model: standard invoiceable: true + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 properties: {} group_properties: - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a01 + invoice_display_name: Europe values: amount: "10" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a02 + invoice_display_name: USA values: amount: "5" - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a03 + invoice_display_name: Africa values: amount: "8" - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a94 charge_model: volume invoiceable: true + invoice_display_name: Setup pay_in_advance: false prorated: false min_amount_cents: 0 @@ -11938,6 +13313,7 @@ components: - billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a95 charge_model: percentage invoiceable: false + invoice_display_name: Setup pay_in_advance: true prorated: false min_amount_cents: 0 @@ -11953,6 +13329,41 @@ components: type: object SubscriptionCreateInput_subscription: example: + ending_at: 2022-10-08T00:00:00Z + plan_overrides: + tax_codes: + - french_standard_vat + charges: + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + invoice_display_name: Startup plan + amount_cents: 10000 + amount_currency: "" + name: Startup + description: Plan for early stage startups. + trial_period: 5 external_customer_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba billing_time: anniversary name: Repository A @@ -11997,6 +13408,14 @@ components: - anniversary example: anniversary type: string + ending_at: + description: "The effective end date of the subscription. If this field\ + \ is set to null, the subscription will automatically renew. This date\ + \ should be provided in ISO 8601 datetime format, and use Coordinated\ + \ Universal Time (UTC)." + example: 2022-10-08T00:00:00Z + format: date-time + type: string subscription_at: description: "The start date for the subscription, allowing for the creation\ \ of subscriptions that can begin in the past or future. Please note that\ @@ -12007,6 +13426,8 @@ components: example: 2022-08-08T00:00:00Z format: date-time type: string + plan_overrides: + $ref: '#/components/schemas/PlanOverridesObject' required: - external_customer_id - external_id @@ -12014,6 +13435,41 @@ components: type: object SubscriptionUpdateInput_subscription: example: + ending_at: 2022-10-08T00:00:00Z + plan_overrides: + tax_codes: + - french_standard_vat + charges: + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + - tax_codes: + - french_standard_vat + invoice_display_name: Setup + billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + group_properties: + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + - group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + values: null + min_amount_cents: 0 + id: 1a901a90-1a90-1a90-1a90-1a901a901a90 + properties: null + invoice_display_name: Startup plan + amount_cents: 10000 + amount_currency: "" + name: Startup + description: Plan for early stage startups. + trial_period: 5 name: Repository B subscription_at: 2022-08-08T00:00:00Z properties: @@ -12025,6 +13481,14 @@ components: example: Repository B nullable: true type: string + ending_at: + description: "The effective end date of the subscription. If this field\ + \ is set to null, the subscription will automatically renew. This date\ + \ should be provided in ISO 8601 datetime format, and use Coordinated\ + \ Universal Time (UTC)." + example: 2022-10-08T00:00:00Z + format: date-time + type: string subscription_at: description: The start date and time of the subscription. This field can only be modified for pending subscriptions that have not yet started. @@ -12033,6 +13497,8 @@ components: example: 2022-08-08T00:00:00Z format: date-time type: string + plan_overrides: + $ref: '#/components/schemas/PlanOverridesObject' type: object TaxCreateInput_tax: allOf: @@ -12146,6 +13612,26 @@ components: nullable: true type: string type: object + WebhookEndpointCreateInput_webhook_endpoint: + example: + webhook_url: https://foo.bar + signature_algo: hmac + properties: + webhook_url: + description: The URL of the webhook endpoint. + example: https://foo.bar + type: string + signature_algo: + description: "The signature used for the webhook. If no value is passed," + enum: + - jwt + - hmac + example: hmac + nullable: true + type: string + required: + - webhook_url + type: object securitySchemes: bearerAuth: scheme: bearer diff --git a/build.gradle b/build.gradle index a2a5036..8b8d0b1 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'org.openapitools' -version = '0.46.0-beta' +version = '0.52.0-beta' buildscript { repositories { @@ -57,9 +57,9 @@ if(hasProperty('target') && target == 'android') { def task = project.tasks.create "jar${variant.name.capitalize()}", Jar task.description = "Create jar artifact for ${variant.name}" task.dependsOn variant.javaCompile - task.from variant.javaCompile.destinationDir - task.destinationDir = project.file("${project.buildDir}/outputs/jar") - task.archiveName = "${project.name}-${variant.baseName}-${version}.jar" + task.from variant.javaCompile.destinationDirectory + task.destinationDirectory = project.file("${project.buildDir}/outputs/jar") + task.archiveFileName = "${project.name}-${variant.baseName}-${version}.jar" artifacts.add('archives', task); } } @@ -112,10 +112,10 @@ if(hasProperty('target') && target == 'android') { } ext { - spring_boot_version = "2.6.6" + spring_boot_version = "2.7.17" jakarta_annotation_version = "1.3.5" - reactor_version = "3.4.3" - reactor_netty_version = "1.0.4" + reactor_version = "3.4.34" + reactor_netty_version = "1.0.39" jackson_version = "2.13.4" jackson_databind_version = "2.13.4.2" jackson_databind_nullable_version = "0.2.6" diff --git a/config.yml b/config.yml index afb1933..f01fab4 100644 --- a/config.yml +++ b/config.yml @@ -1,7 +1,7 @@ apiPackage: org.getlago.client.api artifactDescription: Lago Java API Client artifactId: lago-java-client -artifactUrl: https://github.com/getlago/lago +artifactUrl: https://github.com/getlago/lago-java-client developerEmail: tech@getlago.com developerName: Jeremy Denquin developerOrganization: Lago diff --git a/docs/AddOnBaseInput.md b/docs/AddOnBaseInput.md index 8ebec2e..516376f 100644 --- a/docs/AddOnBaseInput.md +++ b/docs/AddOnBaseInput.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | The name of the add-on. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**code** | **String** | Unique code used to identify the add-on. | [optional] | |**amountCents** | **Integer** | The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. | [optional] | |**amountCurrency** | [**Currency**](Currency.md) | | [optional] | diff --git a/docs/AddOnCreateInputAddOn.md b/docs/AddOnCreateInputAddOn.md index bcc53a5..d0a04ac 100644 --- a/docs/AddOnCreateInputAddOn.md +++ b/docs/AddOnCreateInputAddOn.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | The name of the add-on. | | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**code** | **String** | Unique code used to identify the add-on. | | |**amountCents** | **Integer** | The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. | | |**amountCurrency** | [**Currency**](Currency.md) | | | diff --git a/docs/AddOnObject.md b/docs/AddOnObject.md index 7822f04..f324cda 100644 --- a/docs/AddOnObject.md +++ b/docs/AddOnObject.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**lagoId** | **UUID** | Unique identifier of the add-on, created by Lago. | | |**name** | **String** | The name of the add-on. | | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**code** | **String** | Unique code used to identify the add-on. | | |**amountCents** | **Integer** | The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. | | |**amountCurrency** | [**Currency**](Currency.md) | | | diff --git a/docs/AddOnsApi.md b/docs/AddOnsApi.md index 39cdaa4..ca1fe68 100644 --- a/docs/AddOnsApi.md +++ b/docs/AddOnsApi.md @@ -4,7 +4,6 @@ All URIs are relative to *https://api.getlago.com/api/v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**applyAddOn**](AddOnsApi.md#applyAddOn) | **POST** /applied_add_ons | Apply an add-on to a customer | | [**createAddOn**](AddOnsApi.md#createAddOn) | **POST** /add_ons | Create an add-on | | [**destroyAddOn**](AddOnsApi.md#destroyAddOn) | **DELETE** /add_ons/{code} | Delete an add-on | | [**findAddOn**](AddOnsApi.md#findAddOn) | **GET** /add_ons/{code} | Retrieve an add-on | @@ -13,81 +12,6 @@ All URIs are relative to *https://api.getlago.com/api/v1* -## applyAddOn - -> AppliedAddOn applyAddOn(appliedAddOnInput) - -Apply an add-on to a customer - -Apply an add-on to a customer - -### Example - -```java -// Import classes: -import org.getlago.client.ApiClient; -import org.getlago.client.ApiException; -import org.getlago.client.Configuration; -import org.getlago.client.auth.*; -import org.getlago.client.models.*; -import org.getlago.client.api.AddOnsApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.getlago.com/api/v1"); - - // Configure HTTP bearer authorization: bearerAuth - HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); - bearerAuth.setBearerToken("BEARER TOKEN"); - - AddOnsApi apiInstance = new AddOnsApi(defaultClient); - AppliedAddOnInput appliedAddOnInput = new AppliedAddOnInput(); // AppliedAddOnInput | Apply add-on payload - try { - AppliedAddOn result = apiInstance.applyAddOn(appliedAddOnInput); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AddOnsApi#applyAddOn"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **appliedAddOnInput** | [**AppliedAddOnInput**](AppliedAddOnInput.md)| Apply add-on payload | | - -### Return type - -[**AppliedAddOn**](AppliedAddOn.md) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Add-on applied | - | -| **400** | Bad Request error | - | -| **401** | Unauthorized error | - | -| **404** | Not Found error | - | -| **422** | Unprocessable entity error | - | - - ## createAddOn > AddOn createAddOn(addOnCreateInput) diff --git a/docs/AnalyticsApi.md b/docs/AnalyticsApi.md new file mode 100644 index 0000000..2e8d281 --- /dev/null +++ b/docs/AnalyticsApi.md @@ -0,0 +1,304 @@ +# AnalyticsApi + +All URIs are relative to *https://api.getlago.com/api/v1* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**findAllGrossRevenues**](AnalyticsApi.md#findAllGrossRevenues) | **GET** /analytics/gross_revenue | List gross revenue | +| [**findAllInvoicedUsages**](AnalyticsApi.md#findAllInvoicedUsages) | **GET** /analytics/invoiced_usage | List usage revenue | +| [**findAllMrrs**](AnalyticsApi.md#findAllMrrs) | **GET** /analytics/mrr | List MRR | +| [**findAllOutstandingInvoices**](AnalyticsApi.md#findAllOutstandingInvoices) | **GET** /analytics/outstanding_invoices | List outstanding invoices | + + + +## findAllGrossRevenues + +> GrossRevenues findAllGrossRevenues(currency, externalCustomerId) + +List gross revenue + +Gross revenue is the sum of monthly `finalized` invoice payments and fees paid in advance that are not invoiceable. This total is calculated after deducting taxes and discounts. + +### Example + +```java +// Import classes: +import org.getlago.client.ApiClient; +import org.getlago.client.ApiException; +import org.getlago.client.Configuration; +import org.getlago.client.auth.*; +import org.getlago.client.models.*; +import org.getlago.client.api.AnalyticsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.getlago.com/api/v1"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); + Currency currency = new Currency(); // Currency | Currency of revenue analytics. Format must be ISO 4217. + String externalCustomerId = "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"; // String | The customer external unique identifier (provided by your own application). Use it to filter revenue analytics at the customer level. + try { + GrossRevenues result = apiInstance.findAllGrossRevenues(currency, externalCustomerId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AnalyticsApi#findAllGrossRevenues"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **currency** | [**Currency**](.md)| Currency of revenue analytics. Format must be ISO 4217. | [optional] | +| **externalCustomerId** | **String**| The customer external unique identifier (provided by your own application). Use it to filter revenue analytics at the customer level. | [optional] | + +### Return type + +[**GrossRevenues**](GrossRevenues.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Gross revenue | - | +| **401** | Unauthorized error | - | + + +## findAllInvoicedUsages + +> InvoicedUsages findAllInvoicedUsages(currency) + +List usage revenue + +Reports a monthly analysis focused on the revenue generated from all usage-based fees. It exclusively accounts for revenue that has been formally invoiced. Importantly, this report does not include revenue related to the usage in the current billing period, limiting its scope to previously invoiced amounts. + +### Example + +```java +// Import classes: +import org.getlago.client.ApiClient; +import org.getlago.client.ApiException; +import org.getlago.client.Configuration; +import org.getlago.client.auth.*; +import org.getlago.client.models.*; +import org.getlago.client.api.AnalyticsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.getlago.com/api/v1"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); + Currency currency = new Currency(); // Currency | The currency of invoiced usage analytics. Format must be ISO 4217. + try { + InvoicedUsages result = apiInstance.findAllInvoicedUsages(currency); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AnalyticsApi#findAllInvoicedUsages"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **currency** | [**Currency**](.md)| The currency of invoiced usage analytics. Format must be ISO 4217. | [optional] | + +### Return type + +[**InvoicedUsages**](InvoicedUsages.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Invoiced usage | - | +| **401** | Unauthorized error | - | + + +## findAllMrrs + +> Mrrs findAllMrrs(currency, months) + +List MRR + +This endpoint is used to list MRR. + +### Example + +```java +// Import classes: +import org.getlago.client.ApiClient; +import org.getlago.client.ApiException; +import org.getlago.client.Configuration; +import org.getlago.client.auth.*; +import org.getlago.client.models.*; +import org.getlago.client.api.AnalyticsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.getlago.com/api/v1"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); + Currency currency = new Currency(); // Currency | Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and prior to the deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next three months) as well as to fees paid in arrears (allocated to the preceding three months). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next twelve months) and for fees paid in arrears (spread over the previous twelve months). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month. + Integer months = 12; // Integer | Show data only for given number of months. + try { + Mrrs result = apiInstance.findAllMrrs(currency, months); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AnalyticsApi#findAllMrrs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **currency** | [**Currency**](.md)| Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and prior to the deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next three months) as well as to fees paid in arrears (allocated to the preceding three months). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next twelve months) and for fees paid in arrears (spread over the previous twelve months). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month. | [optional] | +| **months** | **Integer**| Show data only for given number of months. | [optional] | + +### Return type + +[**Mrrs**](Mrrs.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | MRR | - | +| **401** | Unauthorized error | - | + + +## findAllOutstandingInvoices + +> OutstandingInvoices findAllOutstandingInvoices(currency) + +List outstanding invoices + +Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`. + +### Example + +```java +// Import classes: +import org.getlago.client.ApiClient; +import org.getlago.client.ApiException; +import org.getlago.client.Configuration; +import org.getlago.client.auth.*; +import org.getlago.client.models.*; +import org.getlago.client.api.AnalyticsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.getlago.com/api/v1"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); + Currency currency = new Currency(); // Currency | The currency of revenue analytics. Format must be ISO 4217. + try { + OutstandingInvoices result = apiInstance.findAllOutstandingInvoices(currency); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AnalyticsApi#findAllOutstandingInvoices"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **currency** | [**Currency**](.md)| The currency of revenue analytics. Format must be ISO 4217. | [optional] | + +### Return type + +[**OutstandingInvoices**](OutstandingInvoices.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Outstanding invoices | - | +| **401** | Unauthorized error | - | + diff --git a/docs/AppliedAddOnInputAppliedAddOn.md b/docs/AppliedAddOnInputAppliedAddOn.md deleted file mode 100644 index 2942efe..0000000 --- a/docs/AppliedAddOnInputAppliedAddOn.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AppliedAddOnInputAppliedAddOn - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**externalCustomerId** | **String** | The customer external unique identifier (provided by your own application) | | -|**addOnCode** | **String** | Unique code used to identify the add-on. | | -|**amountCents** | **Integer** | The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. | [optional] | -|**amountCurrency** | [**Currency**](Currency.md) | | [optional] | - - - diff --git a/docs/AppliedAddOnObject.md b/docs/AppliedAddOnObject.md deleted file mode 100644 index d34f6d3..0000000 --- a/docs/AppliedAddOnObject.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# AppliedAddOnObject - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**lagoId** | **UUID** | Unique identifier of the applied add-on created by Lago. | | -|**lagoAddOnId** | **UUID** | Unique identifier of the add-on created by Lago. | | -|**addOnCode** | **String** | Unique code used to identify the add-on. | | -|**lagoCustomerId** | **UUID** | Unique identifier of the customer created by Lago. | | -|**externalCustomerId** | **String** | The customer external unique identifier (provided by your own application) | | -|**amountCents** | **Integer** | The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. | | -|**amountCurrency** | [**Currency**](Currency.md) | | | -|**createdAt** | **OffsetDateTime** | | | - - - diff --git a/docs/BillableMetricBaseInput.md b/docs/BillableMetricBaseInput.md index 5458921..032aa7e 100644 --- a/docs/BillableMetricBaseInput.md +++ b/docs/BillableMetricBaseInput.md @@ -12,7 +12,8 @@ |**description** | **String** | Internal description of the billable metric. | [optional] | |**recurring** | **Boolean** | Defines if the billable metric is persisted billing period over billing period. - If set to `true`: the accumulated number of units calculated from the previous billing period is persisted to the next billing period. - If set to `false`: the accumulated number of units is reset to 0 at the end of the billing period. - If not defined in the request, default value is `false`. | [optional] | |**fieldName** | **String** | Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`. | [optional] | -|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. | [optional] | +|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | Aggregation method used to compute usage for this billable metric. | [optional] | +|**weightedInterval** | [**WeightedIntervalEnum**](#WeightedIntervalEnum) | Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. | [optional] | |**group** | [**BillableMetricGroup**](BillableMetricGroup.md) | | [optional] | @@ -25,6 +26,16 @@ | SUM_AGG | "sum_agg" | | MAX_AGG | "max_agg" | | UNIQUE_COUNT_AGG | "unique_count_agg" | +| WEIGHTED_SUM_AGG | "weighted_sum_agg" | +| LATEST_AGG | "latest_agg" | + + + +## Enum: WeightedIntervalEnum + +| Name | Value | +|---- | -----| +| SECONDS | "seconds" | diff --git a/docs/BillableMetricCreateInputBillableMetric.md b/docs/BillableMetricCreateInputBillableMetric.md index f76fc94..5b5a4dd 100644 --- a/docs/BillableMetricCreateInputBillableMetric.md +++ b/docs/BillableMetricCreateInputBillableMetric.md @@ -12,7 +12,8 @@ |**description** | **String** | Internal description of the billable metric. | [optional] | |**recurring** | **Boolean** | Defines if the billable metric is persisted billing period over billing period. - If set to `true`: the accumulated number of units calculated from the previous billing period is persisted to the next billing period. - If set to `false`: the accumulated number of units is reset to 0 at the end of the billing period. - If not defined in the request, default value is `false`. | [optional] | |**fieldName** | **String** | Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`. | [optional] | -|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. | | +|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | Aggregation method used to compute usage for this billable metric. | | +|**weightedInterval** | [**WeightedIntervalEnum**](#WeightedIntervalEnum) | Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. | [optional] | |**group** | [**BillableMetricGroup**](BillableMetricGroup.md) | | [optional] | @@ -25,6 +26,16 @@ | SUM_AGG | "sum_agg" | | MAX_AGG | "max_agg" | | UNIQUE_COUNT_AGG | "unique_count_agg" | +| WEIGHTED_SUM_AGG | "weighted_sum_agg" | +| LATEST_AGG | "latest_agg" | + + + +## Enum: WeightedIntervalEnum + +| Name | Value | +|---- | -----| +| SECONDS | "seconds" | diff --git a/docs/BillableMetricObject.md b/docs/BillableMetricObject.md index 250877d..e8ce347 100644 --- a/docs/BillableMetricObject.md +++ b/docs/BillableMetricObject.md @@ -14,7 +14,8 @@ |**recurring** | **Boolean** | Defines if the billable metric is persisted billing period over billing period. - If set to `true`: the accumulated number of units calculated from the previous billing period is persisted to the next billing period. - If set to `false`: the accumulated number of units is reset to 0 at the end of the billing period. - If not defined in the request, default value is `false`. | | |**createdAt** | **OffsetDateTime** | Creation date of the billable metric. | | |**fieldName** | **String** | Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`. | [optional] | -|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. | | +|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | Aggregation method used to compute usage for this billable metric. | | +|**weightedInterval** | [**WeightedIntervalEnum**](#WeightedIntervalEnum) | Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. | [optional] | |**group** | [**BillableMetricGroup**](BillableMetricGroup.md) | | [optional] | |**activeSubscriptionsCount** | **Integer** | Number of active subscriptions using this billable metric. | | |**draftInvoicesCount** | **Integer** | Number of draft invoices for which this billable metric is listed as an invoice item. | | @@ -30,6 +31,16 @@ | SUM_AGG | "sum_agg" | | MAX_AGG | "max_agg" | | UNIQUE_COUNT_AGG | "unique_count_agg" | +| WEIGHTED_SUM_AGG | "weighted_sum_agg" | +| LATEST_AGG | "latest_agg" | + + + +## Enum: WeightedIntervalEnum + +| Name | Value | +|---- | -----| +| SECONDS | "seconds" | diff --git a/docs/ChargeObject.md b/docs/ChargeObject.md index 838761b..2b0d58c 100644 --- a/docs/ChargeObject.md +++ b/docs/ChargeObject.md @@ -10,6 +10,7 @@ |**lagoId** | **UUID** | Unique identifier of charge, created by Lago. | | |**lagoBillableMetricId** | **UUID** | Unique identifier of the billable metric created by Lago. | | |**billableMetricCode** | **String** | Unique code identifying a billable metric. | | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**createdAt** | **OffsetDateTime** | The date and time when the charge was created. It is expressed in UTC format according to the ISO 8601 datetime standard. | | |**chargeModel** | [**ChargeModelEnum**](#ChargeModelEnum) | Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `graduated_percentage`, `package`, `percentage` or `volume`. | | |**payInAdvance** | **Boolean** | This field determines the billing timing for this specific usage-based charge. When set to `true`, the charge is due and invoiced immediately. Conversely, when set to `false`, the charge is due and invoiced at the end of each billing period. | [optional] | diff --git a/docs/CouponObject.md b/docs/CouponObject.md index d6d6f9f..f5113b5 100644 --- a/docs/CouponObject.md +++ b/docs/CouponObject.md @@ -25,6 +25,7 @@ |**expiration** | [**ExpirationEnum**](#ExpirationEnum) | Specifies the type of expiration for the coupon. It can have two possible values: `time_limit` or `no_expiration`. - If set to `time_limit`, the coupon has an expiration based on a specified time limit. - If set to `no_expiration`, the coupon does not have an expiration date and remains valid indefinitely. | | |**expirationAt** | **OffsetDateTime** | The expiration date and time of the coupon. This field is required only for coupons with `expiration` set to `time_limit`. The expiration date and time should be specified in UTC format according to the ISO 8601 datetime standard. It indicates the exact moment when the coupon will expire and is no longer valid. | [optional] | |**createdAt** | **OffsetDateTime** | The date and time when the coupon was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the coupon was initially created. | | +|**terminatedAt** | **OffsetDateTime** | This field indicates if the coupon has been terminated and is no longer usable. If it's not null, it won't be removed for existing customers using it, but it prevents the coupon from being applied in the future. | [optional] | diff --git a/docs/CreateWebhookEndpoint200Response.md b/docs/CreateWebhookEndpoint200Response.md deleted file mode 100644 index 290a6a4..0000000 --- a/docs/CreateWebhookEndpoint200Response.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# CreateWebhookEndpoint200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**webhookEndpoint** | [**CreateWebhookEndpoint200ResponseWebhookEndpoint**](CreateWebhookEndpoint200ResponseWebhookEndpoint.md) | | | - - - diff --git a/docs/CreateWebhookEndpointRequest.md b/docs/CreateWebhookEndpointRequest.md deleted file mode 100644 index 8fde054..0000000 --- a/docs/CreateWebhookEndpointRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# CreateWebhookEndpointRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**webhookEndpoint** | [**CreateWebhookEndpointRequestWebhookEndpoint**](CreateWebhookEndpointRequestWebhookEndpoint.md) | | [optional] | - - - diff --git a/docs/CreditNoteCreateInputCreditNote.md b/docs/CreditNoteCreateInputCreditNote.md index bdd6c3c..f75543e 100644 --- a/docs/CreditNoteCreateInputCreditNote.md +++ b/docs/CreditNoteCreateInputCreditNote.md @@ -12,7 +12,7 @@ |**description** | **String** | The description of the credit note. | [optional] | |**creditAmountCents** | **Integer** | The total amount to be credited on the customer balance. | [optional] | |**refundAmountCents** | **Integer** | The total amount to be refunded to the customer. | [optional] | -|**items** | [**List<CreditNoteCreateInputCreditNoteItemsInner>**](CreditNoteCreateInputCreditNoteItemsInner.md) | The list of credit note’s items. | | +|**items** | [**List<CreditNoteEstimateInputCreditNoteItemsInner>**](CreditNoteEstimateInputCreditNoteItemsInner.md) | The list of credit note’s items. | | diff --git a/docs/CreditNoteEstimateInput.md b/docs/CreditNoteEstimateInput.md new file mode 100644 index 0000000..261b394 --- /dev/null +++ b/docs/CreditNoteEstimateInput.md @@ -0,0 +1,13 @@ + + +# CreditNoteEstimateInput + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**creditNote** | [**CreditNoteEstimateInputCreditNote**](CreditNoteEstimateInputCreditNote.md) | | | + + + diff --git a/docs/CreditNoteEstimateInputCreditNote.md b/docs/CreditNoteEstimateInputCreditNote.md new file mode 100644 index 0000000..1e884aa --- /dev/null +++ b/docs/CreditNoteEstimateInputCreditNote.md @@ -0,0 +1,14 @@ + + +# CreditNoteEstimateInputCreditNote + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**invoiceId** | **UUID** | The invoice unique identifier, created by Lago. | | +|**items** | [**List<CreditNoteEstimateInputCreditNoteItemsInner>**](CreditNoteEstimateInputCreditNoteItemsInner.md) | The list of credit note’s items. | | + + + diff --git a/docs/CreditNoteCreateInputCreditNoteItemsInner.md b/docs/CreditNoteEstimateInputCreditNoteItemsInner.md similarity index 86% rename from docs/CreditNoteCreateInputCreditNoteItemsInner.md rename to docs/CreditNoteEstimateInputCreditNoteItemsInner.md index 41f3d1b..27f04dc 100644 --- a/docs/CreditNoteCreateInputCreditNoteItemsInner.md +++ b/docs/CreditNoteEstimateInputCreditNoteItemsInner.md @@ -1,6 +1,6 @@ -# CreditNoteCreateInputCreditNoteItemsInner +# CreditNoteEstimateInputCreditNoteItemsInner ## Properties diff --git a/docs/CreditNoteEstimated.md b/docs/CreditNoteEstimated.md new file mode 100644 index 0000000..099bb72 --- /dev/null +++ b/docs/CreditNoteEstimated.md @@ -0,0 +1,13 @@ + + +# CreditNoteEstimated + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**estimatedCreditNote** | [**CreditNoteEstimatedEstimatedCreditNote**](CreditNoteEstimatedEstimatedCreditNote.md) | | | + + + diff --git a/docs/CreditNoteEstimatedEstimatedCreditNote.md b/docs/CreditNoteEstimatedEstimatedCreditNote.md new file mode 100644 index 0000000..9a1bd62 --- /dev/null +++ b/docs/CreditNoteEstimatedEstimatedCreditNote.md @@ -0,0 +1,23 @@ + + +# CreditNoteEstimatedEstimatedCreditNote + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lagoInvoiceId** | **UUID** | Unique identifier assigned to the invoice that the credit note belongs to | | +|**invoiceNumber** | **String** | The invoice unique number, related to the credit note. | | +|**currency** | [**Currency**](Currency.md) | | | +|**taxesAmountCents** | **Integer** | The tax amount of the credit note, expressed in cents. | | +|**taxesRate** | **BigDecimal** | The tax rate associated with this specific credit note. | | +|**subTotalExcludingTaxesAmountCents** | **Integer** | The subtotal of the credit note excluding any applicable taxes, expressed in cents. | | +|**maxCreditableAmountCents** | **Integer** | The credited amount of the credit note, expressed in cents. | | +|**maxRefundableAmountCents** | **Integer** | The refunded amount of the credit note, expressed in cents. | | +|**couponsAdjustmentAmountCents** | **Integer** | The pro-rated amount of the coupons applied to the source invoice. | | +|**items** | [**List<CreditNoteEstimatedEstimatedCreditNoteItemsInner>**](CreditNoteEstimatedEstimatedCreditNoteItemsInner.md) | Array of credit note’s items. | | +|**appliedTaxes** | [**List<CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner>**](CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md) | | [optional] | + + + diff --git a/docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md b/docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md new file mode 100644 index 0000000..855f3ad --- /dev/null +++ b/docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md @@ -0,0 +1,20 @@ + + +# CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lagoTaxId** | **UUID** | Unique identifier of the tax, created by Lago. | [optional] | +|**taxName** | **String** | Name of the tax. | [optional] | +|**taxCode** | **String** | Unique code used to identify the tax associated with the API request. | [optional] | +|**taxRate** | **BigDecimal** | The percentage rate of the tax | [optional] | +|**taxDescription** | **String** | Internal description of the taxe | [optional] | +|**baseAmountCents** | **Integer** | | [optional] | +|**amountCents** | **Integer** | Amount of the tax | [optional] | +|**amountCurrency** | [**Currency**](Currency.md) | | [optional] | + + + diff --git a/docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md b/docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md new file mode 100644 index 0000000..d37a416 --- /dev/null +++ b/docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md @@ -0,0 +1,14 @@ + + +# CreditNoteEstimatedEstimatedCreditNoteItemsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amountCents** | **Integer** | The credit note’s item amount, expressed in cents. | | +|**lagoFeeId** | **UUID** | Unique identifier assigned to the fee within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the fee’s record within the Lago system. | | + + + diff --git a/docs/CreditNoteItemObjectFee.md b/docs/CreditNoteItemObjectFee.md index ceb9550..cdfafd5 100644 --- a/docs/CreditNoteItemObjectFee.md +++ b/docs/CreditNoteItemObjectFee.md @@ -12,15 +12,17 @@ |**lagoInvoiceId** | **UUID** | Unique identifier assigned to the invoice that the fee belongs to | [optional] | |**lagoTrueUpFeeId** | **UUID** | Unique identifier assigned to the true-up fee when a minimum has been set to the charge. This identifier helps to distinguish and manage the true-up fee associated with the charge, which may be applicable when a minimum threshold or limit is set for the charge amount. | [optional] | |**lagoTrueUpParentFeeId** | **UUID** | Unique identifier assigned to the parent fee on which the true-up fee is assigned. This identifier establishes the relationship between the parent fee and the associated true-up fee. | [optional] | -|**lagoSubscriptionId** | **UUID** | Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). | [optional] | -|**lagoCustomerId** | **UUID** | Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). | [optional] | -|**externalCustomerId** | **String** | Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). | [optional] | -|**externalSubscriptionId** | **String** | Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). | [optional] | +|**lagoSubscriptionId** | **UUID** | Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge or subscription. | [optional] | +|**lagoCustomerId** | **UUID** | Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge or subscription. | [optional] | +|**externalCustomerId** | **String** | Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge or subscription. | [optional] | +|**externalSubscriptionId** | **String** | Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge or subscription. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**amountCents** | **Integer** | The cost of this specific fee, excluding any applicable taxes. | | |**amountCurrency** | [**Currency**](Currency.md) | | | |**taxesAmountCents** | **Integer** | The cost of the tax associated with this specific fee. | | |**taxesRate** | **BigDecimal** | The tax rate associated with this specific fee. | | |**units** | **String** | The number of units used to charge the customer. This field indicates the quantity or count of units consumed or utilized in the context of the charge. It helps in determining the basis for calculating the fee or cost associated with the usage of the service or product provided to the customer. | | +|**preciseUnitAmount** | **String** | The unit amount of the fee per unit, with precision. | | |**totalAmountCents** | **Integer** | The cost of this specific fee, including any applicable taxes. | | |**totalAmountCurrency** | [**Currency**](Currency.md) | | | |**eventsCount** | **Integer** | The number of events that have been sent and used to charge the customer. This field indicates the count or quantity of events that have been processed and considered in the charging process. | [optional] | diff --git a/docs/CreditNoteObject.md b/docs/CreditNoteObject.md index aeab88d..2a36505 100644 --- a/docs/CreditNoteObject.md +++ b/docs/CreditNoteObject.md @@ -25,7 +25,7 @@ |**balanceAmountCents** | **Integer** | The remaining credit note amount, expressed in cents. | | |**creditAmountCents** | **Integer** | The credited amount of the credit note, expressed in cents. | | |**refundAmountCents** | **Integer** | The refunded amount of the credit note, expressed in cents. | | -|**couponsAdjustementAmountCents** | **Integer** | The pro-rated amount of the coupons applied to the source invoice. | | +|**couponsAdjustmentAmountCents** | **Integer** | The pro-rated amount of the coupons applied to the source invoice. | | |**createdAt** | **OffsetDateTime** | The date when the credit note was created. It is expressed in Coordinated Universal Time (UTC). | | |**updatedAt** | **OffsetDateTime** | The date when the credit note was last updated. It is expressed in Coordinated Universal Time (UTC). | | |**fileUrl** | **String** | The PDF file of the credit note. | [optional] | diff --git a/docs/CreditNotesApi.md b/docs/CreditNotesApi.md index 96f3ef9..52533ce 100644 --- a/docs/CreditNotesApi.md +++ b/docs/CreditNotesApi.md @@ -6,6 +6,7 @@ All URIs are relative to *https://api.getlago.com/api/v1* |------------- | ------------- | -------------| | [**createCreditNote**](CreditNotesApi.md#createCreditNote) | **POST** /credit_notes | Create a credit note | | [**downloadCreditNote**](CreditNotesApi.md#downloadCreditNote) | **POST** /credit_notes/{lago_id}/download | Download a credit note PDF | +| [**estimateCreditNote**](CreditNotesApi.md#estimateCreditNote) | **POST** /credit_notes/estimate | Estimate amounts for a new credit note | | [**findAllCreditNotes**](CreditNotesApi.md#findAllCreditNotes) | **GET** /credit_notes | List all credit notes | | [**findCreditNote**](CreditNotesApi.md#findCreditNote) | **GET** /credit_notes/{lago_id} | Retrieve a credit note | | [**updateCreditNote**](CreditNotesApi.md#updateCreditNote) | **PUT** /credit_notes/{lago_id} | Update a credit note | @@ -160,6 +161,80 @@ public class Example { | **404** | Not Found error | - | +## estimateCreditNote + +> CreditNoteEstimated estimateCreditNote(creditNoteEstimateInput) + +Estimate amounts for a new credit note + +This endpoint allows you to retrieve amounts for a new credit note creation. + +### Example + +```java +// Import classes: +import org.getlago.client.ApiClient; +import org.getlago.client.ApiException; +import org.getlago.client.Configuration; +import org.getlago.client.auth.*; +import org.getlago.client.models.*; +import org.getlago.client.api.CreditNotesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.getlago.com/api/v1"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + CreditNotesApi apiInstance = new CreditNotesApi(defaultClient); + CreditNoteEstimateInput creditNoteEstimateInput = new CreditNoteEstimateInput(); // CreditNoteEstimateInput | Credit note estimate payload + try { + CreditNoteEstimated result = apiInstance.estimateCreditNote(creditNoteEstimateInput); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CreditNotesApi#estimateCreditNote"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **creditNoteEstimateInput** | [**CreditNoteEstimateInput**](CreditNoteEstimateInput.md)| Credit note estimate payload | [optional] | + +### Return type + +[**CreditNoteEstimated**](CreditNoteEstimated.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Credit note amounts | - | +| **400** | Bad Request error | - | +| **401** | Unauthorized error | - | +| **422** | Unprocessable entity error | - | + + ## findAllCreditNotes > CreditNotes findAllCreditNotes(page, perPage, externalCustomerId) diff --git a/docs/CreditObjectItem.md b/docs/CreditObjectItem.md index 86b5152..a74dd0a 100644 --- a/docs/CreditObjectItem.md +++ b/docs/CreditObjectItem.md @@ -8,7 +8,7 @@ The item attached to the credit. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**lagoId** | **UUID** | Unique identifier assigned to the credit item within the Lago application. | | +|**lagoItemId** | **UUID** | Unique identifier assigned to the credit item within the Lago application. | | |**type** | [**TypeEnum**](#TypeEnum) | The type of credit applied. Possible values are `coupon` or `credit_note`. | | |**code** | **String** | The code of the credit applied. It can be the code of the coupon attached to the credit or the credit note's number. | | |**name** | **String** | The name of the credit applied. It can be the name of the coupon attached to the credit or the initial invoice's number linked to the credit note. | | diff --git a/docs/CustomerChargeUsageObject.md b/docs/CustomerChargeUsageObject.md index 2daa2a5..9efe94f 100644 --- a/docs/CustomerChargeUsageObject.md +++ b/docs/CustomerChargeUsageObject.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**units** | **String** | The number of units consumed by the customer for a specific charge item. | | +|**eventsCount** | **Integer** | The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts. | | |**amountCents** | **Integer** | The amount in cents, tax excluded, consumed by the customer for a specific charge item. | | |**amountCurrency** | [**Currency**](Currency.md) | | | |**charge** | [**CustomerChargeUsageObjectCharge**](CustomerChargeUsageObjectCharge.md) | | | diff --git a/docs/CustomerChargeUsageObjectCharge.md b/docs/CustomerChargeUsageObjectCharge.md index 7d9e167..c60792f 100644 --- a/docs/CustomerChargeUsageObjectCharge.md +++ b/docs/CustomerChargeUsageObjectCharge.md @@ -10,6 +10,7 @@ Object listing all the properties for a specific charge item. |------------ | ------------- | ------------- | -------------| |**lagoId** | **UUID** | Unique identifier assigned to the charge within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the charge’s record within the Lago system. | | |**chargeModel** | [**ChargeModelEnum**](#ChargeModelEnum) | The pricing model applied to this charge. Possible values are standard, `graduated`, `percentage`, `package` or `volume`. | | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | diff --git a/docs/CustomerChargeUsageObjectGroupsInner.md b/docs/CustomerChargeUsageObjectGroupsInner.md index d1bdea6..1ecad0d 100644 --- a/docs/CustomerChargeUsageObjectGroupsInner.md +++ b/docs/CustomerChargeUsageObjectGroupsInner.md @@ -11,6 +11,7 @@ |**key** | **String** | The group key, only returned for groups with two dimensions. | [optional] | |**value** | **String** | The group value. | [optional] | |**units** | **String** | The number of units consumed for a specific group related to a charge item. | [optional] | +|**eventsCount** | **Integer** | The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts. | [optional] | |**amountCents** | **Integer** | The amount in cents, tax excluded, consumed for a specific group related to a charge item. | [optional] | diff --git a/docs/FindAllWebhookEndpoints200Response.md b/docs/CustomerPastUsage.md similarity index 65% rename from docs/FindAllWebhookEndpoints200Response.md rename to docs/CustomerPastUsage.md index 8ae0d26..ba9691a 100644 --- a/docs/FindAllWebhookEndpoints200Response.md +++ b/docs/CustomerPastUsage.md @@ -1,13 +1,13 @@ -# FindAllWebhookEndpoints200Response +# CustomerPastUsage ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**webhookEndpoints** | **List<Object>** | | | +|**usagePeriods** | [**List<CustomerUsage>**](CustomerUsage.md) | | | |**meta** | [**PaginationMeta**](PaginationMeta.md) | | | diff --git a/docs/CustomerUsageObject.md b/docs/CustomerUsageObject.md index de00dcf..4584b0a 100644 --- a/docs/CustomerUsageObject.md +++ b/docs/CustomerUsageObject.md @@ -10,6 +10,7 @@ |**fromDatetime** | **OffsetDateTime** | The lower bound of the billing period, expressed in the ISO 8601 datetime format in Coordinated Universal Time (UTC). | | |**toDatetime** | **OffsetDateTime** | The upper bound of the billing period, expressed in the ISO 8601 datetime format in Coordinated Universal Time (UTC). | | |**issuingDate** | **OffsetDateTime** | The date of creation of the invoice. | | +|**lagoInvoiceId** | **UUID** | A unique identifier associated with the invoice related to this particular usage record. | [optional] | |**currency** | [**Currency**](Currency.md) | | [optional] | |**amountCents** | **Integer** | The amount in cents, tax excluded. | | |**taxesAmountCents** | **Integer** | The tax amount in cents. | | diff --git a/docs/CustomersApi.md b/docs/CustomersApi.md index 0593522..ed42533 100644 --- a/docs/CustomersApi.md +++ b/docs/CustomersApi.md @@ -7,9 +7,11 @@ All URIs are relative to *https://api.getlago.com/api/v1* | [**createCustomer**](CustomersApi.md#createCustomer) | **POST** /customers | Create a customer | | [**deleteAppliedCoupon**](CustomersApi.md#deleteAppliedCoupon) | **DELETE** /customers/{external_customer_id}/applied_coupons/{applied_coupon_id} | Delete an applied coupon | | [**destroyCustomer**](CustomersApi.md#destroyCustomer) | **DELETE** /customers/{external_id} | Delete a customer | +| [**findAllCustomerPastUsage**](CustomersApi.md#findAllCustomerPastUsage) | **GET** /customers/{external_customer_id}/past_usage | Retrieve customer past usage | | [**findAllCustomers**](CustomersApi.md#findAllCustomers) | **GET** /customers | List all customers | | [**findCustomer**](CustomersApi.md#findCustomer) | **GET** /customers/{external_id} | Retrieve a customer | | [**findCustomerCurrentUsage**](CustomersApi.md#findCustomerCurrentUsage) | **GET** /customers/{external_customer_id}/current_usage | Retrieve customer current usage | +| [**generateCustomerCheckoutURL**](CustomersApi.md#generateCustomerCheckoutURL) | **POST** /customers/{external_customer_id}/checkout_url | Generate a Customer Payment Provider Checkout URL | | [**getCustomerPortalUrl**](CustomersApi.md#getCustomerPortalUrl) | **GET** /customers/{external_customer_id}/portal_url | Get a customer portal URL | @@ -236,6 +238,90 @@ public class Example { | **404** | Not Found error | - | +## findAllCustomerPastUsage + +> CustomerPastUsage findAllCustomerPastUsage(externalCustomerId, externalSubscriptionId, page, perPage, billableMetricCode, periodsCount) + +Retrieve customer past usage + +This endpoint enables the retrieval of the usage-based billing data for a customer within past periods. + +### Example + +```java +// Import classes: +import org.getlago.client.ApiClient; +import org.getlago.client.ApiException; +import org.getlago.client.Configuration; +import org.getlago.client.auth.*; +import org.getlago.client.models.*; +import org.getlago.client.api.CustomersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.getlago.com/api/v1"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + CustomersApi apiInstance = new CustomersApi(defaultClient); + String externalCustomerId = "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"; // String | The customer external unique identifier (provided by your own application). + String externalSubscriptionId = "sub_1234567890"; // String | The unique identifier of the subscription within your application. + Integer page = 1; // Integer | Page number. + Integer perPage = 20; // Integer | Number of records per page. + String billableMetricCode = "cpu"; // String | Billable metric code filter to apply to the charge usage + Integer periodsCount = 5; // Integer | Number of past billing period to returns in the result + try { + CustomerPastUsage result = apiInstance.findAllCustomerPastUsage(externalCustomerId, externalSubscriptionId, page, perPage, billableMetricCode, periodsCount); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomersApi#findAllCustomerPastUsage"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **externalCustomerId** | **String**| The customer external unique identifier (provided by your own application). | | +| **externalSubscriptionId** | **String**| The unique identifier of the subscription within your application. | | +| **page** | **Integer**| Page number. | [optional] | +| **perPage** | **Integer**| Number of records per page. | [optional] | +| **billableMetricCode** | **String**| Billable metric code filter to apply to the charge usage | [optional] | +| **periodsCount** | **Integer**| Number of past billing period to returns in the result | [optional] | + +### Return type + +[**CustomerPastUsage**](CustomerPastUsage.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Customer past usage | - | +| **401** | Unauthorized error | - | +| **404** | Not Found error | - | +| **422** | Unprocessable entity error | - | + + ## findAllCustomers > CustomersPaginated findAllCustomers(page, perPage) @@ -458,6 +544,80 @@ public class Example { | **404** | Not Found error | - | +## generateCustomerCheckoutURL + +> GenerateCustomerCheckoutURL200Response generateCustomerCheckoutURL(externalCustomerId) + +Generate a Customer Payment Provider Checkout URL + +This endpoint regenerates the Payment Provider Checkout URL of a Customer. + +### Example + +```java +// Import classes: +import org.getlago.client.ApiClient; +import org.getlago.client.ApiException; +import org.getlago.client.Configuration; +import org.getlago.client.auth.*; +import org.getlago.client.models.*; +import org.getlago.client.api.CustomersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.getlago.com/api/v1"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + CustomersApi apiInstance = new CustomersApi(defaultClient); + String externalCustomerId = "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"; // String | The customer external unique identifier (provided by your own application). + try { + GenerateCustomerCheckoutURL200Response result = apiInstance.generateCustomerCheckoutURL(externalCustomerId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomersApi#generateCustomerCheckoutURL"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **externalCustomerId** | **String**| The customer external unique identifier (provided by your own application). | | + +### Return type + +[**GenerateCustomerCheckoutURL200Response**](GenerateCustomerCheckoutURL200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Customer Checkout URL | - | +| **401** | Unauthorized error | - | +| **404** | Not Found error | - | +| **422** | Unprocessable entity error | - | + + ## getCustomerPortalUrl > GetCustomerPortalUrl200Response getCustomerPortalUrl(externalCustomerId) diff --git a/docs/EventInputEvent.md b/docs/EventInputEvent.md index 14012ae..4dc0f56 100644 --- a/docs/EventInputEvent.md +++ b/docs/EventInputEvent.md @@ -11,8 +11,8 @@ |**externalCustomerId** | **String** | The customer external unique identifier (provided by your own application). This field is optional if you send the `external_subscription_id`, targeting a specific subscription. | [optional] | |**externalSubscriptionId** | **String** | The unique identifier of the subscription within your application. It is a mandatory field when the customer possesses multiple subscriptions or when the `external_customer_id` is not provided. | [optional] | |**code** | **String** | The code that identifies a targeted billable metric. It is essential that this code matches the `code` property of one of your active billable metrics. If the provided code does not correspond to any active billable metric, it will be ignored during the process. | | -|**timestamp** | **Integer** | This field captures the Unix timestamp in seconds indicating the occurrence of the event in Coordinated Universal Time (UTC). If this timestamp is not provided, the API will automatically set it to the time of event reception. | [optional] | -|**properties** | **EventBatchInputEventProperties** | | [optional] | +|**timestamp** | [**EventInputEventTimestamp**](EventInputEventTimestamp.md) | | [optional] | +|**properties** | **Map<String, String>** | This field represents additional properties associated with the event, which are utilized in the calculation of the final fee. This object becomes mandatory when the targeted billable metric employs a `sum_agg`, `max_agg`, or `unique_count_agg` aggregation method. However, when using a simple `count_agg`, this object is not required. | [optional] | diff --git a/docs/EventInputEventTimestamp.md b/docs/EventInputEventTimestamp.md new file mode 100644 index 0000000..0d921ba --- /dev/null +++ b/docs/EventInputEventTimestamp.md @@ -0,0 +1,13 @@ + + +# EventInputEventTimestamp + +This field captures the Unix timestamp in seconds indicating the occurrence of the event in Coordinated Universal Time (UTC). If this timestamp is not provided, the API will automatically set it to the time of event reception. You can also provide miliseconds precision by appending decimals to the timestamp. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/docs/EventObject.md b/docs/EventObject.md index 53f8618..fff1a24 100644 --- a/docs/EventObject.md +++ b/docs/EventObject.md @@ -13,7 +13,7 @@ |**externalCustomerId** | **String** | The customer external unique identifier (provided by your own application). This field is optional if you send the `external_subscription_id`, targeting a specific subscription. | | |**code** | **String** | The code that identifies a targeted billable metric. It is essential that this code matches the `code` property of one of your active billable metrics. If the provided code does not correspond to any active billable metric, it will be ignored during the process. | | |**timestamp** | **OffsetDateTime** | This field captures the Unix timestamp in seconds indicating the occurrence of the event in Coordinated Universal Time (UTC). If this timestamp is not provided, the API will automatically set it to the time of event reception. | | -|**properties** | **EventBatchInputEventProperties** | | [optional] | +|**properties** | **EventObjectProperties** | | [optional] | |**lagoSubscriptionId** | **UUID** | Unique identifier assigned to the subscription within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the subscription’s record within the Lago system | | |**externalSubscriptionId** | **String** | The unique identifier of the subscription within your application. It is a mandatory field when the customer possesses multiple subscriptions or when the `external_customer_id` is not provided. | | |**createdAt** | **OffsetDateTime** | The creation date of the event's record in the Lago application, presented in the ISO 8601 datetime format, specifically in Coordinated Universal Time (UTC). It provides the precise timestamp of when the event's record was created within the Lago application | | diff --git a/docs/EventObjectProperties.md b/docs/EventObjectProperties.md new file mode 100644 index 0000000..41511fe --- /dev/null +++ b/docs/EventObjectProperties.md @@ -0,0 +1,23 @@ + + +# EventObjectProperties + +This field represents additional properties associated with the event, which are utilized in the calculation of the final fee. This object becomes mandatory when the targeted billable metric employs a `sum_agg`, `max_agg`, or `unique_count_agg` aggregation method. However, when using a simple `count_agg`, this object is not required. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**operationType** | [**OperationTypeEnum**](#OperationTypeEnum) | The `operation_type` field is only necessary when adding or removing a specific unit when the targeted billable metric adopts a `unique_count_agg` aggregation method. In other cases, the `operation_type` field is not required. The valid values for the `operation_type` field are `add` or `remove`, which indicate whether the unit is being added or removed from the unique count aggregation, respectively. | [optional] | + + + +## Enum: OperationTypeEnum + +| Name | Value | +|---- | -----| +| ADD | "add" | +| REMOVE | "remove" | + + + diff --git a/docs/EventsApi.md b/docs/EventsApi.md index a609483..a6f11e6 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -86,7 +86,7 @@ null (empty response body) ## createEvent -> createEvent(eventInput) +> Event createEvent(eventInput) Send usage events @@ -115,7 +115,8 @@ public class Example { EventsApi apiInstance = new EventsApi(defaultClient); EventInput eventInput = new EventInput(); // EventInput | Event payload try { - apiInstance.createEvent(eventInput); + Event result = apiInstance.createEvent(eventInput); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EventsApi#createEvent"); System.err.println("Status code: " + e.getCode()); @@ -136,7 +137,7 @@ public class Example { ### Return type -null (empty response body) +[**Event**](Event.md) ### Authorization @@ -151,7 +152,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Event received | - | +| **200** | Event | - | | **400** | Bad Request error | - | | **401** | Unauthorized error | - | | **422** | Unprocessable entity error | - | diff --git a/docs/FeeObject.md b/docs/FeeObject.md index d9617be..07436ed 100644 --- a/docs/FeeObject.md +++ b/docs/FeeObject.md @@ -12,15 +12,17 @@ |**lagoInvoiceId** | **UUID** | Unique identifier assigned to the invoice that the fee belongs to | [optional] | |**lagoTrueUpFeeId** | **UUID** | Unique identifier assigned to the true-up fee when a minimum has been set to the charge. This identifier helps to distinguish and manage the true-up fee associated with the charge, which may be applicable when a minimum threshold or limit is set for the charge amount. | [optional] | |**lagoTrueUpParentFeeId** | **UUID** | Unique identifier assigned to the parent fee on which the true-up fee is assigned. This identifier establishes the relationship between the parent fee and the associated true-up fee. | [optional] | -|**lagoSubscriptionId** | **UUID** | Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). | [optional] | -|**lagoCustomerId** | **UUID** | Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). | [optional] | -|**externalCustomerId** | **String** | Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). | [optional] | -|**externalSubscriptionId** | **String** | Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). | [optional] | +|**lagoSubscriptionId** | **UUID** | Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge or subscription. | [optional] | +|**lagoCustomerId** | **UUID** | Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge or subscription. | [optional] | +|**externalCustomerId** | **String** | Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge or subscription. | [optional] | +|**externalSubscriptionId** | **String** | Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge or subscription. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**amountCents** | **Integer** | The cost of this specific fee, excluding any applicable taxes. | | |**amountCurrency** | [**Currency**](Currency.md) | | | |**taxesAmountCents** | **Integer** | The cost of the tax associated with this specific fee. | | |**taxesRate** | **BigDecimal** | The tax rate associated with this specific fee. | | |**units** | **String** | The number of units used to charge the customer. This field indicates the quantity or count of units consumed or utilized in the context of the charge. It helps in determining the basis for calculating the fee or cost associated with the usage of the service or product provided to the customer. | | +|**preciseUnitAmount** | **String** | The unit amount of the fee per unit, with precision. | | |**totalAmountCents** | **Integer** | The cost of this specific fee, including any applicable taxes. | | |**totalAmountCurrency** | [**Currency**](Currency.md) | | | |**eventsCount** | **Integer** | The number of events that have been sent and used to charge the customer. This field indicates the count or quantity of events that have been processed and considered in the charging process. | [optional] | diff --git a/docs/FeeObjectItem.md b/docs/FeeObjectItem.md index 02b7867..4bd63e3 100644 --- a/docs/FeeObjectItem.md +++ b/docs/FeeObjectItem.md @@ -11,6 +11,8 @@ Item attached to the fee |**type** | [**TypeEnum**](#TypeEnum) | The fee type. Possible values are `add-on`, `charge`, `credit` or `subscription`. | | |**code** | **String** | The code of the fee item. It can be the code of the `add-o`n, the code of the `charge`, the code of the `credit` or the code of the `subscription`. | | |**name** | **String** | The name of the fee item. It can be the name of the `add-on`, the name of the `charge`, the name of the `credit` or the name of the `subscription`. | | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | +|**groupInvoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**lagoItemId** | **UUID** | Unique identifier of the fee item, created by Lago. It can be the identifier of the `add-on`, the identifier of the `charge`, the identifier of the `credit` or the identifier of the `subscription`. | | |**itemType** | [**ItemTypeEnum**](#ItemTypeEnum) | The type of the fee item. Possible values are `AddOn`, `BillableMetric`, `WalletTransaction` or `Subscription`. | | diff --git a/docs/GenerateCustomerCheckoutURL200Response.md b/docs/GenerateCustomerCheckoutURL200Response.md new file mode 100644 index 0000000..24ce04a --- /dev/null +++ b/docs/GenerateCustomerCheckoutURL200Response.md @@ -0,0 +1,17 @@ + + +# GenerateCustomerCheckoutURL200Response + +. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lagoCustomerId** | **String** | Unique identifier assigned to the customer within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the customer's record within the Lago system | [optional] | +|**externalCustomerId** | **String** | The customer external unique identifier (provided by your own application) | [optional] | +|**paymentProvider** | **String** | The Payment Provider name linked to the Customer. | [optional] | +|**checkoutUrl** | **String** | The new generated Payment Provider Checkout URL for the Customer. | [optional] | + + + diff --git a/docs/GrossRevenueObject.md b/docs/GrossRevenueObject.md new file mode 100644 index 0000000..18cf80b --- /dev/null +++ b/docs/GrossRevenueObject.md @@ -0,0 +1,15 @@ + + +# GrossRevenueObject + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**month** | **String** | Identifies the month to analyze revenue. | | +|**amountCents** | **Integer** | The total amount of revenue for a period, expressed in cents. | [optional] | +|**currency** | [**Currency**](Currency.md) | | [optional] | + + + diff --git a/docs/AppliedAddOnInput.md b/docs/GrossRevenues.md similarity index 51% rename from docs/AppliedAddOnInput.md rename to docs/GrossRevenues.md index e75f974..3f0f7d4 100644 --- a/docs/AppliedAddOnInput.md +++ b/docs/GrossRevenues.md @@ -1,13 +1,13 @@ -# AppliedAddOnInput +# GrossRevenues ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**appliedAddOn** | [**AppliedAddOnInputAppliedAddOn**](AppliedAddOnInputAppliedAddOn.md) | | | +|**grossRevenues** | [**List<GrossRevenueObject>**](GrossRevenueObject.md) | | | diff --git a/docs/GroupPropertiesObject.md b/docs/GroupPropertiesObject.md index 1e45f0b..7924c30 100644 --- a/docs/GroupPropertiesObject.md +++ b/docs/GroupPropertiesObject.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**groupId** | **UUID** | Unique identifier of a billable metric group, created by Lago. | | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual group will be used as the default display name. | [optional] | |**values** | [**GroupPropertiesObjectValues**](GroupPropertiesObjectValues.md) | | | diff --git a/docs/InvoiceOneOffCreateInputInvoiceFeesInner.md b/docs/InvoiceOneOffCreateInputInvoiceFeesInner.md index f9dc10b..be684c8 100644 --- a/docs/InvoiceOneOffCreateInputInvoiceFeesInner.md +++ b/docs/InvoiceOneOffCreateInputInvoiceFeesInner.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**addOnCode** | **String** | The code of the add-on used as invoice item. | | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**unitAmountCents** | **Integer** | The amount of the fee per unit, expressed in cents. By default, the amount of the add-on is used. | [optional] | |**units** | **String** | The quantity of units associated with the fee. By default, only 1 unit is added to the invoice. | [optional] | |**description** | **String** | This is a description | [optional] | diff --git a/docs/InvoicedUsageObject.md b/docs/InvoicedUsageObject.md new file mode 100644 index 0000000..d356079 --- /dev/null +++ b/docs/InvoicedUsageObject.md @@ -0,0 +1,16 @@ + + +# InvoicedUsageObject + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**month** | **String** | Identifies the month to analyze revenue. | | +|**code** | **String** | The code of the usage-based billable metrics. | [optional] | +|**amountCents** | **Integer** | The total amount of revenue for a period, expressed in cents. | | +|**currency** | [**Currency**](Currency.md) | | | + + + diff --git a/docs/InvoicedUsages.md b/docs/InvoicedUsages.md new file mode 100644 index 0000000..9282491 --- /dev/null +++ b/docs/InvoicedUsages.md @@ -0,0 +1,13 @@ + + +# InvoicedUsages + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**invoicedUsages** | [**List<InvoicedUsageObject>**](InvoicedUsageObject.md) | | | + + + diff --git a/docs/MrrObject.md b/docs/MrrObject.md new file mode 100644 index 0000000..4892b30 --- /dev/null +++ b/docs/MrrObject.md @@ -0,0 +1,15 @@ + + +# MrrObject + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**month** | **String** | Identifies the month to analyze MRR. | | +|**amountCents** | **Integer** | The total amount of MRR, expressed in cents. | [optional] | +|**currency** | [**Currency**](Currency.md) | | [optional] | + + + diff --git a/docs/AppliedAddOn.md b/docs/Mrrs.md similarity index 57% rename from docs/AppliedAddOn.md rename to docs/Mrrs.md index 9695628..4eb43c8 100644 --- a/docs/AppliedAddOn.md +++ b/docs/Mrrs.md @@ -1,13 +1,13 @@ -# AppliedAddOn +# Mrrs ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**appliedAddOn** | [**AppliedAddOnObject**](AppliedAddOnObject.md) | | | +|**mrrs** | [**List<MrrObject>**](MrrObject.md) | | | diff --git a/docs/OrganizationObject.md b/docs/OrganizationObject.md index 1f1940a..500af04 100644 --- a/docs/OrganizationObject.md +++ b/docs/OrganizationObject.md @@ -13,6 +13,7 @@ |**webhookUrl** | **String** | The URL of your newest updated webhook endpoint. This URL allows your organization to receive important messages, notifications, or data from the Lago system. By configuring your webhook endpoint to this URL, you can ensure that your organization stays informed and receives relevant information in a timely manner. | [optional] | |**webhookUrls** | **List<String>** | The array containing your webhooks URLs. | [optional] | |**country** | [**Country**](Country.md) | | [optional] | +|**defaultCurrency** | [**Currency**](Currency.md) | | [optional] | |**addressLine1** | **String** | The first line of your organization’s billing address. | [optional] | |**addressLine2** | **String** | The second line of your organization’s billing address. | [optional] | |**state** | **String** | The state of your organization’s billing address. | [optional] | diff --git a/docs/OrganizationUpdateInputOrganization.md b/docs/OrganizationUpdateInputOrganization.md index 3984b9b..1ad5bad 100644 --- a/docs/OrganizationUpdateInputOrganization.md +++ b/docs/OrganizationUpdateInputOrganization.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**webhookUrl** | **String** | The URL of your newest updated webhook endpoint. This URL allows your organization to receive important messages, notifications, or data from the Lago system. By configuring your webhook endpoint to this URL, you can ensure that your organization stays informed and receives relevant information in a timely manner. | [optional] | |**country** | [**Country**](Country.md) | | [optional] | +|**defaultCurrency** | [**Currency**](Currency.md) | | [optional] | |**addressLine1** | **String** | The first line of your organization’s billing address. | [optional] | |**addressLine2** | **String** | The second line of your organization’s billing address. | [optional] | |**state** | **String** | The state of your organization’s billing address. | [optional] | diff --git a/docs/OutstandingInvoiceObject.md b/docs/OutstandingInvoiceObject.md new file mode 100644 index 0000000..b3b78ae --- /dev/null +++ b/docs/OutstandingInvoiceObject.md @@ -0,0 +1,27 @@ + + +# OutstandingInvoiceObject + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**month** | **String** | Identifies the month to analyze revenue. | | +|**paymentStatus** | [**PaymentStatusEnum**](#PaymentStatusEnum) | The payment status of the invoices. | [optional] | +|**invoicesCount** | **Integer** | Contains invoices count. | | +|**amountCents** | **Integer** | The total amount of revenue for a period, expressed in cents. | | +|**currency** | [**Currency**](Currency.md) | | [optional] | + + + +## Enum: PaymentStatusEnum + +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCEEDED | "succeeded" | +| FAILED | "failed" | + + + diff --git a/docs/OutstandingInvoices.md b/docs/OutstandingInvoices.md new file mode 100644 index 0000000..09fa857 --- /dev/null +++ b/docs/OutstandingInvoices.md @@ -0,0 +1,13 @@ + + +# OutstandingInvoices + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outstandingInvoices** | [**List<OutstandingInvoiceObject>**](OutstandingInvoiceObject.md) | | | + + + diff --git a/docs/PlanCreateInputPlan.md b/docs/PlanCreateInputPlan.md index 3d2f345..55891c5 100644 --- a/docs/PlanCreateInputPlan.md +++ b/docs/PlanCreateInputPlan.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | The name of the plan. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name. | [optional] | |**code** | **String** | The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance. | [optional] | |**interval** | [**IntervalEnum**](#IntervalEnum) | The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `quarterly`, `monthly`, or `weekly`. | [optional] | |**description** | **String** | The description on the plan. | [optional] | diff --git a/docs/PlanCreateInputPlanChargesInner.md b/docs/PlanCreateInputPlanChargesInner.md index 56fef1a..825ce7a 100644 --- a/docs/PlanCreateInputPlanChargesInner.md +++ b/docs/PlanCreateInputPlanChargesInner.md @@ -11,6 +11,7 @@ |**chargeModel** | [**ChargeModelEnum**](#ChargeModelEnum) | Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `graduated_percentage` `package`, `percentage` or `volume`. | [optional] | |**payInAdvance** | **Boolean** | This field determines the billing timing for this specific usage-based charge. When set to `true`, the charge is due and invoiced immediately. Conversely, when set to false, the charge is due and invoiced at the end of each billing period. | [optional] | |**invoiceable** | **Boolean** | This field specifies whether the charge should be included in a proper invoice. If set to false, no invoice will be issued for this charge. You can only set it to `false` when `pay_in_advance` is `true`. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**prorated** | **Boolean** | Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully. - If set to `true`, the charge is prorated based on the remaining days in the current billing period. - If set to `false`, the charge is billed in full. - If not defined in the request, default value is `false`. | [optional] | |**minAmountCents** | **Integer** | The minimum spending amount required for the charge, measured in cents and excluding any applicable taxes. It indicates the minimum amount that needs to be charged for each billing period. | [optional] | |**properties** | [**ChargeObjectProperties**](ChargeObjectProperties.md) | | [optional] | diff --git a/docs/PlanObject.md b/docs/PlanObject.md index b32fd69..9439c10 100644 --- a/docs/PlanObject.md +++ b/docs/PlanObject.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**lagoId** | **UUID** | Unique identifier of the plan created by Lago. | | |**name** | **String** | The name of the plan. | | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name. | [optional] | |**createdAt** | **OffsetDateTime** | The date and time when the plan was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the plan was initially created. | | |**code** | **String** | The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance. | | |**interval** | [**IntervalEnum**](#IntervalEnum) | The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `quarterly`, `monthly` or `weekly`. | | diff --git a/docs/PlanOverridesObject.md b/docs/PlanOverridesObject.md new file mode 100644 index 0000000..e79c8f7 --- /dev/null +++ b/docs/PlanOverridesObject.md @@ -0,0 +1,21 @@ + + +# PlanOverridesObject + +Based plan overrides. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amountCents** | **Integer** | The base cost of the plan, excluding any applicable taxes, that is billed on a recurring basis. This value is defined at 0 if your plan is a pay-as-you-go plan. | [optional] | +|**amountCurrency** | [**Currency**](Currency.md) | | [optional] | +|**description** | **String** | The description on the plan. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name. | [optional] | +|**name** | **String** | The name of the plan. | [optional] | +|**taxCodes** | **List<String>** | List of unique code used to identify the taxes. | [optional] | +|**trialPeriod** | **BigDecimal** | The duration in days during which the base cost of the plan is offered for free. | [optional] | +|**charges** | [**List<PlanOverridesObjectChargesInner>**](PlanOverridesObjectChargesInner.md) | Additional usage-based charges for this plan. | [optional] | + + + diff --git a/docs/PlanOverridesObjectChargesInner.md b/docs/PlanOverridesObjectChargesInner.md new file mode 100644 index 0000000..256152c --- /dev/null +++ b/docs/PlanOverridesObjectChargesInner.md @@ -0,0 +1,19 @@ + + +# PlanOverridesObjectChargesInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Unique identifier of the charge created by Lago. | [optional] | +|**billableMetricId** | **UUID** | Unique identifier of the billable metric created by Lago. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | +|**minAmountCents** | **Integer** | The minimum spending amount required for the charge, measured in cents and excluding any applicable taxes. It indicates the minimum amount that needs to be charged for each billing period. | [optional] | +|**properties** | [**ChargeObjectProperties**](ChargeObjectProperties.md) | | [optional] | +|**groupProperties** | [**List<PlanCreateInputPlanChargesInnerGroupPropertiesInner>**](PlanCreateInputPlanChargesInnerGroupPropertiesInner.md) | All charge information, sorted by groups. | [optional] | +|**taxCodes** | **List<String>** | List of unique code used to identify the taxes. | [optional] | + + + diff --git a/docs/PlanUpdateInputPlan.md b/docs/PlanUpdateInputPlan.md index f4ba1f8..941f362 100644 --- a/docs/PlanUpdateInputPlan.md +++ b/docs/PlanUpdateInputPlan.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | The name of the plan. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name. | [optional] | |**code** | **String** | The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance. | [optional] | |**interval** | [**IntervalEnum**](#IntervalEnum) | The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `quarterly`, `monthly`, or `weekly`. | [optional] | |**description** | **String** | The description on the plan. | [optional] | diff --git a/docs/PlanUpdateInputPlanChargesInner.md b/docs/PlanUpdateInputPlanChargesInner.md index 6141dec..a9d8602 100644 --- a/docs/PlanUpdateInputPlanChargesInner.md +++ b/docs/PlanUpdateInputPlanChargesInner.md @@ -12,6 +12,7 @@ |**chargeModel** | [**ChargeModelEnum**](#ChargeModelEnum) | Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `graduated_percentage`, `package`, `percentage` or `volume`. | [optional] | |**payInAdvance** | **Boolean** | This field determines the billing timing for this specific usage-based charge. When set to `true`, the charge is due and invoiced immediately. Conversely, when set to false, the charge is due and invoiced at the end of each billing period. | [optional] | |**invoiceable** | **Boolean** | This field specifies whether the charge should be included in a proper invoice. If set to false, no invoice will be issued for this charge. You can only set it to `false` when `pay_in_advance` is `true`. | [optional] | +|**invoiceDisplayName** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. | [optional] | |**prorated** | **Boolean** | Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully. - If set to `true`, the charge is prorated based on the remaining days in the current billing period. - If set to `false`, the charge is billed in full. - If not defined in the request, default value is `false`. | [optional] | |**minAmountCents** | **Integer** | The minimum spending amount required for the charge, measured in cents and excluding any applicable taxes. It indicates the minimum amount that needs to be charged for each billing period. | [optional] | |**properties** | [**ChargeObjectProperties**](ChargeObjectProperties.md) | | [optional] | diff --git a/docs/Subscription.md b/docs/Subscription.md index 95e3b28..7528bfb 100644 --- a/docs/Subscription.md +++ b/docs/Subscription.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | | +|**subscription** | [**SubscriptionObjectExtended**](SubscriptionObjectExtended.md) | | | diff --git a/docs/SubscriptionCreateInputSubscription.md b/docs/SubscriptionCreateInputSubscription.md index 0fc8c82..6ee2412 100644 --- a/docs/SubscriptionCreateInputSubscription.md +++ b/docs/SubscriptionCreateInputSubscription.md @@ -12,7 +12,9 @@ |**name** | **String** | The display name of the subscription on an invoice. This field allows for customization of the subscription's name for billing purposes, especially useful when a single customer has multiple subscriptions using the same plan. | [optional] | |**externalId** | **String** | The unique external identifier for the subscription. This identifier serves as an idempotency key, ensuring that each subscription is unique. | | |**billingTime** | [**BillingTimeEnum**](#BillingTimeEnum) | The billing time for the subscription, which can be set as either `anniversary` or `calendar`. If not explicitly provided, it will default to `calendar`. The billing time determines the timing of recurring billing cycles for the subscription. By specifying `anniversary`, the billing cycle will be based on the specific date the subscription started (billed fully), while `calendar` sets the billing cycle at the first day of the week/month/year (billed with proration). | [optional] | +|**endingAt** | **OffsetDateTime** | The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC). | [optional] | |**subscriptionAt** | **OffsetDateTime** | The start date for the subscription, allowing for the creation of subscriptions that can begin in the past or future. Please note that it cannot be used to update the start date of a pending subscription or schedule an upgrade/downgrade. The start_date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). | [optional] | +|**planOverrides** | [**PlanOverridesObject**](PlanOverridesObject.md) | | [optional] | diff --git a/docs/SubscriptionObject.md b/docs/SubscriptionObject.md index d9fa5d2..552dc16 100644 --- a/docs/SubscriptionObject.md +++ b/docs/SubscriptionObject.md @@ -18,6 +18,7 @@ |**createdAt** | **OffsetDateTime** | The creation date of the subscription, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). This date provides a timestamp indicating when the subscription was initially created. | | |**canceledAt** | **OffsetDateTime** | The cancellation date of the subscription. This field is not null when the subscription is `canceled`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). | [optional] | |**startedAt** | **OffsetDateTime** | The effective start date of the subscription. This field can be null if the subscription is `pending` or `canceled`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). | [optional] | +|**endingAt** | **OffsetDateTime** | The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC). | [optional] | |**subscriptionAt** | **OffsetDateTime** | The anniversary date and time of the initial subscription. This date serves as the basis for billing subscriptions with `anniversary` billing time. The `anniversary_date` should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). | | |**terminatedAt** | **OffsetDateTime** | The termination date of the subscription. This field is not null when the subscription is `terminated`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC) | [optional] | |**previousPlanCode** | **String** | The code identifying the previous plan associated with this subscription. | [optional] | diff --git a/docs/SubscriptionObjectExtended.md b/docs/SubscriptionObjectExtended.md new file mode 100644 index 0000000..05707fb --- /dev/null +++ b/docs/SubscriptionObjectExtended.md @@ -0,0 +1,50 @@ + + +# SubscriptionObjectExtended + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lagoId** | **UUID** | Unique identifier assigned to the subscription within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the subscription’s record within the Lago system | | +|**externalId** | **String** | The subscription external unique identifier (provided by your own application). | | +|**lagoCustomerId** | **UUID** | Unique identifier assigned to the customer within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the customer's record within the Lago system | | +|**externalCustomerId** | **String** | The customer external unique identifier (provided by your own application). | | +|**billingTime** | [**BillingTimeEnum**](#BillingTimeEnum) | The billing time for the subscription, which can be set as either `anniversary` or `calendar`. If not explicitly provided, it will default to `calendar`. The billing time determines the timing of recurring billing cycles for the subscription. By specifying `anniversary`, the billing cycle will be based on the specific date the subscription started (billed fully), while `calendar` sets the billing cycle at the first day of the week/month/year (billed with proration). | | +|**name** | **String** | The display name of the subscription on an invoice. This field allows for customization of the subscription's name for billing purposes, especially useful when a single customer has multiple subscriptions using the same plan. | [optional] | +|**planCode** | **String** | The unique code representing the plan to be attached to the customer. This code must correspond to the `code` property of one of the active plans. | | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the subscription, which can have the following values: - `pending`: a previous subscription has been downgraded, and the current one is awaiting automatic activation at the end of the billing period. - `active`: the subscription is currently active and applied to the customer. - `terminated`: the subscription is no longer active. - `canceled`: the subscription has been stopped before its activation. This can occur when two consecutive downgrades have been applied to a customer or when a subscription with a pending status is terminated. | | +|**createdAt** | **OffsetDateTime** | The creation date of the subscription, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). This date provides a timestamp indicating when the subscription was initially created. | | +|**canceledAt** | **OffsetDateTime** | The cancellation date of the subscription. This field is not null when the subscription is `canceled`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). | [optional] | +|**startedAt** | **OffsetDateTime** | The effective start date of the subscription. This field can be null if the subscription is `pending` or `canceled`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). | [optional] | +|**endingAt** | **OffsetDateTime** | The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC). | [optional] | +|**subscriptionAt** | **OffsetDateTime** | The anniversary date and time of the initial subscription. This date serves as the basis for billing subscriptions with `anniversary` billing time. The `anniversary_date` should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). | | +|**terminatedAt** | **OffsetDateTime** | The termination date of the subscription. This field is not null when the subscription is `terminated`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC) | [optional] | +|**previousPlanCode** | **String** | The code identifying the previous plan associated with this subscription. | [optional] | +|**nextPlanCode** | **String** | The code identifying the next plan in the case of a downgrade. | [optional] | +|**downgradePlanDate** | **OffsetDateTime** | The date when the plan will be downgraded, represented in ISO 8601 date format. | [optional] | +|**plan** | [**PlanObject**](PlanObject.md) | | [optional] | + + + +## Enum: BillingTimeEnum + +| Name | Value | +|---- | -----| +| CALENDAR | "calendar" | +| ANNIVERSARY | "anniversary" | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| ACTIVE | "active" | +| PENDING | "pending" | +| TERMINATED | "terminated" | +| CANCELED | "canceled" | + + + diff --git a/docs/SubscriptionUpdateInputSubscription.md b/docs/SubscriptionUpdateInputSubscription.md index 132e06f..61bb6d9 100644 --- a/docs/SubscriptionUpdateInputSubscription.md +++ b/docs/SubscriptionUpdateInputSubscription.md @@ -8,7 +8,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | The display name of the subscription on an invoice. This field allows for customization of the subscription's name for billing purposes, especially useful when a single customer has multiple subscriptions using the same plan. | [optional] | +|**endingAt** | **OffsetDateTime** | The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC). | [optional] | |**subscriptionAt** | **OffsetDateTime** | The start date and time of the subscription. This field can only be modified for pending subscriptions that have not yet started. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). | [optional] | +|**planOverrides** | [**PlanOverridesObject**](PlanOverridesObject.md) | | [optional] | diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index 124707a..6cc4bcc 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -7,6 +7,7 @@ All URIs are relative to *https://api.getlago.com/api/v1* | [**createSubscription**](SubscriptionsApi.md#createSubscription) | **POST** /subscriptions | Assign a plan to a customer | | [**destroySubscription**](SubscriptionsApi.md#destroySubscription) | **DELETE** /subscriptions/{external_id} | Terminate a subscription | | [**findAllSubscriptions**](SubscriptionsApi.md#findAllSubscriptions) | **GET** /subscriptions | List all subscriptions | +| [**findSubscription**](SubscriptionsApi.md#findSubscription) | **GET** /subscriptions/{external_id} | Retrieve a subscription | | [**updateSubscription**](SubscriptionsApi.md#updateSubscription) | **PUT** /subscriptions/{external_id} | Update a subscription | @@ -243,6 +244,79 @@ public class Example { | **404** | Not Found error | - | +## findSubscription + +> Subscription findSubscription(externalId) + +Retrieve a subscription + +This endpoint retrieves a specific subscription. + +### Example + +```java +// Import classes: +import org.getlago.client.ApiClient; +import org.getlago.client.ApiException; +import org.getlago.client.Configuration; +import org.getlago.client.auth.*; +import org.getlago.client.models.*; +import org.getlago.client.api.SubscriptionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.getlago.com/api/v1"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + SubscriptionsApi apiInstance = new SubscriptionsApi(defaultClient); + String externalId = "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"; // String | External ID of the existing subscription + try { + Subscription result = apiInstance.findSubscription(externalId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SubscriptionsApi#findSubscription"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **externalId** | **String**| External ID of the existing subscription | | + +### Return type + +[**Subscription**](Subscription.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Subscription | - | +| **401** | Unauthorized error | - | +| **404** | Not Found error | - | + + ## updateSubscription > Subscription updateSubscription(externalId, subscriptionUpdateInput) diff --git a/docs/WebhookEndpoint.md b/docs/WebhookEndpoint.md new file mode 100644 index 0000000..caeeb7f --- /dev/null +++ b/docs/WebhookEndpoint.md @@ -0,0 +1,13 @@ + + +# WebhookEndpoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**webhookEndpoint** | [**WebhookEndpointObject**](WebhookEndpointObject.md) | | | + + + diff --git a/docs/WebhookEndpointCreateInput.md b/docs/WebhookEndpointCreateInput.md new file mode 100644 index 0000000..60901b4 --- /dev/null +++ b/docs/WebhookEndpointCreateInput.md @@ -0,0 +1,13 @@ + + +# WebhookEndpointCreateInput + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**webhookEndpoint** | [**WebhookEndpointCreateInputWebhookEndpoint**](WebhookEndpointCreateInputWebhookEndpoint.md) | | [optional] | + + + diff --git a/docs/CreateWebhookEndpointRequestWebhookEndpoint.md b/docs/WebhookEndpointCreateInputWebhookEndpoint.md similarity index 90% rename from docs/CreateWebhookEndpointRequestWebhookEndpoint.md rename to docs/WebhookEndpointCreateInputWebhookEndpoint.md index 85094ab..5e8e634 100644 --- a/docs/CreateWebhookEndpointRequestWebhookEndpoint.md +++ b/docs/WebhookEndpointCreateInputWebhookEndpoint.md @@ -1,6 +1,6 @@ -# CreateWebhookEndpointRequestWebhookEndpoint +# WebhookEndpointCreateInputWebhookEndpoint ## Properties diff --git a/docs/CreateWebhookEndpoint200ResponseWebhookEndpoint.md b/docs/WebhookEndpointObject.md similarity index 95% rename from docs/CreateWebhookEndpoint200ResponseWebhookEndpoint.md rename to docs/WebhookEndpointObject.md index 364b971..3d6ad14 100644 --- a/docs/CreateWebhookEndpoint200ResponseWebhookEndpoint.md +++ b/docs/WebhookEndpointObject.md @@ -1,6 +1,6 @@ -# CreateWebhookEndpoint200ResponseWebhookEndpoint +# WebhookEndpointObject ## Properties diff --git a/docs/WebhookEndpointUpdateInput.md b/docs/WebhookEndpointUpdateInput.md new file mode 100644 index 0000000..3e7b1be --- /dev/null +++ b/docs/WebhookEndpointUpdateInput.md @@ -0,0 +1,13 @@ + + +# WebhookEndpointUpdateInput + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**webhookEndpoint** | [**WebhookEndpointCreateInputWebhookEndpoint**](WebhookEndpointCreateInputWebhookEndpoint.md) | | [optional] | + + + diff --git a/docs/WebhookEndpointsApi.md b/docs/WebhookEndpointsApi.md index a462b22..1a4204c 100644 --- a/docs/WebhookEndpointsApi.md +++ b/docs/WebhookEndpointsApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.getlago.com/api/v1* ## createWebhookEndpoint -> CreateWebhookEndpoint200Response createWebhookEndpoint(createWebhookEndpointRequest) +> WebhookEndpoint createWebhookEndpoint(webhookEndpointCreateInput) Create a webhook_endpoint @@ -41,9 +41,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); WebhookEndpointsApi apiInstance = new WebhookEndpointsApi(defaultClient); - CreateWebhookEndpointRequest createWebhookEndpointRequest = new CreateWebhookEndpointRequest(); // CreateWebhookEndpointRequest | Webhook Endpoint payload + WebhookEndpointCreateInput webhookEndpointCreateInput = new WebhookEndpointCreateInput(); // WebhookEndpointCreateInput | Webhook Endpoint payload try { - CreateWebhookEndpoint200Response result = apiInstance.createWebhookEndpoint(createWebhookEndpointRequest); + WebhookEndpoint result = apiInstance.createWebhookEndpoint(webhookEndpointCreateInput); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhookEndpointsApi#createWebhookEndpoint"); @@ -61,11 +61,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **createWebhookEndpointRequest** | [**CreateWebhookEndpointRequest**](CreateWebhookEndpointRequest.md)| Webhook Endpoint payload | | +| **webhookEndpointCreateInput** | [**WebhookEndpointCreateInput**](WebhookEndpointCreateInput.md)| Webhook Endpoint payload | | ### Return type -[**CreateWebhookEndpoint200Response**](CreateWebhookEndpoint200Response.md) +[**WebhookEndpoint**](WebhookEndpoint.md) ### Authorization @@ -88,7 +88,7 @@ public class Example { ## destroyWebhookEndpoint -> Object destroyWebhookEndpoint(lagoId) +> WebhookEndpoint destroyWebhookEndpoint(lagoId) Delete a webhook endpoint @@ -117,7 +117,7 @@ public class Example { WebhookEndpointsApi apiInstance = new WebhookEndpointsApi(defaultClient); UUID lagoId = UUID.fromString("1a901a90-1a90-1a90-1a90-1a901a901a90"); // UUID | Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. try { - Object result = apiInstance.destroyWebhookEndpoint(lagoId); + WebhookEndpoint result = apiInstance.destroyWebhookEndpoint(lagoId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhookEndpointsApi#destroyWebhookEndpoint"); @@ -139,7 +139,7 @@ public class Example { ### Return type -**Object** +[**WebhookEndpoint**](WebhookEndpoint.md) ### Authorization @@ -162,7 +162,7 @@ public class Example { ## findAllWebhookEndpoints -> FindAllWebhookEndpoints200Response findAllWebhookEndpoints(page, perPage) +> WebhookEndpointsPaginated findAllWebhookEndpoints(page, perPage) List all webhook endpoints @@ -192,7 +192,7 @@ public class Example { Integer page = 1; // Integer | Page number. Integer perPage = 20; // Integer | Number of records per page. try { - FindAllWebhookEndpoints200Response result = apiInstance.findAllWebhookEndpoints(page, perPage); + WebhookEndpointsPaginated result = apiInstance.findAllWebhookEndpoints(page, perPage); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhookEndpointsApi#findAllWebhookEndpoints"); @@ -215,7 +215,7 @@ public class Example { ### Return type -[**FindAllWebhookEndpoints200Response**](FindAllWebhookEndpoints200Response.md) +[**WebhookEndpointsPaginated**](WebhookEndpointsPaginated.md) ### Authorization @@ -236,7 +236,7 @@ public class Example { ## findWebhookEndpoint -> Object findWebhookEndpoint(lagoId) +> WebhookEndpoint findWebhookEndpoint(lagoId) Retrieve a webhook endpoint @@ -265,7 +265,7 @@ public class Example { WebhookEndpointsApi apiInstance = new WebhookEndpointsApi(defaultClient); UUID lagoId = UUID.fromString("1a901a90-1a90-1a90-1a90-1a901a901a90"); // UUID | Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. try { - Object result = apiInstance.findWebhookEndpoint(lagoId); + WebhookEndpoint result = apiInstance.findWebhookEndpoint(lagoId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhookEndpointsApi#findWebhookEndpoint"); @@ -287,7 +287,7 @@ public class Example { ### Return type -**Object** +[**WebhookEndpoint**](WebhookEndpoint.md) ### Authorization @@ -309,7 +309,7 @@ public class Example { ## updateWebhookEndpoint -> Object updateWebhookEndpoint(lagoId, createWebhookEndpointRequest) +> WebhookEndpoint updateWebhookEndpoint(lagoId, webhookEndpointUpdateInput) Update a webhook endpoint @@ -337,9 +337,9 @@ public class Example { WebhookEndpointsApi apiInstance = new WebhookEndpointsApi(defaultClient); UUID lagoId = UUID.fromString("1a901a90-1a90-1a90-1a90-1a901a901a90"); // UUID | Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - CreateWebhookEndpointRequest createWebhookEndpointRequest = new CreateWebhookEndpointRequest(); // CreateWebhookEndpointRequest | Webhook Endpoint update payload + WebhookEndpointUpdateInput webhookEndpointUpdateInput = new WebhookEndpointUpdateInput(); // WebhookEndpointUpdateInput | Webhook Endpoint update payload try { - Object result = apiInstance.updateWebhookEndpoint(lagoId, createWebhookEndpointRequest); + WebhookEndpoint result = apiInstance.updateWebhookEndpoint(lagoId, webhookEndpointUpdateInput); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhookEndpointsApi#updateWebhookEndpoint"); @@ -358,11 +358,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **lagoId** | **UUID**| Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. | | -| **createWebhookEndpointRequest** | [**CreateWebhookEndpointRequest**](CreateWebhookEndpointRequest.md)| Webhook Endpoint update payload | | +| **webhookEndpointUpdateInput** | [**WebhookEndpointUpdateInput**](WebhookEndpointUpdateInput.md)| Webhook Endpoint update payload | | ### Return type -**Object** +[**WebhookEndpoint**](WebhookEndpoint.md) ### Authorization diff --git a/docs/WebhookEndpointsPaginated.md b/docs/WebhookEndpointsPaginated.md new file mode 100644 index 0000000..f576b55 --- /dev/null +++ b/docs/WebhookEndpointsPaginated.md @@ -0,0 +1,14 @@ + + +# WebhookEndpointsPaginated + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**webhookEndpoints** | [**List<WebhookEndpointObject>**](WebhookEndpointObject.md) | | | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | | + + + diff --git a/pom.xml b/pom.xml index 50b4179..3562e07 100644 --- a/pom.xml +++ b/pom.xml @@ -5,8 +5,8 @@ lago-java-client jar lago-java-client - 0.46.0-beta - https://github.com/getlago/lago + 0.52.0-beta + https://github.com/getlago/lago-java-client Lago Java API Client scm:git:git@github.com:openapitools/openapi-generator.git @@ -120,13 +120,13 @@ UTF-8 - 2.13.4 - 2.13.4.2 + 2.15.2 + 2.15.2 0.2.6 - 2.6.6 + 2.7.17 1.3.5 - 3.4.3 - 1.0.4 + 3.4.34 + 1.0.39 4.13.2 diff --git a/src/main/java/org/getlago/client/ApiClient.java b/src/main/java/org/getlago/client/ApiClient.java index bdde22d..34dcee0 100644 --- a/src/main/java/org/getlago/client/ApiClient.java +++ b/src/main/java/org/getlago/client/ApiClient.java @@ -4,8 +4,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import org.openapitools.jackson.nullable.JsonNullableModule; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; @@ -69,7 +67,7 @@ import org.getlago.client.auth.HttpBearerAuth; import org.getlago.client.auth.ApiKeyAuth; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ApiClient extends JavaTimeFormatter { public enum CollectionFormat { CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null); diff --git a/src/main/java/org/getlago/client/JavaTimeFormatter.java b/src/main/java/org/getlago/client/JavaTimeFormatter.java index 5156404..4d61465 100644 --- a/src/main/java/org/getlago/client/JavaTimeFormatter.java +++ b/src/main/java/org/getlago/client/JavaTimeFormatter.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class JavaTimeFormatter { private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; diff --git a/src/main/java/org/getlago/client/RFC3339DateFormat.java b/src/main/java/org/getlago/client/RFC3339DateFormat.java index 92480bc..84ee57f 100644 --- a/src/main/java/org/getlago/client/RFC3339DateFormat.java +++ b/src/main/java/org/getlago/client/RFC3339DateFormat.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/org/getlago/client/StringUtil.java b/src/main/java/org/getlago/client/StringUtil.java index ae9a1a8..06a95bf 100644 --- a/src/main/java/org/getlago/client/StringUtil.java +++ b/src/main/java/org/getlago/client/StringUtil.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/getlago/client/api/AddOnsApi.java b/src/main/java/org/getlago/client/api/AddOnsApi.java index 42802e1..edadda7 100644 --- a/src/main/java/org/getlago/client/api/AddOnsApi.java +++ b/src/main/java/org/getlago/client/api/AddOnsApi.java @@ -10,8 +10,6 @@ import org.openapitools.client.model.ApiErrorNotFound; import org.openapitools.client.model.ApiErrorUnauthorized; import org.openapitools.client.model.ApiErrorUnprocessableEntity; -import org.openapitools.client.model.AppliedAddOn; -import org.openapitools.client.model.AppliedAddOnInput; import java.util.HashMap; import java.util.List; @@ -34,7 +32,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AddOnsApi { private ApiClient apiClient; @@ -55,98 +53,6 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Apply an add-on to a customer - * Apply an add-on to a customer - *

200 - Add-on applied - *

400 - Bad Request error - *

401 - Unauthorized error - *

404 - Not Found error - *

422 - Unprocessable entity error - * @param appliedAddOnInput Apply add-on payload - * @return AppliedAddOn - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - * @deprecated - */ - @Deprecated - private ResponseSpec applyAddOnRequestCreation(AppliedAddOnInput appliedAddOnInput) throws WebClientResponseException { - Object postBody = appliedAddOnInput; - // verify the required parameter 'appliedAddOnInput' is set - if (appliedAddOnInput == null) { - throw new WebClientResponseException("Missing the required parameter 'appliedAddOnInput' when calling applyAddOn", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); - } - // create path and map variables - final Map pathParams = new HashMap(); - - final MultiValueMap queryParams = new LinkedMultiValueMap(); - final HttpHeaders headerParams = new HttpHeaders(); - final MultiValueMap cookieParams = new LinkedMultiValueMap(); - final MultiValueMap formParams = new LinkedMultiValueMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "bearerAuth" }; - - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI("/applied_add_ons", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - * Apply an add-on to a customer - * Apply an add-on to a customer - *

200 - Add-on applied - *

400 - Bad Request error - *

401 - Unauthorized error - *

404 - Not Found error - *

422 - Unprocessable entity error - * @param appliedAddOnInput Apply add-on payload - * @return AppliedAddOn - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono applyAddOn(AppliedAddOnInput appliedAddOnInput) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return applyAddOnRequestCreation(appliedAddOnInput).bodyToMono(localVarReturnType); - } - - /** - * Apply an add-on to a customer - * Apply an add-on to a customer - *

200 - Add-on applied - *

400 - Bad Request error - *

401 - Unauthorized error - *

404 - Not Found error - *

422 - Unprocessable entity error - * @param appliedAddOnInput Apply add-on payload - * @return ResponseEntity<AppliedAddOn> - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> applyAddOnWithHttpInfo(AppliedAddOnInput appliedAddOnInput) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return applyAddOnRequestCreation(appliedAddOnInput).toEntity(localVarReturnType); - } - - /** - * Apply an add-on to a customer - * Apply an add-on to a customer - *

200 - Add-on applied - *

400 - Bad Request error - *

401 - Unauthorized error - *

404 - Not Found error - *

422 - Unprocessable entity error - * @param appliedAddOnInput Apply add-on payload - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec applyAddOnWithResponseSpec(AppliedAddOnInput appliedAddOnInput) throws WebClientResponseException { - return applyAddOnRequestCreation(appliedAddOnInput); - } /** * Create an add-on * This endpoint is used to create an add-on that can be then attached to a one-off invoice. diff --git a/src/main/java/org/getlago/client/api/AnalyticsApi.java b/src/main/java/org/getlago/client/api/AnalyticsApi.java new file mode 100644 index 0000000..7f8233e --- /dev/null +++ b/src/main/java/org/getlago/client/api/AnalyticsApi.java @@ -0,0 +1,360 @@ +package org.getlago.client.api; + +import org.getlago.client.ApiClient; + +import org.openapitools.client.model.ApiErrorUnauthorized; +import org.openapitools.client.model.Currency; +import org.openapitools.client.model.GrossRevenues; +import org.openapitools.client.model.InvoicedUsages; +import org.openapitools.client.model.Mrrs; +import org.openapitools.client.model.OutstandingInvoices; + +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.web.reactive.function.client.WebClient.ResponseSpec; +import org.springframework.web.reactive.function.client.WebClientResponseException; +import org.springframework.core.io.FileSystemResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; +import reactor.core.publisher.Mono; +import reactor.core.publisher.Flux; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class AnalyticsApi { + private ApiClient apiClient; + + public AnalyticsApi() { + this(new ApiClient()); + } + + @Autowired + public AnalyticsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * List gross revenue + * Gross revenue is the sum of monthly `finalized` invoice payments and fees paid in advance that are not invoiceable. This total is calculated after deducting taxes and discounts. + *

200 - Gross revenue + *

401 - Unauthorized error + * @param currency Currency of revenue analytics. Format must be ISO 4217. + * @param externalCustomerId The customer external unique identifier (provided by your own application). Use it to filter revenue analytics at the customer level. + * @return GrossRevenues + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + private ResponseSpec findAllGrossRevenuesRequestCreation(Currency currency, String externalCustomerId) throws WebClientResponseException { + Object postBody = null; + // create path and map variables + final Map pathParams = new HashMap(); + + final MultiValueMap queryParams = new LinkedMultiValueMap(); + final HttpHeaders headerParams = new HttpHeaders(); + final MultiValueMap cookieParams = new LinkedMultiValueMap(); + final MultiValueMap formParams = new LinkedMultiValueMap(); + + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "currency", currency)); + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "external_customer_id", externalCustomerId)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/analytics/gross_revenue", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + * List gross revenue + * Gross revenue is the sum of monthly `finalized` invoice payments and fees paid in advance that are not invoiceable. This total is calculated after deducting taxes and discounts. + *

200 - Gross revenue + *

401 - Unauthorized error + * @param currency Currency of revenue analytics. Format must be ISO 4217. + * @param externalCustomerId The customer external unique identifier (provided by your own application). Use it to filter revenue analytics at the customer level. + * @return GrossRevenues + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono findAllGrossRevenues(Currency currency, String externalCustomerId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllGrossRevenuesRequestCreation(currency, externalCustomerId).bodyToMono(localVarReturnType); + } + + /** + * List gross revenue + * Gross revenue is the sum of monthly `finalized` invoice payments and fees paid in advance that are not invoiceable. This total is calculated after deducting taxes and discounts. + *

200 - Gross revenue + *

401 - Unauthorized error + * @param currency Currency of revenue analytics. Format must be ISO 4217. + * @param externalCustomerId The customer external unique identifier (provided by your own application). Use it to filter revenue analytics at the customer level. + * @return ResponseEntity<GrossRevenues> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> findAllGrossRevenuesWithHttpInfo(Currency currency, String externalCustomerId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllGrossRevenuesRequestCreation(currency, externalCustomerId).toEntity(localVarReturnType); + } + + /** + * List gross revenue + * Gross revenue is the sum of monthly `finalized` invoice payments and fees paid in advance that are not invoiceable. This total is calculated after deducting taxes and discounts. + *

200 - Gross revenue + *

401 - Unauthorized error + * @param currency Currency of revenue analytics. Format must be ISO 4217. + * @param externalCustomerId The customer external unique identifier (provided by your own application). Use it to filter revenue analytics at the customer level. + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec findAllGrossRevenuesWithResponseSpec(Currency currency, String externalCustomerId) throws WebClientResponseException { + return findAllGrossRevenuesRequestCreation(currency, externalCustomerId); + } + /** + * List usage revenue + * Reports a monthly analysis focused on the revenue generated from all usage-based fees. It exclusively accounts for revenue that has been formally invoiced. Importantly, this report does not include revenue related to the usage in the current billing period, limiting its scope to previously invoiced amounts. + *

200 - Invoiced usage + *

401 - Unauthorized error + * @param currency The currency of invoiced usage analytics. Format must be ISO 4217. + * @return InvoicedUsages + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + private ResponseSpec findAllInvoicedUsagesRequestCreation(Currency currency) throws WebClientResponseException { + Object postBody = null; + // create path and map variables + final Map pathParams = new HashMap(); + + final MultiValueMap queryParams = new LinkedMultiValueMap(); + final HttpHeaders headerParams = new HttpHeaders(); + final MultiValueMap cookieParams = new LinkedMultiValueMap(); + final MultiValueMap formParams = new LinkedMultiValueMap(); + + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "currency", currency)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/analytics/invoiced_usage", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + * List usage revenue + * Reports a monthly analysis focused on the revenue generated from all usage-based fees. It exclusively accounts for revenue that has been formally invoiced. Importantly, this report does not include revenue related to the usage in the current billing period, limiting its scope to previously invoiced amounts. + *

200 - Invoiced usage + *

401 - Unauthorized error + * @param currency The currency of invoiced usage analytics. Format must be ISO 4217. + * @return InvoicedUsages + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono findAllInvoicedUsages(Currency currency) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllInvoicedUsagesRequestCreation(currency).bodyToMono(localVarReturnType); + } + + /** + * List usage revenue + * Reports a monthly analysis focused on the revenue generated from all usage-based fees. It exclusively accounts for revenue that has been formally invoiced. Importantly, this report does not include revenue related to the usage in the current billing period, limiting its scope to previously invoiced amounts. + *

200 - Invoiced usage + *

401 - Unauthorized error + * @param currency The currency of invoiced usage analytics. Format must be ISO 4217. + * @return ResponseEntity<InvoicedUsages> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> findAllInvoicedUsagesWithHttpInfo(Currency currency) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllInvoicedUsagesRequestCreation(currency).toEntity(localVarReturnType); + } + + /** + * List usage revenue + * Reports a monthly analysis focused on the revenue generated from all usage-based fees. It exclusively accounts for revenue that has been formally invoiced. Importantly, this report does not include revenue related to the usage in the current billing period, limiting its scope to previously invoiced amounts. + *

200 - Invoiced usage + *

401 - Unauthorized error + * @param currency The currency of invoiced usage analytics. Format must be ISO 4217. + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec findAllInvoicedUsagesWithResponseSpec(Currency currency) throws WebClientResponseException { + return findAllInvoicedUsagesRequestCreation(currency); + } + /** + * List MRR + * This endpoint is used to list MRR. + *

200 - MRR + *

401 - Unauthorized error + * @param currency Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and prior to the deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next three months) as well as to fees paid in arrears (allocated to the preceding three months). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next twelve months) and for fees paid in arrears (spread over the previous twelve months). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month. + * @param months Show data only for given number of months. + * @return Mrrs + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + private ResponseSpec findAllMrrsRequestCreation(Currency currency, Integer months) throws WebClientResponseException { + Object postBody = null; + // create path and map variables + final Map pathParams = new HashMap(); + + final MultiValueMap queryParams = new LinkedMultiValueMap(); + final HttpHeaders headerParams = new HttpHeaders(); + final MultiValueMap cookieParams = new LinkedMultiValueMap(); + final MultiValueMap formParams = new LinkedMultiValueMap(); + + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "currency", currency)); + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "months", months)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/analytics/mrr", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + * List MRR + * This endpoint is used to list MRR. + *

200 - MRR + *

401 - Unauthorized error + * @param currency Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and prior to the deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next three months) as well as to fees paid in arrears (allocated to the preceding three months). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next twelve months) and for fees paid in arrears (spread over the previous twelve months). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month. + * @param months Show data only for given number of months. + * @return Mrrs + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono findAllMrrs(Currency currency, Integer months) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllMrrsRequestCreation(currency, months).bodyToMono(localVarReturnType); + } + + /** + * List MRR + * This endpoint is used to list MRR. + *

200 - MRR + *

401 - Unauthorized error + * @param currency Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and prior to the deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next three months) as well as to fees paid in arrears (allocated to the preceding three months). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next twelve months) and for fees paid in arrears (spread over the previous twelve months). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month. + * @param months Show data only for given number of months. + * @return ResponseEntity<Mrrs> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> findAllMrrsWithHttpInfo(Currency currency, Integer months) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllMrrsRequestCreation(currency, months).toEntity(localVarReturnType); + } + + /** + * List MRR + * This endpoint is used to list MRR. + *

200 - MRR + *

401 - Unauthorized error + * @param currency Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and prior to the deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next three months) as well as to fees paid in arrears (allocated to the preceding three months). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next twelve months) and for fees paid in arrears (spread over the previous twelve months). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month. + * @param months Show data only for given number of months. + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec findAllMrrsWithResponseSpec(Currency currency, Integer months) throws WebClientResponseException { + return findAllMrrsRequestCreation(currency, months); + } + /** + * List outstanding invoices + * Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`. + *

200 - Outstanding invoices + *

401 - Unauthorized error + * @param currency The currency of revenue analytics. Format must be ISO 4217. + * @return OutstandingInvoices + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + private ResponseSpec findAllOutstandingInvoicesRequestCreation(Currency currency) throws WebClientResponseException { + Object postBody = null; + // create path and map variables + final Map pathParams = new HashMap(); + + final MultiValueMap queryParams = new LinkedMultiValueMap(); + final HttpHeaders headerParams = new HttpHeaders(); + final MultiValueMap cookieParams = new LinkedMultiValueMap(); + final MultiValueMap formParams = new LinkedMultiValueMap(); + + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "currency", currency)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/analytics/outstanding_invoices", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + * List outstanding invoices + * Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`. + *

200 - Outstanding invoices + *

401 - Unauthorized error + * @param currency The currency of revenue analytics. Format must be ISO 4217. + * @return OutstandingInvoices + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono findAllOutstandingInvoices(Currency currency) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllOutstandingInvoicesRequestCreation(currency).bodyToMono(localVarReturnType); + } + + /** + * List outstanding invoices + * Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`. + *

200 - Outstanding invoices + *

401 - Unauthorized error + * @param currency The currency of revenue analytics. Format must be ISO 4217. + * @return ResponseEntity<OutstandingInvoices> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> findAllOutstandingInvoicesWithHttpInfo(Currency currency) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllOutstandingInvoicesRequestCreation(currency).toEntity(localVarReturnType); + } + + /** + * List outstanding invoices + * Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`. + *

200 - Outstanding invoices + *

401 - Unauthorized error + * @param currency The currency of revenue analytics. Format must be ISO 4217. + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec findAllOutstandingInvoicesWithResponseSpec(Currency currency) throws WebClientResponseException { + return findAllOutstandingInvoicesRequestCreation(currency); + } +} diff --git a/src/main/java/org/getlago/client/api/BillableMetricsApi.java b/src/main/java/org/getlago/client/api/BillableMetricsApi.java index 9b41e12..87a828e 100644 --- a/src/main/java/org/getlago/client/api/BillableMetricsApi.java +++ b/src/main/java/org/getlago/client/api/BillableMetricsApi.java @@ -33,7 +33,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricsApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/api/CouponsApi.java b/src/main/java/org/getlago/client/api/CouponsApi.java index 6b5823b..94b9dc8 100644 --- a/src/main/java/org/getlago/client/api/CouponsApi.java +++ b/src/main/java/org/getlago/client/api/CouponsApi.java @@ -36,7 +36,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CouponsApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/api/CreditNotesApi.java b/src/main/java/org/getlago/client/api/CreditNotesApi.java index 882681f..6c3b97d 100644 --- a/src/main/java/org/getlago/client/api/CreditNotesApi.java +++ b/src/main/java/org/getlago/client/api/CreditNotesApi.java @@ -9,6 +9,8 @@ import org.openapitools.client.model.ApiErrorUnprocessableEntity; import org.openapitools.client.model.CreditNote; import org.openapitools.client.model.CreditNoteCreateInput; +import org.openapitools.client.model.CreditNoteEstimateInput; +import org.openapitools.client.model.CreditNoteEstimated; import org.openapitools.client.model.CreditNoteUpdateInput; import org.openapitools.client.model.CreditNotes; import java.util.UUID; @@ -34,7 +36,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNotesApi { private ApiClient apiClient; @@ -223,6 +225,88 @@ public Mono> downloadCreditNoteWithHttpInfo(UUID lago public ResponseSpec downloadCreditNoteWithResponseSpec(UUID lagoId) throws WebClientResponseException { return downloadCreditNoteRequestCreation(lagoId); } + /** + * Estimate amounts for a new credit note + * This endpoint allows you to retrieve amounts for a new credit note creation. + *

200 - Credit note amounts + *

400 - Bad Request error + *

401 - Unauthorized error + *

422 - Unprocessable entity error + * @param creditNoteEstimateInput Credit note estimate payload + * @return CreditNoteEstimated + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + private ResponseSpec estimateCreditNoteRequestCreation(CreditNoteEstimateInput creditNoteEstimateInput) throws WebClientResponseException { + Object postBody = creditNoteEstimateInput; + // create path and map variables + final Map pathParams = new HashMap(); + + final MultiValueMap queryParams = new LinkedMultiValueMap(); + final HttpHeaders headerParams = new HttpHeaders(); + final MultiValueMap cookieParams = new LinkedMultiValueMap(); + final MultiValueMap formParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/credit_notes/estimate", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + * Estimate amounts for a new credit note + * This endpoint allows you to retrieve amounts for a new credit note creation. + *

200 - Credit note amounts + *

400 - Bad Request error + *

401 - Unauthorized error + *

422 - Unprocessable entity error + * @param creditNoteEstimateInput Credit note estimate payload + * @return CreditNoteEstimated + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono estimateCreditNote(CreditNoteEstimateInput creditNoteEstimateInput) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return estimateCreditNoteRequestCreation(creditNoteEstimateInput).bodyToMono(localVarReturnType); + } + + /** + * Estimate amounts for a new credit note + * This endpoint allows you to retrieve amounts for a new credit note creation. + *

200 - Credit note amounts + *

400 - Bad Request error + *

401 - Unauthorized error + *

422 - Unprocessable entity error + * @param creditNoteEstimateInput Credit note estimate payload + * @return ResponseEntity<CreditNoteEstimated> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> estimateCreditNoteWithHttpInfo(CreditNoteEstimateInput creditNoteEstimateInput) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return estimateCreditNoteRequestCreation(creditNoteEstimateInput).toEntity(localVarReturnType); + } + + /** + * Estimate amounts for a new credit note + * This endpoint allows you to retrieve amounts for a new credit note creation. + *

200 - Credit note amounts + *

400 - Bad Request error + *

401 - Unauthorized error + *

422 - Unprocessable entity error + * @param creditNoteEstimateInput Credit note estimate payload + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec estimateCreditNoteWithResponseSpec(CreditNoteEstimateInput creditNoteEstimateInput) throws WebClientResponseException { + return estimateCreditNoteRequestCreation(creditNoteEstimateInput); + } /** * List all credit notes * This endpoint list all existing credit notes. diff --git a/src/main/java/org/getlago/client/api/CustomersApi.java b/src/main/java/org/getlago/client/api/CustomersApi.java index 822fab5..f67344e 100644 --- a/src/main/java/org/getlago/client/api/CustomersApi.java +++ b/src/main/java/org/getlago/client/api/CustomersApi.java @@ -10,8 +10,10 @@ import org.openapitools.client.model.AppliedCoupon; import org.openapitools.client.model.Customer; import org.openapitools.client.model.CustomerCreateInput; +import org.openapitools.client.model.CustomerPastUsage; import org.openapitools.client.model.CustomerUsage; import org.openapitools.client.model.CustomersPaginated; +import org.openapitools.client.model.GenerateCustomerCheckoutURL200Response; import org.openapitools.client.model.GetCustomerPortalUrl200Response; import java.util.UUID; @@ -36,7 +38,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomersApi { private ApiClient apiClient; @@ -316,6 +318,122 @@ public Mono> destroyCustomerWithHttpInfo(String externa public ResponseSpec destroyCustomerWithResponseSpec(String externalId) throws WebClientResponseException { return destroyCustomerRequestCreation(externalId); } + /** + * Retrieve customer past usage + * This endpoint enables the retrieval of the usage-based billing data for a customer within past periods. + *

200 - Customer past usage + *

401 - Unauthorized error + *

404 - Not Found error + *

422 - Unprocessable entity error + * @param externalCustomerId The customer external unique identifier (provided by your own application). + * @param externalSubscriptionId The unique identifier of the subscription within your application. + * @param page Page number. + * @param perPage Number of records per page. + * @param billableMetricCode Billable metric code filter to apply to the charge usage + * @param periodsCount Number of past billing period to returns in the result + * @return CustomerPastUsage + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + private ResponseSpec findAllCustomerPastUsageRequestCreation(String externalCustomerId, String externalSubscriptionId, Integer page, Integer perPage, String billableMetricCode, Integer periodsCount) throws WebClientResponseException { + Object postBody = null; + // verify the required parameter 'externalCustomerId' is set + if (externalCustomerId == null) { + throw new WebClientResponseException("Missing the required parameter 'externalCustomerId' when calling findAllCustomerPastUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); + } + // verify the required parameter 'externalSubscriptionId' is set + if (externalSubscriptionId == null) { + throw new WebClientResponseException("Missing the required parameter 'externalSubscriptionId' when calling findAllCustomerPastUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); + } + // create path and map variables + final Map pathParams = new HashMap(); + + pathParams.put("external_customer_id", externalCustomerId); + + final MultiValueMap queryParams = new LinkedMultiValueMap(); + final HttpHeaders headerParams = new HttpHeaders(); + final MultiValueMap cookieParams = new LinkedMultiValueMap(); + final MultiValueMap formParams = new LinkedMultiValueMap(); + + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "page", page)); + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "per_page", perPage)); + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "external_subscription_id", externalSubscriptionId)); + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "billable_metric_code", billableMetricCode)); + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "periods_count", periodsCount)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/customers/{external_customer_id}/past_usage", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + * Retrieve customer past usage + * This endpoint enables the retrieval of the usage-based billing data for a customer within past periods. + *

200 - Customer past usage + *

401 - Unauthorized error + *

404 - Not Found error + *

422 - Unprocessable entity error + * @param externalCustomerId The customer external unique identifier (provided by your own application). + * @param externalSubscriptionId The unique identifier of the subscription within your application. + * @param page Page number. + * @param perPage Number of records per page. + * @param billableMetricCode Billable metric code filter to apply to the charge usage + * @param periodsCount Number of past billing period to returns in the result + * @return CustomerPastUsage + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono findAllCustomerPastUsage(String externalCustomerId, String externalSubscriptionId, Integer page, Integer perPage, String billableMetricCode, Integer periodsCount) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllCustomerPastUsageRequestCreation(externalCustomerId, externalSubscriptionId, page, perPage, billableMetricCode, periodsCount).bodyToMono(localVarReturnType); + } + + /** + * Retrieve customer past usage + * This endpoint enables the retrieval of the usage-based billing data for a customer within past periods. + *

200 - Customer past usage + *

401 - Unauthorized error + *

404 - Not Found error + *

422 - Unprocessable entity error + * @param externalCustomerId The customer external unique identifier (provided by your own application). + * @param externalSubscriptionId The unique identifier of the subscription within your application. + * @param page Page number. + * @param perPage Number of records per page. + * @param billableMetricCode Billable metric code filter to apply to the charge usage + * @param periodsCount Number of past billing period to returns in the result + * @return ResponseEntity<CustomerPastUsage> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> findAllCustomerPastUsageWithHttpInfo(String externalCustomerId, String externalSubscriptionId, Integer page, Integer perPage, String billableMetricCode, Integer periodsCount) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findAllCustomerPastUsageRequestCreation(externalCustomerId, externalSubscriptionId, page, perPage, billableMetricCode, periodsCount).toEntity(localVarReturnType); + } + + /** + * Retrieve customer past usage + * This endpoint enables the retrieval of the usage-based billing data for a customer within past periods. + *

200 - Customer past usage + *

401 - Unauthorized error + *

404 - Not Found error + *

422 - Unprocessable entity error + * @param externalCustomerId The customer external unique identifier (provided by your own application). + * @param externalSubscriptionId The unique identifier of the subscription within your application. + * @param page Page number. + * @param perPage Number of records per page. + * @param billableMetricCode Billable metric code filter to apply to the charge usage + * @param periodsCount Number of past billing period to returns in the result + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec findAllCustomerPastUsageWithResponseSpec(String externalCustomerId, String externalSubscriptionId, Integer page, Integer perPage, String billableMetricCode, Integer periodsCount) throws WebClientResponseException { + return findAllCustomerPastUsageRequestCreation(externalCustomerId, externalSubscriptionId, page, perPage, billableMetricCode, periodsCount); + } /** * List all customers * This endpoint retrieves all existing customers. @@ -569,6 +687,92 @@ public Mono> findCustomerCurrentUsageWithHttpInfo( public ResponseSpec findCustomerCurrentUsageWithResponseSpec(String externalCustomerId, String externalSubscriptionId) throws WebClientResponseException { return findCustomerCurrentUsageRequestCreation(externalCustomerId, externalSubscriptionId); } + /** + * Generate a Customer Payment Provider Checkout URL + * This endpoint regenerates the Payment Provider Checkout URL of a Customer. + *

200 - Customer Checkout URL + *

401 - Unauthorized error + *

404 - Not Found error + *

422 - Unprocessable entity error + * @param externalCustomerId The customer external unique identifier (provided by your own application). + * @return GenerateCustomerCheckoutURL200Response + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + private ResponseSpec generateCustomerCheckoutURLRequestCreation(String externalCustomerId) throws WebClientResponseException { + Object postBody = null; + // verify the required parameter 'externalCustomerId' is set + if (externalCustomerId == null) { + throw new WebClientResponseException("Missing the required parameter 'externalCustomerId' when calling generateCustomerCheckoutURL", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); + } + // create path and map variables + final Map pathParams = new HashMap(); + + pathParams.put("external_customer_id", externalCustomerId); + + final MultiValueMap queryParams = new LinkedMultiValueMap(); + final HttpHeaders headerParams = new HttpHeaders(); + final MultiValueMap cookieParams = new LinkedMultiValueMap(); + final MultiValueMap formParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/customers/{external_customer_id}/checkout_url", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + * Generate a Customer Payment Provider Checkout URL + * This endpoint regenerates the Payment Provider Checkout URL of a Customer. + *

200 - Customer Checkout URL + *

401 - Unauthorized error + *

404 - Not Found error + *

422 - Unprocessable entity error + * @param externalCustomerId The customer external unique identifier (provided by your own application). + * @return GenerateCustomerCheckoutURL200Response + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono generateCustomerCheckoutURL(String externalCustomerId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return generateCustomerCheckoutURLRequestCreation(externalCustomerId).bodyToMono(localVarReturnType); + } + + /** + * Generate a Customer Payment Provider Checkout URL + * This endpoint regenerates the Payment Provider Checkout URL of a Customer. + *

200 - Customer Checkout URL + *

401 - Unauthorized error + *

404 - Not Found error + *

422 - Unprocessable entity error + * @param externalCustomerId The customer external unique identifier (provided by your own application). + * @return ResponseEntity<GenerateCustomerCheckoutURL200Response> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> generateCustomerCheckoutURLWithHttpInfo(String externalCustomerId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return generateCustomerCheckoutURLRequestCreation(externalCustomerId).toEntity(localVarReturnType); + } + + /** + * Generate a Customer Payment Provider Checkout URL + * This endpoint regenerates the Payment Provider Checkout URL of a Customer. + *

200 - Customer Checkout URL + *

401 - Unauthorized error + *

404 - Not Found error + *

422 - Unprocessable entity error + * @param externalCustomerId The customer external unique identifier (provided by your own application). + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec generateCustomerCheckoutURLWithResponseSpec(String externalCustomerId) throws WebClientResponseException { + return generateCustomerCheckoutURLRequestCreation(externalCustomerId); + } /** * Get a customer portal URL * Retrieves an embeddable link for displaying a customer portal. This endpoint allows you to fetch the URL that can be embedded to provide customers access to a dedicated portal diff --git a/src/main/java/org/getlago/client/api/EventsApi.java b/src/main/java/org/getlago/client/api/EventsApi.java index 67dae12..cb465a6 100644 --- a/src/main/java/org/getlago/client/api/EventsApi.java +++ b/src/main/java/org/getlago/client/api/EventsApi.java @@ -33,7 +33,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventsApi { private ApiClient apiClient; @@ -63,7 +63,9 @@ public void setApiClient(ApiClient apiClient) { *

422 - Unprocessable entity error * @param eventBatchInput Batch events payload * @throws WebClientResponseException if an error occurs while attempting to invoke the API + * @deprecated */ + @Deprecated private ResponseSpec createBatchEventsRequestCreation(EventBatchInput eventBatchInput) throws WebClientResponseException { Object postBody = eventBatchInput; // verify the required parameter 'eventBatchInput' is set @@ -140,11 +142,12 @@ public ResponseSpec createBatchEventsWithResponseSpec(EventBatchInput eventBatch /** * Send usage events * This endpoint is used for transmitting usage measurement events to either a designated customer or a specific subscription. - *

200 - Event received + *

200 - Event *

400 - Bad Request error *

401 - Unauthorized error *

422 - Unprocessable entity error * @param eventInput Event payload + * @return Event * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec createEventRequestCreation(EventInput eventInput) throws WebClientResponseException { @@ -172,44 +175,46 @@ private ResponseSpec createEventRequestCreation(EventInput eventInput) throws We String[] localVarAuthNames = new String[] { "bearerAuth" }; - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/events", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Send usage events * This endpoint is used for transmitting usage measurement events to either a designated customer or a specific subscription. - *

200 - Event received + *

200 - Event *

400 - Bad Request error *

401 - Unauthorized error *

422 - Unprocessable entity error * @param eventInput Event payload + * @return Event * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createEvent(EventInput eventInput) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + public Mono createEvent(EventInput eventInput) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createEventRequestCreation(eventInput).bodyToMono(localVarReturnType); } /** * Send usage events * This endpoint is used for transmitting usage measurement events to either a designated customer or a specific subscription. - *

200 - Event received + *

200 - Event *

400 - Bad Request error *

401 - Unauthorized error *

422 - Unprocessable entity error * @param eventInput Event payload + * @return ResponseEntity<Event> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createEventWithHttpInfo(EventInput eventInput) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + public Mono> createEventWithHttpInfo(EventInput eventInput) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createEventRequestCreation(eventInput).toEntity(localVarReturnType); } /** * Send usage events * This endpoint is used for transmitting usage measurement events to either a designated customer or a specific subscription. - *

200 - Event received + *

200 - Event *

400 - Bad Request error *

401 - Unauthorized error *

422 - Unprocessable entity error diff --git a/src/main/java/org/getlago/client/api/FeesApi.java b/src/main/java/org/getlago/client/api/FeesApi.java index b37ee53..62620fe 100644 --- a/src/main/java/org/getlago/client/api/FeesApi.java +++ b/src/main/java/org/getlago/client/api/FeesApi.java @@ -34,7 +34,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class FeesApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/api/InvoicesApi.java b/src/main/java/org/getlago/client/api/InvoicesApi.java index 630ff15..5a725de 100644 --- a/src/main/java/org/getlago/client/api/InvoicesApi.java +++ b/src/main/java/org/getlago/client/api/InvoicesApi.java @@ -35,7 +35,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoicesApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/api/OrganizationsApi.java b/src/main/java/org/getlago/client/api/OrganizationsApi.java index 4d64b44..0bd1cd5 100644 --- a/src/main/java/org/getlago/client/api/OrganizationsApi.java +++ b/src/main/java/org/getlago/client/api/OrganizationsApi.java @@ -29,7 +29,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class OrganizationsApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/api/PlansApi.java b/src/main/java/org/getlago/client/api/PlansApi.java index 8cd9f10..4223541 100644 --- a/src/main/java/org/getlago/client/api/PlansApi.java +++ b/src/main/java/org/getlago/client/api/PlansApi.java @@ -32,7 +32,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlansApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/api/SubscriptionsApi.java b/src/main/java/org/getlago/client/api/SubscriptionsApi.java index 7be6a82..28a0416 100644 --- a/src/main/java/org/getlago/client/api/SubscriptionsApi.java +++ b/src/main/java/org/getlago/client/api/SubscriptionsApi.java @@ -33,7 +33,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class SubscriptionsApi { private ApiClient apiClient; @@ -334,6 +334,88 @@ public Mono> findAllSubscriptionsWithHttp public ResponseSpec findAllSubscriptionsWithResponseSpec(Integer page, Integer perPage, String externalCustomerId, String planCode, List status) throws WebClientResponseException { return findAllSubscriptionsRequestCreation(page, perPage, externalCustomerId, planCode, status); } + /** + * Retrieve a subscription + * This endpoint retrieves a specific subscription. + *

200 - Subscription + *

401 - Unauthorized error + *

404 - Not Found error + * @param externalId External ID of the existing subscription + * @return Subscription + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + private ResponseSpec findSubscriptionRequestCreation(String externalId) throws WebClientResponseException { + Object postBody = null; + // verify the required parameter 'externalId' is set + if (externalId == null) { + throw new WebClientResponseException("Missing the required parameter 'externalId' when calling findSubscription", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); + } + // create path and map variables + final Map pathParams = new HashMap(); + + pathParams.put("external_id", externalId); + + final MultiValueMap queryParams = new LinkedMultiValueMap(); + final HttpHeaders headerParams = new HttpHeaders(); + final MultiValueMap cookieParams = new LinkedMultiValueMap(); + final MultiValueMap formParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/subscriptions/{external_id}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + * Retrieve a subscription + * This endpoint retrieves a specific subscription. + *

200 - Subscription + *

401 - Unauthorized error + *

404 - Not Found error + * @param externalId External ID of the existing subscription + * @return Subscription + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono findSubscription(String externalId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findSubscriptionRequestCreation(externalId).bodyToMono(localVarReturnType); + } + + /** + * Retrieve a subscription + * This endpoint retrieves a specific subscription. + *

200 - Subscription + *

401 - Unauthorized error + *

404 - Not Found error + * @param externalId External ID of the existing subscription + * @return ResponseEntity<Subscription> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> findSubscriptionWithHttpInfo(String externalId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return findSubscriptionRequestCreation(externalId).toEntity(localVarReturnType); + } + + /** + * Retrieve a subscription + * This endpoint retrieves a specific subscription. + *

200 - Subscription + *

401 - Unauthorized error + *

404 - Not Found error + * @param externalId External ID of the existing subscription + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec findSubscriptionWithResponseSpec(String externalId) throws WebClientResponseException { + return findSubscriptionRequestCreation(externalId); + } /** * Update a subscription * This endpoint allows you to update a subscription. diff --git a/src/main/java/org/getlago/client/api/TaxesApi.java b/src/main/java/org/getlago/client/api/TaxesApi.java index d50c3b9..1225052 100644 --- a/src/main/java/org/getlago/client/api/TaxesApi.java +++ b/src/main/java/org/getlago/client/api/TaxesApi.java @@ -32,7 +32,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class TaxesApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/api/WalletsApi.java b/src/main/java/org/getlago/client/api/WalletsApi.java index 9273985..72d4f3b 100644 --- a/src/main/java/org/getlago/client/api/WalletsApi.java +++ b/src/main/java/org/getlago/client/api/WalletsApi.java @@ -37,7 +37,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletsApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/api/WebhookEndpointsApi.java b/src/main/java/org/getlago/client/api/WebhookEndpointsApi.java index 7d88d9a..f97090e 100644 --- a/src/main/java/org/getlago/client/api/WebhookEndpointsApi.java +++ b/src/main/java/org/getlago/client/api/WebhookEndpointsApi.java @@ -7,10 +7,11 @@ import org.openapitools.client.model.ApiErrorNotFound; import org.openapitools.client.model.ApiErrorUnauthorized; import org.openapitools.client.model.ApiErrorUnprocessableEntity; -import org.openapitools.client.model.CreateWebhookEndpoint200Response; -import org.openapitools.client.model.CreateWebhookEndpointRequest; -import org.openapitools.client.model.FindAllWebhookEndpoints200Response; import java.util.UUID; +import org.openapitools.client.model.WebhookEndpoint; +import org.openapitools.client.model.WebhookEndpointCreateInput; +import org.openapitools.client.model.WebhookEndpointUpdateInput; +import org.openapitools.client.model.WebhookEndpointsPaginated; import java.util.HashMap; import java.util.List; @@ -33,7 +34,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WebhookEndpointsApi { private ApiClient apiClient; @@ -61,15 +62,15 @@ public void setApiClient(ApiClient apiClient) { *

400 - Bad Request error *

401 - Unauthorized error *

422 - Unprocessable entity error - * @param createWebhookEndpointRequest Webhook Endpoint payload - * @return CreateWebhookEndpoint200Response + * @param webhookEndpointCreateInput Webhook Endpoint payload + * @return WebhookEndpoint * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createWebhookEndpointRequestCreation(CreateWebhookEndpointRequest createWebhookEndpointRequest) throws WebClientResponseException { - Object postBody = createWebhookEndpointRequest; - // verify the required parameter 'createWebhookEndpointRequest' is set - if (createWebhookEndpointRequest == null) { - throw new WebClientResponseException("Missing the required parameter 'createWebhookEndpointRequest' when calling createWebhookEndpoint", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); + private ResponseSpec createWebhookEndpointRequestCreation(WebhookEndpointCreateInput webhookEndpointCreateInput) throws WebClientResponseException { + Object postBody = webhookEndpointCreateInput; + // verify the required parameter 'webhookEndpointCreateInput' is set + if (webhookEndpointCreateInput == null) { + throw new WebClientResponseException("Missing the required parameter 'webhookEndpointCreateInput' when calling createWebhookEndpoint", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); @@ -90,7 +91,7 @@ private ResponseSpec createWebhookEndpointRequestCreation(CreateWebhookEndpointR String[] localVarAuthNames = new String[] { "bearerAuth" }; - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/webhook_endpoints", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } @@ -101,13 +102,13 @@ private ResponseSpec createWebhookEndpointRequestCreation(CreateWebhookEndpointR *

400 - Bad Request error *

401 - Unauthorized error *

422 - Unprocessable entity error - * @param createWebhookEndpointRequest Webhook Endpoint payload - * @return CreateWebhookEndpoint200Response + * @param webhookEndpointCreateInput Webhook Endpoint payload + * @return WebhookEndpoint * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createWebhookEndpoint(CreateWebhookEndpointRequest createWebhookEndpointRequest) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return createWebhookEndpointRequestCreation(createWebhookEndpointRequest).bodyToMono(localVarReturnType); + public Mono createWebhookEndpoint(WebhookEndpointCreateInput webhookEndpointCreateInput) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return createWebhookEndpointRequestCreation(webhookEndpointCreateInput).bodyToMono(localVarReturnType); } /** @@ -117,13 +118,13 @@ public Mono createWebhookEndpoint(CreateWebhoo *

400 - Bad Request error *

401 - Unauthorized error *

422 - Unprocessable entity error - * @param createWebhookEndpointRequest Webhook Endpoint payload - * @return ResponseEntity<CreateWebhookEndpoint200Response> + * @param webhookEndpointCreateInput Webhook Endpoint payload + * @return ResponseEntity<WebhookEndpoint> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createWebhookEndpointWithHttpInfo(CreateWebhookEndpointRequest createWebhookEndpointRequest) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return createWebhookEndpointRequestCreation(createWebhookEndpointRequest).toEntity(localVarReturnType); + public Mono> createWebhookEndpointWithHttpInfo(WebhookEndpointCreateInput webhookEndpointCreateInput) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return createWebhookEndpointRequestCreation(webhookEndpointCreateInput).toEntity(localVarReturnType); } /** @@ -133,12 +134,12 @@ public Mono> createWebhookEndpo *

400 - Bad Request error *

401 - Unauthorized error *

422 - Unprocessable entity error - * @param createWebhookEndpointRequest Webhook Endpoint payload + * @param webhookEndpointCreateInput Webhook Endpoint payload * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createWebhookEndpointWithResponseSpec(CreateWebhookEndpointRequest createWebhookEndpointRequest) throws WebClientResponseException { - return createWebhookEndpointRequestCreation(createWebhookEndpointRequest); + public ResponseSpec createWebhookEndpointWithResponseSpec(WebhookEndpointCreateInput webhookEndpointCreateInput) throws WebClientResponseException { + return createWebhookEndpointRequestCreation(webhookEndpointCreateInput); } /** * Delete a webhook endpoint @@ -148,7 +149,7 @@ public ResponseSpec createWebhookEndpointWithResponseSpec(CreateWebhookEndpointR *

404 - Not Found error *

405 - Not Allowed error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @return Object + * @return WebhookEndpoint * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec destroyWebhookEndpointRequestCreation(UUID lagoId) throws WebClientResponseException { @@ -176,7 +177,7 @@ private ResponseSpec destroyWebhookEndpointRequestCreation(UUID lagoId) throws W String[] localVarAuthNames = new String[] { "bearerAuth" }; - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/webhook_endpoints/{lago_id}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } @@ -188,11 +189,11 @@ private ResponseSpec destroyWebhookEndpointRequestCreation(UUID lagoId) throws W *

404 - Not Found error *

405 - Not Allowed error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @return Object + * @return WebhookEndpoint * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono destroyWebhookEndpoint(UUID lagoId) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + public Mono destroyWebhookEndpoint(UUID lagoId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return destroyWebhookEndpointRequestCreation(lagoId).bodyToMono(localVarReturnType); } @@ -204,11 +205,11 @@ public Mono destroyWebhookEndpoint(UUID lagoId) throws WebClientResponse *

404 - Not Found error *

405 - Not Allowed error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @return ResponseEntity<Object> + * @return ResponseEntity<WebhookEndpoint> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> destroyWebhookEndpointWithHttpInfo(UUID lagoId) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + public Mono> destroyWebhookEndpointWithHttpInfo(UUID lagoId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return destroyWebhookEndpointRequestCreation(lagoId).toEntity(localVarReturnType); } @@ -233,7 +234,7 @@ public ResponseSpec destroyWebhookEndpointWithResponseSpec(UUID lagoId) throws W *

401 - Unauthorized error * @param page Page number. * @param perPage Number of records per page. - * @return FindAllWebhookEndpoints200Response + * @return WebhookEndpointsPaginated * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec findAllWebhookEndpointsRequestCreation(Integer page, Integer perPage) throws WebClientResponseException { @@ -258,7 +259,7 @@ private ResponseSpec findAllWebhookEndpointsRequestCreation(Integer page, Intege String[] localVarAuthNames = new String[] { "bearerAuth" }; - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/webhook_endpoints", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } @@ -269,11 +270,11 @@ private ResponseSpec findAllWebhookEndpointsRequestCreation(Integer page, Intege *

401 - Unauthorized error * @param page Page number. * @param perPage Number of records per page. - * @return FindAllWebhookEndpoints200Response + * @return WebhookEndpointsPaginated * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono findAllWebhookEndpoints(Integer page, Integer perPage) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + public Mono findAllWebhookEndpoints(Integer page, Integer perPage) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findAllWebhookEndpointsRequestCreation(page, perPage).bodyToMono(localVarReturnType); } @@ -284,11 +285,11 @@ public Mono findAllWebhookEndpoints(Integer *

401 - Unauthorized error * @param page Page number. * @param perPage Number of records per page. - * @return ResponseEntity<FindAllWebhookEndpoints200Response> + * @return ResponseEntity<WebhookEndpointsPaginated> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> findAllWebhookEndpointsWithHttpInfo(Integer page, Integer perPage) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + public Mono> findAllWebhookEndpointsWithHttpInfo(Integer page, Integer perPage) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findAllWebhookEndpointsRequestCreation(page, perPage).toEntity(localVarReturnType); } @@ -312,7 +313,7 @@ public ResponseSpec findAllWebhookEndpointsWithResponseSpec(Integer page, Intege *

401 - Unauthorized error *

404 - Not Found error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @return Object + * @return WebhookEndpoint * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec findWebhookEndpointRequestCreation(UUID lagoId) throws WebClientResponseException { @@ -340,7 +341,7 @@ private ResponseSpec findWebhookEndpointRequestCreation(UUID lagoId) throws WebC String[] localVarAuthNames = new String[] { "bearerAuth" }; - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/webhook_endpoints/{lago_id}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } @@ -351,11 +352,11 @@ private ResponseSpec findWebhookEndpointRequestCreation(UUID lagoId) throws WebC *

401 - Unauthorized error *

404 - Not Found error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @return Object + * @return WebhookEndpoint * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono findWebhookEndpoint(UUID lagoId) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + public Mono findWebhookEndpoint(UUID lagoId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findWebhookEndpointRequestCreation(lagoId).bodyToMono(localVarReturnType); } @@ -366,11 +367,11 @@ public Mono findWebhookEndpoint(UUID lagoId) throws WebClientResponseExc *

401 - Unauthorized error *

404 - Not Found error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @return ResponseEntity<Object> + * @return ResponseEntity<WebhookEndpoint> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> findWebhookEndpointWithHttpInfo(UUID lagoId) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + public Mono> findWebhookEndpointWithHttpInfo(UUID lagoId) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findWebhookEndpointRequestCreation(lagoId).toEntity(localVarReturnType); } @@ -396,19 +397,19 @@ public ResponseSpec findWebhookEndpointWithResponseSpec(UUID lagoId) throws WebC *

404 - Not Found error *

422 - Unprocessable entity error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @param createWebhookEndpointRequest Webhook Endpoint update payload - * @return Object + * @param webhookEndpointUpdateInput Webhook Endpoint update payload + * @return WebhookEndpoint * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updateWebhookEndpointRequestCreation(UUID lagoId, CreateWebhookEndpointRequest createWebhookEndpointRequest) throws WebClientResponseException { - Object postBody = createWebhookEndpointRequest; + private ResponseSpec updateWebhookEndpointRequestCreation(UUID lagoId, WebhookEndpointUpdateInput webhookEndpointUpdateInput) throws WebClientResponseException { + Object postBody = webhookEndpointUpdateInput; // verify the required parameter 'lagoId' is set if (lagoId == null) { throw new WebClientResponseException("Missing the required parameter 'lagoId' when calling updateWebhookEndpoint", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } - // verify the required parameter 'createWebhookEndpointRequest' is set - if (createWebhookEndpointRequest == null) { - throw new WebClientResponseException("Missing the required parameter 'createWebhookEndpointRequest' when calling updateWebhookEndpoint", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); + // verify the required parameter 'webhookEndpointUpdateInput' is set + if (webhookEndpointUpdateInput == null) { + throw new WebClientResponseException("Missing the required parameter 'webhookEndpointUpdateInput' when calling updateWebhookEndpoint", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); @@ -431,7 +432,7 @@ private ResponseSpec updateWebhookEndpointRequestCreation(UUID lagoId, CreateWeb String[] localVarAuthNames = new String[] { "bearerAuth" }; - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/webhook_endpoints/{lago_id}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } @@ -444,13 +445,13 @@ private ResponseSpec updateWebhookEndpointRequestCreation(UUID lagoId, CreateWeb *

404 - Not Found error *

422 - Unprocessable entity error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @param createWebhookEndpointRequest Webhook Endpoint update payload - * @return Object + * @param webhookEndpointUpdateInput Webhook Endpoint update payload + * @return WebhookEndpoint * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updateWebhookEndpoint(UUID lagoId, CreateWebhookEndpointRequest createWebhookEndpointRequest) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return updateWebhookEndpointRequestCreation(lagoId, createWebhookEndpointRequest).bodyToMono(localVarReturnType); + public Mono updateWebhookEndpoint(UUID lagoId, WebhookEndpointUpdateInput webhookEndpointUpdateInput) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return updateWebhookEndpointRequestCreation(lagoId, webhookEndpointUpdateInput).bodyToMono(localVarReturnType); } /** @@ -462,13 +463,13 @@ public Mono updateWebhookEndpoint(UUID lagoId, CreateWebhookEndpointRequ *

404 - Not Found error *

422 - Unprocessable entity error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @param createWebhookEndpointRequest Webhook Endpoint update payload - * @return ResponseEntity<Object> + * @param webhookEndpointUpdateInput Webhook Endpoint update payload + * @return ResponseEntity<WebhookEndpoint> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updateWebhookEndpointWithHttpInfo(UUID lagoId, CreateWebhookEndpointRequest createWebhookEndpointRequest) throws WebClientResponseException { - ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return updateWebhookEndpointRequestCreation(lagoId, createWebhookEndpointRequest).toEntity(localVarReturnType); + public Mono> updateWebhookEndpointWithHttpInfo(UUID lagoId, WebhookEndpointUpdateInput webhookEndpointUpdateInput) throws WebClientResponseException { + ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return updateWebhookEndpointRequestCreation(lagoId, webhookEndpointUpdateInput).toEntity(localVarReturnType); } /** @@ -480,11 +481,11 @@ public Mono> updateWebhookEndpointWithHttpInfo(UUID lagoI *

404 - Not Found error *

422 - Unprocessable entity error * @param lagoId Unique identifier assigned to the webhook endpoint within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the webhook endpoint's record within the Lago system. - * @param createWebhookEndpointRequest Webhook Endpoint update payload + * @param webhookEndpointUpdateInput Webhook Endpoint update payload * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updateWebhookEndpointWithResponseSpec(UUID lagoId, CreateWebhookEndpointRequest createWebhookEndpointRequest) throws WebClientResponseException { - return updateWebhookEndpointRequestCreation(lagoId, createWebhookEndpointRequest); + public ResponseSpec updateWebhookEndpointWithResponseSpec(UUID lagoId, WebhookEndpointUpdateInput webhookEndpointUpdateInput) throws WebClientResponseException { + return updateWebhookEndpointRequestCreation(lagoId, webhookEndpointUpdateInput); } } diff --git a/src/main/java/org/getlago/client/api/WebhooksApi.java b/src/main/java/org/getlago/client/api/WebhooksApi.java index ad9346f..7659749 100644 --- a/src/main/java/org/getlago/client/api/WebhooksApi.java +++ b/src/main/java/org/getlago/client/api/WebhooksApi.java @@ -25,7 +25,7 @@ import reactor.core.publisher.Mono; import reactor.core.publisher.Flux; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WebhooksApi { private ApiClient apiClient; diff --git a/src/main/java/org/getlago/client/auth/ApiKeyAuth.java b/src/main/java/org/getlago/client/auth/ApiKeyAuth.java index 1d4da9e..ee21ea2 100644 --- a/src/main/java/org/getlago/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/getlago/client/auth/ApiKeyAuth.java @@ -3,7 +3,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.util.MultiValueMap; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/getlago/client/auth/HttpBasicAuth.java b/src/main/java/org/getlago/client/auth/HttpBasicAuth.java index bf209fb..9e86e68 100644 --- a/src/main/java/org/getlago/client/auth/HttpBasicAuth.java +++ b/src/main/java/org/getlago/client/auth/HttpBasicAuth.java @@ -7,7 +7,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.util.MultiValueMap; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/org/getlago/client/auth/HttpBearerAuth.java b/src/main/java/org/getlago/client/auth/HttpBearerAuth.java index 9b2c07b..403b9aa 100644 --- a/src/main/java/org/getlago/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/getlago/client/auth/HttpBearerAuth.java @@ -6,7 +6,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.util.MultiValueMap; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/org/openapitools/client/model/AddOn.java b/src/main/java/org/openapitools/client/model/AddOn.java index 9c4d156..6c414a5 100644 --- a/src/main/java/org/openapitools/client/model/AddOn.java +++ b/src/main/java/org/openapitools/client/model/AddOn.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ AddOn.JSON_PROPERTY_ADD_ON }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AddOn { public static final String JSON_PROPERTY_ADD_ON = "add_on"; private AddOnObject addOn; diff --git a/src/main/java/org/openapitools/client/model/AddOnBaseInput.java b/src/main/java/org/openapitools/client/model/AddOnBaseInput.java index 5469541..f500056 100644 --- a/src/main/java/org/openapitools/client/model/AddOnBaseInput.java +++ b/src/main/java/org/openapitools/client/model/AddOnBaseInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.jackson.nullable.JsonNullable; @@ -35,17 +36,21 @@ */ @JsonPropertyOrder({ AddOnBaseInput.JSON_PROPERTY_NAME, + AddOnBaseInput.JSON_PROPERTY_INVOICE_DISPLAY_NAME, AddOnBaseInput.JSON_PROPERTY_CODE, AddOnBaseInput.JSON_PROPERTY_AMOUNT_CENTS, AddOnBaseInput.JSON_PROPERTY_AMOUNT_CURRENCY, AddOnBaseInput.JSON_PROPERTY_DESCRIPTION, AddOnBaseInput.JSON_PROPERTY_TAX_CODES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AddOnBaseInput { public static final String JSON_PROPERTY_NAME = "name"; private String name; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -90,6 +95,32 @@ public void setName(String name) { } + public AddOnBaseInput invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public AddOnBaseInput code(String code) { this.code = code; @@ -245,6 +276,7 @@ public boolean equals(Object o) { } AddOnBaseInput addOnBaseInput = (AddOnBaseInput) o; return Objects.equals(this.name, addOnBaseInput.name) && + Objects.equals(this.invoiceDisplayName, addOnBaseInput.invoiceDisplayName) && Objects.equals(this.code, addOnBaseInput.code) && Objects.equals(this.amountCents, addOnBaseInput.amountCents) && Objects.equals(this.amountCurrency, addOnBaseInput.amountCurrency) && @@ -258,7 +290,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, code, amountCents, amountCurrency, hashCodeNullable(description), taxCodes); + return Objects.hash(name, invoiceDisplayName, code, amountCents, amountCurrency, hashCodeNullable(description), taxCodes); } private static int hashCodeNullable(JsonNullable a) { @@ -273,6 +305,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddOnBaseInput {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/AddOnCreateInput.java b/src/main/java/org/openapitools/client/model/AddOnCreateInput.java index 1ad6e46..c611907 100644 --- a/src/main/java/org/openapitools/client/model/AddOnCreateInput.java +++ b/src/main/java/org/openapitools/client/model/AddOnCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ AddOnCreateInput.JSON_PROPERTY_ADD_ON }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AddOnCreateInput { public static final String JSON_PROPERTY_ADD_ON = "add_on"; private AddOnCreateInputAddOn addOn; diff --git a/src/main/java/org/openapitools/client/model/AddOnCreateInputAddOn.java b/src/main/java/org/openapitools/client/model/AddOnCreateInputAddOn.java index 00a3c9a..956ad13 100644 --- a/src/main/java/org/openapitools/client/model/AddOnCreateInputAddOn.java +++ b/src/main/java/org/openapitools/client/model/AddOnCreateInputAddOn.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.jackson.nullable.JsonNullable; @@ -35,6 +36,7 @@ */ @JsonPropertyOrder({ AddOnCreateInputAddOn.JSON_PROPERTY_NAME, + AddOnCreateInputAddOn.JSON_PROPERTY_INVOICE_DISPLAY_NAME, AddOnCreateInputAddOn.JSON_PROPERTY_CODE, AddOnCreateInputAddOn.JSON_PROPERTY_AMOUNT_CENTS, AddOnCreateInputAddOn.JSON_PROPERTY_AMOUNT_CURRENCY, @@ -42,11 +44,14 @@ AddOnCreateInputAddOn.JSON_PROPERTY_TAX_CODES }) @JsonTypeName("AddOnCreateInput_add_on") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AddOnCreateInputAddOn { public static final String JSON_PROPERTY_NAME = "name"; private String name; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -91,6 +96,32 @@ public void setName(String name) { } + public AddOnCreateInputAddOn invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public AddOnCreateInputAddOn code(String code) { this.code = code; @@ -246,6 +277,7 @@ public boolean equals(Object o) { } AddOnCreateInputAddOn addOnCreateInputAddOn = (AddOnCreateInputAddOn) o; return Objects.equals(this.name, addOnCreateInputAddOn.name) && + Objects.equals(this.invoiceDisplayName, addOnCreateInputAddOn.invoiceDisplayName) && Objects.equals(this.code, addOnCreateInputAddOn.code) && Objects.equals(this.amountCents, addOnCreateInputAddOn.amountCents) && Objects.equals(this.amountCurrency, addOnCreateInputAddOn.amountCurrency) && @@ -259,7 +291,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, code, amountCents, amountCurrency, hashCodeNullable(description), taxCodes); + return Objects.hash(name, invoiceDisplayName, code, amountCents, amountCurrency, hashCodeNullable(description), taxCodes); } private static int hashCodeNullable(JsonNullable a) { @@ -274,6 +306,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddOnCreateInputAddOn {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/AddOnObject.java b/src/main/java/org/openapitools/client/model/AddOnObject.java index 6e9691c..1243395 100644 --- a/src/main/java/org/openapitools/client/model/AddOnObject.java +++ b/src/main/java/org/openapitools/client/model/AddOnObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -39,6 +40,7 @@ @JsonPropertyOrder({ AddOnObject.JSON_PROPERTY_LAGO_ID, AddOnObject.JSON_PROPERTY_NAME, + AddOnObject.JSON_PROPERTY_INVOICE_DISPLAY_NAME, AddOnObject.JSON_PROPERTY_CODE, AddOnObject.JSON_PROPERTY_AMOUNT_CENTS, AddOnObject.JSON_PROPERTY_AMOUNT_CURRENCY, @@ -46,7 +48,7 @@ AddOnObject.JSON_PROPERTY_CREATED_AT, AddOnObject.JSON_PROPERTY_TAXES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AddOnObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -54,6 +56,9 @@ public class AddOnObject { public static final String JSON_PROPERTY_NAME = "name"; private String name; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -127,6 +132,32 @@ public void setName(String name) { } + public AddOnObject invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public AddOnObject code(String code) { this.code = code; @@ -309,6 +340,7 @@ public boolean equals(Object o) { AddOnObject addOnObject = (AddOnObject) o; return Objects.equals(this.lagoId, addOnObject.lagoId) && Objects.equals(this.name, addOnObject.name) && + Objects.equals(this.invoiceDisplayName, addOnObject.invoiceDisplayName) && Objects.equals(this.code, addOnObject.code) && Objects.equals(this.amountCents, addOnObject.amountCents) && Objects.equals(this.amountCurrency, addOnObject.amountCurrency) && @@ -323,7 +355,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lagoId, name, code, amountCents, amountCurrency, hashCodeNullable(description), createdAt, taxes); + return Objects.hash(lagoId, name, invoiceDisplayName, code, amountCents, amountCurrency, hashCodeNullable(description), createdAt, taxes); } private static int hashCodeNullable(JsonNullable a) { @@ -339,6 +371,7 @@ public String toString() { sb.append("class AddOnObject {\n"); sb.append(" lagoId: ").append(toIndentedString(lagoId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/AddOnUpdateInput.java b/src/main/java/org/openapitools/client/model/AddOnUpdateInput.java index 07f4f12..bf309f6 100644 --- a/src/main/java/org/openapitools/client/model/AddOnUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/AddOnUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ AddOnUpdateInput.JSON_PROPERTY_ADD_ON }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AddOnUpdateInput { public static final String JSON_PROPERTY_ADD_ON = "add_on"; private AddOnBaseInput addOn; diff --git a/src/main/java/org/openapitools/client/model/AddOnsPaginated.java b/src/main/java/org/openapitools/client/model/AddOnsPaginated.java index 2eb4f73..480b262 100644 --- a/src/main/java/org/openapitools/client/model/AddOnsPaginated.java +++ b/src/main/java/org/openapitools/client/model/AddOnsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.AddOnObject; import org.openapitools.client.model.PaginationMeta; @@ -34,7 +35,7 @@ AddOnsPaginated.JSON_PROPERTY_ADD_ONS, AddOnsPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AddOnsPaginated { public static final String JSON_PROPERTY_ADD_ONS = "add_ons"; private List addOns = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/ApiErrorBadRequest.java b/src/main/java/org/openapitools/client/model/ApiErrorBadRequest.java index 51f3324..b37877d 100644 --- a/src/main/java/org/openapitools/client/model/ApiErrorBadRequest.java +++ b/src/main/java/org/openapitools/client/model/ApiErrorBadRequest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ ApiErrorBadRequest.JSON_PROPERTY_STATUS, ApiErrorBadRequest.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ApiErrorBadRequest { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; diff --git a/src/main/java/org/openapitools/client/model/ApiErrorForbidden.java b/src/main/java/org/openapitools/client/model/ApiErrorForbidden.java index 2b22b3c..6bd6acc 100644 --- a/src/main/java/org/openapitools/client/model/ApiErrorForbidden.java +++ b/src/main/java/org/openapitools/client/model/ApiErrorForbidden.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ ApiErrorForbidden.JSON_PROPERTY_ERROR, ApiErrorForbidden.JSON_PROPERTY_CODE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ApiErrorForbidden { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; diff --git a/src/main/java/org/openapitools/client/model/ApiErrorNotAllowed.java b/src/main/java/org/openapitools/client/model/ApiErrorNotAllowed.java index c975ec5..d4bb410 100644 --- a/src/main/java/org/openapitools/client/model/ApiErrorNotAllowed.java +++ b/src/main/java/org/openapitools/client/model/ApiErrorNotAllowed.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ ApiErrorNotAllowed.JSON_PROPERTY_ERROR, ApiErrorNotAllowed.JSON_PROPERTY_CODE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ApiErrorNotAllowed { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; diff --git a/src/main/java/org/openapitools/client/model/ApiErrorNotFound.java b/src/main/java/org/openapitools/client/model/ApiErrorNotFound.java index 17fec97..221f249 100644 --- a/src/main/java/org/openapitools/client/model/ApiErrorNotFound.java +++ b/src/main/java/org/openapitools/client/model/ApiErrorNotFound.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ ApiErrorNotFound.JSON_PROPERTY_ERROR, ApiErrorNotFound.JSON_PROPERTY_CODE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ApiErrorNotFound { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; diff --git a/src/main/java/org/openapitools/client/model/ApiErrorUnauthorized.java b/src/main/java/org/openapitools/client/model/ApiErrorUnauthorized.java index 2b566f5..7a0a2a6 100644 --- a/src/main/java/org/openapitools/client/model/ApiErrorUnauthorized.java +++ b/src/main/java/org/openapitools/client/model/ApiErrorUnauthorized.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ ApiErrorUnauthorized.JSON_PROPERTY_STATUS, ApiErrorUnauthorized.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ApiErrorUnauthorized { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; diff --git a/src/main/java/org/openapitools/client/model/ApiErrorUnprocessableEntity.java b/src/main/java/org/openapitools/client/model/ApiErrorUnprocessableEntity.java index a04001e..2af0649 100644 --- a/src/main/java/org/openapitools/client/model/ApiErrorUnprocessableEntity.java +++ b/src/main/java/org/openapitools/client/model/ApiErrorUnprocessableEntity.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ ApiErrorUnprocessableEntity.JSON_PROPERTY_CODE, ApiErrorUnprocessableEntity.JSON_PROPERTY_ERROR_DETAILS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ApiErrorUnprocessableEntity { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; diff --git a/src/main/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOn.java b/src/main/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOn.java deleted file mode 100644 index 8fbc554..0000000 --- a/src/main/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOn.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Lago API documentation - * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. - * - * The version of the OpenAPI document: 0.46.0-beta - * Contact: tech@getlago.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Currency; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * AppliedAddOnInputAppliedAddOn - */ -@JsonPropertyOrder({ - AppliedAddOnInputAppliedAddOn.JSON_PROPERTY_EXTERNAL_CUSTOMER_ID, - AppliedAddOnInputAppliedAddOn.JSON_PROPERTY_ADD_ON_CODE, - AppliedAddOnInputAppliedAddOn.JSON_PROPERTY_AMOUNT_CENTS, - AppliedAddOnInputAppliedAddOn.JSON_PROPERTY_AMOUNT_CURRENCY -}) -@JsonTypeName("AppliedAddOnInput_applied_add_on") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class AppliedAddOnInputAppliedAddOn { - public static final String JSON_PROPERTY_EXTERNAL_CUSTOMER_ID = "external_customer_id"; - private String externalCustomerId; - - public static final String JSON_PROPERTY_ADD_ON_CODE = "add_on_code"; - private String addOnCode; - - public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; - private JsonNullable amountCents = JsonNullable.undefined(); - - public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amount_currency"; - private Currency amountCurrency; - - public AppliedAddOnInputAppliedAddOn() { - } - - public AppliedAddOnInputAppliedAddOn externalCustomerId(String externalCustomerId) { - - this.externalCustomerId = externalCustomerId; - return this; - } - - /** - * The customer external unique identifier (provided by your own application) - * @return externalCustomerId - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getExternalCustomerId() { - return externalCustomerId; - } - - - @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExternalCustomerId(String externalCustomerId) { - this.externalCustomerId = externalCustomerId; - } - - - public AppliedAddOnInputAppliedAddOn addOnCode(String addOnCode) { - - this.addOnCode = addOnCode; - return this; - } - - /** - * Unique code used to identify the add-on. - * @return addOnCode - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADD_ON_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getAddOnCode() { - return addOnCode; - } - - - @JsonProperty(JSON_PROPERTY_ADD_ON_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddOnCode(String addOnCode) { - this.addOnCode = addOnCode; - } - - - public AppliedAddOnInputAppliedAddOn amountCents(Integer amountCents) { - this.amountCents = JsonNullable.of(amountCents); - - return this; - } - - /** - * The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. - * @return amountCents - **/ - @javax.annotation.Nullable - @JsonIgnore - - public Integer getAmountCents() { - return amountCents.orElse(null); - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public JsonNullable getAmountCents_JsonNullable() { - return amountCents; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) - public void setAmountCents_JsonNullable(JsonNullable amountCents) { - this.amountCents = amountCents; - } - - public void setAmountCents(Integer amountCents) { - this.amountCents = JsonNullable.of(amountCents); - } - - - public AppliedAddOnInputAppliedAddOn amountCurrency(Currency amountCurrency) { - - this.amountCurrency = amountCurrency; - return this; - } - - /** - * Get amountCurrency - * @return amountCurrency - **/ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Currency getAmountCurrency() { - return amountCurrency; - } - - - @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountCurrency(Currency amountCurrency) { - this.amountCurrency = amountCurrency; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppliedAddOnInputAppliedAddOn appliedAddOnInputAppliedAddOn = (AppliedAddOnInputAppliedAddOn) o; - return Objects.equals(this.externalCustomerId, appliedAddOnInputAppliedAddOn.externalCustomerId) && - Objects.equals(this.addOnCode, appliedAddOnInputAppliedAddOn.addOnCode) && - equalsNullable(this.amountCents, appliedAddOnInputAppliedAddOn.amountCents) && - Objects.equals(this.amountCurrency, appliedAddOnInputAppliedAddOn.amountCurrency); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(externalCustomerId, addOnCode, hashCodeNullable(amountCents), amountCurrency); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AppliedAddOnInputAppliedAddOn {\n"); - sb.append(" externalCustomerId: ").append(toIndentedString(externalCustomerId)).append("\n"); - sb.append(" addOnCode: ").append(toIndentedString(addOnCode)).append("\n"); - sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); - sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/org/openapitools/client/model/AppliedAddOnObject.java b/src/main/java/org/openapitools/client/model/AppliedAddOnObject.java deleted file mode 100644 index 8a26520..0000000 --- a/src/main/java/org/openapitools/client/model/AppliedAddOnObject.java +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Lago API documentation - * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. - * - * The version of the OpenAPI document: 0.46.0-beta - * Contact: tech@getlago.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.UUID; -import org.openapitools.client.model.Currency; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * AppliedAddOnObject - */ -@JsonPropertyOrder({ - AppliedAddOnObject.JSON_PROPERTY_LAGO_ID, - AppliedAddOnObject.JSON_PROPERTY_LAGO_ADD_ON_ID, - AppliedAddOnObject.JSON_PROPERTY_ADD_ON_CODE, - AppliedAddOnObject.JSON_PROPERTY_LAGO_CUSTOMER_ID, - AppliedAddOnObject.JSON_PROPERTY_EXTERNAL_CUSTOMER_ID, - AppliedAddOnObject.JSON_PROPERTY_AMOUNT_CENTS, - AppliedAddOnObject.JSON_PROPERTY_AMOUNT_CURRENCY, - AppliedAddOnObject.JSON_PROPERTY_CREATED_AT -}) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class AppliedAddOnObject { - public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; - private UUID lagoId; - - public static final String JSON_PROPERTY_LAGO_ADD_ON_ID = "lago_add_on_id"; - private UUID lagoAddOnId; - - public static final String JSON_PROPERTY_ADD_ON_CODE = "add_on_code"; - private String addOnCode; - - public static final String JSON_PROPERTY_LAGO_CUSTOMER_ID = "lago_customer_id"; - private UUID lagoCustomerId; - - public static final String JSON_PROPERTY_EXTERNAL_CUSTOMER_ID = "external_customer_id"; - private String externalCustomerId; - - public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; - private Integer amountCents; - - public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amount_currency"; - private Currency amountCurrency; - - public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - private OffsetDateTime createdAt; - - public AppliedAddOnObject() { - } - - public AppliedAddOnObject lagoId(UUID lagoId) { - - this.lagoId = lagoId; - return this; - } - - /** - * Unique identifier of the applied add-on created by Lago. - * @return lagoId - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LAGO_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public UUID getLagoId() { - return lagoId; - } - - - @JsonProperty(JSON_PROPERTY_LAGO_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLagoId(UUID lagoId) { - this.lagoId = lagoId; - } - - - public AppliedAddOnObject lagoAddOnId(UUID lagoAddOnId) { - - this.lagoAddOnId = lagoAddOnId; - return this; - } - - /** - * Unique identifier of the add-on created by Lago. - * @return lagoAddOnId - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LAGO_ADD_ON_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public UUID getLagoAddOnId() { - return lagoAddOnId; - } - - - @JsonProperty(JSON_PROPERTY_LAGO_ADD_ON_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLagoAddOnId(UUID lagoAddOnId) { - this.lagoAddOnId = lagoAddOnId; - } - - - public AppliedAddOnObject addOnCode(String addOnCode) { - - this.addOnCode = addOnCode; - return this; - } - - /** - * Unique code used to identify the add-on. - * @return addOnCode - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADD_ON_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getAddOnCode() { - return addOnCode; - } - - - @JsonProperty(JSON_PROPERTY_ADD_ON_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddOnCode(String addOnCode) { - this.addOnCode = addOnCode; - } - - - public AppliedAddOnObject lagoCustomerId(UUID lagoCustomerId) { - - this.lagoCustomerId = lagoCustomerId; - return this; - } - - /** - * Unique identifier of the customer created by Lago. - * @return lagoCustomerId - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LAGO_CUSTOMER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public UUID getLagoCustomerId() { - return lagoCustomerId; - } - - - @JsonProperty(JSON_PROPERTY_LAGO_CUSTOMER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLagoCustomerId(UUID lagoCustomerId) { - this.lagoCustomerId = lagoCustomerId; - } - - - public AppliedAddOnObject externalCustomerId(String externalCustomerId) { - - this.externalCustomerId = externalCustomerId; - return this; - } - - /** - * The customer external unique identifier (provided by your own application) - * @return externalCustomerId - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getExternalCustomerId() { - return externalCustomerId; - } - - - @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExternalCustomerId(String externalCustomerId) { - this.externalCustomerId = externalCustomerId; - } - - - public AppliedAddOnObject amountCents(Integer amountCents) { - - this.amountCents = amountCents; - return this; - } - - /** - * The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. - * @return amountCents - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Integer getAmountCents() { - return amountCents; - } - - - @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountCents(Integer amountCents) { - this.amountCents = amountCents; - } - - - public AppliedAddOnObject amountCurrency(Currency amountCurrency) { - - this.amountCurrency = amountCurrency; - return this; - } - - /** - * Get amountCurrency - * @return amountCurrency - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Currency getAmountCurrency() { - return amountCurrency; - } - - - @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountCurrency(Currency amountCurrency) { - this.amountCurrency = amountCurrency; - } - - - public AppliedAddOnObject createdAt(OffsetDateTime createdAt) { - - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * @return createdAt - **/ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppliedAddOnObject appliedAddOnObject = (AppliedAddOnObject) o; - return Objects.equals(this.lagoId, appliedAddOnObject.lagoId) && - Objects.equals(this.lagoAddOnId, appliedAddOnObject.lagoAddOnId) && - Objects.equals(this.addOnCode, appliedAddOnObject.addOnCode) && - Objects.equals(this.lagoCustomerId, appliedAddOnObject.lagoCustomerId) && - Objects.equals(this.externalCustomerId, appliedAddOnObject.externalCustomerId) && - Objects.equals(this.amountCents, appliedAddOnObject.amountCents) && - Objects.equals(this.amountCurrency, appliedAddOnObject.amountCurrency) && - Objects.equals(this.createdAt, appliedAddOnObject.createdAt); - } - - @Override - public int hashCode() { - return Objects.hash(lagoId, lagoAddOnId, addOnCode, lagoCustomerId, externalCustomerId, amountCents, amountCurrency, createdAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AppliedAddOnObject {\n"); - sb.append(" lagoId: ").append(toIndentedString(lagoId)).append("\n"); - sb.append(" lagoAddOnId: ").append(toIndentedString(lagoAddOnId)).append("\n"); - sb.append(" addOnCode: ").append(toIndentedString(addOnCode)).append("\n"); - sb.append(" lagoCustomerId: ").append(toIndentedString(lagoCustomerId)).append("\n"); - sb.append(" externalCustomerId: ").append(toIndentedString(externalCustomerId)).append("\n"); - sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); - sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/org/openapitools/client/model/AppliedCoupon.java b/src/main/java/org/openapitools/client/model/AppliedCoupon.java index e411036..dd40561 100644 --- a/src/main/java/org/openapitools/client/model/AppliedCoupon.java +++ b/src/main/java/org/openapitools/client/model/AppliedCoupon.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ AppliedCoupon.JSON_PROPERTY_APPLIED_COUPON }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AppliedCoupon { public static final String JSON_PROPERTY_APPLIED_COUPON = "applied_coupon"; private AppliedCouponObject appliedCoupon; diff --git a/src/main/java/org/openapitools/client/model/AppliedCouponInput.java b/src/main/java/org/openapitools/client/model/AppliedCouponInput.java index 9d814bb..bfa7eaa 100644 --- a/src/main/java/org/openapitools/client/model/AppliedCouponInput.java +++ b/src/main/java/org/openapitools/client/model/AppliedCouponInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ AppliedCouponInput.JSON_PROPERTY_APPLIED_COUPON }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AppliedCouponInput { public static final String JSON_PROPERTY_APPLIED_COUPON = "applied_coupon"; private AppliedCouponInputAppliedCoupon appliedCoupon; diff --git a/src/main/java/org/openapitools/client/model/AppliedCouponInputAppliedCoupon.java b/src/main/java/org/openapitools/client/model/AppliedCouponInputAppliedCoupon.java index cd531d3..5032906 100644 --- a/src/main/java/org/openapitools/client/model/AppliedCouponInputAppliedCoupon.java +++ b/src/main/java/org/openapitools/client/model/AppliedCouponInputAppliedCoupon.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -41,7 +41,7 @@ AppliedCouponInputAppliedCoupon.JSON_PROPERTY_PERCENTAGE_RATE }) @JsonTypeName("AppliedCouponInput_applied_coupon") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AppliedCouponInputAppliedCoupon { public static final String JSON_PROPERTY_EXTERNAL_CUSTOMER_ID = "external_customer_id"; private String externalCustomerId; diff --git a/src/main/java/org/openapitools/client/model/AppliedCouponObject.java b/src/main/java/org/openapitools/client/model/AppliedCouponObject.java index 7194a52..3b579d0 100644 --- a/src/main/java/org/openapitools/client/model/AppliedCouponObject.java +++ b/src/main/java/org/openapitools/client/model/AppliedCouponObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ AppliedCouponObject.JSON_PROPERTY_CREATED_AT, AppliedCouponObject.JSON_PROPERTY_TERMINATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AppliedCouponObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/AppliedCouponObjectExtended.java b/src/main/java/org/openapitools/client/model/AppliedCouponObjectExtended.java index ce03fb7..49baab6 100644 --- a/src/main/java/org/openapitools/client/model/AppliedCouponObjectExtended.java +++ b/src/main/java/org/openapitools/client/model/AppliedCouponObjectExtended.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.CreditObject; @@ -56,7 +57,7 @@ AppliedCouponObjectExtended.JSON_PROPERTY_TERMINATED_AT, AppliedCouponObjectExtended.JSON_PROPERTY_CREDITS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AppliedCouponObjectExtended { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/AppliedCouponsPaginated.java b/src/main/java/org/openapitools/client/model/AppliedCouponsPaginated.java index eb4aed6..98efd74 100644 --- a/src/main/java/org/openapitools/client/model/AppliedCouponsPaginated.java +++ b/src/main/java/org/openapitools/client/model/AppliedCouponsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.AppliedCouponObjectExtended; import org.openapitools.client.model.PaginationMeta; @@ -34,7 +35,7 @@ AppliedCouponsPaginated.JSON_PROPERTY_APPLIED_COUPONS, AppliedCouponsPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class AppliedCouponsPaginated { public static final String JSON_PROPERTY_APPLIED_COUPONS = "applied_coupons"; private List appliedCoupons = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/BaseAppliedTax.java b/src/main/java/org/openapitools/client/model/BaseAppliedTax.java index 7d7b529..9c4d499 100644 --- a/src/main/java/org/openapitools/client/model/BaseAppliedTax.java +++ b/src/main/java/org/openapitools/client/model/BaseAppliedTax.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -41,7 +41,7 @@ BaseAppliedTax.JSON_PROPERTY_AMOUNT_CURRENCY, BaseAppliedTax.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BaseAppliedTax { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/BillableMetric.java b/src/main/java/org/openapitools/client/model/BillableMetric.java index 8e8e3c7..afbd03e 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetric.java +++ b/src/main/java/org/openapitools/client/model/BillableMetric.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ BillableMetric.JSON_PROPERTY_BILLABLE_METRIC }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetric { public static final String JSON_PROPERTY_BILLABLE_METRIC = "billable_metric"; private BillableMetricObject billableMetric; diff --git a/src/main/java/org/openapitools/client/model/BillableMetricBaseInput.java b/src/main/java/org/openapitools/client/model/BillableMetricBaseInput.java index eb5e30a..e54cace 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricBaseInput.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricBaseInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -38,9 +38,10 @@ BillableMetricBaseInput.JSON_PROPERTY_RECURRING, BillableMetricBaseInput.JSON_PROPERTY_FIELD_NAME, BillableMetricBaseInput.JSON_PROPERTY_AGGREGATION_TYPE, + BillableMetricBaseInput.JSON_PROPERTY_WEIGHTED_INTERVAL, BillableMetricBaseInput.JSON_PROPERTY_GROUP }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricBaseInput { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -58,7 +59,7 @@ public class BillableMetricBaseInput { private JsonNullable fieldName = JsonNullable.undefined(); /** - * Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. + * Aggregation method used to compute usage for this billable metric. */ public enum AggregationTypeEnum { COUNT_AGG("count_agg"), @@ -67,7 +68,11 @@ public enum AggregationTypeEnum { MAX_AGG("max_agg"), - UNIQUE_COUNT_AGG("unique_count_agg"); + UNIQUE_COUNT_AGG("unique_count_agg"), + + WEIGHTED_SUM_AGG("weighted_sum_agg"), + + LATEST_AGG("latest_agg"); private String value; @@ -99,6 +104,42 @@ public static AggregationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_AGGREGATION_TYPE = "aggregation_type"; private AggregationTypeEnum aggregationType; + /** + * Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. + */ + public enum WeightedIntervalEnum { + SECONDS("seconds"); + + private String value; + + WeightedIntervalEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static WeightedIntervalEnum fromValue(String value) { + for (WeightedIntervalEnum b : WeightedIntervalEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + } + + public static final String JSON_PROPERTY_WEIGHTED_INTERVAL = "weighted_interval"; + private JsonNullable weightedInterval = JsonNullable.undefined(); + public static final String JSON_PROPERTY_GROUP = "group"; private BillableMetricGroup group; @@ -258,7 +299,7 @@ public BillableMetricBaseInput aggregationType(AggregationTypeEnum aggregationTy } /** - * Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. + * Aggregation method used to compute usage for this billable metric. * @return aggregationType **/ @javax.annotation.Nullable @@ -277,6 +318,40 @@ public void setAggregationType(AggregationTypeEnum aggregationType) { } + public BillableMetricBaseInput weightedInterval(WeightedIntervalEnum weightedInterval) { + this.weightedInterval = JsonNullable.of(weightedInterval); + + return this; + } + + /** + * Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. + * @return weightedInterval + **/ + @javax.annotation.Nullable + @JsonIgnore + + public WeightedIntervalEnum getWeightedInterval() { + return weightedInterval.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_WEIGHTED_INTERVAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getWeightedInterval_JsonNullable() { + return weightedInterval; + } + + @JsonProperty(JSON_PROPERTY_WEIGHTED_INTERVAL) + public void setWeightedInterval_JsonNullable(JsonNullable weightedInterval) { + this.weightedInterval = weightedInterval; + } + + public void setWeightedInterval(WeightedIntervalEnum weightedInterval) { + this.weightedInterval = JsonNullable.of(weightedInterval); + } + + public BillableMetricBaseInput group(BillableMetricGroup group) { this.group = group; @@ -317,6 +392,7 @@ public boolean equals(Object o) { Objects.equals(this.recurring, billableMetricBaseInput.recurring) && equalsNullable(this.fieldName, billableMetricBaseInput.fieldName) && Objects.equals(this.aggregationType, billableMetricBaseInput.aggregationType) && + equalsNullable(this.weightedInterval, billableMetricBaseInput.weightedInterval) && Objects.equals(this.group, billableMetricBaseInput.group); } @@ -326,7 +402,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, code, hashCodeNullable(description), recurring, hashCodeNullable(fieldName), aggregationType, group); + return Objects.hash(name, code, hashCodeNullable(description), recurring, hashCodeNullable(fieldName), aggregationType, hashCodeNullable(weightedInterval), group); } private static int hashCodeNullable(JsonNullable a) { @@ -346,6 +422,7 @@ public String toString() { sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); sb.append(" fieldName: ").append(toIndentedString(fieldName)).append("\n"); sb.append(" aggregationType: ").append(toIndentedString(aggregationType)).append("\n"); + sb.append(" weightedInterval: ").append(toIndentedString(weightedInterval)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/openapitools/client/model/BillableMetricCreateInput.java b/src/main/java/org/openapitools/client/model/BillableMetricCreateInput.java index 4272090..aa0ee80 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricCreateInput.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ BillableMetricCreateInput.JSON_PROPERTY_BILLABLE_METRIC }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricCreateInput { public static final String JSON_PROPERTY_BILLABLE_METRIC = "billable_metric"; private BillableMetricCreateInputBillableMetric billableMetric; diff --git a/src/main/java/org/openapitools/client/model/BillableMetricCreateInputBillableMetric.java b/src/main/java/org/openapitools/client/model/BillableMetricCreateInputBillableMetric.java index 24ed9a5..5f11565 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricCreateInputBillableMetric.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricCreateInputBillableMetric.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -38,10 +38,11 @@ BillableMetricCreateInputBillableMetric.JSON_PROPERTY_RECURRING, BillableMetricCreateInputBillableMetric.JSON_PROPERTY_FIELD_NAME, BillableMetricCreateInputBillableMetric.JSON_PROPERTY_AGGREGATION_TYPE, + BillableMetricCreateInputBillableMetric.JSON_PROPERTY_WEIGHTED_INTERVAL, BillableMetricCreateInputBillableMetric.JSON_PROPERTY_GROUP }) @JsonTypeName("BillableMetricCreateInput_billable_metric") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricCreateInputBillableMetric { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -59,7 +60,7 @@ public class BillableMetricCreateInputBillableMetric { private JsonNullable fieldName = JsonNullable.undefined(); /** - * Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. + * Aggregation method used to compute usage for this billable metric. */ public enum AggregationTypeEnum { COUNT_AGG("count_agg"), @@ -68,7 +69,11 @@ public enum AggregationTypeEnum { MAX_AGG("max_agg"), - UNIQUE_COUNT_AGG("unique_count_agg"); + UNIQUE_COUNT_AGG("unique_count_agg"), + + WEIGHTED_SUM_AGG("weighted_sum_agg"), + + LATEST_AGG("latest_agg"); private String value; @@ -100,6 +105,42 @@ public static AggregationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_AGGREGATION_TYPE = "aggregation_type"; private AggregationTypeEnum aggregationType; + /** + * Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. + */ + public enum WeightedIntervalEnum { + SECONDS("seconds"); + + private String value; + + WeightedIntervalEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static WeightedIntervalEnum fromValue(String value) { + for (WeightedIntervalEnum b : WeightedIntervalEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + } + + public static final String JSON_PROPERTY_WEIGHTED_INTERVAL = "weighted_interval"; + private JsonNullable weightedInterval = JsonNullable.undefined(); + public static final String JSON_PROPERTY_GROUP = "group"; private BillableMetricGroup group; @@ -259,7 +300,7 @@ public BillableMetricCreateInputBillableMetric aggregationType(AggregationTypeEn } /** - * Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. + * Aggregation method used to compute usage for this billable metric. * @return aggregationType **/ @javax.annotation.Nonnull @@ -278,6 +319,40 @@ public void setAggregationType(AggregationTypeEnum aggregationType) { } + public BillableMetricCreateInputBillableMetric weightedInterval(WeightedIntervalEnum weightedInterval) { + this.weightedInterval = JsonNullable.of(weightedInterval); + + return this; + } + + /** + * Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. + * @return weightedInterval + **/ + @javax.annotation.Nullable + @JsonIgnore + + public WeightedIntervalEnum getWeightedInterval() { + return weightedInterval.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_WEIGHTED_INTERVAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getWeightedInterval_JsonNullable() { + return weightedInterval; + } + + @JsonProperty(JSON_PROPERTY_WEIGHTED_INTERVAL) + public void setWeightedInterval_JsonNullable(JsonNullable weightedInterval) { + this.weightedInterval = weightedInterval; + } + + public void setWeightedInterval(WeightedIntervalEnum weightedInterval) { + this.weightedInterval = JsonNullable.of(weightedInterval); + } + + public BillableMetricCreateInputBillableMetric group(BillableMetricGroup group) { this.group = group; @@ -318,6 +393,7 @@ public boolean equals(Object o) { Objects.equals(this.recurring, billableMetricCreateInputBillableMetric.recurring) && equalsNullable(this.fieldName, billableMetricCreateInputBillableMetric.fieldName) && Objects.equals(this.aggregationType, billableMetricCreateInputBillableMetric.aggregationType) && + equalsNullable(this.weightedInterval, billableMetricCreateInputBillableMetric.weightedInterval) && Objects.equals(this.group, billableMetricCreateInputBillableMetric.group); } @@ -327,7 +403,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, code, hashCodeNullable(description), recurring, hashCodeNullable(fieldName), aggregationType, group); + return Objects.hash(name, code, hashCodeNullable(description), recurring, hashCodeNullable(fieldName), aggregationType, hashCodeNullable(weightedInterval), group); } private static int hashCodeNullable(JsonNullable a) { @@ -347,6 +423,7 @@ public String toString() { sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); sb.append(" fieldName: ").append(toIndentedString(fieldName)).append("\n"); sb.append(" aggregationType: ").append(toIndentedString(aggregationType)).append("\n"); + sb.append(" weightedInterval: ").append(toIndentedString(weightedInterval)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/openapitools/client/model/BillableMetricGroup.java b/src/main/java/org/openapitools/client/model/BillableMetricGroup.java index 33c7a34..2455eca 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricGroup.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricGroup.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.BillableMetricGroupValuesInner; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -33,7 +34,7 @@ BillableMetricGroup.JSON_PROPERTY_KEY, BillableMetricGroup.JSON_PROPERTY_VALUES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricGroup { public static final String JSON_PROPERTY_KEY = "key"; private String key; diff --git a/src/main/java/org/openapitools/client/model/BillableMetricGroupValuesInner.java b/src/main/java/org/openapitools/client/model/BillableMetricGroupValuesInner.java index 58f2018..89610af 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricGroupValuesInner.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricGroupValuesInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.BillableMetricGroupValuesInnerOneOf; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -34,7 +35,7 @@ BillableMetricGroupValuesInner.JSON_PROPERTY_VALUES }) @JsonTypeName("BillableMetricGroup_values_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricGroupValuesInner { public static final String JSON_PROPERTY_KEY = "key"; private String key; diff --git a/src/main/java/org/openapitools/client/model/BillableMetricGroupValuesInnerOneOf.java b/src/main/java/org/openapitools/client/model/BillableMetricGroupValuesInnerOneOf.java index cd327ce..535910f 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricGroupValuesInnerOneOf.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricGroupValuesInnerOneOf.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -33,7 +34,7 @@ BillableMetricGroupValuesInnerOneOf.JSON_PROPERTY_VALUES }) @JsonTypeName("BillableMetricGroup_values_inner_oneOf") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricGroupValuesInnerOneOf { public static final String JSON_PROPERTY_KEY = "key"; private String key; diff --git a/src/main/java/org/openapitools/client/model/BillableMetricObject.java b/src/main/java/org/openapitools/client/model/BillableMetricObject.java index c5c2d87..d75351b 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricObject.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,12 +42,13 @@ BillableMetricObject.JSON_PROPERTY_CREATED_AT, BillableMetricObject.JSON_PROPERTY_FIELD_NAME, BillableMetricObject.JSON_PROPERTY_AGGREGATION_TYPE, + BillableMetricObject.JSON_PROPERTY_WEIGHTED_INTERVAL, BillableMetricObject.JSON_PROPERTY_GROUP, BillableMetricObject.JSON_PROPERTY_ACTIVE_SUBSCRIPTIONS_COUNT, BillableMetricObject.JSON_PROPERTY_DRAFT_INVOICES_COUNT, BillableMetricObject.JSON_PROPERTY_PLANS_COUNT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -71,7 +72,7 @@ public class BillableMetricObject { private JsonNullable fieldName = JsonNullable.undefined(); /** - * Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. + * Aggregation method used to compute usage for this billable metric. */ public enum AggregationTypeEnum { COUNT_AGG("count_agg"), @@ -80,7 +81,11 @@ public enum AggregationTypeEnum { MAX_AGG("max_agg"), - UNIQUE_COUNT_AGG("unique_count_agg"); + UNIQUE_COUNT_AGG("unique_count_agg"), + + WEIGHTED_SUM_AGG("weighted_sum_agg"), + + LATEST_AGG("latest_agg"); private String value; @@ -112,6 +117,42 @@ public static AggregationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_AGGREGATION_TYPE = "aggregation_type"; private AggregationTypeEnum aggregationType; + /** + * Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. + */ + public enum WeightedIntervalEnum { + SECONDS("seconds"); + + private String value; + + WeightedIntervalEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static WeightedIntervalEnum fromValue(String value) { + for (WeightedIntervalEnum b : WeightedIntervalEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + } + + public static final String JSON_PROPERTY_WEIGHTED_INTERVAL = "weighted_interval"; + private JsonNullable weightedInterval = JsonNullable.undefined(); + public static final String JSON_PROPERTY_GROUP = "group"; private BillableMetricGroup group; @@ -332,7 +373,7 @@ public BillableMetricObject aggregationType(AggregationTypeEnum aggregationType) } /** - * Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. + * Aggregation method used to compute usage for this billable metric. * @return aggregationType **/ @javax.annotation.Nonnull @@ -351,6 +392,40 @@ public void setAggregationType(AggregationTypeEnum aggregationType) { } + public BillableMetricObject weightedInterval(WeightedIntervalEnum weightedInterval) { + this.weightedInterval = JsonNullable.of(weightedInterval); + + return this; + } + + /** + * Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. + * @return weightedInterval + **/ + @javax.annotation.Nullable + @JsonIgnore + + public WeightedIntervalEnum getWeightedInterval() { + return weightedInterval.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_WEIGHTED_INTERVAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getWeightedInterval_JsonNullable() { + return weightedInterval; + } + + @JsonProperty(JSON_PROPERTY_WEIGHTED_INTERVAL) + public void setWeightedInterval_JsonNullable(JsonNullable weightedInterval) { + this.weightedInterval = weightedInterval; + } + + public void setWeightedInterval(WeightedIntervalEnum weightedInterval) { + this.weightedInterval = JsonNullable.of(weightedInterval); + } + + public BillableMetricObject group(BillableMetricGroup group) { this.group = group; @@ -471,6 +546,7 @@ public boolean equals(Object o) { Objects.equals(this.createdAt, billableMetricObject.createdAt) && equalsNullable(this.fieldName, billableMetricObject.fieldName) && Objects.equals(this.aggregationType, billableMetricObject.aggregationType) && + equalsNullable(this.weightedInterval, billableMetricObject.weightedInterval) && Objects.equals(this.group, billableMetricObject.group) && Objects.equals(this.activeSubscriptionsCount, billableMetricObject.activeSubscriptionsCount) && Objects.equals(this.draftInvoicesCount, billableMetricObject.draftInvoicesCount) && @@ -483,7 +559,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lagoId, name, code, hashCodeNullable(description), recurring, createdAt, hashCodeNullable(fieldName), aggregationType, group, activeSubscriptionsCount, draftInvoicesCount, plansCount); + return Objects.hash(lagoId, name, code, hashCodeNullable(description), recurring, createdAt, hashCodeNullable(fieldName), aggregationType, hashCodeNullable(weightedInterval), group, activeSubscriptionsCount, draftInvoicesCount, plansCount); } private static int hashCodeNullable(JsonNullable a) { @@ -505,6 +581,7 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" fieldName: ").append(toIndentedString(fieldName)).append("\n"); sb.append(" aggregationType: ").append(toIndentedString(aggregationType)).append("\n"); + sb.append(" weightedInterval: ").append(toIndentedString(weightedInterval)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" activeSubscriptionsCount: ").append(toIndentedString(activeSubscriptionsCount)).append("\n"); sb.append(" draftInvoicesCount: ").append(toIndentedString(draftInvoicesCount)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/BillableMetricUpdateInput.java b/src/main/java/org/openapitools/client/model/BillableMetricUpdateInput.java index 5df30ba..2eb3c3e 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ BillableMetricUpdateInput.JSON_PROPERTY_BILLABLE_METRIC }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricUpdateInput { public static final String JSON_PROPERTY_BILLABLE_METRIC = "billable_metric"; private BillableMetricBaseInput billableMetric; diff --git a/src/main/java/org/openapitools/client/model/BillableMetricsPaginated.java b/src/main/java/org/openapitools/client/model/BillableMetricsPaginated.java index c7efdb9..96f4865 100644 --- a/src/main/java/org/openapitools/client/model/BillableMetricsPaginated.java +++ b/src/main/java/org/openapitools/client/model/BillableMetricsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.BillableMetricObject; import org.openapitools.client.model.PaginationMeta; @@ -34,7 +35,7 @@ BillableMetricsPaginated.JSON_PROPERTY_BILLABLE_METRICS, BillableMetricsPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class BillableMetricsPaginated { public static final String JSON_PROPERTY_BILLABLE_METRICS = "billable_metrics"; private List billableMetrics = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/ChargeObject.java b/src/main/java/org/openapitools/client/model/ChargeObject.java index a5661a1..be0479a 100644 --- a/src/main/java/org/openapitools/client/model/ChargeObject.java +++ b/src/main/java/org/openapitools/client/model/ChargeObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.ChargeObjectProperties; @@ -37,6 +38,7 @@ ChargeObject.JSON_PROPERTY_LAGO_ID, ChargeObject.JSON_PROPERTY_LAGO_BILLABLE_METRIC_ID, ChargeObject.JSON_PROPERTY_BILLABLE_METRIC_CODE, + ChargeObject.JSON_PROPERTY_INVOICE_DISPLAY_NAME, ChargeObject.JSON_PROPERTY_CREATED_AT, ChargeObject.JSON_PROPERTY_CHARGE_MODEL, ChargeObject.JSON_PROPERTY_PAY_IN_ADVANCE, @@ -47,7 +49,7 @@ ChargeObject.JSON_PROPERTY_GROUP_PROPERTIES, ChargeObject.JSON_PROPERTY_TAXES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ChargeObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -58,6 +60,9 @@ public class ChargeObject { public static final String JSON_PROPERTY_BILLABLE_METRIC_CODE = "billable_metric_code"; private String billableMetricCode; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private OffsetDateTime createdAt; @@ -209,6 +214,32 @@ public void setBillableMetricCode(String billableMetricCode) { } + public ChargeObject invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public ChargeObject createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -470,6 +501,7 @@ public boolean equals(Object o) { return Objects.equals(this.lagoId, chargeObject.lagoId) && Objects.equals(this.lagoBillableMetricId, chargeObject.lagoBillableMetricId) && Objects.equals(this.billableMetricCode, chargeObject.billableMetricCode) && + Objects.equals(this.invoiceDisplayName, chargeObject.invoiceDisplayName) && Objects.equals(this.createdAt, chargeObject.createdAt) && Objects.equals(this.chargeModel, chargeObject.chargeModel) && Objects.equals(this.payInAdvance, chargeObject.payInAdvance) && @@ -483,7 +515,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(lagoId, lagoBillableMetricId, billableMetricCode, createdAt, chargeModel, payInAdvance, invoiceable, prorated, minAmountCents, properties, groupProperties, taxes); + return Objects.hash(lagoId, lagoBillableMetricId, billableMetricCode, invoiceDisplayName, createdAt, chargeModel, payInAdvance, invoiceable, prorated, minAmountCents, properties, groupProperties, taxes); } @Override @@ -493,6 +525,7 @@ public String toString() { sb.append(" lagoId: ").append(toIndentedString(lagoId)).append("\n"); sb.append(" lagoBillableMetricId: ").append(toIndentedString(lagoBillableMetricId)).append("\n"); sb.append(" billableMetricCode: ").append(toIndentedString(billableMetricCode)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" chargeModel: ").append(toIndentedString(chargeModel)).append("\n"); sb.append(" payInAdvance: ").append(toIndentedString(payInAdvance)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/ChargeObjectProperties.java b/src/main/java/org/openapitools/client/model/ChargeObjectProperties.java index 881a6ab..e20ee8c 100644 --- a/src/main/java/org/openapitools/client/model/ChargeObjectProperties.java +++ b/src/main/java/org/openapitools/client/model/ChargeObjectProperties.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ChargePropertiesGraduatedPercentageRangesInner; import org.openapitools.client.model.ChargePropertiesGraduatedRangesInner; @@ -50,7 +51,7 @@ ChargeObjectProperties.JSON_PROPERTY_VOLUME_RANGES }) @JsonTypeName("ChargeObject_properties") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ChargeObjectProperties { public static final String JSON_PROPERTY_GRADUATED_RANGES = "graduated_ranges"; private List graduatedRanges; diff --git a/src/main/java/org/openapitools/client/model/ChargeProperties.java b/src/main/java/org/openapitools/client/model/ChargeProperties.java index 7b42ceb..e9e7801 100644 --- a/src/main/java/org/openapitools/client/model/ChargeProperties.java +++ b/src/main/java/org/openapitools/client/model/ChargeProperties.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ChargePropertiesGraduatedPercentageRangesInner; import org.openapitools.client.model.ChargePropertiesGraduatedRangesInner; @@ -49,7 +50,7 @@ ChargeProperties.JSON_PROPERTY_PER_TRANSACTION_MIN_AMOUNT, ChargeProperties.JSON_PROPERTY_VOLUME_RANGES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ChargeProperties { public static final String JSON_PROPERTY_GRADUATED_RANGES = "graduated_ranges"; private List graduatedRanges; diff --git a/src/main/java/org/openapitools/client/model/ChargePropertiesGraduatedPercentageRangesInner.java b/src/main/java/org/openapitools/client/model/ChargePropertiesGraduatedPercentageRangesInner.java index c7fff7d..71bae8f 100644 --- a/src/main/java/org/openapitools/client/model/ChargePropertiesGraduatedPercentageRangesInner.java +++ b/src/main/java/org/openapitools/client/model/ChargePropertiesGraduatedPercentageRangesInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,7 +33,7 @@ ChargePropertiesGraduatedPercentageRangesInner.JSON_PROPERTY_FLAT_AMOUNT }) @JsonTypeName("ChargeProperties_graduated_percentage_ranges_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ChargePropertiesGraduatedPercentageRangesInner { public static final String JSON_PROPERTY_FROM_VALUE = "from_value"; private Integer fromValue; diff --git a/src/main/java/org/openapitools/client/model/ChargePropertiesGraduatedRangesInner.java b/src/main/java/org/openapitools/client/model/ChargePropertiesGraduatedRangesInner.java index c12979c..382b9ab 100644 --- a/src/main/java/org/openapitools/client/model/ChargePropertiesGraduatedRangesInner.java +++ b/src/main/java/org/openapitools/client/model/ChargePropertiesGraduatedRangesInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,7 +33,7 @@ ChargePropertiesGraduatedRangesInner.JSON_PROPERTY_PER_UNIT_AMOUNT }) @JsonTypeName("ChargeProperties_graduated_ranges_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ChargePropertiesGraduatedRangesInner { public static final String JSON_PROPERTY_FROM_VALUE = "from_value"; private Integer fromValue; diff --git a/src/main/java/org/openapitools/client/model/ChargePropertiesVolumeRangesInner.java b/src/main/java/org/openapitools/client/model/ChargePropertiesVolumeRangesInner.java index d4c4770..6cb1314 100644 --- a/src/main/java/org/openapitools/client/model/ChargePropertiesVolumeRangesInner.java +++ b/src/main/java/org/openapitools/client/model/ChargePropertiesVolumeRangesInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,7 +33,7 @@ ChargePropertiesVolumeRangesInner.JSON_PROPERTY_PER_UNIT_AMOUNT }) @JsonTypeName("ChargeProperties_volume_ranges_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class ChargePropertiesVolumeRangesInner { public static final String JSON_PROPERTY_FROM_VALUE = "from_value"; private Integer fromValue; diff --git a/src/main/java/org/openapitools/client/model/Country.java b/src/main/java/org/openapitools/client/model/Country.java index ce97b5b..f942261 100644 --- a/src/main/java/org/openapitools/client/model/Country.java +++ b/src/main/java/org/openapitools/client/model/Country.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/org/openapitools/client/model/Coupon.java b/src/main/java/org/openapitools/client/model/Coupon.java index 379b811..5eb1787 100644 --- a/src/main/java/org/openapitools/client/model/Coupon.java +++ b/src/main/java/org/openapitools/client/model/Coupon.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Coupon.JSON_PROPERTY_COUPON }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Coupon { public static final String JSON_PROPERTY_COUPON = "coupon"; private CouponObject coupon; diff --git a/src/main/java/org/openapitools/client/model/CouponBaseInput.java b/src/main/java/org/openapitools/client/model/CouponBaseInput.java index 88aa551..8e511a7 100644 --- a/src/main/java/org/openapitools/client/model/CouponBaseInput.java +++ b/src/main/java/org/openapitools/client/model/CouponBaseInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ CouponBaseInput.JSON_PROPERTY_EXPIRATION_AT, CouponBaseInput.JSON_PROPERTY_APPLIES_TO }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CouponBaseInput { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/CouponBaseInputAppliesTo.java b/src/main/java/org/openapitools/client/model/CouponBaseInputAppliesTo.java index 5d3dd06..fd093e9 100644 --- a/src/main/java/org/openapitools/client/model/CouponBaseInputAppliesTo.java +++ b/src/main/java/org/openapitools/client/model/CouponBaseInputAppliesTo.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -37,7 +38,7 @@ CouponBaseInputAppliesTo.JSON_PROPERTY_BILLABLE_METRIC_CODES }) @JsonTypeName("CouponBaseInput_applies_to") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CouponBaseInputAppliesTo { public static final String JSON_PROPERTY_PLAN_CODES = "plan_codes"; private JsonNullable> planCodes = JsonNullable.>undefined(); diff --git a/src/main/java/org/openapitools/client/model/CouponCreateInput.java b/src/main/java/org/openapitools/client/model/CouponCreateInput.java index f0d482f..26c7d52 100644 --- a/src/main/java/org/openapitools/client/model/CouponCreateInput.java +++ b/src/main/java/org/openapitools/client/model/CouponCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ CouponCreateInput.JSON_PROPERTY_COUPON }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CouponCreateInput { public static final String JSON_PROPERTY_COUPON = "coupon"; private CouponCreateInputCoupon coupon; diff --git a/src/main/java/org/openapitools/client/model/CouponCreateInputCoupon.java b/src/main/java/org/openapitools/client/model/CouponCreateInputCoupon.java index efde01b..2cb972e 100644 --- a/src/main/java/org/openapitools/client/model/CouponCreateInputCoupon.java +++ b/src/main/java/org/openapitools/client/model/CouponCreateInputCoupon.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ CouponCreateInputCoupon.JSON_PROPERTY_APPLIES_TO }) @JsonTypeName("CouponCreateInput_coupon") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CouponCreateInputCoupon { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/CouponObject.java b/src/main/java/org/openapitools/client/model/CouponObject.java index 0bd88a9..a7dde44 100644 --- a/src/main/java/org/openapitools/client/model/CouponObject.java +++ b/src/main/java/org/openapitools/client/model/CouponObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -53,9 +54,10 @@ CouponObject.JSON_PROPERTY_FREQUENCY_DURATION, CouponObject.JSON_PROPERTY_EXPIRATION, CouponObject.JSON_PROPERTY_EXPIRATION_AT, - CouponObject.JSON_PROPERTY_CREATED_AT + CouponObject.JSON_PROPERTY_CREATED_AT, + CouponObject.JSON_PROPERTY_TERMINATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CouponObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -216,6 +218,9 @@ public static ExpirationEnum fromValue(String value) { public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private OffsetDateTime createdAt; + public static final String JSON_PROPERTY_TERMINATED_AT = "terminated_at"; + private OffsetDateTime terminatedAt; + public CouponObject() { } @@ -742,6 +747,32 @@ public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } + + public CouponObject terminatedAt(OffsetDateTime terminatedAt) { + + this.terminatedAt = terminatedAt; + return this; + } + + /** + * This field indicates if the coupon has been terminated and is no longer usable. If it's not null, it won't be removed for existing customers using it, but it prevents the coupon from being applied in the future. + * @return terminatedAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TERMINATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getTerminatedAt() { + return terminatedAt; + } + + + @JsonProperty(JSON_PROPERTY_TERMINATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTerminatedAt(OffsetDateTime terminatedAt) { + this.terminatedAt = terminatedAt; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -768,7 +799,8 @@ public boolean equals(Object o) { equalsNullable(this.frequencyDuration, couponObject.frequencyDuration) && Objects.equals(this.expiration, couponObject.expiration) && equalsNullable(this.expirationAt, couponObject.expirationAt) && - Objects.equals(this.createdAt, couponObject.createdAt); + Objects.equals(this.createdAt, couponObject.createdAt) && + Objects.equals(this.terminatedAt, couponObject.terminatedAt); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -777,7 +809,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lagoId, name, code, hashCodeNullable(description), couponType, hashCodeNullable(amountCents), amountCurrency, reusable, limitedPlans, planCodes, limitedBillableMetrics, billableMetricCodes, hashCodeNullable(percentageRate), frequency, hashCodeNullable(frequencyDuration), expiration, hashCodeNullable(expirationAt), createdAt); + return Objects.hash(lagoId, name, code, hashCodeNullable(description), couponType, hashCodeNullable(amountCents), amountCurrency, reusable, limitedPlans, planCodes, limitedBillableMetrics, billableMetricCodes, hashCodeNullable(percentageRate), frequency, hashCodeNullable(frequencyDuration), expiration, hashCodeNullable(expirationAt), createdAt, terminatedAt); } private static int hashCodeNullable(JsonNullable a) { @@ -809,6 +841,7 @@ public String toString() { sb.append(" expiration: ").append(toIndentedString(expiration)).append("\n"); sb.append(" expirationAt: ").append(toIndentedString(expirationAt)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" terminatedAt: ").append(toIndentedString(terminatedAt)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/openapitools/client/model/CouponUpdateInput.java b/src/main/java/org/openapitools/client/model/CouponUpdateInput.java index c94548e..65b3920 100644 --- a/src/main/java/org/openapitools/client/model/CouponUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/CouponUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ CouponUpdateInput.JSON_PROPERTY_COUPON }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CouponUpdateInput { public static final String JSON_PROPERTY_COUPON = "coupon"; private CouponBaseInput coupon; diff --git a/src/main/java/org/openapitools/client/model/CouponsPaginated.java b/src/main/java/org/openapitools/client/model/CouponsPaginated.java index afa97ca..9b47217 100644 --- a/src/main/java/org/openapitools/client/model/CouponsPaginated.java +++ b/src/main/java/org/openapitools/client/model/CouponsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.CouponObject; import org.openapitools.client.model.PaginationMeta; @@ -34,7 +35,7 @@ CouponsPaginated.JSON_PROPERTY_COUPONS, CouponsPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CouponsPaginated { public static final String JSON_PROPERTY_COUPONS = "coupons"; private List coupons = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/CreditNote.java b/src/main/java/org/openapitools/client/model/CreditNote.java index ecaa67d..16d5b7b 100644 --- a/src/main/java/org/openapitools/client/model/CreditNote.java +++ b/src/main/java/org/openapitools/client/model/CreditNote.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ CreditNote.JSON_PROPERTY_CREDIT_NOTE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNote { public static final String JSON_PROPERTY_CREDIT_NOTE = "credit_note"; private CreditNoteObject creditNote; diff --git a/src/main/java/org/openapitools/client/model/CreditNoteAppliedTaxObject.java b/src/main/java/org/openapitools/client/model/CreditNoteAppliedTaxObject.java index 2cf8622..cdda7fb 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteAppliedTaxObject.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteAppliedTaxObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -43,7 +43,7 @@ CreditNoteAppliedTaxObject.JSON_PROPERTY_AMOUNT_CURRENCY, CreditNoteAppliedTaxObject.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNoteAppliedTaxObject { public static final String JSON_PROPERTY_LAGO_CREDIT_NOTE_ID = "lago_credit_note_id"; private UUID lagoCreditNoteId; diff --git a/src/main/java/org/openapitools/client/model/CreditNoteCreateInput.java b/src/main/java/org/openapitools/client/model/CreditNoteCreateInput.java index a8c5a30..206b120 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteCreateInput.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ CreditNoteCreateInput.JSON_PROPERTY_CREDIT_NOTE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNoteCreateInput { public static final String JSON_PROPERTY_CREDIT_NOTE = "credit_note"; private CreditNoteCreateInputCreditNote creditNote; diff --git a/src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNote.java b/src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNote.java index 0b7baa2..c8c2ad9 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNote.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNote.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,9 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; -import org.openapitools.client.model.CreditNoteCreateInputCreditNoteItemsInner; +import org.openapitools.client.model.CreditNoteEstimateInputCreditNoteItemsInner; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; @@ -43,7 +44,7 @@ CreditNoteCreateInputCreditNote.JSON_PROPERTY_ITEMS }) @JsonTypeName("CreditNoteCreateInput_credit_note") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNoteCreateInputCreditNote { public static final String JSON_PROPERTY_INVOICE_ID = "invoice_id"; private UUID invoiceId; @@ -104,7 +105,7 @@ public static ReasonEnum fromValue(String value) { private JsonNullable refundAmountCents = JsonNullable.undefined(); public static final String JSON_PROPERTY_ITEMS = "items"; - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public CreditNoteCreateInputCreditNote() { } @@ -263,13 +264,13 @@ public void setRefundAmountCents(Integer refundAmountCents) { } - public CreditNoteCreateInputCreditNote items(List items) { + public CreditNoteCreateInputCreditNote items(List items) { this.items = items; return this; } - public CreditNoteCreateInputCreditNote addItemsItem(CreditNoteCreateInputCreditNoteItemsInner itemsItem) { + public CreditNoteCreateInputCreditNote addItemsItem(CreditNoteEstimateInputCreditNoteItemsInner itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -285,14 +286,14 @@ public CreditNoteCreateInputCreditNote addItemsItem(CreditNoteCreateInputCreditN @JsonProperty(JSON_PROPERTY_ITEMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getItems() { + public List getItems() { return items; } @JsonProperty(JSON_PROPERTY_ITEMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setItems(List items) { + public void setItems(List items) { this.items = items; } diff --git a/src/main/java/org/openapitools/client/model/AppliedAddOnInput.java b/src/main/java/org/openapitools/client/model/CreditNoteEstimateInput.java similarity index 57% rename from src/main/java/org/openapitools/client/model/AppliedAddOnInput.java rename to src/main/java/org/openapitools/client/model/CreditNoteEstimateInput.java index 7e6f214..2b419c7 100644 --- a/src/main/java/org/openapitools/client/model/AppliedAddOnInput.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteEstimateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,47 +20,47 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.AppliedAddOnInputAppliedAddOn; +import org.openapitools.client.model.CreditNoteEstimateInputCreditNote; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** - * AppliedAddOnInput + * CreditNoteEstimateInput */ @JsonPropertyOrder({ - AppliedAddOnInput.JSON_PROPERTY_APPLIED_ADD_ON + CreditNoteEstimateInput.JSON_PROPERTY_CREDIT_NOTE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class AppliedAddOnInput { - public static final String JSON_PROPERTY_APPLIED_ADD_ON = "applied_add_on"; - private AppliedAddOnInputAppliedAddOn appliedAddOn; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class CreditNoteEstimateInput { + public static final String JSON_PROPERTY_CREDIT_NOTE = "credit_note"; + private CreditNoteEstimateInputCreditNote creditNote; - public AppliedAddOnInput() { + public CreditNoteEstimateInput() { } - public AppliedAddOnInput appliedAddOn(AppliedAddOnInputAppliedAddOn appliedAddOn) { + public CreditNoteEstimateInput creditNote(CreditNoteEstimateInputCreditNote creditNote) { - this.appliedAddOn = appliedAddOn; + this.creditNote = creditNote; return this; } /** - * Get appliedAddOn - * @return appliedAddOn + * Get creditNote + * @return creditNote **/ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_APPLIED_ADD_ON) + @JsonProperty(JSON_PROPERTY_CREDIT_NOTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AppliedAddOnInputAppliedAddOn getAppliedAddOn() { - return appliedAddOn; + public CreditNoteEstimateInputCreditNote getCreditNote() { + return creditNote; } - @JsonProperty(JSON_PROPERTY_APPLIED_ADD_ON) + @JsonProperty(JSON_PROPERTY_CREDIT_NOTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAppliedAddOn(AppliedAddOnInputAppliedAddOn appliedAddOn) { - this.appliedAddOn = appliedAddOn; + public void setCreditNote(CreditNoteEstimateInputCreditNote creditNote) { + this.creditNote = creditNote; } @Override @@ -71,20 +71,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AppliedAddOnInput appliedAddOnInput = (AppliedAddOnInput) o; - return Objects.equals(this.appliedAddOn, appliedAddOnInput.appliedAddOn); + CreditNoteEstimateInput creditNoteEstimateInput = (CreditNoteEstimateInput) o; + return Objects.equals(this.creditNote, creditNoteEstimateInput.creditNote); } @Override public int hashCode() { - return Objects.hash(appliedAddOn); + return Objects.hash(creditNote); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AppliedAddOnInput {\n"); - sb.append(" appliedAddOn: ").append(toIndentedString(appliedAddOn)).append("\n"); + sb.append("class CreditNoteEstimateInput {\n"); + sb.append(" creditNote: ").append(toIndentedString(creditNote)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNote.java b/src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNote.java new file mode 100644 index 0000000..2d29ae1 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNote.java @@ -0,0 +1,149 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import org.openapitools.client.model.CreditNoteEstimateInputCreditNoteItemsInner; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * CreditNoteEstimateInputCreditNote + */ +@JsonPropertyOrder({ + CreditNoteEstimateInputCreditNote.JSON_PROPERTY_INVOICE_ID, + CreditNoteEstimateInputCreditNote.JSON_PROPERTY_ITEMS +}) +@JsonTypeName("CreditNoteEstimateInput_credit_note") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class CreditNoteEstimateInputCreditNote { + public static final String JSON_PROPERTY_INVOICE_ID = "invoice_id"; + private UUID invoiceId; + + public static final String JSON_PROPERTY_ITEMS = "items"; + private List items = new ArrayList<>(); + + public CreditNoteEstimateInputCreditNote() { + } + + public CreditNoteEstimateInputCreditNote invoiceId(UUID invoiceId) { + + this.invoiceId = invoiceId; + return this; + } + + /** + * The invoice unique identifier, created by Lago. + * @return invoiceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_INVOICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getInvoiceId() { + return invoiceId; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setInvoiceId(UUID invoiceId) { + this.invoiceId = invoiceId; + } + + + public CreditNoteEstimateInputCreditNote items(List items) { + + this.items = items; + return this; + } + + public CreditNoteEstimateInputCreditNote addItemsItem(CreditNoteEstimateInputCreditNoteItemsInner itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * The list of credit note’s items. + * @return items + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getItems() { + return items; + } + + + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setItems(List items) { + this.items = items; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreditNoteEstimateInputCreditNote creditNoteEstimateInputCreditNote = (CreditNoteEstimateInputCreditNote) o; + return Objects.equals(this.invoiceId, creditNoteEstimateInputCreditNote.invoiceId) && + Objects.equals(this.items, creditNoteEstimateInputCreditNote.items); + } + + @Override + public int hashCode() { + return Objects.hash(invoiceId, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreditNoteEstimateInputCreditNote {\n"); + sb.append(" invoiceId: ").append(toIndentedString(invoiceId)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteItemsInner.java b/src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteItemsInner.java similarity index 73% rename from src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteItemsInner.java rename to src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteItemsInner.java index cebbf52..04af9f9 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteItemsInner.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteItemsInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,25 +25,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * CreditNoteCreateInputCreditNoteItemsInner + * CreditNoteEstimateInputCreditNoteItemsInner */ @JsonPropertyOrder({ - CreditNoteCreateInputCreditNoteItemsInner.JSON_PROPERTY_FEE_ID, - CreditNoteCreateInputCreditNoteItemsInner.JSON_PROPERTY_AMOUNT_CENTS + CreditNoteEstimateInputCreditNoteItemsInner.JSON_PROPERTY_FEE_ID, + CreditNoteEstimateInputCreditNoteItemsInner.JSON_PROPERTY_AMOUNT_CENTS }) -@JsonTypeName("CreditNoteCreateInput_credit_note_items_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class CreditNoteCreateInputCreditNoteItemsInner { +@JsonTypeName("CreditNoteEstimateInput_credit_note_items_inner") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class CreditNoteEstimateInputCreditNoteItemsInner { public static final String JSON_PROPERTY_FEE_ID = "fee_id"; private UUID feeId; public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; private Integer amountCents; - public CreditNoteCreateInputCreditNoteItemsInner() { + public CreditNoteEstimateInputCreditNoteItemsInner() { } - public CreditNoteCreateInputCreditNoteItemsInner feeId(UUID feeId) { + public CreditNoteEstimateInputCreditNoteItemsInner feeId(UUID feeId) { this.feeId = feeId; return this; @@ -69,7 +69,7 @@ public void setFeeId(UUID feeId) { } - public CreditNoteCreateInputCreditNoteItemsInner amountCents(Integer amountCents) { + public CreditNoteEstimateInputCreditNoteItemsInner amountCents(Integer amountCents) { this.amountCents = amountCents; return this; @@ -102,9 +102,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreditNoteCreateInputCreditNoteItemsInner creditNoteCreateInputCreditNoteItemsInner = (CreditNoteCreateInputCreditNoteItemsInner) o; - return Objects.equals(this.feeId, creditNoteCreateInputCreditNoteItemsInner.feeId) && - Objects.equals(this.amountCents, creditNoteCreateInputCreditNoteItemsInner.amountCents); + CreditNoteEstimateInputCreditNoteItemsInner creditNoteEstimateInputCreditNoteItemsInner = (CreditNoteEstimateInputCreditNoteItemsInner) o; + return Objects.equals(this.feeId, creditNoteEstimateInputCreditNoteItemsInner.feeId) && + Objects.equals(this.amountCents, creditNoteEstimateInputCreditNoteItemsInner.amountCents); } @Override @@ -115,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreditNoteCreateInputCreditNoteItemsInner {\n"); + sb.append("class CreditNoteEstimateInputCreditNoteItemsInner {\n"); sb.append(" feeId: ").append(toIndentedString(feeId)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/openapitools/client/model/CreditNoteEstimated.java b/src/main/java/org/openapitools/client/model/CreditNoteEstimated.java new file mode 100644 index 0000000..9ac9e80 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/CreditNoteEstimated.java @@ -0,0 +1,104 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.CreditNoteEstimatedEstimatedCreditNote; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * CreditNoteEstimated + */ +@JsonPropertyOrder({ + CreditNoteEstimated.JSON_PROPERTY_ESTIMATED_CREDIT_NOTE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class CreditNoteEstimated { + public static final String JSON_PROPERTY_ESTIMATED_CREDIT_NOTE = "estimated_credit_note"; + private CreditNoteEstimatedEstimatedCreditNote estimatedCreditNote; + + public CreditNoteEstimated() { + } + + public CreditNoteEstimated estimatedCreditNote(CreditNoteEstimatedEstimatedCreditNote estimatedCreditNote) { + + this.estimatedCreditNote = estimatedCreditNote; + return this; + } + + /** + * Get estimatedCreditNote + * @return estimatedCreditNote + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ESTIMATED_CREDIT_NOTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public CreditNoteEstimatedEstimatedCreditNote getEstimatedCreditNote() { + return estimatedCreditNote; + } + + + @JsonProperty(JSON_PROPERTY_ESTIMATED_CREDIT_NOTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEstimatedCreditNote(CreditNoteEstimatedEstimatedCreditNote estimatedCreditNote) { + this.estimatedCreditNote = estimatedCreditNote; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreditNoteEstimated creditNoteEstimated = (CreditNoteEstimated) o; + return Objects.equals(this.estimatedCreditNote, creditNoteEstimated.estimatedCreditNote); + } + + @Override + public int hashCode() { + return Objects.hash(estimatedCreditNote); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreditNoteEstimated {\n"); + sb.append(" estimatedCreditNote: ").append(toIndentedString(estimatedCreditNote)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNote.java b/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNote.java new file mode 100644 index 0000000..4a0bda6 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNote.java @@ -0,0 +1,448 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import org.openapitools.client.model.CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner; +import org.openapitools.client.model.CreditNoteEstimatedEstimatedCreditNoteItemsInner; +import org.openapitools.client.model.Currency; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * CreditNoteEstimatedEstimatedCreditNote + */ +@JsonPropertyOrder({ + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_LAGO_INVOICE_ID, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_INVOICE_NUMBER, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_CURRENCY, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_TAXES_AMOUNT_CENTS, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_TAXES_RATE, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_SUB_TOTAL_EXCLUDING_TAXES_AMOUNT_CENTS, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_MAX_CREDITABLE_AMOUNT_CENTS, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_MAX_REFUNDABLE_AMOUNT_CENTS, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_COUPONS_ADJUSTMENT_AMOUNT_CENTS, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_ITEMS, + CreditNoteEstimatedEstimatedCreditNote.JSON_PROPERTY_APPLIED_TAXES +}) +@JsonTypeName("CreditNoteEstimated_estimated_credit_note") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class CreditNoteEstimatedEstimatedCreditNote { + public static final String JSON_PROPERTY_LAGO_INVOICE_ID = "lago_invoice_id"; + private UUID lagoInvoiceId; + + public static final String JSON_PROPERTY_INVOICE_NUMBER = "invoice_number"; + private String invoiceNumber; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private Currency currency; + + public static final String JSON_PROPERTY_TAXES_AMOUNT_CENTS = "taxes_amount_cents"; + private Integer taxesAmountCents; + + public static final String JSON_PROPERTY_TAXES_RATE = "taxes_rate"; + private BigDecimal taxesRate; + + public static final String JSON_PROPERTY_SUB_TOTAL_EXCLUDING_TAXES_AMOUNT_CENTS = "sub_total_excluding_taxes_amount_cents"; + private Integer subTotalExcludingTaxesAmountCents; + + public static final String JSON_PROPERTY_MAX_CREDITABLE_AMOUNT_CENTS = "max_creditable_amount_cents"; + private Integer maxCreditableAmountCents; + + public static final String JSON_PROPERTY_MAX_REFUNDABLE_AMOUNT_CENTS = "max_refundable_amount_cents"; + private Integer maxRefundableAmountCents; + + public static final String JSON_PROPERTY_COUPONS_ADJUSTMENT_AMOUNT_CENTS = "coupons_adjustment_amount_cents"; + private Integer couponsAdjustmentAmountCents; + + public static final String JSON_PROPERTY_ITEMS = "items"; + private List items = new ArrayList<>(); + + public static final String JSON_PROPERTY_APPLIED_TAXES = "applied_taxes"; + private List appliedTaxes; + + public CreditNoteEstimatedEstimatedCreditNote() { + } + + public CreditNoteEstimatedEstimatedCreditNote lagoInvoiceId(UUID lagoInvoiceId) { + + this.lagoInvoiceId = lagoInvoiceId; + return this; + } + + /** + * Unique identifier assigned to the invoice that the credit note belongs to + * @return lagoInvoiceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LAGO_INVOICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getLagoInvoiceId() { + return lagoInvoiceId; + } + + + @JsonProperty(JSON_PROPERTY_LAGO_INVOICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLagoInvoiceId(UUID lagoInvoiceId) { + this.lagoInvoiceId = lagoInvoiceId; + } + + + public CreditNoteEstimatedEstimatedCreditNote invoiceNumber(String invoiceNumber) { + + this.invoiceNumber = invoiceNumber; + return this; + } + + /** + * The invoice unique number, related to the credit note. + * @return invoiceNumber + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_INVOICE_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getInvoiceNumber() { + return invoiceNumber; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setInvoiceNumber(String invoiceNumber) { + this.invoiceNumber = invoiceNumber; + } + + + public CreditNoteEstimatedEstimatedCreditNote currency(Currency currency) { + + this.currency = currency; + return this; + } + + /** + * Get currency + * @return currency + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Currency getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCurrency(Currency currency) { + this.currency = currency; + } + + + public CreditNoteEstimatedEstimatedCreditNote taxesAmountCents(Integer taxesAmountCents) { + + this.taxesAmountCents = taxesAmountCents; + return this; + } + + /** + * The tax amount of the credit note, expressed in cents. + * @return taxesAmountCents + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TAXES_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getTaxesAmountCents() { + return taxesAmountCents; + } + + + @JsonProperty(JSON_PROPERTY_TAXES_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTaxesAmountCents(Integer taxesAmountCents) { + this.taxesAmountCents = taxesAmountCents; + } + + + public CreditNoteEstimatedEstimatedCreditNote taxesRate(BigDecimal taxesRate) { + + this.taxesRate = taxesRate; + return this; + } + + /** + * The tax rate associated with this specific credit note. + * @return taxesRate + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TAXES_RATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public BigDecimal getTaxesRate() { + return taxesRate; + } + + + @JsonProperty(JSON_PROPERTY_TAXES_RATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTaxesRate(BigDecimal taxesRate) { + this.taxesRate = taxesRate; + } + + + public CreditNoteEstimatedEstimatedCreditNote subTotalExcludingTaxesAmountCents(Integer subTotalExcludingTaxesAmountCents) { + + this.subTotalExcludingTaxesAmountCents = subTotalExcludingTaxesAmountCents; + return this; + } + + /** + * The subtotal of the credit note excluding any applicable taxes, expressed in cents. + * @return subTotalExcludingTaxesAmountCents + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUB_TOTAL_EXCLUDING_TAXES_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getSubTotalExcludingTaxesAmountCents() { + return subTotalExcludingTaxesAmountCents; + } + + + @JsonProperty(JSON_PROPERTY_SUB_TOTAL_EXCLUDING_TAXES_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSubTotalExcludingTaxesAmountCents(Integer subTotalExcludingTaxesAmountCents) { + this.subTotalExcludingTaxesAmountCents = subTotalExcludingTaxesAmountCents; + } + + + public CreditNoteEstimatedEstimatedCreditNote maxCreditableAmountCents(Integer maxCreditableAmountCents) { + + this.maxCreditableAmountCents = maxCreditableAmountCents; + return this; + } + + /** + * The credited amount of the credit note, expressed in cents. + * @return maxCreditableAmountCents + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MAX_CREDITABLE_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getMaxCreditableAmountCents() { + return maxCreditableAmountCents; + } + + + @JsonProperty(JSON_PROPERTY_MAX_CREDITABLE_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMaxCreditableAmountCents(Integer maxCreditableAmountCents) { + this.maxCreditableAmountCents = maxCreditableAmountCents; + } + + + public CreditNoteEstimatedEstimatedCreditNote maxRefundableAmountCents(Integer maxRefundableAmountCents) { + + this.maxRefundableAmountCents = maxRefundableAmountCents; + return this; + } + + /** + * The refunded amount of the credit note, expressed in cents. + * @return maxRefundableAmountCents + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MAX_REFUNDABLE_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getMaxRefundableAmountCents() { + return maxRefundableAmountCents; + } + + + @JsonProperty(JSON_PROPERTY_MAX_REFUNDABLE_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMaxRefundableAmountCents(Integer maxRefundableAmountCents) { + this.maxRefundableAmountCents = maxRefundableAmountCents; + } + + + public CreditNoteEstimatedEstimatedCreditNote couponsAdjustmentAmountCents(Integer couponsAdjustmentAmountCents) { + + this.couponsAdjustmentAmountCents = couponsAdjustmentAmountCents; + return this; + } + + /** + * The pro-rated amount of the coupons applied to the source invoice. + * @return couponsAdjustmentAmountCents + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COUPONS_ADJUSTMENT_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCouponsAdjustmentAmountCents() { + return couponsAdjustmentAmountCents; + } + + + @JsonProperty(JSON_PROPERTY_COUPONS_ADJUSTMENT_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCouponsAdjustmentAmountCents(Integer couponsAdjustmentAmountCents) { + this.couponsAdjustmentAmountCents = couponsAdjustmentAmountCents; + } + + + public CreditNoteEstimatedEstimatedCreditNote items(List items) { + + this.items = items; + return this; + } + + public CreditNoteEstimatedEstimatedCreditNote addItemsItem(CreditNoteEstimatedEstimatedCreditNoteItemsInner itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Array of credit note’s items. + * @return items + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getItems() { + return items; + } + + + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setItems(List items) { + this.items = items; + } + + + public CreditNoteEstimatedEstimatedCreditNote appliedTaxes(List appliedTaxes) { + + this.appliedTaxes = appliedTaxes; + return this; + } + + public CreditNoteEstimatedEstimatedCreditNote addAppliedTaxesItem(CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner appliedTaxesItem) { + if (this.appliedTaxes == null) { + this.appliedTaxes = new ArrayList<>(); + } + this.appliedTaxes.add(appliedTaxesItem); + return this; + } + + /** + * Get appliedTaxes + * @return appliedTaxes + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_APPLIED_TAXES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getAppliedTaxes() { + return appliedTaxes; + } + + + @JsonProperty(JSON_PROPERTY_APPLIED_TAXES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAppliedTaxes(List appliedTaxes) { + this.appliedTaxes = appliedTaxes; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreditNoteEstimatedEstimatedCreditNote creditNoteEstimatedEstimatedCreditNote = (CreditNoteEstimatedEstimatedCreditNote) o; + return Objects.equals(this.lagoInvoiceId, creditNoteEstimatedEstimatedCreditNote.lagoInvoiceId) && + Objects.equals(this.invoiceNumber, creditNoteEstimatedEstimatedCreditNote.invoiceNumber) && + Objects.equals(this.currency, creditNoteEstimatedEstimatedCreditNote.currency) && + Objects.equals(this.taxesAmountCents, creditNoteEstimatedEstimatedCreditNote.taxesAmountCents) && + Objects.equals(this.taxesRate, creditNoteEstimatedEstimatedCreditNote.taxesRate) && + Objects.equals(this.subTotalExcludingTaxesAmountCents, creditNoteEstimatedEstimatedCreditNote.subTotalExcludingTaxesAmountCents) && + Objects.equals(this.maxCreditableAmountCents, creditNoteEstimatedEstimatedCreditNote.maxCreditableAmountCents) && + Objects.equals(this.maxRefundableAmountCents, creditNoteEstimatedEstimatedCreditNote.maxRefundableAmountCents) && + Objects.equals(this.couponsAdjustmentAmountCents, creditNoteEstimatedEstimatedCreditNote.couponsAdjustmentAmountCents) && + Objects.equals(this.items, creditNoteEstimatedEstimatedCreditNote.items) && + Objects.equals(this.appliedTaxes, creditNoteEstimatedEstimatedCreditNote.appliedTaxes); + } + + @Override + public int hashCode() { + return Objects.hash(lagoInvoiceId, invoiceNumber, currency, taxesAmountCents, taxesRate, subTotalExcludingTaxesAmountCents, maxCreditableAmountCents, maxRefundableAmountCents, couponsAdjustmentAmountCents, items, appliedTaxes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreditNoteEstimatedEstimatedCreditNote {\n"); + sb.append(" lagoInvoiceId: ").append(toIndentedString(lagoInvoiceId)).append("\n"); + sb.append(" invoiceNumber: ").append(toIndentedString(invoiceNumber)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" taxesAmountCents: ").append(toIndentedString(taxesAmountCents)).append("\n"); + sb.append(" taxesRate: ").append(toIndentedString(taxesRate)).append("\n"); + sb.append(" subTotalExcludingTaxesAmountCents: ").append(toIndentedString(subTotalExcludingTaxesAmountCents)).append("\n"); + sb.append(" maxCreditableAmountCents: ").append(toIndentedString(maxCreditableAmountCents)).append("\n"); + sb.append(" maxRefundableAmountCents: ").append(toIndentedString(maxRefundableAmountCents)).append("\n"); + sb.append(" couponsAdjustmentAmountCents: ").append(toIndentedString(couponsAdjustmentAmountCents)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" appliedTaxes: ").append(toIndentedString(appliedTaxes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.java b/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.java new file mode 100644 index 0000000..6006479 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.java @@ -0,0 +1,331 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.UUID; +import org.openapitools.client.model.Currency; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner + */ +@JsonPropertyOrder({ + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.JSON_PROPERTY_LAGO_TAX_ID, + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.JSON_PROPERTY_TAX_NAME, + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.JSON_PROPERTY_TAX_CODE, + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.JSON_PROPERTY_TAX_RATE, + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.JSON_PROPERTY_TAX_DESCRIPTION, + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.JSON_PROPERTY_BASE_AMOUNT_CENTS, + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.JSON_PROPERTY_AMOUNT_CENTS, + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.JSON_PROPERTY_AMOUNT_CURRENCY +}) +@JsonTypeName("CreditNoteEstimated_estimated_credit_note_applied_taxes_inner") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner { + public static final String JSON_PROPERTY_LAGO_TAX_ID = "lago_tax_id"; + private UUID lagoTaxId; + + public static final String JSON_PROPERTY_TAX_NAME = "tax_name"; + private String taxName; + + public static final String JSON_PROPERTY_TAX_CODE = "tax_code"; + private String taxCode; + + public static final String JSON_PROPERTY_TAX_RATE = "tax_rate"; + private BigDecimal taxRate; + + public static final String JSON_PROPERTY_TAX_DESCRIPTION = "tax_description"; + private String taxDescription; + + public static final String JSON_PROPERTY_BASE_AMOUNT_CENTS = "base_amount_cents"; + private Integer baseAmountCents; + + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; + private Integer amountCents; + + public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amount_currency"; + private Currency amountCurrency; + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner() { + } + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner lagoTaxId(UUID lagoTaxId) { + + this.lagoTaxId = lagoTaxId; + return this; + } + + /** + * Unique identifier of the tax, created by Lago. + * @return lagoTaxId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LAGO_TAX_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getLagoTaxId() { + return lagoTaxId; + } + + + @JsonProperty(JSON_PROPERTY_LAGO_TAX_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLagoTaxId(UUID lagoTaxId) { + this.lagoTaxId = lagoTaxId; + } + + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner taxName(String taxName) { + + this.taxName = taxName; + return this; + } + + /** + * Name of the tax. + * @return taxName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTaxName() { + return taxName; + } + + + @JsonProperty(JSON_PROPERTY_TAX_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxName(String taxName) { + this.taxName = taxName; + } + + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner taxCode(String taxCode) { + + this.taxCode = taxCode; + return this; + } + + /** + * Unique code used to identify the tax associated with the API request. + * @return taxCode + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTaxCode() { + return taxCode; + } + + + @JsonProperty(JSON_PROPERTY_TAX_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxCode(String taxCode) { + this.taxCode = taxCode; + } + + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner taxRate(BigDecimal taxRate) { + + this.taxRate = taxRate; + return this; + } + + /** + * The percentage rate of the tax + * @return taxRate + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_RATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getTaxRate() { + return taxRate; + } + + + @JsonProperty(JSON_PROPERTY_TAX_RATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxRate(BigDecimal taxRate) { + this.taxRate = taxRate; + } + + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner taxDescription(String taxDescription) { + + this.taxDescription = taxDescription; + return this; + } + + /** + * Internal description of the taxe + * @return taxDescription + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTaxDescription() { + return taxDescription; + } + + + @JsonProperty(JSON_PROPERTY_TAX_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxDescription(String taxDescription) { + this.taxDescription = taxDescription; + } + + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner baseAmountCents(Integer baseAmountCents) { + + this.baseAmountCents = baseAmountCents; + return this; + } + + /** + * Get baseAmountCents + * @return baseAmountCents + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BASE_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getBaseAmountCents() { + return baseAmountCents; + } + + + @JsonProperty(JSON_PROPERTY_BASE_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBaseAmountCents(Integer baseAmountCents) { + this.baseAmountCents = baseAmountCents; + } + + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner amountCents(Integer amountCents) { + + this.amountCents = amountCents; + return this; + } + + /** + * Amount of the tax + * @return amountCents + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getAmountCents() { + return amountCents; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmountCents(Integer amountCents) { + this.amountCents = amountCents; + } + + + public CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner amountCurrency(Currency amountCurrency) { + + this.amountCurrency = amountCurrency; + return this; + } + + /** + * Get amountCurrency + * @return amountCurrency + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Currency getAmountCurrency() { + return amountCurrency; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmountCurrency(Currency amountCurrency) { + this.amountCurrency = amountCurrency; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner = (CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner) o; + return Objects.equals(this.lagoTaxId, creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.lagoTaxId) && + Objects.equals(this.taxName, creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.taxName) && + Objects.equals(this.taxCode, creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.taxCode) && + Objects.equals(this.taxRate, creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.taxRate) && + Objects.equals(this.taxDescription, creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.taxDescription) && + Objects.equals(this.baseAmountCents, creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.baseAmountCents) && + Objects.equals(this.amountCents, creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.amountCents) && + Objects.equals(this.amountCurrency, creditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.amountCurrency); + } + + @Override + public int hashCode() { + return Objects.hash(lagoTaxId, taxName, taxCode, taxRate, taxDescription, baseAmountCents, amountCents, amountCurrency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner {\n"); + sb.append(" lagoTaxId: ").append(toIndentedString(lagoTaxId)).append("\n"); + sb.append(" taxName: ").append(toIndentedString(taxName)).append("\n"); + sb.append(" taxCode: ").append(toIndentedString(taxCode)).append("\n"); + sb.append(" taxRate: ").append(toIndentedString(taxRate)).append("\n"); + sb.append(" taxDescription: ").append(toIndentedString(taxDescription)).append("\n"); + sb.append(" baseAmountCents: ").append(toIndentedString(baseAmountCents)).append("\n"); + sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); + sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInner.java b/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInner.java new file mode 100644 index 0000000..d010964 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInner.java @@ -0,0 +1,137 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * CreditNoteEstimatedEstimatedCreditNoteItemsInner + */ +@JsonPropertyOrder({ + CreditNoteEstimatedEstimatedCreditNoteItemsInner.JSON_PROPERTY_AMOUNT_CENTS, + CreditNoteEstimatedEstimatedCreditNoteItemsInner.JSON_PROPERTY_LAGO_FEE_ID +}) +@JsonTypeName("CreditNoteEstimated_estimated_credit_note_items_inner") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class CreditNoteEstimatedEstimatedCreditNoteItemsInner { + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; + private Integer amountCents; + + public static final String JSON_PROPERTY_LAGO_FEE_ID = "lago_fee_id"; + private UUID lagoFeeId; + + public CreditNoteEstimatedEstimatedCreditNoteItemsInner() { + } + + public CreditNoteEstimatedEstimatedCreditNoteItemsInner amountCents(Integer amountCents) { + + this.amountCents = amountCents; + return this; + } + + /** + * The credit note’s item amount, expressed in cents. + * @return amountCents + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getAmountCents() { + return amountCents; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmountCents(Integer amountCents) { + this.amountCents = amountCents; + } + + + public CreditNoteEstimatedEstimatedCreditNoteItemsInner lagoFeeId(UUID lagoFeeId) { + + this.lagoFeeId = lagoFeeId; + return this; + } + + /** + * Unique identifier assigned to the fee within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the fee’s record within the Lago system. + * @return lagoFeeId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LAGO_FEE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getLagoFeeId() { + return lagoFeeId; + } + + + @JsonProperty(JSON_PROPERTY_LAGO_FEE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLagoFeeId(UUID lagoFeeId) { + this.lagoFeeId = lagoFeeId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreditNoteEstimatedEstimatedCreditNoteItemsInner creditNoteEstimatedEstimatedCreditNoteItemsInner = (CreditNoteEstimatedEstimatedCreditNoteItemsInner) o; + return Objects.equals(this.amountCents, creditNoteEstimatedEstimatedCreditNoteItemsInner.amountCents) && + Objects.equals(this.lagoFeeId, creditNoteEstimatedEstimatedCreditNoteItemsInner.lagoFeeId); + } + + @Override + public int hashCode() { + return Objects.hash(amountCents, lagoFeeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreditNoteEstimatedEstimatedCreditNoteItemsInner {\n"); + sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); + sb.append(" lagoFeeId: ").append(toIndentedString(lagoFeeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/CreditNoteItemObject.java b/src/main/java/org/openapitools/client/model/CreditNoteItemObject.java index 5fdb11e..a0ca482 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteItemObject.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteItemObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -35,7 +35,7 @@ CreditNoteItemObject.JSON_PROPERTY_AMOUNT_CURRENCY, CreditNoteItemObject.JSON_PROPERTY_FEE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNoteItemObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/CreditNoteItemObjectFee.java b/src/main/java/org/openapitools/client/model/CreditNoteItemObjectFee.java index 374abae..7ebac70 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteItemObjectFee.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteItemObjectFee.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -48,11 +49,13 @@ CreditNoteItemObjectFee.JSON_PROPERTY_LAGO_CUSTOMER_ID, CreditNoteItemObjectFee.JSON_PROPERTY_EXTERNAL_CUSTOMER_ID, CreditNoteItemObjectFee.JSON_PROPERTY_EXTERNAL_SUBSCRIPTION_ID, + CreditNoteItemObjectFee.JSON_PROPERTY_INVOICE_DISPLAY_NAME, CreditNoteItemObjectFee.JSON_PROPERTY_AMOUNT_CENTS, CreditNoteItemObjectFee.JSON_PROPERTY_AMOUNT_CURRENCY, CreditNoteItemObjectFee.JSON_PROPERTY_TAXES_AMOUNT_CENTS, CreditNoteItemObjectFee.JSON_PROPERTY_TAXES_RATE, CreditNoteItemObjectFee.JSON_PROPERTY_UNITS, + CreditNoteItemObjectFee.JSON_PROPERTY_PRECISE_UNIT_AMOUNT, CreditNoteItemObjectFee.JSON_PROPERTY_TOTAL_AMOUNT_CENTS, CreditNoteItemObjectFee.JSON_PROPERTY_TOTAL_AMOUNT_CURRENCY, CreditNoteItemObjectFee.JSON_PROPERTY_EVENTS_COUNT, @@ -70,7 +73,7 @@ CreditNoteItemObjectFee.JSON_PROPERTY_APPLIED_TAXES }) @JsonTypeName("CreditNoteItemObject_fee") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNoteItemObjectFee { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private JsonNullable lagoId = JsonNullable.undefined(); @@ -99,6 +102,9 @@ public class CreditNoteItemObjectFee { public static final String JSON_PROPERTY_EXTERNAL_SUBSCRIPTION_ID = "external_subscription_id"; private JsonNullable externalSubscriptionId = JsonNullable.undefined(); + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; private Integer amountCents; @@ -114,6 +120,9 @@ public class CreditNoteItemObjectFee { public static final String JSON_PROPERTY_UNITS = "units"; private String units; + public static final String JSON_PROPERTY_PRECISE_UNIT_AMOUNT = "precise_unit_amount"; + private String preciseUnitAmount; + public static final String JSON_PROPERTY_TOTAL_AMOUNT_CENTS = "total_amount_cents"; private Integer totalAmountCents; @@ -378,7 +387,7 @@ public CreditNoteItemObjectFee lagoSubscriptionId(UUID lagoSubscriptionId) { } /** - * Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). + * Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge or subscription. * @return lagoSubscriptionId **/ @javax.annotation.Nullable @@ -412,7 +421,7 @@ public CreditNoteItemObjectFee lagoCustomerId(UUID lagoCustomerId) { } /** - * Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). + * Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge or subscription. * @return lagoCustomerId **/ @javax.annotation.Nullable @@ -446,7 +455,7 @@ public CreditNoteItemObjectFee externalCustomerId(String externalCustomerId) { } /** - * Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). + * Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge or subscription. * @return externalCustomerId **/ @javax.annotation.Nullable @@ -480,7 +489,7 @@ public CreditNoteItemObjectFee externalSubscriptionId(String externalSubscriptio } /** - * Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). + * Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge or subscription. * @return externalSubscriptionId **/ @javax.annotation.Nullable @@ -507,6 +516,32 @@ public void setExternalSubscriptionId(String externalSubscriptionId) { } + public CreditNoteItemObjectFee invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public CreditNoteItemObjectFee amountCents(Integer amountCents) { this.amountCents = amountCents; @@ -637,6 +672,32 @@ public void setUnits(String units) { } + public CreditNoteItemObjectFee preciseUnitAmount(String preciseUnitAmount) { + + this.preciseUnitAmount = preciseUnitAmount; + return this; + } + + /** + * The unit amount of the fee per unit, with precision. + * @return preciseUnitAmount + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PRECISE_UNIT_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getPreciseUnitAmount() { + return preciseUnitAmount; + } + + + @JsonProperty(JSON_PROPERTY_PRECISE_UNIT_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPreciseUnitAmount(String preciseUnitAmount) { + this.preciseUnitAmount = preciseUnitAmount; + } + + public CreditNoteItemObjectFee totalAmountCents(Integer totalAmountCents) { this.totalAmountCents = totalAmountCents; @@ -1108,11 +1169,13 @@ public boolean equals(Object o) { equalsNullable(this.lagoCustomerId, creditNoteItemObjectFee.lagoCustomerId) && equalsNullable(this.externalCustomerId, creditNoteItemObjectFee.externalCustomerId) && equalsNullable(this.externalSubscriptionId, creditNoteItemObjectFee.externalSubscriptionId) && + Objects.equals(this.invoiceDisplayName, creditNoteItemObjectFee.invoiceDisplayName) && Objects.equals(this.amountCents, creditNoteItemObjectFee.amountCents) && Objects.equals(this.amountCurrency, creditNoteItemObjectFee.amountCurrency) && Objects.equals(this.taxesAmountCents, creditNoteItemObjectFee.taxesAmountCents) && Objects.equals(this.taxesRate, creditNoteItemObjectFee.taxesRate) && Objects.equals(this.units, creditNoteItemObjectFee.units) && + Objects.equals(this.preciseUnitAmount, creditNoteItemObjectFee.preciseUnitAmount) && Objects.equals(this.totalAmountCents, creditNoteItemObjectFee.totalAmountCents) && Objects.equals(this.totalAmountCurrency, creditNoteItemObjectFee.totalAmountCurrency) && Objects.equals(this.eventsCount, creditNoteItemObjectFee.eventsCount) && @@ -1136,7 +1199,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(hashCodeNullable(lagoId), hashCodeNullable(lagoGroupId), hashCodeNullable(lagoInvoiceId), hashCodeNullable(lagoTrueUpFeeId), hashCodeNullable(lagoTrueUpParentFeeId), hashCodeNullable(lagoSubscriptionId), hashCodeNullable(lagoCustomerId), hashCodeNullable(externalCustomerId), hashCodeNullable(externalSubscriptionId), amountCents, amountCurrency, taxesAmountCents, taxesRate, units, totalAmountCents, totalAmountCurrency, eventsCount, payInAdvance, invoiceable, hashCodeNullable(fromDate), hashCodeNullable(toDate), paymentStatus, hashCodeNullable(createdAt), hashCodeNullable(succeededAt), hashCodeNullable(failedAt), hashCodeNullable(refundedAt), hashCodeNullable(eventTransactionId), item, appliedTaxes); + return Objects.hash(hashCodeNullable(lagoId), hashCodeNullable(lagoGroupId), hashCodeNullable(lagoInvoiceId), hashCodeNullable(lagoTrueUpFeeId), hashCodeNullable(lagoTrueUpParentFeeId), hashCodeNullable(lagoSubscriptionId), hashCodeNullable(lagoCustomerId), hashCodeNullable(externalCustomerId), hashCodeNullable(externalSubscriptionId), invoiceDisplayName, amountCents, amountCurrency, taxesAmountCents, taxesRate, units, preciseUnitAmount, totalAmountCents, totalAmountCurrency, eventsCount, payInAdvance, invoiceable, hashCodeNullable(fromDate), hashCodeNullable(toDate), paymentStatus, hashCodeNullable(createdAt), hashCodeNullable(succeededAt), hashCodeNullable(failedAt), hashCodeNullable(refundedAt), hashCodeNullable(eventTransactionId), item, appliedTaxes); } private static int hashCodeNullable(JsonNullable a) { @@ -1159,11 +1222,13 @@ public String toString() { sb.append(" lagoCustomerId: ").append(toIndentedString(lagoCustomerId)).append("\n"); sb.append(" externalCustomerId: ").append(toIndentedString(externalCustomerId)).append("\n"); sb.append(" externalSubscriptionId: ").append(toIndentedString(externalSubscriptionId)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); sb.append(" taxesAmountCents: ").append(toIndentedString(taxesAmountCents)).append("\n"); sb.append(" taxesRate: ").append(toIndentedString(taxesRate)).append("\n"); sb.append(" units: ").append(toIndentedString(units)).append("\n"); + sb.append(" preciseUnitAmount: ").append(toIndentedString(preciseUnitAmount)).append("\n"); sb.append(" totalAmountCents: ").append(toIndentedString(totalAmountCents)).append("\n"); sb.append(" totalAmountCurrency: ").append(toIndentedString(totalAmountCurrency)).append("\n"); sb.append(" eventsCount: ").append(toIndentedString(eventsCount)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/CreditNoteObject.java b/src/main/java/org/openapitools/client/model/CreditNoteObject.java index f75fb2d..73680a6 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteObject.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,6 +24,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.CreditNoteAppliedTaxObject; @@ -58,14 +59,14 @@ CreditNoteObject.JSON_PROPERTY_BALANCE_AMOUNT_CENTS, CreditNoteObject.JSON_PROPERTY_CREDIT_AMOUNT_CENTS, CreditNoteObject.JSON_PROPERTY_REFUND_AMOUNT_CENTS, - CreditNoteObject.JSON_PROPERTY_COUPONS_ADJUSTEMENT_AMOUNT_CENTS, + CreditNoteObject.JSON_PROPERTY_COUPONS_ADJUSTMENT_AMOUNT_CENTS, CreditNoteObject.JSON_PROPERTY_CREATED_AT, CreditNoteObject.JSON_PROPERTY_UPDATED_AT, CreditNoteObject.JSON_PROPERTY_FILE_URL, CreditNoteObject.JSON_PROPERTY_ITEMS, CreditNoteObject.JSON_PROPERTY_APPLIED_TAXES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNoteObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -238,8 +239,8 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REFUND_AMOUNT_CENTS = "refund_amount_cents"; private Integer refundAmountCents; - public static final String JSON_PROPERTY_COUPONS_ADJUSTEMENT_AMOUNT_CENTS = "coupons_adjustement_amount_cents"; - private Integer couponsAdjustementAmountCents; + public static final String JSON_PROPERTY_COUPONS_ADJUSTMENT_AMOUNT_CENTS = "coupons_adjustment_amount_cents"; + private Integer couponsAdjustmentAmountCents; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private OffsetDateTime createdAt; @@ -751,29 +752,29 @@ public void setRefundAmountCents(Integer refundAmountCents) { } - public CreditNoteObject couponsAdjustementAmountCents(Integer couponsAdjustementAmountCents) { + public CreditNoteObject couponsAdjustmentAmountCents(Integer couponsAdjustmentAmountCents) { - this.couponsAdjustementAmountCents = couponsAdjustementAmountCents; + this.couponsAdjustmentAmountCents = couponsAdjustmentAmountCents; return this; } /** * The pro-rated amount of the coupons applied to the source invoice. - * @return couponsAdjustementAmountCents + * @return couponsAdjustmentAmountCents **/ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUPONS_ADJUSTEMENT_AMOUNT_CENTS) + @JsonProperty(JSON_PROPERTY_COUPONS_ADJUSTMENT_AMOUNT_CENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getCouponsAdjustementAmountCents() { - return couponsAdjustementAmountCents; + public Integer getCouponsAdjustmentAmountCents() { + return couponsAdjustmentAmountCents; } - @JsonProperty(JSON_PROPERTY_COUPONS_ADJUSTEMENT_AMOUNT_CENTS) + @JsonProperty(JSON_PROPERTY_COUPONS_ADJUSTMENT_AMOUNT_CENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCouponsAdjustementAmountCents(Integer couponsAdjustementAmountCents) { - this.couponsAdjustementAmountCents = couponsAdjustementAmountCents; + public void setCouponsAdjustmentAmountCents(Integer couponsAdjustmentAmountCents) { + this.couponsAdjustmentAmountCents = couponsAdjustmentAmountCents; } @@ -957,7 +958,7 @@ public boolean equals(Object o) { Objects.equals(this.balanceAmountCents, creditNoteObject.balanceAmountCents) && Objects.equals(this.creditAmountCents, creditNoteObject.creditAmountCents) && Objects.equals(this.refundAmountCents, creditNoteObject.refundAmountCents) && - Objects.equals(this.couponsAdjustementAmountCents, creditNoteObject.couponsAdjustementAmountCents) && + Objects.equals(this.couponsAdjustmentAmountCents, creditNoteObject.couponsAdjustmentAmountCents) && Objects.equals(this.createdAt, creditNoteObject.createdAt) && Objects.equals(this.updatedAt, creditNoteObject.updatedAt) && equalsNullable(this.fileUrl, creditNoteObject.fileUrl) && @@ -971,7 +972,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lagoId, sequentialId, number, lagoInvoiceId, invoiceNumber, issuingDate, hashCodeNullable(creditStatus), hashCodeNullable(refundStatus), reason, hashCodeNullable(description), currency, totalAmountCents, taxesAmountCents, taxesRate, subTotalExcludingTaxesAmountCents, balanceAmountCents, creditAmountCents, refundAmountCents, couponsAdjustementAmountCents, createdAt, updatedAt, hashCodeNullable(fileUrl), items, appliedTaxes); + return Objects.hash(lagoId, sequentialId, number, lagoInvoiceId, invoiceNumber, issuingDate, hashCodeNullable(creditStatus), hashCodeNullable(refundStatus), reason, hashCodeNullable(description), currency, totalAmountCents, taxesAmountCents, taxesRate, subTotalExcludingTaxesAmountCents, balanceAmountCents, creditAmountCents, refundAmountCents, couponsAdjustmentAmountCents, createdAt, updatedAt, hashCodeNullable(fileUrl), items, appliedTaxes); } private static int hashCodeNullable(JsonNullable a) { @@ -1003,7 +1004,7 @@ public String toString() { sb.append(" balanceAmountCents: ").append(toIndentedString(balanceAmountCents)).append("\n"); sb.append(" creditAmountCents: ").append(toIndentedString(creditAmountCents)).append("\n"); sb.append(" refundAmountCents: ").append(toIndentedString(refundAmountCents)).append("\n"); - sb.append(" couponsAdjustementAmountCents: ").append(toIndentedString(couponsAdjustementAmountCents)).append("\n"); + sb.append(" couponsAdjustmentAmountCents: ").append(toIndentedString(couponsAdjustmentAmountCents)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" fileUrl: ").append(toIndentedString(fileUrl)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/CreditNoteUpdateInput.java b/src/main/java/org/openapitools/client/model/CreditNoteUpdateInput.java index 4045779..9acd5a6 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ CreditNoteUpdateInput.JSON_PROPERTY_CREDIT_NOTE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNoteUpdateInput { public static final String JSON_PROPERTY_CREDIT_NOTE = "credit_note"; private CreditNoteUpdateInputCreditNote creditNote; diff --git a/src/main/java/org/openapitools/client/model/CreditNoteUpdateInputCreditNote.java b/src/main/java/org/openapitools/client/model/CreditNoteUpdateInputCreditNote.java index 32af94a..f77e668 100644 --- a/src/main/java/org/openapitools/client/model/CreditNoteUpdateInputCreditNote.java +++ b/src/main/java/org/openapitools/client/model/CreditNoteUpdateInputCreditNote.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ CreditNoteUpdateInputCreditNote.JSON_PROPERTY_REFUND_STATUS }) @JsonTypeName("CreditNoteUpdateInput_credit_note") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNoteUpdateInputCreditNote { /** * The status of the refund portion of the credit note. It indicates the current state or condition of the refund associated with the credit note. The possible values for this field are: - `pending`: this status indicates that the refund is pending execution. The refund request has been initiated but has not been processed or completed yet. - `succeeded`: this status indicates that the refund has been successfully executed. The refund amount has been processed and returned to the customer or the designated recipient. - `failed`: this status indicates that the refund failed to execute. The refund request encountered an error or unsuccessful processing, and the refund amount could not be returned. diff --git a/src/main/java/org/openapitools/client/model/CreditNotes.java b/src/main/java/org/openapitools/client/model/CreditNotes.java index 7adc257..eb7ffbb 100644 --- a/src/main/java/org/openapitools/client/model/CreditNotes.java +++ b/src/main/java/org/openapitools/client/model/CreditNotes.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.CreditNoteObject; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -32,7 +33,7 @@ @JsonPropertyOrder({ CreditNotes.JSON_PROPERTY_CREDIT_NOTES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditNotes { public static final String JSON_PROPERTY_CREDIT_NOTES = "credit_notes"; private List creditNotes = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/CreditObject.java b/src/main/java/org/openapitools/client/model/CreditObject.java index c043f1d..12f4953 100644 --- a/src/main/java/org/openapitools/client/model/CreditObject.java +++ b/src/main/java/org/openapitools/client/model/CreditObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -38,7 +38,7 @@ CreditObject.JSON_PROPERTY_ITEM, CreditObject.JSON_PROPERTY_INVOICE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/CreditObjectInvoice.java b/src/main/java/org/openapitools/client/model/CreditObjectInvoice.java index c991adb..93a7665 100644 --- a/src/main/java/org/openapitools/client/model/CreditObjectInvoice.java +++ b/src/main/java/org/openapitools/client/model/CreditObjectInvoice.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ CreditObjectInvoice.JSON_PROPERTY_PAYMENT_STATUS }) @JsonTypeName("CreditObject_invoice") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditObjectInvoice { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/CreditObjectItem.java b/src/main/java/org/openapitools/client/model/CreditObjectItem.java index 9a40478..9198850 100644 --- a/src/main/java/org/openapitools/client/model/CreditObjectItem.java +++ b/src/main/java/org/openapitools/client/model/CreditObjectItem.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,16 +28,16 @@ * The item attached to the credit. */ @JsonPropertyOrder({ - CreditObjectItem.JSON_PROPERTY_LAGO_ID, + CreditObjectItem.JSON_PROPERTY_LAGO_ITEM_ID, CreditObjectItem.JSON_PROPERTY_TYPE, CreditObjectItem.JSON_PROPERTY_CODE, CreditObjectItem.JSON_PROPERTY_NAME }) @JsonTypeName("CreditObject_item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CreditObjectItem { - public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; - private UUID lagoId; + public static final String JSON_PROPERTY_LAGO_ITEM_ID = "lago_item_id"; + private UUID lagoItemId; /** * The type of credit applied. Possible values are `coupon` or `credit_note`. @@ -86,29 +86,29 @@ public static TypeEnum fromValue(String value) { public CreditObjectItem() { } - public CreditObjectItem lagoId(UUID lagoId) { + public CreditObjectItem lagoItemId(UUID lagoItemId) { - this.lagoId = lagoId; + this.lagoItemId = lagoItemId; return this; } /** * Unique identifier assigned to the credit item within the Lago application. - * @return lagoId + * @return lagoItemId **/ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LAGO_ID) + @JsonProperty(JSON_PROPERTY_LAGO_ITEM_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getLagoId() { - return lagoId; + public UUID getLagoItemId() { + return lagoItemId; } - @JsonProperty(JSON_PROPERTY_LAGO_ID) + @JsonProperty(JSON_PROPERTY_LAGO_ITEM_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLagoId(UUID lagoId) { - this.lagoId = lagoId; + public void setLagoItemId(UUID lagoItemId) { + this.lagoItemId = lagoItemId; } @@ -198,7 +198,7 @@ public boolean equals(Object o) { return false; } CreditObjectItem creditObjectItem = (CreditObjectItem) o; - return Objects.equals(this.lagoId, creditObjectItem.lagoId) && + return Objects.equals(this.lagoItemId, creditObjectItem.lagoItemId) && Objects.equals(this.type, creditObjectItem.type) && Objects.equals(this.code, creditObjectItem.code) && Objects.equals(this.name, creditObjectItem.name); @@ -206,14 +206,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(lagoId, type, code, name); + return Objects.hash(lagoItemId, type, code, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreditObjectItem {\n"); - sb.append(" lagoId: ").append(toIndentedString(lagoId)).append("\n"); + sb.append(" lagoItemId: ").append(toIndentedString(lagoItemId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/Currency.java b/src/main/java/org/openapitools/client/model/Currency.java index 8d4f49c..5a88310 100644 --- a/src/main/java/org/openapitools/client/model/Currency.java +++ b/src/main/java/org/openapitools/client/model/Currency.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/org/openapitools/client/model/Customer.java b/src/main/java/org/openapitools/client/model/Customer.java index 6292dd5..03e5aa2 100644 --- a/src/main/java/org/openapitools/client/model/Customer.java +++ b/src/main/java/org/openapitools/client/model/Customer.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Customer.JSON_PROPERTY_CUSTOMER }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Customer { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerObjectExtended customer; diff --git a/src/main/java/org/openapitools/client/model/CustomerBillingConfiguration.java b/src/main/java/org/openapitools/client/model/CustomerBillingConfiguration.java index 9b62b38..4fa116e 100644 --- a/src/main/java/org/openapitools/client/model/CustomerBillingConfiguration.java +++ b/src/main/java/org/openapitools/client/model/CustomerBillingConfiguration.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -41,7 +42,7 @@ CustomerBillingConfiguration.JSON_PROPERTY_DOCUMENT_LOCALE, CustomerBillingConfiguration.JSON_PROPERTY_PROVIDER_PAYMENT_METHODS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerBillingConfiguration { public static final String JSON_PROPERTY_INVOICE_GRACE_PERIOD = "invoice_grace_period"; private Integer invoiceGracePeriod; diff --git a/src/main/java/org/openapitools/client/model/CustomerChargeUsageObject.java b/src/main/java/org/openapitools/client/model/CustomerChargeUsageObject.java index 62da8d3..01cfb91 100644 --- a/src/main/java/org/openapitools/client/model/CustomerChargeUsageObject.java +++ b/src/main/java/org/openapitools/client/model/CustomerChargeUsageObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.client.model.CustomerChargeUsageObjectBillableMetric; @@ -34,17 +35,21 @@ */ @JsonPropertyOrder({ CustomerChargeUsageObject.JSON_PROPERTY_UNITS, + CustomerChargeUsageObject.JSON_PROPERTY_EVENTS_COUNT, CustomerChargeUsageObject.JSON_PROPERTY_AMOUNT_CENTS, CustomerChargeUsageObject.JSON_PROPERTY_AMOUNT_CURRENCY, CustomerChargeUsageObject.JSON_PROPERTY_CHARGE, CustomerChargeUsageObject.JSON_PROPERTY_BILLABLE_METRIC, CustomerChargeUsageObject.JSON_PROPERTY_GROUPS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerChargeUsageObject { public static final String JSON_PROPERTY_UNITS = "units"; private String units; + public static final String JSON_PROPERTY_EVENTS_COUNT = "events_count"; + private Integer eventsCount; + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; private Integer amountCents; @@ -89,6 +94,32 @@ public void setUnits(String units) { } + public CustomerChargeUsageObject eventsCount(Integer eventsCount) { + + this.eventsCount = eventsCount; + return this; + } + + /** + * The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts. + * @return eventsCount + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_EVENTS_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getEventsCount() { + return eventsCount; + } + + + @JsonProperty(JSON_PROPERTY_EVENTS_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEventsCount(Integer eventsCount) { + this.eventsCount = eventsCount; + } + + public CustomerChargeUsageObject amountCents(Integer amountCents) { this.amountCents = amountCents; @@ -236,6 +267,7 @@ public boolean equals(Object o) { } CustomerChargeUsageObject customerChargeUsageObject = (CustomerChargeUsageObject) o; return Objects.equals(this.units, customerChargeUsageObject.units) && + Objects.equals(this.eventsCount, customerChargeUsageObject.eventsCount) && Objects.equals(this.amountCents, customerChargeUsageObject.amountCents) && Objects.equals(this.amountCurrency, customerChargeUsageObject.amountCurrency) && Objects.equals(this.charge, customerChargeUsageObject.charge) && @@ -245,7 +277,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(units, amountCents, amountCurrency, charge, billableMetric, groups); + return Objects.hash(units, eventsCount, amountCents, amountCurrency, charge, billableMetric, groups); } @Override @@ -253,6 +285,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerChargeUsageObject {\n"); sb.append(" units: ").append(toIndentedString(units)).append("\n"); + sb.append(" eventsCount: ").append(toIndentedString(eventsCount)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); sb.append(" charge: ").append(toIndentedString(charge)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectBillableMetric.java b/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectBillableMetric.java index 3d39413..6d271e1 100644 --- a/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectBillableMetric.java +++ b/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectBillableMetric.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,7 @@ CustomerChargeUsageObjectBillableMetric.JSON_PROPERTY_AGGREGATION_TYPE }) @JsonTypeName("CustomerChargeUsageObject_billable_metric") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerChargeUsageObjectBillableMetric { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectCharge.java b/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectCharge.java index b0e3122..cfeba64 100644 --- a/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectCharge.java +++ b/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectCharge.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,10 +29,11 @@ */ @JsonPropertyOrder({ CustomerChargeUsageObjectCharge.JSON_PROPERTY_LAGO_ID, - CustomerChargeUsageObjectCharge.JSON_PROPERTY_CHARGE_MODEL + CustomerChargeUsageObjectCharge.JSON_PROPERTY_CHARGE_MODEL, + CustomerChargeUsageObjectCharge.JSON_PROPERTY_INVOICE_DISPLAY_NAME }) @JsonTypeName("CustomerChargeUsageObject_charge") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerChargeUsageObjectCharge { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -81,6 +82,9 @@ public static ChargeModelEnum fromValue(String value) { public static final String JSON_PROPERTY_CHARGE_MODEL = "charge_model"; private ChargeModelEnum chargeModel; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public CustomerChargeUsageObjectCharge() { } @@ -135,6 +139,32 @@ public void setChargeModel(ChargeModelEnum chargeModel) { this.chargeModel = chargeModel; } + + public CustomerChargeUsageObjectCharge invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -145,12 +175,13 @@ public boolean equals(Object o) { } CustomerChargeUsageObjectCharge customerChargeUsageObjectCharge = (CustomerChargeUsageObjectCharge) o; return Objects.equals(this.lagoId, customerChargeUsageObjectCharge.lagoId) && - Objects.equals(this.chargeModel, customerChargeUsageObjectCharge.chargeModel); + Objects.equals(this.chargeModel, customerChargeUsageObjectCharge.chargeModel) && + Objects.equals(this.invoiceDisplayName, customerChargeUsageObjectCharge.invoiceDisplayName); } @Override public int hashCode() { - return Objects.hash(lagoId, chargeModel); + return Objects.hash(lagoId, chargeModel, invoiceDisplayName); } @Override @@ -159,6 +190,7 @@ public String toString() { sb.append("class CustomerChargeUsageObjectCharge {\n"); sb.append(" lagoId: ").append(toIndentedString(lagoId)).append("\n"); sb.append(" chargeModel: ").append(toIndentedString(chargeModel)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectGroupsInner.java b/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectGroupsInner.java index 3aaef52..45328d4 100644 --- a/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectGroupsInner.java +++ b/src/main/java/org/openapitools/client/model/CustomerChargeUsageObjectGroupsInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,10 +36,11 @@ CustomerChargeUsageObjectGroupsInner.JSON_PROPERTY_KEY, CustomerChargeUsageObjectGroupsInner.JSON_PROPERTY_VALUE, CustomerChargeUsageObjectGroupsInner.JSON_PROPERTY_UNITS, + CustomerChargeUsageObjectGroupsInner.JSON_PROPERTY_EVENTS_COUNT, CustomerChargeUsageObjectGroupsInner.JSON_PROPERTY_AMOUNT_CENTS }) @JsonTypeName("CustomerChargeUsageObject_groups_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerChargeUsageObjectGroupsInner { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -53,6 +54,9 @@ public class CustomerChargeUsageObjectGroupsInner { public static final String JSON_PROPERTY_UNITS = "units"; private String units; + public static final String JSON_PROPERTY_EVENTS_COUNT = "events_count"; + private Integer eventsCount; + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; private Integer amountCents; @@ -171,6 +175,32 @@ public void setUnits(String units) { } + public CustomerChargeUsageObjectGroupsInner eventsCount(Integer eventsCount) { + + this.eventsCount = eventsCount; + return this; + } + + /** + * The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts. + * @return eventsCount + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EVENTS_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getEventsCount() { + return eventsCount; + } + + + @JsonProperty(JSON_PROPERTY_EVENTS_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEventsCount(Integer eventsCount) { + this.eventsCount = eventsCount; + } + + public CustomerChargeUsageObjectGroupsInner amountCents(Integer amountCents) { this.amountCents = amountCents; @@ -209,6 +239,7 @@ public boolean equals(Object o) { equalsNullable(this.key, customerChargeUsageObjectGroupsInner.key) && Objects.equals(this.value, customerChargeUsageObjectGroupsInner.value) && Objects.equals(this.units, customerChargeUsageObjectGroupsInner.units) && + Objects.equals(this.eventsCount, customerChargeUsageObjectGroupsInner.eventsCount) && Objects.equals(this.amountCents, customerChargeUsageObjectGroupsInner.amountCents); } @@ -218,7 +249,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lagoId, hashCodeNullable(key), value, units, amountCents); + return Objects.hash(lagoId, hashCodeNullable(key), value, units, eventsCount, amountCents); } private static int hashCodeNullable(JsonNullable a) { @@ -236,6 +267,7 @@ public String toString() { sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" units: ").append(toIndentedString(units)).append("\n"); + sb.append(" eventsCount: ").append(toIndentedString(eventsCount)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/openapitools/client/model/CustomerCreateInput.java b/src/main/java/org/openapitools/client/model/CustomerCreateInput.java index 64fa776..1d0edff 100644 --- a/src/main/java/org/openapitools/client/model/CustomerCreateInput.java +++ b/src/main/java/org/openapitools/client/model/CustomerCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ CustomerCreateInput.JSON_PROPERTY_CUSTOMER }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerCreateInput { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerCreateInputCustomer customer; diff --git a/src/main/java/org/openapitools/client/model/CustomerCreateInputCustomer.java b/src/main/java/org/openapitools/client/model/CustomerCreateInputCustomer.java index f3d2eb8..16509c3 100644 --- a/src/main/java/org/openapitools/client/model/CustomerCreateInputCustomer.java +++ b/src/main/java/org/openapitools/client/model/CustomerCreateInputCustomer.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Country; import org.openapitools.client.model.Currency; @@ -61,7 +62,7 @@ CustomerCreateInputCustomer.JSON_PROPERTY_METADATA }) @JsonTypeName("CustomerCreateInput_customer") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerCreateInputCustomer { public static final String JSON_PROPERTY_EXTERNAL_ID = "external_id"; private String externalId; diff --git a/src/main/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataInner.java b/src/main/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataInner.java index 29bcfcf..b2a4744 100644 --- a/src/main/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataInner.java +++ b/src/main/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,7 @@ CustomerCreateInputCustomerMetadataInner.JSON_PROPERTY_DISPLAY_IN_INVOICE }) @JsonTypeName("CustomerCreateInput_customer_metadata_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerCreateInputCustomerMetadataInner { public static final String JSON_PROPERTY_ID = "id"; private UUID id; diff --git a/src/main/java/org/openapitools/client/model/CustomerMetadata.java b/src/main/java/org/openapitools/client/model/CustomerMetadata.java index b238f85..6c14281 100644 --- a/src/main/java/org/openapitools/client/model/CustomerMetadata.java +++ b/src/main/java/org/openapitools/client/model/CustomerMetadata.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -35,7 +35,7 @@ CustomerMetadata.JSON_PROPERTY_DISPLAY_IN_INVOICE, CustomerMetadata.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerMetadata { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/CustomerObject.java b/src/main/java/org/openapitools/client/model/CustomerObject.java index ef5e7c2..dad96bf 100644 --- a/src/main/java/org/openapitools/client/model/CustomerObject.java +++ b/src/main/java/org/openapitools/client/model/CustomerObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Country; @@ -67,7 +68,7 @@ CustomerObject.JSON_PROPERTY_BILLING_CONFIGURATION, CustomerObject.JSON_PROPERTY_METADATA }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/CustomerObjectExtended.java b/src/main/java/org/openapitools/client/model/CustomerObjectExtended.java index a910d6d..9f0b46e 100644 --- a/src/main/java/org/openapitools/client/model/CustomerObjectExtended.java +++ b/src/main/java/org/openapitools/client/model/CustomerObjectExtended.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Country; @@ -69,7 +70,7 @@ CustomerObjectExtended.JSON_PROPERTY_METADATA, CustomerObjectExtended.JSON_PROPERTY_TAXES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerObjectExtended { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/CustomerPastUsage.java b/src/main/java/org/openapitools/client/model/CustomerPastUsage.java new file mode 100644 index 0000000..7a881f9 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/CustomerPastUsage.java @@ -0,0 +1,148 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.CustomerUsage; +import org.openapitools.client.model.PaginationMeta; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * CustomerPastUsage + */ +@JsonPropertyOrder({ + CustomerPastUsage.JSON_PROPERTY_USAGE_PERIODS, + CustomerPastUsage.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class CustomerPastUsage { + public static final String JSON_PROPERTY_USAGE_PERIODS = "usage_periods"; + private List usagePeriods = new ArrayList<>(); + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public CustomerPastUsage() { + } + + public CustomerPastUsage usagePeriods(List usagePeriods) { + + this.usagePeriods = usagePeriods; + return this; + } + + public CustomerPastUsage addUsagePeriodsItem(CustomerUsage usagePeriodsItem) { + if (this.usagePeriods == null) { + this.usagePeriods = new ArrayList<>(); + } + this.usagePeriods.add(usagePeriodsItem); + return this; + } + + /** + * Get usagePeriods + * @return usagePeriods + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_USAGE_PERIODS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getUsagePeriods() { + return usagePeriods; + } + + + @JsonProperty(JSON_PROPERTY_USAGE_PERIODS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUsagePeriods(List usagePeriods) { + this.usagePeriods = usagePeriods; + } + + + public CustomerPastUsage meta(PaginationMeta meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerPastUsage customerPastUsage = (CustomerPastUsage) o; + return Objects.equals(this.usagePeriods, customerPastUsage.usagePeriods) && + Objects.equals(this.meta, customerPastUsage.meta); + } + + @Override + public int hashCode() { + return Objects.hash(usagePeriods, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerPastUsage {\n"); + sb.append(" usagePeriods: ").append(toIndentedString(usagePeriods)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/CustomerUsage.java b/src/main/java/org/openapitools/client/model/CustomerUsage.java index 84dab24..09c3633 100644 --- a/src/main/java/org/openapitools/client/model/CustomerUsage.java +++ b/src/main/java/org/openapitools/client/model/CustomerUsage.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ CustomerUsage.JSON_PROPERTY_CUSTOMER_USAGE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerUsage { public static final String JSON_PROPERTY_CUSTOMER_USAGE = "customer_usage"; private CustomerUsageObject customerUsage; diff --git a/src/main/java/org/openapitools/client/model/CustomerUsageObject.java b/src/main/java/org/openapitools/client/model/CustomerUsageObject.java index e727c9b..e059657 100644 --- a/src/main/java/org/openapitools/client/model/CustomerUsageObject.java +++ b/src/main/java/org/openapitools/client/model/CustomerUsageObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,9 +22,15 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import java.util.UUID; import org.openapitools.client.model.Currency; import org.openapitools.client.model.CustomerChargeUsageObject; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -35,13 +41,14 @@ CustomerUsageObject.JSON_PROPERTY_FROM_DATETIME, CustomerUsageObject.JSON_PROPERTY_TO_DATETIME, CustomerUsageObject.JSON_PROPERTY_ISSUING_DATE, + CustomerUsageObject.JSON_PROPERTY_LAGO_INVOICE_ID, CustomerUsageObject.JSON_PROPERTY_CURRENCY, CustomerUsageObject.JSON_PROPERTY_AMOUNT_CENTS, CustomerUsageObject.JSON_PROPERTY_TAXES_AMOUNT_CENTS, CustomerUsageObject.JSON_PROPERTY_TOTAL_AMOUNT_CENTS, CustomerUsageObject.JSON_PROPERTY_CHARGES_USAGE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomerUsageObject { public static final String JSON_PROPERTY_FROM_DATETIME = "from_datetime"; private OffsetDateTime fromDatetime; @@ -52,6 +59,9 @@ public class CustomerUsageObject { public static final String JSON_PROPERTY_ISSUING_DATE = "issuing_date"; private OffsetDateTime issuingDate; + public static final String JSON_PROPERTY_LAGO_INVOICE_ID = "lago_invoice_id"; + private JsonNullable lagoInvoiceId = JsonNullable.undefined(); + public static final String JSON_PROPERTY_CURRENCY = "currency"; private Currency currency; @@ -148,6 +158,40 @@ public void setIssuingDate(OffsetDateTime issuingDate) { } + public CustomerUsageObject lagoInvoiceId(UUID lagoInvoiceId) { + this.lagoInvoiceId = JsonNullable.of(lagoInvoiceId); + + return this; + } + + /** + * A unique identifier associated with the invoice related to this particular usage record. + * @return lagoInvoiceId + **/ + @javax.annotation.Nullable + @JsonIgnore + + public UUID getLagoInvoiceId() { + return lagoInvoiceId.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_LAGO_INVOICE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getLagoInvoiceId_JsonNullable() { + return lagoInvoiceId; + } + + @JsonProperty(JSON_PROPERTY_LAGO_INVOICE_ID) + public void setLagoInvoiceId_JsonNullable(JsonNullable lagoInvoiceId) { + this.lagoInvoiceId = lagoInvoiceId; + } + + public void setLagoInvoiceId(UUID lagoInvoiceId) { + this.lagoInvoiceId = JsonNullable.of(lagoInvoiceId); + } + + public CustomerUsageObject currency(Currency currency) { this.currency = currency; @@ -297,6 +341,7 @@ public boolean equals(Object o) { return Objects.equals(this.fromDatetime, customerUsageObject.fromDatetime) && Objects.equals(this.toDatetime, customerUsageObject.toDatetime) && Objects.equals(this.issuingDate, customerUsageObject.issuingDate) && + equalsNullable(this.lagoInvoiceId, customerUsageObject.lagoInvoiceId) && Objects.equals(this.currency, customerUsageObject.currency) && Objects.equals(this.amountCents, customerUsageObject.amountCents) && Objects.equals(this.taxesAmountCents, customerUsageObject.taxesAmountCents) && @@ -304,9 +349,20 @@ public boolean equals(Object o) { Objects.equals(this.chargesUsage, customerUsageObject.chargesUsage); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(fromDatetime, toDatetime, issuingDate, currency, amountCents, taxesAmountCents, totalAmountCents, chargesUsage); + return Objects.hash(fromDatetime, toDatetime, issuingDate, hashCodeNullable(lagoInvoiceId), currency, amountCents, taxesAmountCents, totalAmountCents, chargesUsage); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -316,6 +372,7 @@ public String toString() { sb.append(" fromDatetime: ").append(toIndentedString(fromDatetime)).append("\n"); sb.append(" toDatetime: ").append(toIndentedString(toDatetime)).append("\n"); sb.append(" issuingDate: ").append(toIndentedString(issuingDate)).append("\n"); + sb.append(" lagoInvoiceId: ").append(toIndentedString(lagoInvoiceId)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append(" taxesAmountCents: ").append(toIndentedString(taxesAmountCents)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/CustomersPaginated.java b/src/main/java/org/openapitools/client/model/CustomersPaginated.java index 83ba0f3..5b7b2eb 100644 --- a/src/main/java/org/openapitools/client/model/CustomersPaginated.java +++ b/src/main/java/org/openapitools/client/model/CustomersPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.CustomerObjectExtended; import org.openapitools.client.model.PaginationMeta; @@ -34,7 +35,7 @@ CustomersPaginated.JSON_PROPERTY_CUSTOMERS, CustomersPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class CustomersPaginated { public static final String JSON_PROPERTY_CUSTOMERS = "customers"; private List customers = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/Event.java b/src/main/java/org/openapitools/client/model/Event.java index 4eee84f..d25fd27 100644 --- a/src/main/java/org/openapitools/client/model/Event.java +++ b/src/main/java/org/openapitools/client/model/Event.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Event.JSON_PROPERTY_EVENT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Event { public static final String JSON_PROPERTY_EVENT = "event"; private EventObject event; diff --git a/src/main/java/org/openapitools/client/model/EventBatchInput.java b/src/main/java/org/openapitools/client/model/EventBatchInput.java index fb1a64c..d6effd7 100644 --- a/src/main/java/org/openapitools/client/model/EventBatchInput.java +++ b/src/main/java/org/openapitools/client/model/EventBatchInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ EventBatchInput.JSON_PROPERTY_EVENT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventBatchInput { public static final String JSON_PROPERTY_EVENT = "event"; private EventBatchInputEvent event; diff --git a/src/main/java/org/openapitools/client/model/EventBatchInputEvent.java b/src/main/java/org/openapitools/client/model/EventBatchInputEvent.java index 95cbb63..302331b 100644 --- a/src/main/java/org/openapitools/client/model/EventBatchInputEvent.java +++ b/src/main/java/org/openapitools/client/model/EventBatchInputEvent.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.EventBatchInputEventProperties; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -38,7 +39,7 @@ EventBatchInputEvent.JSON_PROPERTY_PROPERTIES }) @JsonTypeName("EventBatchInput_event") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventBatchInputEvent { public static final String JSON_PROPERTY_TRANSACTION_ID = "transaction_id"; private String transactionId; diff --git a/src/main/java/org/openapitools/client/model/EventBatchInputEventProperties.java b/src/main/java/org/openapitools/client/model/EventBatchInputEventProperties.java index 2871324..1094096 100644 --- a/src/main/java/org/openapitools/client/model/EventBatchInputEventProperties.java +++ b/src/main/java/org/openapitools/client/model/EventBatchInputEventProperties.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ EventBatchInputEventProperties.JSON_PROPERTY_OPERATION_TYPE }) @JsonTypeName("EventBatchInput_event_properties") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventBatchInputEventProperties extends HashMap { /** * The `operation_type` field is only necessary when adding or removing a specific unit when the targeted billable metric adopts a `unique_count_agg` aggregation method. In other cases, the `operation_type` field is not required. The valid values for the `operation_type` field are `add` or `remove`, which indicate whether the unit is being added or removed from the unique count aggregation, respectively. diff --git a/src/main/java/org/openapitools/client/model/EventEstimateFeesInput.java b/src/main/java/org/openapitools/client/model/EventEstimateFeesInput.java index ab4b9bc..61f43e3 100644 --- a/src/main/java/org/openapitools/client/model/EventEstimateFeesInput.java +++ b/src/main/java/org/openapitools/client/model/EventEstimateFeesInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ EventEstimateFeesInput.JSON_PROPERTY_EVENT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventEstimateFeesInput { public static final String JSON_PROPERTY_EVENT = "event"; private EventEstimateFeesInputEvent event; diff --git a/src/main/java/org/openapitools/client/model/EventEstimateFeesInputEvent.java b/src/main/java/org/openapitools/client/model/EventEstimateFeesInputEvent.java index db536a7..90204f2 100644 --- a/src/main/java/org/openapitools/client/model/EventEstimateFeesInputEvent.java +++ b/src/main/java/org/openapitools/client/model/EventEstimateFeesInputEvent.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,7 +33,7 @@ EventEstimateFeesInputEvent.JSON_PROPERTY_PROPERTIES }) @JsonTypeName("EventEstimateFeesInput_event") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventEstimateFeesInputEvent { public static final String JSON_PROPERTY_CODE = "code"; private String code; diff --git a/src/main/java/org/openapitools/client/model/EventInput.java b/src/main/java/org/openapitools/client/model/EventInput.java index d17d658..1e1ca97 100644 --- a/src/main/java/org/openapitools/client/model/EventInput.java +++ b/src/main/java/org/openapitools/client/model/EventInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ EventInput.JSON_PROPERTY_EVENT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventInput { public static final String JSON_PROPERTY_EVENT = "event"; private EventInputEvent event; diff --git a/src/main/java/org/openapitools/client/model/EventInputEvent.java b/src/main/java/org/openapitools/client/model/EventInputEvent.java index d2409a9..4c92b8b 100644 --- a/src/main/java/org/openapitools/client/model/EventInputEvent.java +++ b/src/main/java/org/openapitools/client/model/EventInputEvent.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,9 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.EventBatchInputEventProperties; +import java.util.HashMap; +import java.util.Map; +import org.openapitools.client.model.EventInputEventTimestamp; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -36,7 +38,7 @@ EventInputEvent.JSON_PROPERTY_PROPERTIES }) @JsonTypeName("EventInput_event") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventInputEvent { public static final String JSON_PROPERTY_TRANSACTION_ID = "transaction_id"; private String transactionId; @@ -51,10 +53,10 @@ public class EventInputEvent { private String code; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private Integer timestamp; + private EventInputEventTimestamp timestamp; public static final String JSON_PROPERTY_PROPERTIES = "properties"; - private EventBatchInputEventProperties properties; + private Map properties = new HashMap<>(); public EventInputEvent() { } @@ -163,54 +165,62 @@ public void setCode(String code) { } - public EventInputEvent timestamp(Integer timestamp) { + public EventInputEvent timestamp(EventInputEventTimestamp timestamp) { this.timestamp = timestamp; return this; } /** - * This field captures the Unix timestamp in seconds indicating the occurrence of the event in Coordinated Universal Time (UTC). If this timestamp is not provided, the API will automatically set it to the time of event reception. + * Get timestamp * @return timestamp **/ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTimestamp() { + public EventInputEventTimestamp getTimestamp() { return timestamp; } @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(Integer timestamp) { + public void setTimestamp(EventInputEventTimestamp timestamp) { this.timestamp = timestamp; } - public EventInputEvent properties(EventBatchInputEventProperties properties) { + public EventInputEvent properties(Map properties) { this.properties = properties; return this; } + public EventInputEvent putPropertiesItem(String key, String propertiesItem) { + if (this.properties == null) { + this.properties = new HashMap<>(); + } + this.properties.put(key, propertiesItem); + return this; + } + /** - * Get properties + * This field represents additional properties associated with the event, which are utilized in the calculation of the final fee. This object becomes mandatory when the targeted billable metric employs a `sum_agg`, `max_agg`, or `unique_count_agg` aggregation method. However, when using a simple `count_agg`, this object is not required. * @return properties **/ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EventBatchInputEventProperties getProperties() { + public Map getProperties() { return properties; } @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperties(EventBatchInputEventProperties properties) { + public void setProperties(Map properties) { this.properties = properties; } diff --git a/src/main/java/org/openapitools/client/model/EventInputEventTimestamp.java b/src/main/java/org/openapitools/client/model/EventInputEventTimestamp.java new file mode 100644 index 0000000..ea07647 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/EventInputEventTimestamp.java @@ -0,0 +1,68 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * This field captures the Unix timestamp in seconds indicating the occurrence of the event in Coordinated Universal Time (UTC). If this timestamp is not provided, the API will automatically set it to the time of event reception. You can also provide miliseconds precision by appending decimals to the timestamp. + */ +@JsonPropertyOrder({ +}) +@JsonTypeName("EventInput_event_timestamp") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class EventInputEventTimestamp { + public EventInputEventTimestamp() { + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventInputEventTimestamp {\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/EventObject.java b/src/main/java/org/openapitools/client/model/EventObject.java index 4d3f80f..5f4eef9 100644 --- a/src/main/java/org/openapitools/client/model/EventObject.java +++ b/src/main/java/org/openapitools/client/model/EventObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.UUID; -import org.openapitools.client.model.EventBatchInputEventProperties; +import org.openapitools.client.model.EventObjectProperties; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -41,7 +41,7 @@ EventObject.JSON_PROPERTY_EXTERNAL_SUBSCRIPTION_ID, EventObject.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class EventObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -62,7 +62,7 @@ public class EventObject { private OffsetDateTime timestamp; public static final String JSON_PROPERTY_PROPERTIES = "properties"; - private EventBatchInputEventProperties properties; + private EventObjectProperties properties; public static final String JSON_PROPERTY_LAGO_SUBSCRIPTION_ID = "lago_subscription_id"; private UUID lagoSubscriptionId; @@ -138,7 +138,7 @@ public EventObject lagoCustomerId(UUID lagoCustomerId) { * Unique identifier assigned to the customer within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the customer's record within the Lago system * @return lagoCustomerId **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAGO_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -164,7 +164,7 @@ public EventObject externalCustomerId(String externalCustomerId) { * The customer external unique identifier (provided by your own application). This field is optional if you send the `external_subscription_id`, targeting a specific subscription. * @return externalCustomerId **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -232,7 +232,7 @@ public void setTimestamp(OffsetDateTime timestamp) { } - public EventObject properties(EventBatchInputEventProperties properties) { + public EventObject properties(EventObjectProperties properties) { this.properties = properties; return this; @@ -246,14 +246,14 @@ public EventObject properties(EventBatchInputEventProperties properties) { @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EventBatchInputEventProperties getProperties() { + public EventObjectProperties getProperties() { return properties; } @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperties(EventBatchInputEventProperties properties) { + public void setProperties(EventObjectProperties properties) { this.properties = properties; } @@ -268,7 +268,7 @@ public EventObject lagoSubscriptionId(UUID lagoSubscriptionId) { * Unique identifier assigned to the subscription within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the subscription’s record within the Lago system * @return lagoSubscriptionId **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAGO_SUBSCRIPTION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -294,7 +294,7 @@ public EventObject externalSubscriptionId(String externalSubscriptionId) { * The unique identifier of the subscription within your application. It is a mandatory field when the customer possesses multiple subscriptions or when the `external_customer_id` is not provided. * @return externalSubscriptionId **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXTERNAL_SUBSCRIPTION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/src/main/java/org/openapitools/client/model/EventObjectProperties.java b/src/main/java/org/openapitools/client/model/EventObjectProperties.java new file mode 100644 index 0000000..b4dead0 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/EventObjectProperties.java @@ -0,0 +1,144 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * This field represents additional properties associated with the event, which are utilized in the calculation of the final fee. This object becomes mandatory when the targeted billable metric employs a `sum_agg`, `max_agg`, or `unique_count_agg` aggregation method. However, when using a simple `count_agg`, this object is not required. + */ +@JsonPropertyOrder({ + EventObjectProperties.JSON_PROPERTY_OPERATION_TYPE +}) +@JsonTypeName("EventObject_properties") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class EventObjectProperties extends HashMap { + /** + * The `operation_type` field is only necessary when adding or removing a specific unit when the targeted billable metric adopts a `unique_count_agg` aggregation method. In other cases, the `operation_type` field is not required. The valid values for the `operation_type` field are `add` or `remove`, which indicate whether the unit is being added or removed from the unique count aggregation, respectively. + */ + public enum OperationTypeEnum { + ADD("add"), + + REMOVE("remove"); + + private String value; + + OperationTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OperationTypeEnum fromValue(String value) { + for (OperationTypeEnum b : OperationTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_OPERATION_TYPE = "operation_type"; + private OperationTypeEnum operationType; + + public EventObjectProperties() { + + } + + public EventObjectProperties operationType(OperationTypeEnum operationType) { + + this.operationType = operationType; + return this; + } + + /** + * The `operation_type` field is only necessary when adding or removing a specific unit when the targeted billable metric adopts a `unique_count_agg` aggregation method. In other cases, the `operation_type` field is not required. The valid values for the `operation_type` field are `add` or `remove`, which indicate whether the unit is being added or removed from the unique count aggregation, respectively. + * @return operationType + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPERATION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OperationTypeEnum getOperationType() { + return operationType; + } + + + @JsonProperty(JSON_PROPERTY_OPERATION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOperationType(OperationTypeEnum operationType) { + this.operationType = operationType; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventObjectProperties eventObjectProperties = (EventObjectProperties) o; + return Objects.equals(this.operationType, eventObjectProperties.operationType) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(operationType, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventObjectProperties {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" operationType: ").append(toIndentedString(operationType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/Fee.java b/src/main/java/org/openapitools/client/model/Fee.java index 1782306..ccf8aa2 100644 --- a/src/main/java/org/openapitools/client/model/Fee.java +++ b/src/main/java/org/openapitools/client/model/Fee.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Fee.JSON_PROPERTY_FEE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Fee { public static final String JSON_PROPERTY_FEE = "fee"; private FeeObject fee; diff --git a/src/main/java/org/openapitools/client/model/FeeAppliedTaxObject.java b/src/main/java/org/openapitools/client/model/FeeAppliedTaxObject.java index 246c687..0562a45 100644 --- a/src/main/java/org/openapitools/client/model/FeeAppliedTaxObject.java +++ b/src/main/java/org/openapitools/client/model/FeeAppliedTaxObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,7 +42,7 @@ FeeAppliedTaxObject.JSON_PROPERTY_AMOUNT_CURRENCY, FeeAppliedTaxObject.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class FeeAppliedTaxObject { public static final String JSON_PROPERTY_LAGO_FEE_ID = "lago_fee_id"; private UUID lagoFeeId; diff --git a/src/main/java/org/openapitools/client/model/FeeObject.java b/src/main/java/org/openapitools/client/model/FeeObject.java index 84a4199..12f35ff 100644 --- a/src/main/java/org/openapitools/client/model/FeeObject.java +++ b/src/main/java/org/openapitools/client/model/FeeObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -48,11 +49,13 @@ FeeObject.JSON_PROPERTY_LAGO_CUSTOMER_ID, FeeObject.JSON_PROPERTY_EXTERNAL_CUSTOMER_ID, FeeObject.JSON_PROPERTY_EXTERNAL_SUBSCRIPTION_ID, + FeeObject.JSON_PROPERTY_INVOICE_DISPLAY_NAME, FeeObject.JSON_PROPERTY_AMOUNT_CENTS, FeeObject.JSON_PROPERTY_AMOUNT_CURRENCY, FeeObject.JSON_PROPERTY_TAXES_AMOUNT_CENTS, FeeObject.JSON_PROPERTY_TAXES_RATE, FeeObject.JSON_PROPERTY_UNITS, + FeeObject.JSON_PROPERTY_PRECISE_UNIT_AMOUNT, FeeObject.JSON_PROPERTY_TOTAL_AMOUNT_CENTS, FeeObject.JSON_PROPERTY_TOTAL_AMOUNT_CURRENCY, FeeObject.JSON_PROPERTY_EVENTS_COUNT, @@ -69,7 +72,7 @@ FeeObject.JSON_PROPERTY_ITEM, FeeObject.JSON_PROPERTY_APPLIED_TAXES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class FeeObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private JsonNullable lagoId = JsonNullable.undefined(); @@ -98,6 +101,9 @@ public class FeeObject { public static final String JSON_PROPERTY_EXTERNAL_SUBSCRIPTION_ID = "external_subscription_id"; private JsonNullable externalSubscriptionId = JsonNullable.undefined(); + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; private Integer amountCents; @@ -113,6 +119,9 @@ public class FeeObject { public static final String JSON_PROPERTY_UNITS = "units"; private String units; + public static final String JSON_PROPERTY_PRECISE_UNIT_AMOUNT = "precise_unit_amount"; + private String preciseUnitAmount; + public static final String JSON_PROPERTY_TOTAL_AMOUNT_CENTS = "total_amount_cents"; private Integer totalAmountCents; @@ -377,7 +386,7 @@ public FeeObject lagoSubscriptionId(UUID lagoSubscriptionId) { } /** - * Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). + * Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge or subscription. * @return lagoSubscriptionId **/ @javax.annotation.Nullable @@ -411,7 +420,7 @@ public FeeObject lagoCustomerId(UUID lagoCustomerId) { } /** - * Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). + * Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge or subscription. * @return lagoCustomerId **/ @javax.annotation.Nullable @@ -445,7 +454,7 @@ public FeeObject externalCustomerId(String externalCustomerId) { } /** - * Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). + * Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge or subscription. * @return externalCustomerId **/ @javax.annotation.Nullable @@ -479,7 +488,7 @@ public FeeObject externalSubscriptionId(String externalSubscriptionId) { } /** - * Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true). + * Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge or subscription. * @return externalSubscriptionId **/ @javax.annotation.Nullable @@ -506,6 +515,32 @@ public void setExternalSubscriptionId(String externalSubscriptionId) { } + public FeeObject invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public FeeObject amountCents(Integer amountCents) { this.amountCents = amountCents; @@ -636,6 +671,32 @@ public void setUnits(String units) { } + public FeeObject preciseUnitAmount(String preciseUnitAmount) { + + this.preciseUnitAmount = preciseUnitAmount; + return this; + } + + /** + * The unit amount of the fee per unit, with precision. + * @return preciseUnitAmount + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PRECISE_UNIT_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getPreciseUnitAmount() { + return preciseUnitAmount; + } + + + @JsonProperty(JSON_PROPERTY_PRECISE_UNIT_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPreciseUnitAmount(String preciseUnitAmount) { + this.preciseUnitAmount = preciseUnitAmount; + } + + public FeeObject totalAmountCents(Integer totalAmountCents) { this.totalAmountCents = totalAmountCents; @@ -1107,11 +1168,13 @@ public boolean equals(Object o) { equalsNullable(this.lagoCustomerId, feeObject.lagoCustomerId) && equalsNullable(this.externalCustomerId, feeObject.externalCustomerId) && equalsNullable(this.externalSubscriptionId, feeObject.externalSubscriptionId) && + Objects.equals(this.invoiceDisplayName, feeObject.invoiceDisplayName) && Objects.equals(this.amountCents, feeObject.amountCents) && Objects.equals(this.amountCurrency, feeObject.amountCurrency) && Objects.equals(this.taxesAmountCents, feeObject.taxesAmountCents) && Objects.equals(this.taxesRate, feeObject.taxesRate) && Objects.equals(this.units, feeObject.units) && + Objects.equals(this.preciseUnitAmount, feeObject.preciseUnitAmount) && Objects.equals(this.totalAmountCents, feeObject.totalAmountCents) && Objects.equals(this.totalAmountCurrency, feeObject.totalAmountCurrency) && Objects.equals(this.eventsCount, feeObject.eventsCount) && @@ -1135,7 +1198,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(hashCodeNullable(lagoId), hashCodeNullable(lagoGroupId), hashCodeNullable(lagoInvoiceId), hashCodeNullable(lagoTrueUpFeeId), hashCodeNullable(lagoTrueUpParentFeeId), hashCodeNullable(lagoSubscriptionId), hashCodeNullable(lagoCustomerId), hashCodeNullable(externalCustomerId), hashCodeNullable(externalSubscriptionId), amountCents, amountCurrency, taxesAmountCents, taxesRate, units, totalAmountCents, totalAmountCurrency, eventsCount, payInAdvance, invoiceable, hashCodeNullable(fromDate), hashCodeNullable(toDate), paymentStatus, hashCodeNullable(createdAt), hashCodeNullable(succeededAt), hashCodeNullable(failedAt), hashCodeNullable(refundedAt), hashCodeNullable(eventTransactionId), item, appliedTaxes); + return Objects.hash(hashCodeNullable(lagoId), hashCodeNullable(lagoGroupId), hashCodeNullable(lagoInvoiceId), hashCodeNullable(lagoTrueUpFeeId), hashCodeNullable(lagoTrueUpParentFeeId), hashCodeNullable(lagoSubscriptionId), hashCodeNullable(lagoCustomerId), hashCodeNullable(externalCustomerId), hashCodeNullable(externalSubscriptionId), invoiceDisplayName, amountCents, amountCurrency, taxesAmountCents, taxesRate, units, preciseUnitAmount, totalAmountCents, totalAmountCurrency, eventsCount, payInAdvance, invoiceable, hashCodeNullable(fromDate), hashCodeNullable(toDate), paymentStatus, hashCodeNullable(createdAt), hashCodeNullable(succeededAt), hashCodeNullable(failedAt), hashCodeNullable(refundedAt), hashCodeNullable(eventTransactionId), item, appliedTaxes); } private static int hashCodeNullable(JsonNullable a) { @@ -1158,11 +1221,13 @@ public String toString() { sb.append(" lagoCustomerId: ").append(toIndentedString(lagoCustomerId)).append("\n"); sb.append(" externalCustomerId: ").append(toIndentedString(externalCustomerId)).append("\n"); sb.append(" externalSubscriptionId: ").append(toIndentedString(externalSubscriptionId)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); sb.append(" taxesAmountCents: ").append(toIndentedString(taxesAmountCents)).append("\n"); sb.append(" taxesRate: ").append(toIndentedString(taxesRate)).append("\n"); sb.append(" units: ").append(toIndentedString(units)).append("\n"); + sb.append(" preciseUnitAmount: ").append(toIndentedString(preciseUnitAmount)).append("\n"); sb.append(" totalAmountCents: ").append(toIndentedString(totalAmountCents)).append("\n"); sb.append(" totalAmountCurrency: ").append(toIndentedString(totalAmountCurrency)).append("\n"); sb.append(" eventsCount: ").append(toIndentedString(eventsCount)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/FeeObjectItem.java b/src/main/java/org/openapitools/client/model/FeeObjectItem.java index 1ef2b09..f6c93ed 100644 --- a/src/main/java/org/openapitools/client/model/FeeObjectItem.java +++ b/src/main/java/org/openapitools/client/model/FeeObjectItem.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,11 +31,13 @@ FeeObjectItem.JSON_PROPERTY_TYPE, FeeObjectItem.JSON_PROPERTY_CODE, FeeObjectItem.JSON_PROPERTY_NAME, + FeeObjectItem.JSON_PROPERTY_INVOICE_DISPLAY_NAME, + FeeObjectItem.JSON_PROPERTY_GROUP_INVOICE_DISPLAY_NAME, FeeObjectItem.JSON_PROPERTY_LAGO_ITEM_ID, FeeObjectItem.JSON_PROPERTY_ITEM_TYPE }) @JsonTypeName("FeeObject_item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class FeeObjectItem { /** * The fee type. Possible values are `add-on`, `charge`, `credit` or `subscription`. @@ -85,6 +87,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_NAME = "name"; private String name; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + + public static final String JSON_PROPERTY_GROUP_INVOICE_DISPLAY_NAME = "group_invoice_display_name"; + private String groupInvoiceDisplayName; + public static final String JSON_PROPERTY_LAGO_ITEM_ID = "lago_item_id"; private UUID lagoItemId; @@ -211,6 +219,58 @@ public void setName(String name) { } + public FeeObjectItem invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + + public FeeObjectItem groupInvoiceDisplayName(String groupInvoiceDisplayName) { + + this.groupInvoiceDisplayName = groupInvoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return groupInvoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getGroupInvoiceDisplayName() { + return groupInvoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_GROUP_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGroupInvoiceDisplayName(String groupInvoiceDisplayName) { + this.groupInvoiceDisplayName = groupInvoiceDisplayName; + } + + public FeeObjectItem lagoItemId(UUID lagoItemId) { this.lagoItemId = lagoItemId; @@ -274,13 +334,15 @@ public boolean equals(Object o) { return Objects.equals(this.type, feeObjectItem.type) && Objects.equals(this.code, feeObjectItem.code) && Objects.equals(this.name, feeObjectItem.name) && + Objects.equals(this.invoiceDisplayName, feeObjectItem.invoiceDisplayName) && + Objects.equals(this.groupInvoiceDisplayName, feeObjectItem.groupInvoiceDisplayName) && Objects.equals(this.lagoItemId, feeObjectItem.lagoItemId) && Objects.equals(this.itemType, feeObjectItem.itemType); } @Override public int hashCode() { - return Objects.hash(type, code, name, lagoItemId, itemType); + return Objects.hash(type, code, name, invoiceDisplayName, groupInvoiceDisplayName, lagoItemId, itemType); } @Override @@ -290,6 +352,8 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); + sb.append(" groupInvoiceDisplayName: ").append(toIndentedString(groupInvoiceDisplayName)).append("\n"); sb.append(" lagoItemId: ").append(toIndentedString(lagoItemId)).append("\n"); sb.append(" itemType: ").append(toIndentedString(itemType)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/openapitools/client/model/FeeUpdateInput.java b/src/main/java/org/openapitools/client/model/FeeUpdateInput.java index 94ea652..a151e8a 100644 --- a/src/main/java/org/openapitools/client/model/FeeUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/FeeUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ FeeUpdateInput.JSON_PROPERTY_FEE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class FeeUpdateInput { public static final String JSON_PROPERTY_FEE = "fee"; private FeeUpdateInputFee fee; diff --git a/src/main/java/org/openapitools/client/model/FeeUpdateInputFee.java b/src/main/java/org/openapitools/client/model/FeeUpdateInputFee.java index 90b9b8e..d50b6f2 100644 --- a/src/main/java/org/openapitools/client/model/FeeUpdateInputFee.java +++ b/src/main/java/org/openapitools/client/model/FeeUpdateInputFee.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ FeeUpdateInputFee.JSON_PROPERTY_PAYMENT_STATUS }) @JsonTypeName("FeeUpdateInput_fee") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class FeeUpdateInputFee { /** * The payment status of the fee. Possible values are `pending`, `succeeded`, `failed` or `refunded`. diff --git a/src/main/java/org/openapitools/client/model/Fees.java b/src/main/java/org/openapitools/client/model/Fees.java index 94773a2..765d62c 100644 --- a/src/main/java/org/openapitools/client/model/Fees.java +++ b/src/main/java/org/openapitools/client/model/Fees.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.FeeObject; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -32,7 +33,7 @@ @JsonPropertyOrder({ Fees.JSON_PROPERTY_FEES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Fees { public static final String JSON_PROPERTY_FEES = "fees"; private List fees = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/FeesPaginated.java b/src/main/java/org/openapitools/client/model/FeesPaginated.java index 1994630..e659010 100644 --- a/src/main/java/org/openapitools/client/model/FeesPaginated.java +++ b/src/main/java/org/openapitools/client/model/FeesPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.FeeObject; import org.openapitools.client.model.PaginationMeta; @@ -34,7 +35,7 @@ FeesPaginated.JSON_PROPERTY_FEES, FeesPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class FeesPaginated { public static final String JSON_PROPERTY_FEES = "fees"; private List fees = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200Response.java b/src/main/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200Response.java new file mode 100644 index 0000000..c179030 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200Response.java @@ -0,0 +1,200 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * . + */ +@JsonPropertyOrder({ + GenerateCustomerCheckoutURL200Response.JSON_PROPERTY_LAGO_CUSTOMER_ID, + GenerateCustomerCheckoutURL200Response.JSON_PROPERTY_EXTERNAL_CUSTOMER_ID, + GenerateCustomerCheckoutURL200Response.JSON_PROPERTY_PAYMENT_PROVIDER, + GenerateCustomerCheckoutURL200Response.JSON_PROPERTY_CHECKOUT_URL +}) +@JsonTypeName("generateCustomerCheckoutURL_200_response") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class GenerateCustomerCheckoutURL200Response { + public static final String JSON_PROPERTY_LAGO_CUSTOMER_ID = "lago_customer_id"; + private String lagoCustomerId; + + public static final String JSON_PROPERTY_EXTERNAL_CUSTOMER_ID = "external_customer_id"; + private String externalCustomerId; + + public static final String JSON_PROPERTY_PAYMENT_PROVIDER = "payment_provider"; + private String paymentProvider; + + public static final String JSON_PROPERTY_CHECKOUT_URL = "checkout_url"; + private String checkoutUrl; + + public GenerateCustomerCheckoutURL200Response() { + } + + public GenerateCustomerCheckoutURL200Response lagoCustomerId(String lagoCustomerId) { + + this.lagoCustomerId = lagoCustomerId; + return this; + } + + /** + * Unique identifier assigned to the customer within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the customer's record within the Lago system + * @return lagoCustomerId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LAGO_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLagoCustomerId() { + return lagoCustomerId; + } + + + @JsonProperty(JSON_PROPERTY_LAGO_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLagoCustomerId(String lagoCustomerId) { + this.lagoCustomerId = lagoCustomerId; + } + + + public GenerateCustomerCheckoutURL200Response externalCustomerId(String externalCustomerId) { + + this.externalCustomerId = externalCustomerId; + return this; + } + + /** + * The customer external unique identifier (provided by your own application) + * @return externalCustomerId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getExternalCustomerId() { + return externalCustomerId; + } + + + @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExternalCustomerId(String externalCustomerId) { + this.externalCustomerId = externalCustomerId; + } + + + public GenerateCustomerCheckoutURL200Response paymentProvider(String paymentProvider) { + + this.paymentProvider = paymentProvider; + return this; + } + + /** + * The Payment Provider name linked to the Customer. + * @return paymentProvider + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PAYMENT_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPaymentProvider() { + return paymentProvider; + } + + + @JsonProperty(JSON_PROPERTY_PAYMENT_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPaymentProvider(String paymentProvider) { + this.paymentProvider = paymentProvider; + } + + + public GenerateCustomerCheckoutURL200Response checkoutUrl(String checkoutUrl) { + + this.checkoutUrl = checkoutUrl; + return this; + } + + /** + * The new generated Payment Provider Checkout URL for the Customer. + * @return checkoutUrl + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CHECKOUT_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCheckoutUrl() { + return checkoutUrl; + } + + + @JsonProperty(JSON_PROPERTY_CHECKOUT_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCheckoutUrl(String checkoutUrl) { + this.checkoutUrl = checkoutUrl; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenerateCustomerCheckoutURL200Response generateCustomerCheckoutURL200Response = (GenerateCustomerCheckoutURL200Response) o; + return Objects.equals(this.lagoCustomerId, generateCustomerCheckoutURL200Response.lagoCustomerId) && + Objects.equals(this.externalCustomerId, generateCustomerCheckoutURL200Response.externalCustomerId) && + Objects.equals(this.paymentProvider, generateCustomerCheckoutURL200Response.paymentProvider) && + Objects.equals(this.checkoutUrl, generateCustomerCheckoutURL200Response.checkoutUrl); + } + + @Override + public int hashCode() { + return Objects.hash(lagoCustomerId, externalCustomerId, paymentProvider, checkoutUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenerateCustomerCheckoutURL200Response {\n"); + sb.append(" lagoCustomerId: ").append(toIndentedString(lagoCustomerId)).append("\n"); + sb.append(" externalCustomerId: ").append(toIndentedString(externalCustomerId)).append("\n"); + sb.append(" paymentProvider: ").append(toIndentedString(paymentProvider)).append("\n"); + sb.append(" checkoutUrl: ").append(toIndentedString(checkoutUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200Response.java b/src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200Response.java index 5eb504b..22a41c1 100644 --- a/src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200Response.java +++ b/src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200Response.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ GetCustomerPortalUrl200Response.JSON_PROPERTY_CUSTOMER }) @JsonTypeName("getCustomerPortalUrl_200_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class GetCustomerPortalUrl200Response { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private GetCustomerPortalUrl200ResponseCustomer customer; diff --git a/src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomer.java b/src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomer.java index 4b0089d..815886d 100644 --- a/src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomer.java +++ b/src/main/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomer.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ GetCustomerPortalUrl200ResponseCustomer.JSON_PROPERTY_PORTAL_URL }) @JsonTypeName("getCustomerPortalUrl_200_response_customer") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class GetCustomerPortalUrl200ResponseCustomer { public static final String JSON_PROPERTY_PORTAL_URL = "portal_url"; private String portalUrl; diff --git a/src/main/java/org/openapitools/client/model/GrossRevenueObject.java b/src/main/java/org/openapitools/client/model/GrossRevenueObject.java new file mode 100644 index 0000000..526a264 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/GrossRevenueObject.java @@ -0,0 +1,168 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.Currency; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * GrossRevenueObject + */ +@JsonPropertyOrder({ + GrossRevenueObject.JSON_PROPERTY_MONTH, + GrossRevenueObject.JSON_PROPERTY_AMOUNT_CENTS, + GrossRevenueObject.JSON_PROPERTY_CURRENCY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class GrossRevenueObject { + public static final String JSON_PROPERTY_MONTH = "month"; + private String month; + + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; + private Integer amountCents; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private Currency currency; + + public GrossRevenueObject() { + } + + public GrossRevenueObject month(String month) { + + this.month = month; + return this; + } + + /** + * Identifies the month to analyze revenue. + * @return month + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMonth() { + return month; + } + + + @JsonProperty(JSON_PROPERTY_MONTH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonth(String month) { + this.month = month; + } + + + public GrossRevenueObject amountCents(Integer amountCents) { + + this.amountCents = amountCents; + return this; + } + + /** + * The total amount of revenue for a period, expressed in cents. + * @return amountCents + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getAmountCents() { + return amountCents; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmountCents(Integer amountCents) { + this.amountCents = amountCents; + } + + + public GrossRevenueObject currency(Currency currency) { + + this.currency = currency; + return this; + } + + /** + * Get currency + * @return currency + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Currency getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrency(Currency currency) { + this.currency = currency; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GrossRevenueObject grossRevenueObject = (GrossRevenueObject) o; + return Objects.equals(this.month, grossRevenueObject.month) && + Objects.equals(this.amountCents, grossRevenueObject.amountCents) && + Objects.equals(this.currency, grossRevenueObject.currency); + } + + @Override + public int hashCode() { + return Objects.hash(month, amountCents, currency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GrossRevenueObject {\n"); + sb.append(" month: ").append(toIndentedString(month)).append("\n"); + sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/GrossRevenues.java b/src/main/java/org/openapitools/client/model/GrossRevenues.java new file mode 100644 index 0000000..d768fa6 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/GrossRevenues.java @@ -0,0 +1,115 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.GrossRevenueObject; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * GrossRevenues + */ +@JsonPropertyOrder({ + GrossRevenues.JSON_PROPERTY_GROSS_REVENUES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class GrossRevenues { + public static final String JSON_PROPERTY_GROSS_REVENUES = "gross_revenues"; + private List grossRevenues = new ArrayList<>(); + + public GrossRevenues() { + } + + public GrossRevenues grossRevenues(List grossRevenues) { + + this.grossRevenues = grossRevenues; + return this; + } + + public GrossRevenues addGrossRevenuesItem(GrossRevenueObject grossRevenuesItem) { + if (this.grossRevenues == null) { + this.grossRevenues = new ArrayList<>(); + } + this.grossRevenues.add(grossRevenuesItem); + return this; + } + + /** + * Get grossRevenues + * @return grossRevenues + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_GROSS_REVENUES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getGrossRevenues() { + return grossRevenues; + } + + + @JsonProperty(JSON_PROPERTY_GROSS_REVENUES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setGrossRevenues(List grossRevenues) { + this.grossRevenues = grossRevenues; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GrossRevenues grossRevenues = (GrossRevenues) o; + return Objects.equals(this.grossRevenues, grossRevenues.grossRevenues); + } + + @Override + public int hashCode() { + return Objects.hash(grossRevenues); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GrossRevenues {\n"); + sb.append(" grossRevenues: ").append(toIndentedString(grossRevenues)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/GroupObject.java b/src/main/java/org/openapitools/client/model/GroupObject.java index cf661dd..345d6c8 100644 --- a/src/main/java/org/openapitools/client/model/GroupObject.java +++ b/src/main/java/org/openapitools/client/model/GroupObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ GroupObject.JSON_PROPERTY_KEY, GroupObject.JSON_PROPERTY_VALUE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class GroupObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/GroupPropertiesObject.java b/src/main/java/org/openapitools/client/model/GroupPropertiesObject.java index 49a1ef9..f6726c0 100644 --- a/src/main/java/org/openapitools/client/model/GroupPropertiesObject.java +++ b/src/main/java/org/openapitools/client/model/GroupPropertiesObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,13 +30,17 @@ */ @JsonPropertyOrder({ GroupPropertiesObject.JSON_PROPERTY_GROUP_ID, + GroupPropertiesObject.JSON_PROPERTY_INVOICE_DISPLAY_NAME, GroupPropertiesObject.JSON_PROPERTY_VALUES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class GroupPropertiesObject { public static final String JSON_PROPERTY_GROUP_ID = "group_id"; private UUID groupId; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_VALUES = "values"; private GroupPropertiesObjectValues values; @@ -69,6 +73,32 @@ public void setGroupId(UUID groupId) { } + public GroupPropertiesObject invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual group will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public GroupPropertiesObject values(GroupPropertiesObjectValues values) { this.values = values; @@ -104,12 +134,13 @@ public boolean equals(Object o) { } GroupPropertiesObject groupPropertiesObject = (GroupPropertiesObject) o; return Objects.equals(this.groupId, groupPropertiesObject.groupId) && + Objects.equals(this.invoiceDisplayName, groupPropertiesObject.invoiceDisplayName) && Objects.equals(this.values, groupPropertiesObject.values); } @Override public int hashCode() { - return Objects.hash(groupId, values); + return Objects.hash(groupId, invoiceDisplayName, values); } @Override @@ -117,6 +148,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GroupPropertiesObject {\n"); sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/openapitools/client/model/GroupPropertiesObjectValues.java b/src/main/java/org/openapitools/client/model/GroupPropertiesObjectValues.java index bf87abd..543f61f 100644 --- a/src/main/java/org/openapitools/client/model/GroupPropertiesObjectValues.java +++ b/src/main/java/org/openapitools/client/model/GroupPropertiesObjectValues.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ChargePropertiesGraduatedPercentageRangesInner; import org.openapitools.client.model.ChargePropertiesGraduatedRangesInner; @@ -50,7 +51,7 @@ GroupPropertiesObjectValues.JSON_PROPERTY_VOLUME_RANGES }) @JsonTypeName("GroupPropertiesObject_values") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class GroupPropertiesObjectValues { public static final String JSON_PROPERTY_GRADUATED_RANGES = "graduated_ranges"; private List graduatedRanges; diff --git a/src/main/java/org/openapitools/client/model/GroupsPaginated.java b/src/main/java/org/openapitools/client/model/GroupsPaginated.java index 52082cf..4c4cdc8 100644 --- a/src/main/java/org/openapitools/client/model/GroupsPaginated.java +++ b/src/main/java/org/openapitools/client/model/GroupsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.GroupObject; import org.openapitools.client.model.PaginationMeta; @@ -34,7 +35,7 @@ GroupsPaginated.JSON_PROPERTY_GROUPS, GroupsPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class GroupsPaginated { public static final String JSON_PROPERTY_GROUPS = "groups"; private List groups = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/Invoice.java b/src/main/java/org/openapitools/client/model/Invoice.java index 317999d..81b18f7 100644 --- a/src/main/java/org/openapitools/client/model/Invoice.java +++ b/src/main/java/org/openapitools/client/model/Invoice.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Invoice.JSON_PROPERTY_INVOICE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Invoice { public static final String JSON_PROPERTY_INVOICE = "invoice"; private InvoiceObjectExtended invoice; diff --git a/src/main/java/org/openapitools/client/model/InvoiceAppliedTaxObject.java b/src/main/java/org/openapitools/client/model/InvoiceAppliedTaxObject.java index 8e54489..fc98d8a 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceAppliedTaxObject.java +++ b/src/main/java/org/openapitools/client/model/InvoiceAppliedTaxObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -43,7 +43,7 @@ InvoiceAppliedTaxObject.JSON_PROPERTY_AMOUNT_CURRENCY, InvoiceAppliedTaxObject.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceAppliedTaxObject { public static final String JSON_PROPERTY_LAGO_INVOICE_ID = "lago_invoice_id"; private UUID lagoInvoiceId; diff --git a/src/main/java/org/openapitools/client/model/InvoiceMetadataObject.java b/src/main/java/org/openapitools/client/model/InvoiceMetadataObject.java index 0a07470..15d6332 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceMetadataObject.java +++ b/src/main/java/org/openapitools/client/model/InvoiceMetadataObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,7 @@ InvoiceMetadataObject.JSON_PROPERTY_VALUE, InvoiceMetadataObject.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceMetadataObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/InvoiceObject.java b/src/main/java/org/openapitools/client/model/InvoiceObject.java index bbd1eff..1aa9938 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceObject.java +++ b/src/main/java/org/openapitools/client/model/InvoiceObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.net.URI; import java.time.LocalDate; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -60,7 +61,7 @@ InvoiceObject.JSON_PROPERTY_METADATA, InvoiceObject.JSON_PROPERTY_APPLIED_TAXES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/InvoiceObjectCustomer.java b/src/main/java/org/openapitools/client/model/InvoiceObjectCustomer.java index 860ca97..619ad42 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceObjectCustomer.java +++ b/src/main/java/org/openapitools/client/model/InvoiceObjectCustomer.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Country; @@ -68,7 +69,7 @@ InvoiceObjectCustomer.JSON_PROPERTY_METADATA }) @JsonTypeName("InvoiceObject_customer") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceObjectCustomer { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/InvoiceObjectExtended.java b/src/main/java/org/openapitools/client/model/InvoiceObjectExtended.java index d5cc8fa..1322adb 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceObjectExtended.java +++ b/src/main/java/org/openapitools/client/model/InvoiceObjectExtended.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.net.URI; import java.time.LocalDate; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.CreditObject; @@ -66,7 +67,7 @@ InvoiceObjectExtended.JSON_PROPERTY_FEES, InvoiceObjectExtended.JSON_PROPERTY_SUBSCRIPTIONS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceObjectExtended { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInput.java b/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInput.java index a711875..7ccb474 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInput.java +++ b/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ InvoiceOneOffCreateInput.JSON_PROPERTY_INVOICE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceOneOffCreateInput { public static final String JSON_PROPERTY_INVOICE = "invoice"; private InvoiceOneOffCreateInputInvoice invoice; diff --git a/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoice.java b/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoice.java index 8035e1a..8b64e61 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoice.java +++ b/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoice.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.client.model.InvoiceOneOffCreateInputInvoiceFeesInner; @@ -36,7 +37,7 @@ InvoiceOneOffCreateInputInvoice.JSON_PROPERTY_FEES }) @JsonTypeName("InvoiceOneOffCreateInput_invoice") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceOneOffCreateInputInvoice { public static final String JSON_PROPERTY_EXTERNAL_CUSTOMER_ID = "external_customer_id"; private String externalCustomerId; diff --git a/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesInner.java b/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesInner.java index 2851f78..776c49a 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesInner.java +++ b/src/main/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -34,17 +35,21 @@ */ @JsonPropertyOrder({ InvoiceOneOffCreateInputInvoiceFeesInner.JSON_PROPERTY_ADD_ON_CODE, + InvoiceOneOffCreateInputInvoiceFeesInner.JSON_PROPERTY_INVOICE_DISPLAY_NAME, InvoiceOneOffCreateInputInvoiceFeesInner.JSON_PROPERTY_UNIT_AMOUNT_CENTS, InvoiceOneOffCreateInputInvoiceFeesInner.JSON_PROPERTY_UNITS, InvoiceOneOffCreateInputInvoiceFeesInner.JSON_PROPERTY_DESCRIPTION, InvoiceOneOffCreateInputInvoiceFeesInner.JSON_PROPERTY_TAX_CODES }) @JsonTypeName("InvoiceOneOffCreateInput_invoice_fees_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceOneOffCreateInputInvoiceFeesInner { public static final String JSON_PROPERTY_ADD_ON_CODE = "add_on_code"; private String addOnCode; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_UNIT_AMOUNT_CENTS = "unit_amount_cents"; private JsonNullable unitAmountCents = JsonNullable.undefined(); @@ -86,6 +91,32 @@ public void setAddOnCode(String addOnCode) { } + public InvoiceOneOffCreateInputInvoiceFeesInner invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public InvoiceOneOffCreateInputInvoiceFeesInner unitAmountCents(Integer unitAmountCents) { this.unitAmountCents = JsonNullable.of(unitAmountCents); @@ -231,6 +262,7 @@ public boolean equals(Object o) { } InvoiceOneOffCreateInputInvoiceFeesInner invoiceOneOffCreateInputInvoiceFeesInner = (InvoiceOneOffCreateInputInvoiceFeesInner) o; return Objects.equals(this.addOnCode, invoiceOneOffCreateInputInvoiceFeesInner.addOnCode) && + Objects.equals(this.invoiceDisplayName, invoiceOneOffCreateInputInvoiceFeesInner.invoiceDisplayName) && equalsNullable(this.unitAmountCents, invoiceOneOffCreateInputInvoiceFeesInner.unitAmountCents) && equalsNullable(this.units, invoiceOneOffCreateInputInvoiceFeesInner.units) && equalsNullable(this.description, invoiceOneOffCreateInputInvoiceFeesInner.description) && @@ -243,7 +275,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(addOnCode, hashCodeNullable(unitAmountCents), hashCodeNullable(units), hashCodeNullable(description), taxCodes); + return Objects.hash(addOnCode, invoiceDisplayName, hashCodeNullable(unitAmountCents), hashCodeNullable(units), hashCodeNullable(description), taxCodes); } private static int hashCodeNullable(JsonNullable a) { @@ -258,6 +290,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InvoiceOneOffCreateInputInvoiceFeesInner {\n"); sb.append(" addOnCode: ").append(toIndentedString(addOnCode)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" unitAmountCents: ").append(toIndentedString(unitAmountCents)).append("\n"); sb.append(" units: ").append(toIndentedString(units)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/InvoiceUpdateInput.java b/src/main/java/org/openapitools/client/model/InvoiceUpdateInput.java index f35d9d2..7ce2e78 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/InvoiceUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ InvoiceUpdateInput.JSON_PROPERTY_INVOICE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceUpdateInput { public static final String JSON_PROPERTY_INVOICE = "invoice"; private InvoiceUpdateInputInvoice invoice; diff --git a/src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoice.java b/src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoice.java index f9e0110..9ec7b40 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoice.java +++ b/src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoice.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.InvoiceUpdateInputInvoiceMetadataInner; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -34,7 +35,7 @@ InvoiceUpdateInputInvoice.JSON_PROPERTY_METADATA }) @JsonTypeName("InvoiceUpdateInput_invoice") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceUpdateInputInvoice { /** * The payment status of the invoice. Possible values are `pending`, `failed` or `succeeded`. diff --git a/src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInner.java b/src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInner.java index b49fbd7..721ad6b 100644 --- a/src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInner.java +++ b/src/main/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,7 +33,7 @@ InvoiceUpdateInputInvoiceMetadataInner.JSON_PROPERTY_VALUE }) @JsonTypeName("InvoiceUpdateInput_invoice_metadata_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoiceUpdateInputInvoiceMetadataInner { public static final String JSON_PROPERTY_ID = "id"; private UUID id; diff --git a/src/main/java/org/openapitools/client/model/InvoicedUsageObject.java b/src/main/java/org/openapitools/client/model/InvoicedUsageObject.java new file mode 100644 index 0000000..5f7be5d --- /dev/null +++ b/src/main/java/org/openapitools/client/model/InvoicedUsageObject.java @@ -0,0 +1,200 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.Currency; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * InvoicedUsageObject + */ +@JsonPropertyOrder({ + InvoicedUsageObject.JSON_PROPERTY_MONTH, + InvoicedUsageObject.JSON_PROPERTY_CODE, + InvoicedUsageObject.JSON_PROPERTY_AMOUNT_CENTS, + InvoicedUsageObject.JSON_PROPERTY_CURRENCY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class InvoicedUsageObject { + public static final String JSON_PROPERTY_MONTH = "month"; + private String month; + + public static final String JSON_PROPERTY_CODE = "code"; + private String code; + + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; + private Integer amountCents; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private Currency currency; + + public InvoicedUsageObject() { + } + + public InvoicedUsageObject month(String month) { + + this.month = month; + return this; + } + + /** + * Identifies the month to analyze revenue. + * @return month + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMonth() { + return month; + } + + + @JsonProperty(JSON_PROPERTY_MONTH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonth(String month) { + this.month = month; + } + + + public InvoicedUsageObject code(String code) { + + this.code = code; + return this; + } + + /** + * The code of the usage-based billable metrics. + * @return code + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCode(String code) { + this.code = code; + } + + + public InvoicedUsageObject amountCents(Integer amountCents) { + + this.amountCents = amountCents; + return this; + } + + /** + * The total amount of revenue for a period, expressed in cents. + * @return amountCents + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getAmountCents() { + return amountCents; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmountCents(Integer amountCents) { + this.amountCents = amountCents; + } + + + public InvoicedUsageObject currency(Currency currency) { + + this.currency = currency; + return this; + } + + /** + * Get currency + * @return currency + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Currency getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCurrency(Currency currency) { + this.currency = currency; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvoicedUsageObject invoicedUsageObject = (InvoicedUsageObject) o; + return Objects.equals(this.month, invoicedUsageObject.month) && + Objects.equals(this.code, invoicedUsageObject.code) && + Objects.equals(this.amountCents, invoicedUsageObject.amountCents) && + Objects.equals(this.currency, invoicedUsageObject.currency); + } + + @Override + public int hashCode() { + return Objects.hash(month, code, amountCents, currency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvoicedUsageObject {\n"); + sb.append(" month: ").append(toIndentedString(month)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/InvoicedUsages.java b/src/main/java/org/openapitools/client/model/InvoicedUsages.java new file mode 100644 index 0000000..af0b12d --- /dev/null +++ b/src/main/java/org/openapitools/client/model/InvoicedUsages.java @@ -0,0 +1,115 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.InvoicedUsageObject; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * InvoicedUsages + */ +@JsonPropertyOrder({ + InvoicedUsages.JSON_PROPERTY_INVOICED_USAGES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class InvoicedUsages { + public static final String JSON_PROPERTY_INVOICED_USAGES = "invoiced_usages"; + private List invoicedUsages = new ArrayList<>(); + + public InvoicedUsages() { + } + + public InvoicedUsages invoicedUsages(List invoicedUsages) { + + this.invoicedUsages = invoicedUsages; + return this; + } + + public InvoicedUsages addInvoicedUsagesItem(InvoicedUsageObject invoicedUsagesItem) { + if (this.invoicedUsages == null) { + this.invoicedUsages = new ArrayList<>(); + } + this.invoicedUsages.add(invoicedUsagesItem); + return this; + } + + /** + * Get invoicedUsages + * @return invoicedUsages + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_INVOICED_USAGES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getInvoicedUsages() { + return invoicedUsages; + } + + + @JsonProperty(JSON_PROPERTY_INVOICED_USAGES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setInvoicedUsages(List invoicedUsages) { + this.invoicedUsages = invoicedUsages; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvoicedUsages invoicedUsages = (InvoicedUsages) o; + return Objects.equals(this.invoicedUsages, invoicedUsages.invoicedUsages); + } + + @Override + public int hashCode() { + return Objects.hash(invoicedUsages); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvoicedUsages {\n"); + sb.append(" invoicedUsages: ").append(toIndentedString(invoicedUsages)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/InvoicesPaginated.java b/src/main/java/org/openapitools/client/model/InvoicesPaginated.java index c37e311..b1b7573 100644 --- a/src/main/java/org/openapitools/client/model/InvoicesPaginated.java +++ b/src/main/java/org/openapitools/client/model/InvoicesPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.InvoiceObject; import org.openapitools.client.model.PaginationMeta; @@ -34,7 +35,7 @@ InvoicesPaginated.JSON_PROPERTY_INVOICES, InvoicesPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class InvoicesPaginated { public static final String JSON_PROPERTY_INVOICES = "invoices"; private List invoices = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/MrrObject.java b/src/main/java/org/openapitools/client/model/MrrObject.java new file mode 100644 index 0000000..f190a6e --- /dev/null +++ b/src/main/java/org/openapitools/client/model/MrrObject.java @@ -0,0 +1,168 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.Currency; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * MrrObject + */ +@JsonPropertyOrder({ + MrrObject.JSON_PROPERTY_MONTH, + MrrObject.JSON_PROPERTY_AMOUNT_CENTS, + MrrObject.JSON_PROPERTY_CURRENCY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class MrrObject { + public static final String JSON_PROPERTY_MONTH = "month"; + private String month; + + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; + private Integer amountCents; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private Currency currency; + + public MrrObject() { + } + + public MrrObject month(String month) { + + this.month = month; + return this; + } + + /** + * Identifies the month to analyze MRR. + * @return month + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMonth() { + return month; + } + + + @JsonProperty(JSON_PROPERTY_MONTH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonth(String month) { + this.month = month; + } + + + public MrrObject amountCents(Integer amountCents) { + + this.amountCents = amountCents; + return this; + } + + /** + * The total amount of MRR, expressed in cents. + * @return amountCents + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getAmountCents() { + return amountCents; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmountCents(Integer amountCents) { + this.amountCents = amountCents; + } + + + public MrrObject currency(Currency currency) { + + this.currency = currency; + return this; + } + + /** + * Get currency + * @return currency + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Currency getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrency(Currency currency) { + this.currency = currency; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MrrObject mrrObject = (MrrObject) o; + return Objects.equals(this.month, mrrObject.month) && + Objects.equals(this.amountCents, mrrObject.amountCents) && + Objects.equals(this.currency, mrrObject.currency); + } + + @Override + public int hashCode() { + return Objects.hash(month, amountCents, currency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MrrObject {\n"); + sb.append(" month: ").append(toIndentedString(month)).append("\n"); + sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/AppliedAddOn.java b/src/main/java/org/openapitools/client/model/Mrrs.java similarity index 60% rename from src/main/java/org/openapitools/client/model/AppliedAddOn.java rename to src/main/java/org/openapitools/client/model/Mrrs.java index 3084205..471c576 100644 --- a/src/main/java/org/openapitools/client/model/AppliedAddOn.java +++ b/src/main/java/org/openapitools/client/model/Mrrs.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,47 +20,58 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.AppliedAddOnObject; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.MrrObject; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** - * AppliedAddOn + * Mrrs */ @JsonPropertyOrder({ - AppliedAddOn.JSON_PROPERTY_APPLIED_ADD_ON + Mrrs.JSON_PROPERTY_MRRS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class AppliedAddOn { - public static final String JSON_PROPERTY_APPLIED_ADD_ON = "applied_add_on"; - private AppliedAddOnObject appliedAddOn; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class Mrrs { + public static final String JSON_PROPERTY_MRRS = "mrrs"; + private List mrrs = new ArrayList<>(); - public AppliedAddOn() { + public Mrrs() { } - public AppliedAddOn appliedAddOn(AppliedAddOnObject appliedAddOn) { + public Mrrs mrrs(List mrrs) { - this.appliedAddOn = appliedAddOn; + this.mrrs = mrrs; + return this; + } + + public Mrrs addMrrsItem(MrrObject mrrsItem) { + if (this.mrrs == null) { + this.mrrs = new ArrayList<>(); + } + this.mrrs.add(mrrsItem); return this; } /** - * Get appliedAddOn - * @return appliedAddOn + * Get mrrs + * @return mrrs **/ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_APPLIED_ADD_ON) + @JsonProperty(JSON_PROPERTY_MRRS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AppliedAddOnObject getAppliedAddOn() { - return appliedAddOn; + public List getMrrs() { + return mrrs; } - @JsonProperty(JSON_PROPERTY_APPLIED_ADD_ON) + @JsonProperty(JSON_PROPERTY_MRRS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAppliedAddOn(AppliedAddOnObject appliedAddOn) { - this.appliedAddOn = appliedAddOn; + public void setMrrs(List mrrs) { + this.mrrs = mrrs; } @Override @@ -71,20 +82,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AppliedAddOn appliedAddOn = (AppliedAddOn) o; - return Objects.equals(this.appliedAddOn, appliedAddOn.appliedAddOn); + Mrrs mrrs = (Mrrs) o; + return Objects.equals(this.mrrs, mrrs.mrrs); } @Override public int hashCode() { - return Objects.hash(appliedAddOn); + return Objects.hash(mrrs); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AppliedAddOn {\n"); - sb.append(" appliedAddOn: ").append(toIndentedString(appliedAddOn)).append("\n"); + sb.append("class Mrrs {\n"); + sb.append(" mrrs: ").append(toIndentedString(mrrs)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/openapitools/client/model/Organization.java b/src/main/java/org/openapitools/client/model/Organization.java index 2b70fa5..6c8927a 100644 --- a/src/main/java/org/openapitools/client/model/Organization.java +++ b/src/main/java/org/openapitools/client/model/Organization.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Organization.JSON_PROPERTY_ORGANIZATION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Organization { public static final String JSON_PROPERTY_ORGANIZATION = "organization"; private OrganizationObject organization; diff --git a/src/main/java/org/openapitools/client/model/OrganizationBillingConfiguration.java b/src/main/java/org/openapitools/client/model/OrganizationBillingConfiguration.java index 2bb4863..399eec9 100644 --- a/src/main/java/org/openapitools/client/model/OrganizationBillingConfiguration.java +++ b/src/main/java/org/openapitools/client/model/OrganizationBillingConfiguration.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -35,7 +35,7 @@ OrganizationBillingConfiguration.JSON_PROPERTY_INVOICE_GRACE_PERIOD, OrganizationBillingConfiguration.JSON_PROPERTY_DOCUMENT_LOCALE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class OrganizationBillingConfiguration { public static final String JSON_PROPERTY_INVOICE_FOOTER = "invoice_footer"; private JsonNullable invoiceFooter = JsonNullable.undefined(); diff --git a/src/main/java/org/openapitools/client/model/OrganizationObject.java b/src/main/java/org/openapitools/client/model/OrganizationObject.java index 08056cc..c55f9b6 100644 --- a/src/main/java/org/openapitools/client/model/OrganizationObject.java +++ b/src/main/java/org/openapitools/client/model/OrganizationObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,9 +22,11 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Country; +import org.openapitools.client.model.Currency; import org.openapitools.client.model.OrganizationBillingConfiguration; import org.openapitools.client.model.TaxObject; import org.openapitools.client.model.Timezone; @@ -45,6 +47,7 @@ OrganizationObject.JSON_PROPERTY_WEBHOOK_URL, OrganizationObject.JSON_PROPERTY_WEBHOOK_URLS, OrganizationObject.JSON_PROPERTY_COUNTRY, + OrganizationObject.JSON_PROPERTY_DEFAULT_CURRENCY, OrganizationObject.JSON_PROPERTY_ADDRESS_LINE1, OrganizationObject.JSON_PROPERTY_ADDRESS_LINE2, OrganizationObject.JSON_PROPERTY_STATE, @@ -59,7 +62,7 @@ OrganizationObject.JSON_PROPERTY_BILLING_CONFIGURATION, OrganizationObject.JSON_PROPERTY_TAXES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class OrganizationObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -79,6 +82,9 @@ public class OrganizationObject { public static final String JSON_PROPERTY_COUNTRY = "country"; private Country country; + public static final String JSON_PROPERTY_DEFAULT_CURRENCY = "default_currency"; + private Currency defaultCurrency; + public static final String JSON_PROPERTY_ADDRESS_LINE1 = "address_line1"; private JsonNullable addressLine1 = JsonNullable.undefined(); @@ -305,6 +311,32 @@ public void setCountry(Country country) { } + public OrganizationObject defaultCurrency(Currency defaultCurrency) { + + this.defaultCurrency = defaultCurrency; + return this; + } + + /** + * Get defaultCurrency + * @return defaultCurrency + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Currency getDefaultCurrency() { + return defaultCurrency; + } + + + @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDefaultCurrency(Currency defaultCurrency) { + this.defaultCurrency = defaultCurrency; + } + + public OrganizationObject addressLine1(String addressLine1) { this.addressLine1 = JsonNullable.of(addressLine1); @@ -737,6 +769,7 @@ public boolean equals(Object o) { equalsNullable(this.webhookUrl, organizationObject.webhookUrl) && equalsNullable(this.webhookUrls, organizationObject.webhookUrls) && Objects.equals(this.country, organizationObject.country) && + Objects.equals(this.defaultCurrency, organizationObject.defaultCurrency) && equalsNullable(this.addressLine1, organizationObject.addressLine1) && equalsNullable(this.addressLine2, organizationObject.addressLine2) && equalsNullable(this.state, organizationObject.state) && @@ -758,7 +791,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lagoId, name, createdAt, hashCodeNullable(webhookUrl), hashCodeNullable(webhookUrls), country, hashCodeNullable(addressLine1), hashCodeNullable(addressLine2), hashCodeNullable(state), hashCodeNullable(zipcode), hashCodeNullable(email), hashCodeNullable(city), hashCodeNullable(legalName), hashCodeNullable(legalNumber), netPaymentTerm, hashCodeNullable(taxIdentificationNumber), timezone, billingConfiguration, taxes); + return Objects.hash(lagoId, name, createdAt, hashCodeNullable(webhookUrl), hashCodeNullable(webhookUrls), country, defaultCurrency, hashCodeNullable(addressLine1), hashCodeNullable(addressLine2), hashCodeNullable(state), hashCodeNullable(zipcode), hashCodeNullable(email), hashCodeNullable(city), hashCodeNullable(legalName), hashCodeNullable(legalNumber), netPaymentTerm, hashCodeNullable(taxIdentificationNumber), timezone, billingConfiguration, taxes); } private static int hashCodeNullable(JsonNullable a) { @@ -778,6 +811,7 @@ public String toString() { sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n"); sb.append(" webhookUrls: ").append(toIndentedString(webhookUrls)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" defaultCurrency: ").append(toIndentedString(defaultCurrency)).append("\n"); sb.append(" addressLine1: ").append(toIndentedString(addressLine1)).append("\n"); sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/OrganizationUpdateInput.java b/src/main/java/org/openapitools/client/model/OrganizationUpdateInput.java index 29cbb1e..2d13683 100644 --- a/src/main/java/org/openapitools/client/model/OrganizationUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/OrganizationUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ OrganizationUpdateInput.JSON_PROPERTY_ORGANIZATION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class OrganizationUpdateInput { public static final String JSON_PROPERTY_ORGANIZATION = "organization"; private OrganizationUpdateInputOrganization organization; diff --git a/src/main/java/org/openapitools/client/model/OrganizationUpdateInputOrganization.java b/src/main/java/org/openapitools/client/model/OrganizationUpdateInputOrganization.java index 2c7fcb2..b0a224e 100644 --- a/src/main/java/org/openapitools/client/model/OrganizationUpdateInputOrganization.java +++ b/src/main/java/org/openapitools/client/model/OrganizationUpdateInputOrganization.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,8 +21,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Country; +import org.openapitools.client.model.Currency; import org.openapitools.client.model.OrganizationBillingConfiguration; import org.openapitools.client.model.Timezone; import org.openapitools.jackson.nullable.JsonNullable; @@ -38,6 +40,7 @@ @JsonPropertyOrder({ OrganizationUpdateInputOrganization.JSON_PROPERTY_WEBHOOK_URL, OrganizationUpdateInputOrganization.JSON_PROPERTY_COUNTRY, + OrganizationUpdateInputOrganization.JSON_PROPERTY_DEFAULT_CURRENCY, OrganizationUpdateInputOrganization.JSON_PROPERTY_ADDRESS_LINE1, OrganizationUpdateInputOrganization.JSON_PROPERTY_ADDRESS_LINE2, OrganizationUpdateInputOrganization.JSON_PROPERTY_STATE, @@ -53,7 +56,7 @@ OrganizationUpdateInputOrganization.JSON_PROPERTY_BILLING_CONFIGURATION }) @JsonTypeName("OrganizationUpdateInput_organization") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class OrganizationUpdateInputOrganization { public static final String JSON_PROPERTY_WEBHOOK_URL = "webhook_url"; private JsonNullable webhookUrl = JsonNullable.undefined(); @@ -61,6 +64,9 @@ public class OrganizationUpdateInputOrganization { public static final String JSON_PROPERTY_COUNTRY = "country"; private Country country; + public static final String JSON_PROPERTY_DEFAULT_CURRENCY = "default_currency"; + private Currency defaultCurrency; + public static final String JSON_PROPERTY_ADDRESS_LINE1 = "address_line1"; private JsonNullable addressLine1 = JsonNullable.undefined(); @@ -198,6 +204,32 @@ public void setCountry(Country country) { } + public OrganizationUpdateInputOrganization defaultCurrency(Currency defaultCurrency) { + + this.defaultCurrency = defaultCurrency; + return this; + } + + /** + * Get defaultCurrency + * @return defaultCurrency + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Currency getDefaultCurrency() { + return defaultCurrency; + } + + + @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDefaultCurrency(Currency defaultCurrency) { + this.defaultCurrency = defaultCurrency; + } + + public OrganizationUpdateInputOrganization addressLine1(String addressLine1) { this.addressLine1 = JsonNullable.of(addressLine1); @@ -626,6 +658,7 @@ public boolean equals(Object o) { OrganizationUpdateInputOrganization organizationUpdateInputOrganization = (OrganizationUpdateInputOrganization) o; return equalsNullable(this.webhookUrl, organizationUpdateInputOrganization.webhookUrl) && Objects.equals(this.country, organizationUpdateInputOrganization.country) && + Objects.equals(this.defaultCurrency, organizationUpdateInputOrganization.defaultCurrency) && equalsNullable(this.addressLine1, organizationUpdateInputOrganization.addressLine1) && equalsNullable(this.addressLine2, organizationUpdateInputOrganization.addressLine2) && equalsNullable(this.state, organizationUpdateInputOrganization.state) && @@ -647,7 +680,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(hashCodeNullable(webhookUrl), country, hashCodeNullable(addressLine1), hashCodeNullable(addressLine2), hashCodeNullable(state), hashCodeNullable(zipcode), hashCodeNullable(email), hashCodeNullable(city), hashCodeNullable(legalName), hashCodeNullable(legalNumber), netPaymentTerm, hashCodeNullable(taxIdentificationNumber), timezone, emailSettings, billingConfiguration); + return Objects.hash(hashCodeNullable(webhookUrl), country, defaultCurrency, hashCodeNullable(addressLine1), hashCodeNullable(addressLine2), hashCodeNullable(state), hashCodeNullable(zipcode), hashCodeNullable(email), hashCodeNullable(city), hashCodeNullable(legalName), hashCodeNullable(legalNumber), netPaymentTerm, hashCodeNullable(taxIdentificationNumber), timezone, emailSettings, billingConfiguration); } private static int hashCodeNullable(JsonNullable a) { @@ -663,6 +696,7 @@ public String toString() { sb.append("class OrganizationUpdateInputOrganization {\n"); sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" defaultCurrency: ").append(toIndentedString(defaultCurrency)).append("\n"); sb.append(" addressLine1: ").append(toIndentedString(addressLine1)).append("\n"); sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/OutstandingInvoiceObject.java b/src/main/java/org/openapitools/client/model/OutstandingInvoiceObject.java new file mode 100644 index 0000000..2285084 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/OutstandingInvoiceObject.java @@ -0,0 +1,269 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.Currency; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * OutstandingInvoiceObject + */ +@JsonPropertyOrder({ + OutstandingInvoiceObject.JSON_PROPERTY_MONTH, + OutstandingInvoiceObject.JSON_PROPERTY_PAYMENT_STATUS, + OutstandingInvoiceObject.JSON_PROPERTY_INVOICES_COUNT, + OutstandingInvoiceObject.JSON_PROPERTY_AMOUNT_CENTS, + OutstandingInvoiceObject.JSON_PROPERTY_CURRENCY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class OutstandingInvoiceObject { + public static final String JSON_PROPERTY_MONTH = "month"; + private String month; + + /** + * The payment status of the invoices. + */ + public enum PaymentStatusEnum { + PENDING("pending"), + + SUCCEEDED("succeeded"), + + FAILED("failed"); + + private String value; + + PaymentStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentStatusEnum fromValue(String value) { + for (PaymentStatusEnum b : PaymentStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PAYMENT_STATUS = "payment_status"; + private PaymentStatusEnum paymentStatus; + + public static final String JSON_PROPERTY_INVOICES_COUNT = "invoices_count"; + private Integer invoicesCount; + + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; + private Integer amountCents; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private Currency currency; + + public OutstandingInvoiceObject() { + } + + public OutstandingInvoiceObject month(String month) { + + this.month = month; + return this; + } + + /** + * Identifies the month to analyze revenue. + * @return month + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMonth() { + return month; + } + + + @JsonProperty(JSON_PROPERTY_MONTH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonth(String month) { + this.month = month; + } + + + public OutstandingInvoiceObject paymentStatus(PaymentStatusEnum paymentStatus) { + + this.paymentStatus = paymentStatus; + return this; + } + + /** + * The payment status of the invoices. + * @return paymentStatus + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PAYMENT_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaymentStatusEnum getPaymentStatus() { + return paymentStatus; + } + + + @JsonProperty(JSON_PROPERTY_PAYMENT_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPaymentStatus(PaymentStatusEnum paymentStatus) { + this.paymentStatus = paymentStatus; + } + + + public OutstandingInvoiceObject invoicesCount(Integer invoicesCount) { + + this.invoicesCount = invoicesCount; + return this; + } + + /** + * Contains invoices count. + * @return invoicesCount + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_INVOICES_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getInvoicesCount() { + return invoicesCount; + } + + + @JsonProperty(JSON_PROPERTY_INVOICES_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setInvoicesCount(Integer invoicesCount) { + this.invoicesCount = invoicesCount; + } + + + public OutstandingInvoiceObject amountCents(Integer amountCents) { + + this.amountCents = amountCents; + return this; + } + + /** + * The total amount of revenue for a period, expressed in cents. + * @return amountCents + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getAmountCents() { + return amountCents; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmountCents(Integer amountCents) { + this.amountCents = amountCents; + } + + + public OutstandingInvoiceObject currency(Currency currency) { + + this.currency = currency; + return this; + } + + /** + * Get currency + * @return currency + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Currency getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrency(Currency currency) { + this.currency = currency; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OutstandingInvoiceObject outstandingInvoiceObject = (OutstandingInvoiceObject) o; + return Objects.equals(this.month, outstandingInvoiceObject.month) && + Objects.equals(this.paymentStatus, outstandingInvoiceObject.paymentStatus) && + Objects.equals(this.invoicesCount, outstandingInvoiceObject.invoicesCount) && + Objects.equals(this.amountCents, outstandingInvoiceObject.amountCents) && + Objects.equals(this.currency, outstandingInvoiceObject.currency); + } + + @Override + public int hashCode() { + return Objects.hash(month, paymentStatus, invoicesCount, amountCents, currency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OutstandingInvoiceObject {\n"); + sb.append(" month: ").append(toIndentedString(month)).append("\n"); + sb.append(" paymentStatus: ").append(toIndentedString(paymentStatus)).append("\n"); + sb.append(" invoicesCount: ").append(toIndentedString(invoicesCount)).append("\n"); + sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/OutstandingInvoices.java b/src/main/java/org/openapitools/client/model/OutstandingInvoices.java new file mode 100644 index 0000000..f0693cc --- /dev/null +++ b/src/main/java/org/openapitools/client/model/OutstandingInvoices.java @@ -0,0 +1,115 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.OutstandingInvoiceObject; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * OutstandingInvoices + */ +@JsonPropertyOrder({ + OutstandingInvoices.JSON_PROPERTY_OUTSTANDING_INVOICES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class OutstandingInvoices { + public static final String JSON_PROPERTY_OUTSTANDING_INVOICES = "outstanding_invoices"; + private List outstandingInvoices = new ArrayList<>(); + + public OutstandingInvoices() { + } + + public OutstandingInvoices outstandingInvoices(List outstandingInvoices) { + + this.outstandingInvoices = outstandingInvoices; + return this; + } + + public OutstandingInvoices addOutstandingInvoicesItem(OutstandingInvoiceObject outstandingInvoicesItem) { + if (this.outstandingInvoices == null) { + this.outstandingInvoices = new ArrayList<>(); + } + this.outstandingInvoices.add(outstandingInvoicesItem); + return this; + } + + /** + * Get outstandingInvoices + * @return outstandingInvoices + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_OUTSTANDING_INVOICES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getOutstandingInvoices() { + return outstandingInvoices; + } + + + @JsonProperty(JSON_PROPERTY_OUTSTANDING_INVOICES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setOutstandingInvoices(List outstandingInvoices) { + this.outstandingInvoices = outstandingInvoices; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OutstandingInvoices outstandingInvoices = (OutstandingInvoices) o; + return Objects.equals(this.outstandingInvoices, outstandingInvoices.outstandingInvoices); + } + + @Override + public int hashCode() { + return Objects.hash(outstandingInvoices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OutstandingInvoices {\n"); + sb.append(" outstandingInvoices: ").append(toIndentedString(outstandingInvoices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/PaginationMeta.java b/src/main/java/org/openapitools/client/model/PaginationMeta.java index 9ef1365..7ba1496 100644 --- a/src/main/java/org/openapitools/client/model/PaginationMeta.java +++ b/src/main/java/org/openapitools/client/model/PaginationMeta.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -37,7 +37,7 @@ PaginationMeta.JSON_PROPERTY_TOTAL_PAGES, PaginationMeta.JSON_PROPERTY_TOTAL_COUNT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PaginationMeta { public static final String JSON_PROPERTY_CURRENT_PAGE = "current_page"; private Integer currentPage; diff --git a/src/main/java/org/openapitools/client/model/Plan.java b/src/main/java/org/openapitools/client/model/Plan.java index 6bc4756..6c15697 100644 --- a/src/main/java/org/openapitools/client/model/Plan.java +++ b/src/main/java/org/openapitools/client/model/Plan.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Plan.JSON_PROPERTY_PLAN }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Plan { public static final String JSON_PROPERTY_PLAN = "plan"; private PlanObject plan; diff --git a/src/main/java/org/openapitools/client/model/PlanCreateInput.java b/src/main/java/org/openapitools/client/model/PlanCreateInput.java index 8da3cc2..fcb6d41 100644 --- a/src/main/java/org/openapitools/client/model/PlanCreateInput.java +++ b/src/main/java/org/openapitools/client/model/PlanCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ PlanCreateInput.JSON_PROPERTY_PLAN }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlanCreateInput { public static final String JSON_PROPERTY_PLAN = "plan"; private PlanCreateInputPlan plan; diff --git a/src/main/java/org/openapitools/client/model/PlanCreateInputPlan.java b/src/main/java/org/openapitools/client/model/PlanCreateInputPlan.java index 8d96ff6..bf6ef74 100644 --- a/src/main/java/org/openapitools/client/model/PlanCreateInputPlan.java +++ b/src/main/java/org/openapitools/client/model/PlanCreateInputPlan.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.client.model.PlanCreateInputPlanChargesInner; @@ -37,6 +38,7 @@ */ @JsonPropertyOrder({ PlanCreateInputPlan.JSON_PROPERTY_NAME, + PlanCreateInputPlan.JSON_PROPERTY_INVOICE_DISPLAY_NAME, PlanCreateInputPlan.JSON_PROPERTY_CODE, PlanCreateInputPlan.JSON_PROPERTY_INTERVAL, PlanCreateInputPlan.JSON_PROPERTY_DESCRIPTION, @@ -49,11 +51,14 @@ PlanCreateInputPlan.JSON_PROPERTY_CHARGES }) @JsonTypeName("PlanCreateInput_plan") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlanCreateInputPlan { public static final String JSON_PROPERTY_NAME = "name"; private String name; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -152,6 +157,32 @@ public void setName(String name) { } + public PlanCreateInputPlan invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public PlanCreateInputPlan code(String code) { this.code = code; @@ -445,6 +476,7 @@ public boolean equals(Object o) { } PlanCreateInputPlan planCreateInputPlan = (PlanCreateInputPlan) o; return Objects.equals(this.name, planCreateInputPlan.name) && + Objects.equals(this.invoiceDisplayName, planCreateInputPlan.invoiceDisplayName) && Objects.equals(this.code, planCreateInputPlan.code) && Objects.equals(this.interval, planCreateInputPlan.interval) && Objects.equals(this.description, planCreateInputPlan.description) && @@ -463,7 +495,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, code, interval, description, amountCents, amountCurrency, trialPeriod, payInAdvance, hashCodeNullable(billChargesMonthly), taxCodes, charges); + return Objects.hash(name, invoiceDisplayName, code, interval, description, amountCents, amountCurrency, trialPeriod, payInAdvance, hashCodeNullable(billChargesMonthly), taxCodes, charges); } private static int hashCodeNullable(JsonNullable a) { @@ -478,6 +510,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlanCreateInputPlan {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInner.java b/src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInner.java index aa38ecb..6cc87e0 100644 --- a/src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInner.java +++ b/src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.ChargeObjectProperties; @@ -36,6 +37,7 @@ PlanCreateInputPlanChargesInner.JSON_PROPERTY_CHARGE_MODEL, PlanCreateInputPlanChargesInner.JSON_PROPERTY_PAY_IN_ADVANCE, PlanCreateInputPlanChargesInner.JSON_PROPERTY_INVOICEABLE, + PlanCreateInputPlanChargesInner.JSON_PROPERTY_INVOICE_DISPLAY_NAME, PlanCreateInputPlanChargesInner.JSON_PROPERTY_PRORATED, PlanCreateInputPlanChargesInner.JSON_PROPERTY_MIN_AMOUNT_CENTS, PlanCreateInputPlanChargesInner.JSON_PROPERTY_PROPERTIES, @@ -43,7 +45,7 @@ PlanCreateInputPlanChargesInner.JSON_PROPERTY_TAX_CODES }) @JsonTypeName("PlanCreateInput_plan_charges_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlanCreateInputPlanChargesInner { public static final String JSON_PROPERTY_BILLABLE_METRIC_ID = "billable_metric_id"; private UUID billableMetricId; @@ -100,6 +102,9 @@ public static ChargeModelEnum fromValue(String value) { public static final String JSON_PROPERTY_INVOICEABLE = "invoiceable"; private Boolean invoiceable; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_PRORATED = "prorated"; private Boolean prorated; @@ -222,6 +227,32 @@ public void setInvoiceable(Boolean invoiceable) { } + public PlanCreateInputPlanChargesInner invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public PlanCreateInputPlanChargesInner prorated(Boolean prorated) { this.prorated = prorated; @@ -380,6 +411,7 @@ public boolean equals(Object o) { Objects.equals(this.chargeModel, planCreateInputPlanChargesInner.chargeModel) && Objects.equals(this.payInAdvance, planCreateInputPlanChargesInner.payInAdvance) && Objects.equals(this.invoiceable, planCreateInputPlanChargesInner.invoiceable) && + Objects.equals(this.invoiceDisplayName, planCreateInputPlanChargesInner.invoiceDisplayName) && Objects.equals(this.prorated, planCreateInputPlanChargesInner.prorated) && Objects.equals(this.minAmountCents, planCreateInputPlanChargesInner.minAmountCents) && Objects.equals(this.properties, planCreateInputPlanChargesInner.properties) && @@ -389,7 +421,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(billableMetricId, chargeModel, payInAdvance, invoiceable, prorated, minAmountCents, properties, groupProperties, taxCodes); + return Objects.hash(billableMetricId, chargeModel, payInAdvance, invoiceable, invoiceDisplayName, prorated, minAmountCents, properties, groupProperties, taxCodes); } @Override @@ -400,6 +432,7 @@ public String toString() { sb.append(" chargeModel: ").append(toIndentedString(chargeModel)).append("\n"); sb.append(" payInAdvance: ").append(toIndentedString(payInAdvance)).append("\n"); sb.append(" invoiceable: ").append(toIndentedString(invoiceable)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" prorated: ").append(toIndentedString(prorated)).append("\n"); sb.append(" minAmountCents: ").append(toIndentedString(minAmountCents)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInner.java b/src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInner.java index 720ece0..bde66b6 100644 --- a/src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInner.java +++ b/src/main/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ PlanCreateInputPlanChargesInnerGroupPropertiesInner.JSON_PROPERTY_VALUES }) @JsonTypeName("PlanCreateInput_plan_charges_inner_group_properties_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlanCreateInputPlanChargesInnerGroupPropertiesInner { public static final String JSON_PROPERTY_GROUP_ID = "group_id"; private String groupId; diff --git a/src/main/java/org/openapitools/client/model/PlanObject.java b/src/main/java/org/openapitools/client/model/PlanObject.java index 426a000..1cdfd7b 100644 --- a/src/main/java/org/openapitools/client/model/PlanObject.java +++ b/src/main/java/org/openapitools/client/model/PlanObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.ChargeObject; @@ -41,6 +42,7 @@ @JsonPropertyOrder({ PlanObject.JSON_PROPERTY_LAGO_ID, PlanObject.JSON_PROPERTY_NAME, + PlanObject.JSON_PROPERTY_INVOICE_DISPLAY_NAME, PlanObject.JSON_PROPERTY_CREATED_AT, PlanObject.JSON_PROPERTY_CODE, PlanObject.JSON_PROPERTY_INTERVAL, @@ -55,7 +57,7 @@ PlanObject.JSON_PROPERTY_CHARGES, PlanObject.JSON_PROPERTY_TAXES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlanObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -63,6 +65,9 @@ public class PlanObject { public static final String JSON_PROPERTY_NAME = "name"; private String name; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private OffsetDateTime createdAt; @@ -196,6 +201,32 @@ public void setName(String name) { } + public PlanObject invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public PlanObject createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -568,6 +599,7 @@ public boolean equals(Object o) { PlanObject planObject = (PlanObject) o; return Objects.equals(this.lagoId, planObject.lagoId) && Objects.equals(this.name, planObject.name) && + Objects.equals(this.invoiceDisplayName, planObject.invoiceDisplayName) && Objects.equals(this.createdAt, planObject.createdAt) && Objects.equals(this.code, planObject.code) && Objects.equals(this.interval, planObject.interval) && @@ -589,7 +621,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lagoId, name, createdAt, code, interval, description, amountCents, amountCurrency, trialPeriod, payInAdvance, hashCodeNullable(billChargesMonthly), activeSubscriptionsCount, draftInvoicesCount, charges, taxes); + return Objects.hash(lagoId, name, invoiceDisplayName, createdAt, code, interval, description, amountCents, amountCurrency, trialPeriod, payInAdvance, hashCodeNullable(billChargesMonthly), activeSubscriptionsCount, draftInvoicesCount, charges, taxes); } private static int hashCodeNullable(JsonNullable a) { @@ -605,6 +637,7 @@ public String toString() { sb.append("class PlanObject {\n"); sb.append(" lagoId: ").append(toIndentedString(lagoId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/PlanOverridesObject.java b/src/main/java/org/openapitools/client/model/PlanOverridesObject.java new file mode 100644 index 0000000..5c272d5 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/PlanOverridesObject.java @@ -0,0 +1,349 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.Currency; +import org.openapitools.client.model.PlanOverridesObjectChargesInner; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Based plan overrides. + */ +@JsonPropertyOrder({ + PlanOverridesObject.JSON_PROPERTY_AMOUNT_CENTS, + PlanOverridesObject.JSON_PROPERTY_AMOUNT_CURRENCY, + PlanOverridesObject.JSON_PROPERTY_DESCRIPTION, + PlanOverridesObject.JSON_PROPERTY_INVOICE_DISPLAY_NAME, + PlanOverridesObject.JSON_PROPERTY_NAME, + PlanOverridesObject.JSON_PROPERTY_TAX_CODES, + PlanOverridesObject.JSON_PROPERTY_TRIAL_PERIOD, + PlanOverridesObject.JSON_PROPERTY_CHARGES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class PlanOverridesObject { + public static final String JSON_PROPERTY_AMOUNT_CENTS = "amount_cents"; + private Integer amountCents; + + public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amount_currency"; + private Currency amountCurrency; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_TAX_CODES = "tax_codes"; + private List taxCodes; + + public static final String JSON_PROPERTY_TRIAL_PERIOD = "trial_period"; + private BigDecimal trialPeriod; + + public static final String JSON_PROPERTY_CHARGES = "charges"; + private List charges; + + public PlanOverridesObject() { + } + + public PlanOverridesObject amountCents(Integer amountCents) { + + this.amountCents = amountCents; + return this; + } + + /** + * The base cost of the plan, excluding any applicable taxes, that is billed on a recurring basis. This value is defined at 0 if your plan is a pay-as-you-go plan. + * @return amountCents + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getAmountCents() { + return amountCents; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmountCents(Integer amountCents) { + this.amountCents = amountCents; + } + + + public PlanOverridesObject amountCurrency(Currency amountCurrency) { + + this.amountCurrency = amountCurrency; + return this; + } + + /** + * Get amountCurrency + * @return amountCurrency + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Currency getAmountCurrency() { + return amountCurrency; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmountCurrency(Currency amountCurrency) { + this.amountCurrency = amountCurrency; + } + + + public PlanOverridesObject description(String description) { + + this.description = description; + return this; + } + + /** + * The description on the plan. + * @return description + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + public PlanOverridesObject invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + + public PlanOverridesObject name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the plan. + * @return name + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public PlanOverridesObject taxCodes(List taxCodes) { + + this.taxCodes = taxCodes; + return this; + } + + public PlanOverridesObject addTaxCodesItem(String taxCodesItem) { + if (this.taxCodes == null) { + this.taxCodes = new ArrayList<>(); + } + this.taxCodes.add(taxCodesItem); + return this; + } + + /** + * List of unique code used to identify the taxes. + * @return taxCodes + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_CODES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getTaxCodes() { + return taxCodes; + } + + + @JsonProperty(JSON_PROPERTY_TAX_CODES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxCodes(List taxCodes) { + this.taxCodes = taxCodes; + } + + + public PlanOverridesObject trialPeriod(BigDecimal trialPeriod) { + + this.trialPeriod = trialPeriod; + return this; + } + + /** + * The duration in days during which the base cost of the plan is offered for free. + * @return trialPeriod + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TRIAL_PERIOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getTrialPeriod() { + return trialPeriod; + } + + + @JsonProperty(JSON_PROPERTY_TRIAL_PERIOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTrialPeriod(BigDecimal trialPeriod) { + this.trialPeriod = trialPeriod; + } + + + public PlanOverridesObject charges(List charges) { + + this.charges = charges; + return this; + } + + public PlanOverridesObject addChargesItem(PlanOverridesObjectChargesInner chargesItem) { + if (this.charges == null) { + this.charges = new ArrayList<>(); + } + this.charges.add(chargesItem); + return this; + } + + /** + * Additional usage-based charges for this plan. + * @return charges + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CHARGES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getCharges() { + return charges; + } + + + @JsonProperty(JSON_PROPERTY_CHARGES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCharges(List charges) { + this.charges = charges; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanOverridesObject planOverridesObject = (PlanOverridesObject) o; + return Objects.equals(this.amountCents, planOverridesObject.amountCents) && + Objects.equals(this.amountCurrency, planOverridesObject.amountCurrency) && + Objects.equals(this.description, planOverridesObject.description) && + Objects.equals(this.invoiceDisplayName, planOverridesObject.invoiceDisplayName) && + Objects.equals(this.name, planOverridesObject.name) && + Objects.equals(this.taxCodes, planOverridesObject.taxCodes) && + Objects.equals(this.trialPeriod, planOverridesObject.trialPeriod) && + Objects.equals(this.charges, planOverridesObject.charges); + } + + @Override + public int hashCode() { + return Objects.hash(amountCents, amountCurrency, description, invoiceDisplayName, name, taxCodes, trialPeriod, charges); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanOverridesObject {\n"); + sb.append(" amountCents: ").append(toIndentedString(amountCents)).append("\n"); + sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" taxCodes: ").append(toIndentedString(taxCodes)).append("\n"); + sb.append(" trialPeriod: ").append(toIndentedString(trialPeriod)).append("\n"); + sb.append(" charges: ").append(toIndentedString(charges)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/PlanOverridesObjectChargesInner.java b/src/main/java/org/openapitools/client/model/PlanOverridesObjectChargesInner.java new file mode 100644 index 0000000..523a1a9 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/PlanOverridesObjectChargesInner.java @@ -0,0 +1,318 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import org.openapitools.client.model.ChargeObjectProperties; +import org.openapitools.client.model.PlanCreateInputPlanChargesInnerGroupPropertiesInner; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * PlanOverridesObjectChargesInner + */ +@JsonPropertyOrder({ + PlanOverridesObjectChargesInner.JSON_PROPERTY_ID, + PlanOverridesObjectChargesInner.JSON_PROPERTY_BILLABLE_METRIC_ID, + PlanOverridesObjectChargesInner.JSON_PROPERTY_INVOICE_DISPLAY_NAME, + PlanOverridesObjectChargesInner.JSON_PROPERTY_MIN_AMOUNT_CENTS, + PlanOverridesObjectChargesInner.JSON_PROPERTY_PROPERTIES, + PlanOverridesObjectChargesInner.JSON_PROPERTY_GROUP_PROPERTIES, + PlanOverridesObjectChargesInner.JSON_PROPERTY_TAX_CODES +}) +@JsonTypeName("PlanOverridesObject_charges_inner") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class PlanOverridesObjectChargesInner { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_BILLABLE_METRIC_ID = "billable_metric_id"; + private UUID billableMetricId; + + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + + public static final String JSON_PROPERTY_MIN_AMOUNT_CENTS = "min_amount_cents"; + private Integer minAmountCents; + + public static final String JSON_PROPERTY_PROPERTIES = "properties"; + private ChargeObjectProperties properties; + + public static final String JSON_PROPERTY_GROUP_PROPERTIES = "group_properties"; + private List groupProperties; + + public static final String JSON_PROPERTY_TAX_CODES = "tax_codes"; + private List taxCodes; + + public PlanOverridesObjectChargesInner() { + } + + public PlanOverridesObjectChargesInner id(UUID id) { + + this.id = id; + return this; + } + + /** + * Unique identifier of the charge created by Lago. + * @return id + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(UUID id) { + this.id = id; + } + + + public PlanOverridesObjectChargesInner billableMetricId(UUID billableMetricId) { + + this.billableMetricId = billableMetricId; + return this; + } + + /** + * Unique identifier of the billable metric created by Lago. + * @return billableMetricId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BILLABLE_METRIC_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getBillableMetricId() { + return billableMetricId; + } + + + @JsonProperty(JSON_PROPERTY_BILLABLE_METRIC_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBillableMetricId(UUID billableMetricId) { + this.billableMetricId = billableMetricId; + } + + + public PlanOverridesObjectChargesInner invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + + public PlanOverridesObjectChargesInner minAmountCents(Integer minAmountCents) { + + this.minAmountCents = minAmountCents; + return this; + } + + /** + * The minimum spending amount required for the charge, measured in cents and excluding any applicable taxes. It indicates the minimum amount that needs to be charged for each billing period. + * @return minAmountCents + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MIN_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getMinAmountCents() { + return minAmountCents; + } + + + @JsonProperty(JSON_PROPERTY_MIN_AMOUNT_CENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMinAmountCents(Integer minAmountCents) { + this.minAmountCents = minAmountCents; + } + + + public PlanOverridesObjectChargesInner properties(ChargeObjectProperties properties) { + + this.properties = properties; + return this; + } + + /** + * Get properties + * @return properties + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROPERTIES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ChargeObjectProperties getProperties() { + return properties; + } + + + @JsonProperty(JSON_PROPERTY_PROPERTIES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProperties(ChargeObjectProperties properties) { + this.properties = properties; + } + + + public PlanOverridesObjectChargesInner groupProperties(List groupProperties) { + + this.groupProperties = groupProperties; + return this; + } + + public PlanOverridesObjectChargesInner addGroupPropertiesItem(PlanCreateInputPlanChargesInnerGroupPropertiesInner groupPropertiesItem) { + if (this.groupProperties == null) { + this.groupProperties = new ArrayList<>(); + } + this.groupProperties.add(groupPropertiesItem); + return this; + } + + /** + * All charge information, sorted by groups. + * @return groupProperties + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_PROPERTIES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getGroupProperties() { + return groupProperties; + } + + + @JsonProperty(JSON_PROPERTY_GROUP_PROPERTIES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGroupProperties(List groupProperties) { + this.groupProperties = groupProperties; + } + + + public PlanOverridesObjectChargesInner taxCodes(List taxCodes) { + + this.taxCodes = taxCodes; + return this; + } + + public PlanOverridesObjectChargesInner addTaxCodesItem(String taxCodesItem) { + if (this.taxCodes == null) { + this.taxCodes = new ArrayList<>(); + } + this.taxCodes.add(taxCodesItem); + return this; + } + + /** + * List of unique code used to identify the taxes. + * @return taxCodes + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_CODES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getTaxCodes() { + return taxCodes; + } + + + @JsonProperty(JSON_PROPERTY_TAX_CODES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxCodes(List taxCodes) { + this.taxCodes = taxCodes; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanOverridesObjectChargesInner planOverridesObjectChargesInner = (PlanOverridesObjectChargesInner) o; + return Objects.equals(this.id, planOverridesObjectChargesInner.id) && + Objects.equals(this.billableMetricId, planOverridesObjectChargesInner.billableMetricId) && + Objects.equals(this.invoiceDisplayName, planOverridesObjectChargesInner.invoiceDisplayName) && + Objects.equals(this.minAmountCents, planOverridesObjectChargesInner.minAmountCents) && + Objects.equals(this.properties, planOverridesObjectChargesInner.properties) && + Objects.equals(this.groupProperties, planOverridesObjectChargesInner.groupProperties) && + Objects.equals(this.taxCodes, planOverridesObjectChargesInner.taxCodes); + } + + @Override + public int hashCode() { + return Objects.hash(id, billableMetricId, invoiceDisplayName, minAmountCents, properties, groupProperties, taxCodes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanOverridesObjectChargesInner {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" billableMetricId: ").append(toIndentedString(billableMetricId)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); + sb.append(" minAmountCents: ").append(toIndentedString(minAmountCents)).append("\n"); + sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); + sb.append(" groupProperties: ").append(toIndentedString(groupProperties)).append("\n"); + sb.append(" taxCodes: ").append(toIndentedString(taxCodes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/PlanUpdateInput.java b/src/main/java/org/openapitools/client/model/PlanUpdateInput.java index 0f7894f..9fc185d 100644 --- a/src/main/java/org/openapitools/client/model/PlanUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/PlanUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ PlanUpdateInput.JSON_PROPERTY_PLAN }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlanUpdateInput { public static final String JSON_PROPERTY_PLAN = "plan"; private PlanUpdateInputPlan plan; diff --git a/src/main/java/org/openapitools/client/model/PlanUpdateInputPlan.java b/src/main/java/org/openapitools/client/model/PlanUpdateInputPlan.java index 868e472..0c251ad 100644 --- a/src/main/java/org/openapitools/client/model/PlanUpdateInputPlan.java +++ b/src/main/java/org/openapitools/client/model/PlanUpdateInputPlan.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.client.model.PlanUpdateInputPlanChargesInner; @@ -37,6 +38,7 @@ */ @JsonPropertyOrder({ PlanUpdateInputPlan.JSON_PROPERTY_NAME, + PlanUpdateInputPlan.JSON_PROPERTY_INVOICE_DISPLAY_NAME, PlanUpdateInputPlan.JSON_PROPERTY_CODE, PlanUpdateInputPlan.JSON_PROPERTY_INTERVAL, PlanUpdateInputPlan.JSON_PROPERTY_DESCRIPTION, @@ -49,11 +51,14 @@ PlanUpdateInputPlan.JSON_PROPERTY_CHARGES }) @JsonTypeName("PlanUpdateInput_plan") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlanUpdateInputPlan { public static final String JSON_PROPERTY_NAME = "name"; private String name; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -152,6 +157,32 @@ public void setName(String name) { } + public PlanUpdateInputPlan invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public PlanUpdateInputPlan code(String code) { this.code = code; @@ -445,6 +476,7 @@ public boolean equals(Object o) { } PlanUpdateInputPlan planUpdateInputPlan = (PlanUpdateInputPlan) o; return Objects.equals(this.name, planUpdateInputPlan.name) && + Objects.equals(this.invoiceDisplayName, planUpdateInputPlan.invoiceDisplayName) && Objects.equals(this.code, planUpdateInputPlan.code) && Objects.equals(this.interval, planUpdateInputPlan.interval) && Objects.equals(this.description, planUpdateInputPlan.description) && @@ -463,7 +495,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, code, interval, description, amountCents, amountCurrency, trialPeriod, payInAdvance, hashCodeNullable(billChargesMonthly), taxCodes, charges); + return Objects.hash(name, invoiceDisplayName, code, interval, description, amountCents, amountCurrency, trialPeriod, payInAdvance, hashCodeNullable(billChargesMonthly), taxCodes, charges); } private static int hashCodeNullable(JsonNullable a) { @@ -478,6 +510,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlanUpdateInputPlan {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInner.java b/src/main/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInner.java index 2be03e2..bc88739 100644 --- a/src/main/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInner.java +++ b/src/main/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInner.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.ChargeObjectProperties; @@ -37,6 +38,7 @@ PlanUpdateInputPlanChargesInner.JSON_PROPERTY_CHARGE_MODEL, PlanUpdateInputPlanChargesInner.JSON_PROPERTY_PAY_IN_ADVANCE, PlanUpdateInputPlanChargesInner.JSON_PROPERTY_INVOICEABLE, + PlanUpdateInputPlanChargesInner.JSON_PROPERTY_INVOICE_DISPLAY_NAME, PlanUpdateInputPlanChargesInner.JSON_PROPERTY_PRORATED, PlanUpdateInputPlanChargesInner.JSON_PROPERTY_MIN_AMOUNT_CENTS, PlanUpdateInputPlanChargesInner.JSON_PROPERTY_PROPERTIES, @@ -44,7 +46,7 @@ PlanUpdateInputPlanChargesInner.JSON_PROPERTY_TAX_CODES }) @JsonTypeName("PlanUpdateInput_plan_charges_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlanUpdateInputPlanChargesInner { public static final String JSON_PROPERTY_ID = "id"; private UUID id; @@ -104,6 +106,9 @@ public static ChargeModelEnum fromValue(String value) { public static final String JSON_PROPERTY_INVOICEABLE = "invoiceable"; private Boolean invoiceable; + public static final String JSON_PROPERTY_INVOICE_DISPLAY_NAME = "invoice_display_name"; + private String invoiceDisplayName; + public static final String JSON_PROPERTY_PRORATED = "prorated"; private Boolean prorated; @@ -252,6 +257,32 @@ public void setInvoiceable(Boolean invoiceable) { } + public PlanUpdateInputPlanChargesInner invoiceDisplayName(String invoiceDisplayName) { + + this.invoiceDisplayName = invoiceDisplayName; + return this; + } + + /** + * Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name. + * @return invoiceDisplayName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInvoiceDisplayName() { + return invoiceDisplayName; + } + + + @JsonProperty(JSON_PROPERTY_INVOICE_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvoiceDisplayName(String invoiceDisplayName) { + this.invoiceDisplayName = invoiceDisplayName; + } + + public PlanUpdateInputPlanChargesInner prorated(Boolean prorated) { this.prorated = prorated; @@ -411,6 +442,7 @@ public boolean equals(Object o) { Objects.equals(this.chargeModel, planUpdateInputPlanChargesInner.chargeModel) && Objects.equals(this.payInAdvance, planUpdateInputPlanChargesInner.payInAdvance) && Objects.equals(this.invoiceable, planUpdateInputPlanChargesInner.invoiceable) && + Objects.equals(this.invoiceDisplayName, planUpdateInputPlanChargesInner.invoiceDisplayName) && Objects.equals(this.prorated, planUpdateInputPlanChargesInner.prorated) && Objects.equals(this.minAmountCents, planUpdateInputPlanChargesInner.minAmountCents) && Objects.equals(this.properties, planUpdateInputPlanChargesInner.properties) && @@ -420,7 +452,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, billableMetricId, chargeModel, payInAdvance, invoiceable, prorated, minAmountCents, properties, groupProperties, taxCodes); + return Objects.hash(id, billableMetricId, chargeModel, payInAdvance, invoiceable, invoiceDisplayName, prorated, minAmountCents, properties, groupProperties, taxCodes); } @Override @@ -432,6 +464,7 @@ public String toString() { sb.append(" chargeModel: ").append(toIndentedString(chargeModel)).append("\n"); sb.append(" payInAdvance: ").append(toIndentedString(payInAdvance)).append("\n"); sb.append(" invoiceable: ").append(toIndentedString(invoiceable)).append("\n"); + sb.append(" invoiceDisplayName: ").append(toIndentedString(invoiceDisplayName)).append("\n"); sb.append(" prorated: ").append(toIndentedString(prorated)).append("\n"); sb.append(" minAmountCents: ").append(toIndentedString(minAmountCents)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/PlansPaginated.java b/src/main/java/org/openapitools/client/model/PlansPaginated.java index 357d492..bd94f68 100644 --- a/src/main/java/org/openapitools/client/model/PlansPaginated.java +++ b/src/main/java/org/openapitools/client/model/PlansPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.PlanObject; @@ -34,7 +35,7 @@ PlansPaginated.JSON_PROPERTY_PLANS, PlansPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class PlansPaginated { public static final String JSON_PROPERTY_PLANS = "plans"; private List plans = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/Subscription.java b/src/main/java/org/openapitools/client/model/Subscription.java index d43dab2..04025d1 100644 --- a/src/main/java/org/openapitools/client/model/Subscription.java +++ b/src/main/java/org/openapitools/client/model/Subscription.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.SubscriptionObject; +import org.openapitools.client.model.SubscriptionObjectExtended; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -30,15 +30,15 @@ @JsonPropertyOrder({ Subscription.JSON_PROPERTY_SUBSCRIPTION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Subscription { public static final String JSON_PROPERTY_SUBSCRIPTION = "subscription"; - private SubscriptionObject subscription; + private SubscriptionObjectExtended subscription; public Subscription() { } - public Subscription subscription(SubscriptionObject subscription) { + public Subscription subscription(SubscriptionObjectExtended subscription) { this.subscription = subscription; return this; @@ -52,14 +52,14 @@ public Subscription subscription(SubscriptionObject subscription) { @JsonProperty(JSON_PROPERTY_SUBSCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SubscriptionObject getSubscription() { + public SubscriptionObjectExtended getSubscription() { return subscription; } @JsonProperty(JSON_PROPERTY_SUBSCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSubscription(SubscriptionObject subscription) { + public void setSubscription(SubscriptionObjectExtended subscription) { this.subscription = subscription; } diff --git a/src/main/java/org/openapitools/client/model/SubscriptionCreateInput.java b/src/main/java/org/openapitools/client/model/SubscriptionCreateInput.java index b846f8a..e96aa30 100644 --- a/src/main/java/org/openapitools/client/model/SubscriptionCreateInput.java +++ b/src/main/java/org/openapitools/client/model/SubscriptionCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ SubscriptionCreateInput.JSON_PROPERTY_SUBSCRIPTION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class SubscriptionCreateInput { public static final String JSON_PROPERTY_SUBSCRIPTION = "subscription"; private SubscriptionCreateInputSubscription subscription; diff --git a/src/main/java/org/openapitools/client/model/SubscriptionCreateInputSubscription.java b/src/main/java/org/openapitools/client/model/SubscriptionCreateInputSubscription.java index e786be6..aad0f57 100644 --- a/src/main/java/org/openapitools/client/model/SubscriptionCreateInputSubscription.java +++ b/src/main/java/org/openapitools/client/model/SubscriptionCreateInputSubscription.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import org.openapitools.client.model.PlanOverridesObject; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -33,10 +34,12 @@ SubscriptionCreateInputSubscription.JSON_PROPERTY_NAME, SubscriptionCreateInputSubscription.JSON_PROPERTY_EXTERNAL_ID, SubscriptionCreateInputSubscription.JSON_PROPERTY_BILLING_TIME, - SubscriptionCreateInputSubscription.JSON_PROPERTY_SUBSCRIPTION_AT + SubscriptionCreateInputSubscription.JSON_PROPERTY_ENDING_AT, + SubscriptionCreateInputSubscription.JSON_PROPERTY_SUBSCRIPTION_AT, + SubscriptionCreateInputSubscription.JSON_PROPERTY_PLAN_OVERRIDES }) @JsonTypeName("SubscriptionCreateInput_subscription") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class SubscriptionCreateInputSubscription { public static final String JSON_PROPERTY_EXTERNAL_CUSTOMER_ID = "external_customer_id"; private String externalCustomerId; @@ -88,9 +91,15 @@ public static BillingTimeEnum fromValue(String value) { public static final String JSON_PROPERTY_BILLING_TIME = "billing_time"; private BillingTimeEnum billingTime; + public static final String JSON_PROPERTY_ENDING_AT = "ending_at"; + private OffsetDateTime endingAt; + public static final String JSON_PROPERTY_SUBSCRIPTION_AT = "subscription_at"; private OffsetDateTime subscriptionAt; + public static final String JSON_PROPERTY_PLAN_OVERRIDES = "plan_overrides"; + private PlanOverridesObject planOverrides; + public SubscriptionCreateInputSubscription() { } @@ -224,6 +233,32 @@ public void setBillingTime(BillingTimeEnum billingTime) { } + public SubscriptionCreateInputSubscription endingAt(OffsetDateTime endingAt) { + + this.endingAt = endingAt; + return this; + } + + /** + * The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC). + * @return endingAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDING_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getEndingAt() { + return endingAt; + } + + + @JsonProperty(JSON_PROPERTY_ENDING_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndingAt(OffsetDateTime endingAt) { + this.endingAt = endingAt; + } + + public SubscriptionCreateInputSubscription subscriptionAt(OffsetDateTime subscriptionAt) { this.subscriptionAt = subscriptionAt; @@ -249,6 +284,32 @@ public void setSubscriptionAt(OffsetDateTime subscriptionAt) { this.subscriptionAt = subscriptionAt; } + + public SubscriptionCreateInputSubscription planOverrides(PlanOverridesObject planOverrides) { + + this.planOverrides = planOverrides; + return this; + } + + /** + * Get planOverrides + * @return planOverrides + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PLAN_OVERRIDES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PlanOverridesObject getPlanOverrides() { + return planOverrides; + } + + + @JsonProperty(JSON_PROPERTY_PLAN_OVERRIDES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPlanOverrides(PlanOverridesObject planOverrides) { + this.planOverrides = planOverrides; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -263,12 +324,14 @@ public boolean equals(Object o) { Objects.equals(this.name, subscriptionCreateInputSubscription.name) && Objects.equals(this.externalId, subscriptionCreateInputSubscription.externalId) && Objects.equals(this.billingTime, subscriptionCreateInputSubscription.billingTime) && - Objects.equals(this.subscriptionAt, subscriptionCreateInputSubscription.subscriptionAt); + Objects.equals(this.endingAt, subscriptionCreateInputSubscription.endingAt) && + Objects.equals(this.subscriptionAt, subscriptionCreateInputSubscription.subscriptionAt) && + Objects.equals(this.planOverrides, subscriptionCreateInputSubscription.planOverrides); } @Override public int hashCode() { - return Objects.hash(externalCustomerId, planCode, name, externalId, billingTime, subscriptionAt); + return Objects.hash(externalCustomerId, planCode, name, externalId, billingTime, endingAt, subscriptionAt, planOverrides); } @Override @@ -280,7 +343,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); sb.append(" billingTime: ").append(toIndentedString(billingTime)).append("\n"); + sb.append(" endingAt: ").append(toIndentedString(endingAt)).append("\n"); sb.append(" subscriptionAt: ").append(toIndentedString(subscriptionAt)).append("\n"); + sb.append(" planOverrides: ").append(toIndentedString(planOverrides)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/openapitools/client/model/SubscriptionObject.java b/src/main/java/org/openapitools/client/model/SubscriptionObject.java index c58fe50..77c1ed2 100644 --- a/src/main/java/org/openapitools/client/model/SubscriptionObject.java +++ b/src/main/java/org/openapitools/client/model/SubscriptionObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,13 +44,14 @@ SubscriptionObject.JSON_PROPERTY_CREATED_AT, SubscriptionObject.JSON_PROPERTY_CANCELED_AT, SubscriptionObject.JSON_PROPERTY_STARTED_AT, + SubscriptionObject.JSON_PROPERTY_ENDING_AT, SubscriptionObject.JSON_PROPERTY_SUBSCRIPTION_AT, SubscriptionObject.JSON_PROPERTY_TERMINATED_AT, SubscriptionObject.JSON_PROPERTY_PREVIOUS_PLAN_CODE, SubscriptionObject.JSON_PROPERTY_NEXT_PLAN_CODE, SubscriptionObject.JSON_PROPERTY_DOWNGRADE_PLAN_DATE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class SubscriptionObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -159,6 +160,9 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTED_AT = "started_at"; private JsonNullable startedAt = JsonNullable.undefined(); + public static final String JSON_PROPERTY_ENDING_AT = "ending_at"; + private OffsetDateTime endingAt; + public static final String JSON_PROPERTY_SUBSCRIPTION_AT = "subscription_at"; private OffsetDateTime subscriptionAt; @@ -487,6 +491,32 @@ public void setStartedAt(OffsetDateTime startedAt) { } + public SubscriptionObject endingAt(OffsetDateTime endingAt) { + + this.endingAt = endingAt; + return this; + } + + /** + * The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC). + * @return endingAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDING_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getEndingAt() { + return endingAt; + } + + + @JsonProperty(JSON_PROPERTY_ENDING_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndingAt(OffsetDateTime endingAt) { + this.endingAt = endingAt; + } + + public SubscriptionObject subscriptionAt(OffsetDateTime subscriptionAt) { this.subscriptionAt = subscriptionAt; @@ -668,6 +698,7 @@ public boolean equals(Object o) { Objects.equals(this.createdAt, subscriptionObject.createdAt) && equalsNullable(this.canceledAt, subscriptionObject.canceledAt) && equalsNullable(this.startedAt, subscriptionObject.startedAt) && + Objects.equals(this.endingAt, subscriptionObject.endingAt) && Objects.equals(this.subscriptionAt, subscriptionObject.subscriptionAt) && equalsNullable(this.terminatedAt, subscriptionObject.terminatedAt) && equalsNullable(this.previousPlanCode, subscriptionObject.previousPlanCode) && @@ -681,7 +712,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lagoId, externalId, lagoCustomerId, externalCustomerId, billingTime, hashCodeNullable(name), planCode, status, createdAt, hashCodeNullable(canceledAt), hashCodeNullable(startedAt), subscriptionAt, hashCodeNullable(terminatedAt), hashCodeNullable(previousPlanCode), hashCodeNullable(nextPlanCode), hashCodeNullable(downgradePlanDate)); + return Objects.hash(lagoId, externalId, lagoCustomerId, externalCustomerId, billingTime, hashCodeNullable(name), planCode, status, createdAt, hashCodeNullable(canceledAt), hashCodeNullable(startedAt), endingAt, subscriptionAt, hashCodeNullable(terminatedAt), hashCodeNullable(previousPlanCode), hashCodeNullable(nextPlanCode), hashCodeNullable(downgradePlanDate)); } private static int hashCodeNullable(JsonNullable a) { @@ -706,6 +737,7 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" canceledAt: ").append(toIndentedString(canceledAt)).append("\n"); sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n"); + sb.append(" endingAt: ").append(toIndentedString(endingAt)).append("\n"); sb.append(" subscriptionAt: ").append(toIndentedString(subscriptionAt)).append("\n"); sb.append(" terminatedAt: ").append(toIndentedString(terminatedAt)).append("\n"); sb.append(" previousPlanCode: ").append(toIndentedString(previousPlanCode)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/SubscriptionObjectExtended.java b/src/main/java/org/openapitools/client/model/SubscriptionObjectExtended.java new file mode 100644 index 0000000..cd0babe --- /dev/null +++ b/src/main/java/org/openapitools/client/model/SubscriptionObjectExtended.java @@ -0,0 +1,795 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.UUID; +import org.openapitools.client.model.PlanObject; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * SubscriptionObjectExtended + */ +@JsonPropertyOrder({ + SubscriptionObjectExtended.JSON_PROPERTY_LAGO_ID, + SubscriptionObjectExtended.JSON_PROPERTY_EXTERNAL_ID, + SubscriptionObjectExtended.JSON_PROPERTY_LAGO_CUSTOMER_ID, + SubscriptionObjectExtended.JSON_PROPERTY_EXTERNAL_CUSTOMER_ID, + SubscriptionObjectExtended.JSON_PROPERTY_BILLING_TIME, + SubscriptionObjectExtended.JSON_PROPERTY_NAME, + SubscriptionObjectExtended.JSON_PROPERTY_PLAN_CODE, + SubscriptionObjectExtended.JSON_PROPERTY_STATUS, + SubscriptionObjectExtended.JSON_PROPERTY_CREATED_AT, + SubscriptionObjectExtended.JSON_PROPERTY_CANCELED_AT, + SubscriptionObjectExtended.JSON_PROPERTY_STARTED_AT, + SubscriptionObjectExtended.JSON_PROPERTY_ENDING_AT, + SubscriptionObjectExtended.JSON_PROPERTY_SUBSCRIPTION_AT, + SubscriptionObjectExtended.JSON_PROPERTY_TERMINATED_AT, + SubscriptionObjectExtended.JSON_PROPERTY_PREVIOUS_PLAN_CODE, + SubscriptionObjectExtended.JSON_PROPERTY_NEXT_PLAN_CODE, + SubscriptionObjectExtended.JSON_PROPERTY_DOWNGRADE_PLAN_DATE, + SubscriptionObjectExtended.JSON_PROPERTY_PLAN +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class SubscriptionObjectExtended { + public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; + private UUID lagoId; + + public static final String JSON_PROPERTY_EXTERNAL_ID = "external_id"; + private String externalId; + + public static final String JSON_PROPERTY_LAGO_CUSTOMER_ID = "lago_customer_id"; + private UUID lagoCustomerId; + + public static final String JSON_PROPERTY_EXTERNAL_CUSTOMER_ID = "external_customer_id"; + private String externalCustomerId; + + /** + * The billing time for the subscription, which can be set as either `anniversary` or `calendar`. If not explicitly provided, it will default to `calendar`. The billing time determines the timing of recurring billing cycles for the subscription. By specifying `anniversary`, the billing cycle will be based on the specific date the subscription started (billed fully), while `calendar` sets the billing cycle at the first day of the week/month/year (billed with proration). + */ + public enum BillingTimeEnum { + CALENDAR("calendar"), + + ANNIVERSARY("anniversary"); + + private String value; + + BillingTimeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BillingTimeEnum fromValue(String value) { + for (BillingTimeEnum b : BillingTimeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_BILLING_TIME = "billing_time"; + private BillingTimeEnum billingTime; + + public static final String JSON_PROPERTY_NAME = "name"; + private JsonNullable name = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_PLAN_CODE = "plan_code"; + private String planCode; + + /** + * The status of the subscription, which can have the following values: - `pending`: a previous subscription has been downgraded, and the current one is awaiting automatic activation at the end of the billing period. - `active`: the subscription is currently active and applied to the customer. - `terminated`: the subscription is no longer active. - `canceled`: the subscription has been stopped before its activation. This can occur when two consecutive downgrades have been applied to a customer or when a subscription with a pending status is terminated. + */ + public enum StatusEnum { + ACTIVE("active"), + + PENDING("pending"), + + TERMINATED("terminated"), + + CANCELED("canceled"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private OffsetDateTime createdAt; + + public static final String JSON_PROPERTY_CANCELED_AT = "canceled_at"; + private JsonNullable canceledAt = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_STARTED_AT = "started_at"; + private JsonNullable startedAt = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_ENDING_AT = "ending_at"; + private OffsetDateTime endingAt; + + public static final String JSON_PROPERTY_SUBSCRIPTION_AT = "subscription_at"; + private OffsetDateTime subscriptionAt; + + public static final String JSON_PROPERTY_TERMINATED_AT = "terminated_at"; + private JsonNullable terminatedAt = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_PREVIOUS_PLAN_CODE = "previous_plan_code"; + private JsonNullable previousPlanCode = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_NEXT_PLAN_CODE = "next_plan_code"; + private JsonNullable nextPlanCode = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_DOWNGRADE_PLAN_DATE = "downgrade_plan_date"; + private JsonNullable downgradePlanDate = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_PLAN = "plan"; + private PlanObject plan; + + public SubscriptionObjectExtended() { + } + + public SubscriptionObjectExtended lagoId(UUID lagoId) { + + this.lagoId = lagoId; + return this; + } + + /** + * Unique identifier assigned to the subscription within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the subscription’s record within the Lago system + * @return lagoId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LAGO_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getLagoId() { + return lagoId; + } + + + @JsonProperty(JSON_PROPERTY_LAGO_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLagoId(UUID lagoId) { + this.lagoId = lagoId; + } + + + public SubscriptionObjectExtended externalId(String externalId) { + + this.externalId = externalId; + return this; + } + + /** + * The subscription external unique identifier (provided by your own application). + * @return externalId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_EXTERNAL_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getExternalId() { + return externalId; + } + + + @JsonProperty(JSON_PROPERTY_EXTERNAL_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setExternalId(String externalId) { + this.externalId = externalId; + } + + + public SubscriptionObjectExtended lagoCustomerId(UUID lagoCustomerId) { + + this.lagoCustomerId = lagoCustomerId; + return this; + } + + /** + * Unique identifier assigned to the customer within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the customer's record within the Lago system + * @return lagoCustomerId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LAGO_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getLagoCustomerId() { + return lagoCustomerId; + } + + + @JsonProperty(JSON_PROPERTY_LAGO_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLagoCustomerId(UUID lagoCustomerId) { + this.lagoCustomerId = lagoCustomerId; + } + + + public SubscriptionObjectExtended externalCustomerId(String externalCustomerId) { + + this.externalCustomerId = externalCustomerId; + return this; + } + + /** + * The customer external unique identifier (provided by your own application). + * @return externalCustomerId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getExternalCustomerId() { + return externalCustomerId; + } + + + @JsonProperty(JSON_PROPERTY_EXTERNAL_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setExternalCustomerId(String externalCustomerId) { + this.externalCustomerId = externalCustomerId; + } + + + public SubscriptionObjectExtended billingTime(BillingTimeEnum billingTime) { + + this.billingTime = billingTime; + return this; + } + + /** + * The billing time for the subscription, which can be set as either `anniversary` or `calendar`. If not explicitly provided, it will default to `calendar`. The billing time determines the timing of recurring billing cycles for the subscription. By specifying `anniversary`, the billing cycle will be based on the specific date the subscription started (billed fully), while `calendar` sets the billing cycle at the first day of the week/month/year (billed with proration). + * @return billingTime + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_BILLING_TIME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public BillingTimeEnum getBillingTime() { + return billingTime; + } + + + @JsonProperty(JSON_PROPERTY_BILLING_TIME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBillingTime(BillingTimeEnum billingTime) { + this.billingTime = billingTime; + } + + + public SubscriptionObjectExtended name(String name) { + this.name = JsonNullable.of(name); + + return this; + } + + /** + * The display name of the subscription on an invoice. This field allows for customization of the subscription's name for billing purposes, especially useful when a single customer has multiple subscriptions using the same plan. + * @return name + **/ + @javax.annotation.Nullable + @JsonIgnore + + public String getName() { + return name.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getName_JsonNullable() { + return name; + } + + @JsonProperty(JSON_PROPERTY_NAME) + public void setName_JsonNullable(JsonNullable name) { + this.name = name; + } + + public void setName(String name) { + this.name = JsonNullable.of(name); + } + + + public SubscriptionObjectExtended planCode(String planCode) { + + this.planCode = planCode; + return this; + } + + /** + * The unique code representing the plan to be attached to the customer. This code must correspond to the `code` property of one of the active plans. + * @return planCode + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PLAN_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getPlanCode() { + return planCode; + } + + + @JsonProperty(JSON_PROPERTY_PLAN_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPlanCode(String planCode) { + this.planCode = planCode; + } + + + public SubscriptionObjectExtended status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * The status of the subscription, which can have the following values: - `pending`: a previous subscription has been downgraded, and the current one is awaiting automatic activation at the end of the billing period. - `active`: the subscription is currently active and applied to the customer. - `terminated`: the subscription is no longer active. - `canceled`: the subscription has been stopped before its activation. This can occur when two consecutive downgrades have been applied to a customer or when a subscription with a pending status is terminated. + * @return status + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public StatusEnum getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public SubscriptionObjectExtended createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * The creation date of the subscription, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). This date provides a timestamp indicating when the subscription was initially created. + * @return createdAt + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public SubscriptionObjectExtended canceledAt(OffsetDateTime canceledAt) { + this.canceledAt = JsonNullable.of(canceledAt); + + return this; + } + + /** + * The cancellation date of the subscription. This field is not null when the subscription is `canceled`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). + * @return canceledAt + **/ + @javax.annotation.Nullable + @JsonIgnore + + public OffsetDateTime getCanceledAt() { + return canceledAt.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_CANCELED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getCanceledAt_JsonNullable() { + return canceledAt; + } + + @JsonProperty(JSON_PROPERTY_CANCELED_AT) + public void setCanceledAt_JsonNullable(JsonNullable canceledAt) { + this.canceledAt = canceledAt; + } + + public void setCanceledAt(OffsetDateTime canceledAt) { + this.canceledAt = JsonNullable.of(canceledAt); + } + + + public SubscriptionObjectExtended startedAt(OffsetDateTime startedAt) { + this.startedAt = JsonNullable.of(startedAt); + + return this; + } + + /** + * The effective start date of the subscription. This field can be null if the subscription is `pending` or `canceled`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). + * @return startedAt + **/ + @javax.annotation.Nullable + @JsonIgnore + + public OffsetDateTime getStartedAt() { + return startedAt.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_STARTED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getStartedAt_JsonNullable() { + return startedAt; + } + + @JsonProperty(JSON_PROPERTY_STARTED_AT) + public void setStartedAt_JsonNullable(JsonNullable startedAt) { + this.startedAt = startedAt; + } + + public void setStartedAt(OffsetDateTime startedAt) { + this.startedAt = JsonNullable.of(startedAt); + } + + + public SubscriptionObjectExtended endingAt(OffsetDateTime endingAt) { + + this.endingAt = endingAt; + return this; + } + + /** + * The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC). + * @return endingAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDING_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getEndingAt() { + return endingAt; + } + + + @JsonProperty(JSON_PROPERTY_ENDING_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndingAt(OffsetDateTime endingAt) { + this.endingAt = endingAt; + } + + + public SubscriptionObjectExtended subscriptionAt(OffsetDateTime subscriptionAt) { + + this.subscriptionAt = subscriptionAt; + return this; + } + + /** + * The anniversary date and time of the initial subscription. This date serves as the basis for billing subscriptions with `anniversary` billing time. The `anniversary_date` should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). + * @return subscriptionAt + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public OffsetDateTime getSubscriptionAt() { + return subscriptionAt; + } + + + @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSubscriptionAt(OffsetDateTime subscriptionAt) { + this.subscriptionAt = subscriptionAt; + } + + + public SubscriptionObjectExtended terminatedAt(OffsetDateTime terminatedAt) { + this.terminatedAt = JsonNullable.of(terminatedAt); + + return this; + } + + /** + * The termination date of the subscription. This field is not null when the subscription is `terminated`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC) + * @return terminatedAt + **/ + @javax.annotation.Nullable + @JsonIgnore + + public OffsetDateTime getTerminatedAt() { + return terminatedAt.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_TERMINATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getTerminatedAt_JsonNullable() { + return terminatedAt; + } + + @JsonProperty(JSON_PROPERTY_TERMINATED_AT) + public void setTerminatedAt_JsonNullable(JsonNullable terminatedAt) { + this.terminatedAt = terminatedAt; + } + + public void setTerminatedAt(OffsetDateTime terminatedAt) { + this.terminatedAt = JsonNullable.of(terminatedAt); + } + + + public SubscriptionObjectExtended previousPlanCode(String previousPlanCode) { + this.previousPlanCode = JsonNullable.of(previousPlanCode); + + return this; + } + + /** + * The code identifying the previous plan associated with this subscription. + * @return previousPlanCode + **/ + @javax.annotation.Nullable + @JsonIgnore + + public String getPreviousPlanCode() { + return previousPlanCode.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_PREVIOUS_PLAN_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getPreviousPlanCode_JsonNullable() { + return previousPlanCode; + } + + @JsonProperty(JSON_PROPERTY_PREVIOUS_PLAN_CODE) + public void setPreviousPlanCode_JsonNullable(JsonNullable previousPlanCode) { + this.previousPlanCode = previousPlanCode; + } + + public void setPreviousPlanCode(String previousPlanCode) { + this.previousPlanCode = JsonNullable.of(previousPlanCode); + } + + + public SubscriptionObjectExtended nextPlanCode(String nextPlanCode) { + this.nextPlanCode = JsonNullable.of(nextPlanCode); + + return this; + } + + /** + * The code identifying the next plan in the case of a downgrade. + * @return nextPlanCode + **/ + @javax.annotation.Nullable + @JsonIgnore + + public String getNextPlanCode() { + return nextPlanCode.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_NEXT_PLAN_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getNextPlanCode_JsonNullable() { + return nextPlanCode; + } + + @JsonProperty(JSON_PROPERTY_NEXT_PLAN_CODE) + public void setNextPlanCode_JsonNullable(JsonNullable nextPlanCode) { + this.nextPlanCode = nextPlanCode; + } + + public void setNextPlanCode(String nextPlanCode) { + this.nextPlanCode = JsonNullable.of(nextPlanCode); + } + + + public SubscriptionObjectExtended downgradePlanDate(OffsetDateTime downgradePlanDate) { + this.downgradePlanDate = JsonNullable.of(downgradePlanDate); + + return this; + } + + /** + * The date when the plan will be downgraded, represented in ISO 8601 date format. + * @return downgradePlanDate + **/ + @javax.annotation.Nullable + @JsonIgnore + + public OffsetDateTime getDowngradePlanDate() { + return downgradePlanDate.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_DOWNGRADE_PLAN_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getDowngradePlanDate_JsonNullable() { + return downgradePlanDate; + } + + @JsonProperty(JSON_PROPERTY_DOWNGRADE_PLAN_DATE) + public void setDowngradePlanDate_JsonNullable(JsonNullable downgradePlanDate) { + this.downgradePlanDate = downgradePlanDate; + } + + public void setDowngradePlanDate(OffsetDateTime downgradePlanDate) { + this.downgradePlanDate = JsonNullable.of(downgradePlanDate); + } + + + public SubscriptionObjectExtended plan(PlanObject plan) { + + this.plan = plan; + return this; + } + + /** + * Get plan + * @return plan + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PLAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PlanObject getPlan() { + return plan; + } + + + @JsonProperty(JSON_PROPERTY_PLAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPlan(PlanObject plan) { + this.plan = plan; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SubscriptionObjectExtended subscriptionObjectExtended = (SubscriptionObjectExtended) o; + return Objects.equals(this.lagoId, subscriptionObjectExtended.lagoId) && + Objects.equals(this.externalId, subscriptionObjectExtended.externalId) && + Objects.equals(this.lagoCustomerId, subscriptionObjectExtended.lagoCustomerId) && + Objects.equals(this.externalCustomerId, subscriptionObjectExtended.externalCustomerId) && + Objects.equals(this.billingTime, subscriptionObjectExtended.billingTime) && + equalsNullable(this.name, subscriptionObjectExtended.name) && + Objects.equals(this.planCode, subscriptionObjectExtended.planCode) && + Objects.equals(this.status, subscriptionObjectExtended.status) && + Objects.equals(this.createdAt, subscriptionObjectExtended.createdAt) && + equalsNullable(this.canceledAt, subscriptionObjectExtended.canceledAt) && + equalsNullable(this.startedAt, subscriptionObjectExtended.startedAt) && + Objects.equals(this.endingAt, subscriptionObjectExtended.endingAt) && + Objects.equals(this.subscriptionAt, subscriptionObjectExtended.subscriptionAt) && + equalsNullable(this.terminatedAt, subscriptionObjectExtended.terminatedAt) && + equalsNullable(this.previousPlanCode, subscriptionObjectExtended.previousPlanCode) && + equalsNullable(this.nextPlanCode, subscriptionObjectExtended.nextPlanCode) && + equalsNullable(this.downgradePlanDate, subscriptionObjectExtended.downgradePlanDate) && + Objects.equals(this.plan, subscriptionObjectExtended.plan); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(lagoId, externalId, lagoCustomerId, externalCustomerId, billingTime, hashCodeNullable(name), planCode, status, createdAt, hashCodeNullable(canceledAt), hashCodeNullable(startedAt), endingAt, subscriptionAt, hashCodeNullable(terminatedAt), hashCodeNullable(previousPlanCode), hashCodeNullable(nextPlanCode), hashCodeNullable(downgradePlanDate), plan); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SubscriptionObjectExtended {\n"); + sb.append(" lagoId: ").append(toIndentedString(lagoId)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); + sb.append(" lagoCustomerId: ").append(toIndentedString(lagoCustomerId)).append("\n"); + sb.append(" externalCustomerId: ").append(toIndentedString(externalCustomerId)).append("\n"); + sb.append(" billingTime: ").append(toIndentedString(billingTime)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" planCode: ").append(toIndentedString(planCode)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" canceledAt: ").append(toIndentedString(canceledAt)).append("\n"); + sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n"); + sb.append(" endingAt: ").append(toIndentedString(endingAt)).append("\n"); + sb.append(" subscriptionAt: ").append(toIndentedString(subscriptionAt)).append("\n"); + sb.append(" terminatedAt: ").append(toIndentedString(terminatedAt)).append("\n"); + sb.append(" previousPlanCode: ").append(toIndentedString(previousPlanCode)).append("\n"); + sb.append(" nextPlanCode: ").append(toIndentedString(nextPlanCode)).append("\n"); + sb.append(" downgradePlanDate: ").append(toIndentedString(downgradePlanDate)).append("\n"); + sb.append(" plan: ").append(toIndentedString(plan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/SubscriptionUpdateInput.java b/src/main/java/org/openapitools/client/model/SubscriptionUpdateInput.java index 7685a6c..c2174f9 100644 --- a/src/main/java/org/openapitools/client/model/SubscriptionUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/SubscriptionUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ SubscriptionUpdateInput.JSON_PROPERTY_SUBSCRIPTION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class SubscriptionUpdateInput { public static final String JSON_PROPERTY_SUBSCRIPTION = "subscription"; private SubscriptionUpdateInputSubscription subscription; diff --git a/src/main/java/org/openapitools/client/model/SubscriptionUpdateInputSubscription.java b/src/main/java/org/openapitools/client/model/SubscriptionUpdateInputSubscription.java index f078d55..1263f37 100644 --- a/src/main/java/org/openapitools/client/model/SubscriptionUpdateInputSubscription.java +++ b/src/main/java/org/openapitools/client/model/SubscriptionUpdateInputSubscription.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import org.openapitools.client.model.PlanOverridesObject; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; @@ -33,17 +34,25 @@ */ @JsonPropertyOrder({ SubscriptionUpdateInputSubscription.JSON_PROPERTY_NAME, - SubscriptionUpdateInputSubscription.JSON_PROPERTY_SUBSCRIPTION_AT + SubscriptionUpdateInputSubscription.JSON_PROPERTY_ENDING_AT, + SubscriptionUpdateInputSubscription.JSON_PROPERTY_SUBSCRIPTION_AT, + SubscriptionUpdateInputSubscription.JSON_PROPERTY_PLAN_OVERRIDES }) @JsonTypeName("SubscriptionUpdateInput_subscription") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class SubscriptionUpdateInputSubscription { public static final String JSON_PROPERTY_NAME = "name"; private JsonNullable name = JsonNullable.undefined(); + public static final String JSON_PROPERTY_ENDING_AT = "ending_at"; + private OffsetDateTime endingAt; + public static final String JSON_PROPERTY_SUBSCRIPTION_AT = "subscription_at"; private OffsetDateTime subscriptionAt; + public static final String JSON_PROPERTY_PLAN_OVERRIDES = "plan_overrides"; + private PlanOverridesObject planOverrides; + public SubscriptionUpdateInputSubscription() { } @@ -81,6 +90,32 @@ public void setName(String name) { } + public SubscriptionUpdateInputSubscription endingAt(OffsetDateTime endingAt) { + + this.endingAt = endingAt; + return this; + } + + /** + * The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC). + * @return endingAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDING_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getEndingAt() { + return endingAt; + } + + + @JsonProperty(JSON_PROPERTY_ENDING_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndingAt(OffsetDateTime endingAt) { + this.endingAt = endingAt; + } + + public SubscriptionUpdateInputSubscription subscriptionAt(OffsetDateTime subscriptionAt) { this.subscriptionAt = subscriptionAt; @@ -106,6 +141,32 @@ public void setSubscriptionAt(OffsetDateTime subscriptionAt) { this.subscriptionAt = subscriptionAt; } + + public SubscriptionUpdateInputSubscription planOverrides(PlanOverridesObject planOverrides) { + + this.planOverrides = planOverrides; + return this; + } + + /** + * Get planOverrides + * @return planOverrides + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PLAN_OVERRIDES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PlanOverridesObject getPlanOverrides() { + return planOverrides; + } + + + @JsonProperty(JSON_PROPERTY_PLAN_OVERRIDES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPlanOverrides(PlanOverridesObject planOverrides) { + this.planOverrides = planOverrides; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -116,7 +177,9 @@ public boolean equals(Object o) { } SubscriptionUpdateInputSubscription subscriptionUpdateInputSubscription = (SubscriptionUpdateInputSubscription) o; return equalsNullable(this.name, subscriptionUpdateInputSubscription.name) && - Objects.equals(this.subscriptionAt, subscriptionUpdateInputSubscription.subscriptionAt); + Objects.equals(this.endingAt, subscriptionUpdateInputSubscription.endingAt) && + Objects.equals(this.subscriptionAt, subscriptionUpdateInputSubscription.subscriptionAt) && + Objects.equals(this.planOverrides, subscriptionUpdateInputSubscription.planOverrides); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -125,7 +188,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(hashCodeNullable(name), subscriptionAt); + return Objects.hash(hashCodeNullable(name), endingAt, subscriptionAt, planOverrides); } private static int hashCodeNullable(JsonNullable a) { @@ -140,7 +203,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SubscriptionUpdateInputSubscription {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" endingAt: ").append(toIndentedString(endingAt)).append("\n"); sb.append(" subscriptionAt: ").append(toIndentedString(subscriptionAt)).append("\n"); + sb.append(" planOverrides: ").append(toIndentedString(planOverrides)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/openapitools/client/model/SubscriptionsPaginated.java b/src/main/java/org/openapitools/client/model/SubscriptionsPaginated.java index cb71cde..5fa986b 100644 --- a/src/main/java/org/openapitools/client/model/SubscriptionsPaginated.java +++ b/src/main/java/org/openapitools/client/model/SubscriptionsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.SubscriptionObject; @@ -34,7 +35,7 @@ SubscriptionsPaginated.JSON_PROPERTY_SUBSCRIPTIONS, SubscriptionsPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class SubscriptionsPaginated { public static final String JSON_PROPERTY_SUBSCRIPTIONS = "subscriptions"; private List subscriptions = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/Tax.java b/src/main/java/org/openapitools/client/model/Tax.java index aac504d..3b0e715 100644 --- a/src/main/java/org/openapitools/client/model/Tax.java +++ b/src/main/java/org/openapitools/client/model/Tax.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Tax.JSON_PROPERTY_TAX }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Tax { public static final String JSON_PROPERTY_TAX = "tax"; private TaxObject tax; diff --git a/src/main/java/org/openapitools/client/model/TaxBaseInput.java b/src/main/java/org/openapitools/client/model/TaxBaseInput.java index f07998c..5b93835 100644 --- a/src/main/java/org/openapitools/client/model/TaxBaseInput.java +++ b/src/main/java/org/openapitools/client/model/TaxBaseInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -37,7 +37,7 @@ TaxBaseInput.JSON_PROPERTY_DESCRIPTION, TaxBaseInput.JSON_PROPERTY_APPLIED_TO_ORGANIZATION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class TaxBaseInput { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/TaxCreateInput.java b/src/main/java/org/openapitools/client/model/TaxCreateInput.java index f676403..b4ea9b6 100644 --- a/src/main/java/org/openapitools/client/model/TaxCreateInput.java +++ b/src/main/java/org/openapitools/client/model/TaxCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ TaxCreateInput.JSON_PROPERTY_TAX }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class TaxCreateInput { public static final String JSON_PROPERTY_TAX = "tax"; private TaxCreateInputTax tax; diff --git a/src/main/java/org/openapitools/client/model/TaxCreateInputTax.java b/src/main/java/org/openapitools/client/model/TaxCreateInputTax.java index fdf9f83..8586c52 100644 --- a/src/main/java/org/openapitools/client/model/TaxCreateInputTax.java +++ b/src/main/java/org/openapitools/client/model/TaxCreateInputTax.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -38,7 +38,7 @@ TaxCreateInputTax.JSON_PROPERTY_APPLIED_TO_ORGANIZATION }) @JsonTypeName("TaxCreateInput_tax") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class TaxCreateInputTax { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/TaxObject.java b/src/main/java/org/openapitools/client/model/TaxObject.java index 859874e..528f4e4 100644 --- a/src/main/java/org/openapitools/client/model/TaxObject.java +++ b/src/main/java/org/openapitools/client/model/TaxObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,7 +42,7 @@ TaxObject.JSON_PROPERTY_PLANS_COUNT, TaxObject.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class TaxObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/TaxUpdateInput.java b/src/main/java/org/openapitools/client/model/TaxUpdateInput.java index ef866e2..a48c5ee 100644 --- a/src/main/java/org/openapitools/client/model/TaxUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/TaxUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ TaxUpdateInput.JSON_PROPERTY_TAX }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class TaxUpdateInput { public static final String JSON_PROPERTY_TAX = "tax"; private TaxBaseInput tax; diff --git a/src/main/java/org/openapitools/client/model/TaxesPaginated.java b/src/main/java/org/openapitools/client/model/TaxesPaginated.java index 90aa592..7526262 100644 --- a/src/main/java/org/openapitools/client/model/TaxesPaginated.java +++ b/src/main/java/org/openapitools/client/model/TaxesPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.TaxObject; @@ -34,7 +35,7 @@ TaxesPaginated.JSON_PROPERTY_TAXES, TaxesPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class TaxesPaginated { public static final String JSON_PROPERTY_TAXES = "taxes"; private List taxes = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/Timezone.java b/src/main/java/org/openapitools/client/model/Timezone.java index 60d111b..9cbbd27 100644 --- a/src/main/java/org/openapitools/client/model/Timezone.java +++ b/src/main/java/org/openapitools/client/model/Timezone.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/org/openapitools/client/model/Wallet.java b/src/main/java/org/openapitools/client/model/Wallet.java index 7216086..c86b35e 100644 --- a/src/main/java/org/openapitools/client/model/Wallet.java +++ b/src/main/java/org/openapitools/client/model/Wallet.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ Wallet.JSON_PROPERTY_WALLET }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class Wallet { public static final String JSON_PROPERTY_WALLET = "wallet"; private WalletObject wallet; diff --git a/src/main/java/org/openapitools/client/model/WalletCreateInput.java b/src/main/java/org/openapitools/client/model/WalletCreateInput.java index 0053b04..5b11162 100644 --- a/src/main/java/org/openapitools/client/model/WalletCreateInput.java +++ b/src/main/java/org/openapitools/client/model/WalletCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ WalletCreateInput.JSON_PROPERTY_WALLET }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletCreateInput { public static final String JSON_PROPERTY_WALLET = "wallet"; private WalletCreateInputWallet wallet; diff --git a/src/main/java/org/openapitools/client/model/WalletCreateInputWallet.java b/src/main/java/org/openapitools/client/model/WalletCreateInputWallet.java index 8d51713..a1ae83d 100644 --- a/src/main/java/org/openapitools/client/model/WalletCreateInputWallet.java +++ b/src/main/java/org/openapitools/client/model/WalletCreateInputWallet.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,7 +42,7 @@ WalletCreateInputWallet.JSON_PROPERTY_EXPIRATION_AT }) @JsonTypeName("WalletCreateInput_wallet") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletCreateInputWallet { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/WalletObject.java b/src/main/java/org/openapitools/client/model/WalletObject.java index 9b20af2..f180262 100644 --- a/src/main/java/org/openapitools/client/model/WalletObject.java +++ b/src/main/java/org/openapitools/client/model/WalletObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ WalletObject.JSON_PROPERTY_LAST_CONSUMED_CREDIT_AT, WalletObject.JSON_PROPERTY_TERMINATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/WalletTransactionCreateInput.java b/src/main/java/org/openapitools/client/model/WalletTransactionCreateInput.java index 15f026d..ab1a055 100644 --- a/src/main/java/org/openapitools/client/model/WalletTransactionCreateInput.java +++ b/src/main/java/org/openapitools/client/model/WalletTransactionCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ WalletTransactionCreateInput.JSON_PROPERTY_WALLET_TRANSACTION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletTransactionCreateInput { public static final String JSON_PROPERTY_WALLET_TRANSACTION = "wallet_transaction"; private WalletTransactionCreateInputWalletTransaction walletTransaction; diff --git a/src/main/java/org/openapitools/client/model/WalletTransactionCreateInputWalletTransaction.java b/src/main/java/org/openapitools/client/model/WalletTransactionCreateInputWalletTransaction.java index a2f69c2..29db5d0 100644 --- a/src/main/java/org/openapitools/client/model/WalletTransactionCreateInputWalletTransaction.java +++ b/src/main/java/org/openapitools/client/model/WalletTransactionCreateInputWalletTransaction.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,7 +33,7 @@ WalletTransactionCreateInputWalletTransaction.JSON_PROPERTY_GRANTED_CREDITS }) @JsonTypeName("WalletTransactionCreateInput_wallet_transaction") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletTransactionCreateInputWalletTransaction { public static final String JSON_PROPERTY_WALLET_ID = "wallet_id"; private UUID walletId; diff --git a/src/main/java/org/openapitools/client/model/WalletTransactionObject.java b/src/main/java/org/openapitools/client/model/WalletTransactionObject.java index 1f21bed..1069b13 100644 --- a/src/main/java/org/openapitools/client/model/WalletTransactionObject.java +++ b/src/main/java/org/openapitools/client/model/WalletTransactionObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -38,7 +38,7 @@ WalletTransactionObject.JSON_PROPERTY_SETTLED_AT, WalletTransactionObject.JSON_PROPERTY_CREATED_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletTransactionObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; diff --git a/src/main/java/org/openapitools/client/model/WalletTransactions.java b/src/main/java/org/openapitools/client/model/WalletTransactions.java index cc953dd..46c7073 100644 --- a/src/main/java/org/openapitools/client/model/WalletTransactions.java +++ b/src/main/java/org/openapitools/client/model/WalletTransactions.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.WalletTransactionObject; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -32,7 +33,7 @@ @JsonPropertyOrder({ WalletTransactions.JSON_PROPERTY_WALLET_TRANSACTIONS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletTransactions { public static final String JSON_PROPERTY_WALLET_TRANSACTIONS = "wallet_transactions"; private List walletTransactions = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/WalletTransactionsPaginated.java b/src/main/java/org/openapitools/client/model/WalletTransactionsPaginated.java index aedc053..11dd466 100644 --- a/src/main/java/org/openapitools/client/model/WalletTransactionsPaginated.java +++ b/src/main/java/org/openapitools/client/model/WalletTransactionsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.WalletTransactionObject; @@ -34,7 +35,7 @@ WalletTransactionsPaginated.JSON_PROPERTY_WALLET_TRANSACTIONS, WalletTransactionsPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletTransactionsPaginated { public static final String JSON_PROPERTY_WALLET_TRANSACTIONS = "wallet_transactions"; private List walletTransactions = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/WalletUpdateInput.java b/src/main/java/org/openapitools/client/model/WalletUpdateInput.java index 9d8551c..cb1b1b5 100644 --- a/src/main/java/org/openapitools/client/model/WalletUpdateInput.java +++ b/src/main/java/org/openapitools/client/model/WalletUpdateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ @JsonPropertyOrder({ WalletUpdateInput.JSON_PROPERTY_WALLET }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletUpdateInput { public static final String JSON_PROPERTY_WALLET = "wallet"; private WalletUpdateInputWallet wallet; diff --git a/src/main/java/org/openapitools/client/model/WalletUpdateInputWallet.java b/src/main/java/org/openapitools/client/model/WalletUpdateInputWallet.java index c5adef5..a3c61de 100644 --- a/src/main/java/org/openapitools/client/model/WalletUpdateInputWallet.java +++ b/src/main/java/org/openapitools/client/model/WalletUpdateInputWallet.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,7 +36,7 @@ WalletUpdateInputWallet.JSON_PROPERTY_EXPIRATION_AT }) @JsonTypeName("WalletUpdateInput_wallet") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletUpdateInputWallet { public static final String JSON_PROPERTY_NAME = "name"; private JsonNullable name = JsonNullable.undefined(); diff --git a/src/main/java/org/openapitools/client/model/WalletsPaginated.java b/src/main/java/org/openapitools/client/model/WalletsPaginated.java index e4dbeca..c078fc4 100644 --- a/src/main/java/org/openapitools/client/model/WalletsPaginated.java +++ b/src/main/java/org/openapitools/client/model/WalletsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.WalletObject; @@ -34,7 +35,7 @@ WalletsPaginated.JSON_PROPERTY_WALLETS, WalletsPaginated.JSON_PROPERTY_META }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") public class WalletsPaginated { public static final String JSON_PROPERTY_WALLETS = "wallets"; private List wallets = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/CreateWebhookEndpoint200Response.java b/src/main/java/org/openapitools/client/model/WebhookEndpoint.java similarity index 66% rename from src/main/java/org/openapitools/client/model/CreateWebhookEndpoint200Response.java rename to src/main/java/org/openapitools/client/model/WebhookEndpoint.java index 24064c7..de5c93f 100644 --- a/src/main/java/org/openapitools/client/model/CreateWebhookEndpoint200Response.java +++ b/src/main/java/org/openapitools/client/model/WebhookEndpoint.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,26 +20,25 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.CreateWebhookEndpoint200ResponseWebhookEndpoint; +import org.openapitools.client.model.WebhookEndpointObject; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** - * CreateWebhookEndpoint200Response + * WebhookEndpoint */ @JsonPropertyOrder({ - CreateWebhookEndpoint200Response.JSON_PROPERTY_WEBHOOK_ENDPOINT + WebhookEndpoint.JSON_PROPERTY_WEBHOOK_ENDPOINT }) -@JsonTypeName("createWebhookEndpoint_200_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class CreateWebhookEndpoint200Response { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class WebhookEndpoint { public static final String JSON_PROPERTY_WEBHOOK_ENDPOINT = "webhook_endpoint"; - private CreateWebhookEndpoint200ResponseWebhookEndpoint webhookEndpoint; + private WebhookEndpointObject webhookEndpoint; - public CreateWebhookEndpoint200Response() { + public WebhookEndpoint() { } - public CreateWebhookEndpoint200Response webhookEndpoint(CreateWebhookEndpoint200ResponseWebhookEndpoint webhookEndpoint) { + public WebhookEndpoint webhookEndpoint(WebhookEndpointObject webhookEndpoint) { this.webhookEndpoint = webhookEndpoint; return this; @@ -53,14 +52,14 @@ public CreateWebhookEndpoint200Response webhookEndpoint(CreateWebhookEndpoint200 @JsonProperty(JSON_PROPERTY_WEBHOOK_ENDPOINT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateWebhookEndpoint200ResponseWebhookEndpoint getWebhookEndpoint() { + public WebhookEndpointObject getWebhookEndpoint() { return webhookEndpoint; } @JsonProperty(JSON_PROPERTY_WEBHOOK_ENDPOINT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWebhookEndpoint(CreateWebhookEndpoint200ResponseWebhookEndpoint webhookEndpoint) { + public void setWebhookEndpoint(WebhookEndpointObject webhookEndpoint) { this.webhookEndpoint = webhookEndpoint; } @@ -72,8 +71,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateWebhookEndpoint200Response createWebhookEndpoint200Response = (CreateWebhookEndpoint200Response) o; - return Objects.equals(this.webhookEndpoint, createWebhookEndpoint200Response.webhookEndpoint); + WebhookEndpoint webhookEndpoint = (WebhookEndpoint) o; + return Objects.equals(this.webhookEndpoint, webhookEndpoint.webhookEndpoint); } @Override @@ -84,7 +83,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateWebhookEndpoint200Response {\n"); + sb.append("class WebhookEndpoint {\n"); sb.append(" webhookEndpoint: ").append(toIndentedString(webhookEndpoint)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/openapitools/client/model/CreateWebhookEndpointRequest.java b/src/main/java/org/openapitools/client/model/WebhookEndpointCreateInput.java similarity index 68% rename from src/main/java/org/openapitools/client/model/CreateWebhookEndpointRequest.java rename to src/main/java/org/openapitools/client/model/WebhookEndpointCreateInput.java index 10a062b..a381d2b 100644 --- a/src/main/java/org/openapitools/client/model/CreateWebhookEndpointRequest.java +++ b/src/main/java/org/openapitools/client/model/WebhookEndpointCreateInput.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,26 +20,25 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.CreateWebhookEndpointRequestWebhookEndpoint; +import org.openapitools.client.model.WebhookEndpointCreateInputWebhookEndpoint; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** - * CreateWebhookEndpointRequest + * WebhookEndpointCreateInput */ @JsonPropertyOrder({ - CreateWebhookEndpointRequest.JSON_PROPERTY_WEBHOOK_ENDPOINT + WebhookEndpointCreateInput.JSON_PROPERTY_WEBHOOK_ENDPOINT }) -@JsonTypeName("createWebhookEndpoint_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class CreateWebhookEndpointRequest { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class WebhookEndpointCreateInput { public static final String JSON_PROPERTY_WEBHOOK_ENDPOINT = "webhook_endpoint"; - private CreateWebhookEndpointRequestWebhookEndpoint webhookEndpoint; + private WebhookEndpointCreateInputWebhookEndpoint webhookEndpoint; - public CreateWebhookEndpointRequest() { + public WebhookEndpointCreateInput() { } - public CreateWebhookEndpointRequest webhookEndpoint(CreateWebhookEndpointRequestWebhookEndpoint webhookEndpoint) { + public WebhookEndpointCreateInput webhookEndpoint(WebhookEndpointCreateInputWebhookEndpoint webhookEndpoint) { this.webhookEndpoint = webhookEndpoint; return this; @@ -53,14 +52,14 @@ public CreateWebhookEndpointRequest webhookEndpoint(CreateWebhookEndpointRequest @JsonProperty(JSON_PROPERTY_WEBHOOK_ENDPOINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateWebhookEndpointRequestWebhookEndpoint getWebhookEndpoint() { + public WebhookEndpointCreateInputWebhookEndpoint getWebhookEndpoint() { return webhookEndpoint; } @JsonProperty(JSON_PROPERTY_WEBHOOK_ENDPOINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWebhookEndpoint(CreateWebhookEndpointRequestWebhookEndpoint webhookEndpoint) { + public void setWebhookEndpoint(WebhookEndpointCreateInputWebhookEndpoint webhookEndpoint) { this.webhookEndpoint = webhookEndpoint; } @@ -72,8 +71,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateWebhookEndpointRequest createWebhookEndpointRequest = (CreateWebhookEndpointRequest) o; - return Objects.equals(this.webhookEndpoint, createWebhookEndpointRequest.webhookEndpoint); + WebhookEndpointCreateInput webhookEndpointCreateInput = (WebhookEndpointCreateInput) o; + return Objects.equals(this.webhookEndpoint, webhookEndpointCreateInput.webhookEndpoint); } @Override @@ -84,7 +83,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateWebhookEndpointRequest {\n"); + sb.append("class WebhookEndpointCreateInput {\n"); sb.append(" webhookEndpoint: ").append(toIndentedString(webhookEndpoint)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/openapitools/client/model/CreateWebhookEndpointRequestWebhookEndpoint.java b/src/main/java/org/openapitools/client/model/WebhookEndpointCreateInputWebhookEndpoint.java similarity index 81% rename from src/main/java/org/openapitools/client/model/CreateWebhookEndpointRequestWebhookEndpoint.java rename to src/main/java/org/openapitools/client/model/WebhookEndpointCreateInputWebhookEndpoint.java index b770cb4..98c8c54 100644 --- a/src/main/java/org/openapitools/client/model/CreateWebhookEndpointRequestWebhookEndpoint.java +++ b/src/main/java/org/openapitools/client/model/WebhookEndpointCreateInputWebhookEndpoint.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,15 +28,15 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * CreateWebhookEndpointRequestWebhookEndpoint + * WebhookEndpointCreateInputWebhookEndpoint */ @JsonPropertyOrder({ - CreateWebhookEndpointRequestWebhookEndpoint.JSON_PROPERTY_WEBHOOK_URL, - CreateWebhookEndpointRequestWebhookEndpoint.JSON_PROPERTY_SIGNATURE_ALGO + WebhookEndpointCreateInputWebhookEndpoint.JSON_PROPERTY_WEBHOOK_URL, + WebhookEndpointCreateInputWebhookEndpoint.JSON_PROPERTY_SIGNATURE_ALGO }) -@JsonTypeName("createWebhookEndpoint_request_webhook_endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class CreateWebhookEndpointRequestWebhookEndpoint { +@JsonTypeName("WebhookEndpointCreateInput_webhook_endpoint") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class WebhookEndpointCreateInputWebhookEndpoint { public static final String JSON_PROPERTY_WEBHOOK_URL = "webhook_url"; private String webhookUrl; @@ -78,10 +78,10 @@ public static SignatureAlgoEnum fromValue(String value) { public static final String JSON_PROPERTY_SIGNATURE_ALGO = "signature_algo"; private JsonNullable signatureAlgo = JsonNullable.undefined(); - public CreateWebhookEndpointRequestWebhookEndpoint() { + public WebhookEndpointCreateInputWebhookEndpoint() { } - public CreateWebhookEndpointRequestWebhookEndpoint webhookUrl(String webhookUrl) { + public WebhookEndpointCreateInputWebhookEndpoint webhookUrl(String webhookUrl) { this.webhookUrl = webhookUrl; return this; @@ -107,7 +107,7 @@ public void setWebhookUrl(String webhookUrl) { } - public CreateWebhookEndpointRequestWebhookEndpoint signatureAlgo(SignatureAlgoEnum signatureAlgo) { + public WebhookEndpointCreateInputWebhookEndpoint signatureAlgo(SignatureAlgoEnum signatureAlgo) { this.signatureAlgo = JsonNullable.of(signatureAlgo); return this; @@ -148,9 +148,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateWebhookEndpointRequestWebhookEndpoint createWebhookEndpointRequestWebhookEndpoint = (CreateWebhookEndpointRequestWebhookEndpoint) o; - return Objects.equals(this.webhookUrl, createWebhookEndpointRequestWebhookEndpoint.webhookUrl) && - equalsNullable(this.signatureAlgo, createWebhookEndpointRequestWebhookEndpoint.signatureAlgo); + WebhookEndpointCreateInputWebhookEndpoint webhookEndpointCreateInputWebhookEndpoint = (WebhookEndpointCreateInputWebhookEndpoint) o; + return Objects.equals(this.webhookUrl, webhookEndpointCreateInputWebhookEndpoint.webhookUrl) && + equalsNullable(this.signatureAlgo, webhookEndpointCreateInputWebhookEndpoint.signatureAlgo); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -172,7 +172,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateWebhookEndpointRequestWebhookEndpoint {\n"); + sb.append("class WebhookEndpointCreateInputWebhookEndpoint {\n"); sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n"); sb.append(" signatureAlgo: ").append(toIndentedString(signatureAlgo)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseWebhookEndpoint.java b/src/main/java/org/openapitools/client/model/WebhookEndpointObject.java similarity index 76% rename from src/main/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseWebhookEndpoint.java rename to src/main/java/org/openapitools/client/model/WebhookEndpointObject.java index 7d96eaa..c379fc2 100644 --- a/src/main/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseWebhookEndpoint.java +++ b/src/main/java/org/openapitools/client/model/WebhookEndpointObject.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,18 +26,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * CreateWebhookEndpoint200ResponseWebhookEndpoint + * WebhookEndpointObject */ @JsonPropertyOrder({ - CreateWebhookEndpoint200ResponseWebhookEndpoint.JSON_PROPERTY_LAGO_ID, - CreateWebhookEndpoint200ResponseWebhookEndpoint.JSON_PROPERTY_LAGO_ORGANIZATION_ID, - CreateWebhookEndpoint200ResponseWebhookEndpoint.JSON_PROPERTY_WEBHOOK_URL, - CreateWebhookEndpoint200ResponseWebhookEndpoint.JSON_PROPERTY_SIGNATURE_ALGO, - CreateWebhookEndpoint200ResponseWebhookEndpoint.JSON_PROPERTY_CREATED_AT + WebhookEndpointObject.JSON_PROPERTY_LAGO_ID, + WebhookEndpointObject.JSON_PROPERTY_LAGO_ORGANIZATION_ID, + WebhookEndpointObject.JSON_PROPERTY_WEBHOOK_URL, + WebhookEndpointObject.JSON_PROPERTY_SIGNATURE_ALGO, + WebhookEndpointObject.JSON_PROPERTY_CREATED_AT }) -@JsonTypeName("createWebhookEndpoint_200_response_webhook_endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class CreateWebhookEndpoint200ResponseWebhookEndpoint { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class WebhookEndpointObject { public static final String JSON_PROPERTY_LAGO_ID = "lago_id"; private UUID lagoId; @@ -88,10 +87,10 @@ public static SignatureAlgoEnum fromValue(String value) { public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private OffsetDateTime createdAt; - public CreateWebhookEndpoint200ResponseWebhookEndpoint() { + public WebhookEndpointObject() { } - public CreateWebhookEndpoint200ResponseWebhookEndpoint lagoId(UUID lagoId) { + public WebhookEndpointObject lagoId(UUID lagoId) { this.lagoId = lagoId; return this; @@ -117,7 +116,7 @@ public void setLagoId(UUID lagoId) { } - public CreateWebhookEndpoint200ResponseWebhookEndpoint lagoOrganizationId(UUID lagoOrganizationId) { + public WebhookEndpointObject lagoOrganizationId(UUID lagoOrganizationId) { this.lagoOrganizationId = lagoOrganizationId; return this; @@ -143,7 +142,7 @@ public void setLagoOrganizationId(UUID lagoOrganizationId) { } - public CreateWebhookEndpoint200ResponseWebhookEndpoint webhookUrl(String webhookUrl) { + public WebhookEndpointObject webhookUrl(String webhookUrl) { this.webhookUrl = webhookUrl; return this; @@ -169,7 +168,7 @@ public void setWebhookUrl(String webhookUrl) { } - public CreateWebhookEndpoint200ResponseWebhookEndpoint signatureAlgo(SignatureAlgoEnum signatureAlgo) { + public WebhookEndpointObject signatureAlgo(SignatureAlgoEnum signatureAlgo) { this.signatureAlgo = signatureAlgo; return this; @@ -195,7 +194,7 @@ public void setSignatureAlgo(SignatureAlgoEnum signatureAlgo) { } - public CreateWebhookEndpoint200ResponseWebhookEndpoint createdAt(OffsetDateTime createdAt) { + public WebhookEndpointObject createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; return this; @@ -228,12 +227,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateWebhookEndpoint200ResponseWebhookEndpoint createWebhookEndpoint200ResponseWebhookEndpoint = (CreateWebhookEndpoint200ResponseWebhookEndpoint) o; - return Objects.equals(this.lagoId, createWebhookEndpoint200ResponseWebhookEndpoint.lagoId) && - Objects.equals(this.lagoOrganizationId, createWebhookEndpoint200ResponseWebhookEndpoint.lagoOrganizationId) && - Objects.equals(this.webhookUrl, createWebhookEndpoint200ResponseWebhookEndpoint.webhookUrl) && - Objects.equals(this.signatureAlgo, createWebhookEndpoint200ResponseWebhookEndpoint.signatureAlgo) && - Objects.equals(this.createdAt, createWebhookEndpoint200ResponseWebhookEndpoint.createdAt); + WebhookEndpointObject webhookEndpointObject = (WebhookEndpointObject) o; + return Objects.equals(this.lagoId, webhookEndpointObject.lagoId) && + Objects.equals(this.lagoOrganizationId, webhookEndpointObject.lagoOrganizationId) && + Objects.equals(this.webhookUrl, webhookEndpointObject.webhookUrl) && + Objects.equals(this.signatureAlgo, webhookEndpointObject.signatureAlgo) && + Objects.equals(this.createdAt, webhookEndpointObject.createdAt); } @Override @@ -244,7 +243,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateWebhookEndpoint200ResponseWebhookEndpoint {\n"); + sb.append("class WebhookEndpointObject {\n"); sb.append(" lagoId: ").append(toIndentedString(lagoId)).append("\n"); sb.append(" lagoOrganizationId: ").append(toIndentedString(lagoOrganizationId)).append("\n"); sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/WebhookEndpointUpdateInput.java b/src/main/java/org/openapitools/client/model/WebhookEndpointUpdateInput.java new file mode 100644 index 0000000..ad8fc41 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/WebhookEndpointUpdateInput.java @@ -0,0 +1,104 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.WebhookEndpointCreateInputWebhookEndpoint; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WebhookEndpointUpdateInput + */ +@JsonPropertyOrder({ + WebhookEndpointUpdateInput.JSON_PROPERTY_WEBHOOK_ENDPOINT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class WebhookEndpointUpdateInput { + public static final String JSON_PROPERTY_WEBHOOK_ENDPOINT = "webhook_endpoint"; + private WebhookEndpointCreateInputWebhookEndpoint webhookEndpoint; + + public WebhookEndpointUpdateInput() { + } + + public WebhookEndpointUpdateInput webhookEndpoint(WebhookEndpointCreateInputWebhookEndpoint webhookEndpoint) { + + this.webhookEndpoint = webhookEndpoint; + return this; + } + + /** + * Get webhookEndpoint + * @return webhookEndpoint + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WEBHOOK_ENDPOINT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WebhookEndpointCreateInputWebhookEndpoint getWebhookEndpoint() { + return webhookEndpoint; + } + + + @JsonProperty(JSON_PROPERTY_WEBHOOK_ENDPOINT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhookEndpoint(WebhookEndpointCreateInputWebhookEndpoint webhookEndpoint) { + this.webhookEndpoint = webhookEndpoint; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookEndpointUpdateInput webhookEndpointUpdateInput = (WebhookEndpointUpdateInput) o; + return Objects.equals(this.webhookEndpoint, webhookEndpointUpdateInput.webhookEndpoint); + } + + @Override + public int hashCode() { + return Objects.hash(webhookEndpoint); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookEndpointUpdateInput {\n"); + sb.append(" webhookEndpoint: ").append(toIndentedString(webhookEndpoint)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/FindAllWebhookEndpoints200Response.java b/src/main/java/org/openapitools/client/model/WebhookEndpointsPaginated.java similarity index 71% rename from src/main/java/org/openapitools/client/model/FindAllWebhookEndpoints200Response.java rename to src/main/java/org/openapitools/client/model/WebhookEndpointsPaginated.java index f934bbe..abcbccd 100644 --- a/src/main/java/org/openapitools/client/model/FindAllWebhookEndpoints200Response.java +++ b/src/main/java/org/openapitools/client/model/WebhookEndpointsPaginated.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,37 +21,38 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; +import org.openapitools.client.model.WebhookEndpointObject; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** - * FindAllWebhookEndpoints200Response + * WebhookEndpointsPaginated */ @JsonPropertyOrder({ - FindAllWebhookEndpoints200Response.JSON_PROPERTY_WEBHOOK_ENDPOINTS, - FindAllWebhookEndpoints200Response.JSON_PROPERTY_META + WebhookEndpointsPaginated.JSON_PROPERTY_WEBHOOK_ENDPOINTS, + WebhookEndpointsPaginated.JSON_PROPERTY_META }) -@JsonTypeName("findAllWebhookEndpoints_200_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T15:04:44.084574Z[Etc/UTC]") -public class FindAllWebhookEndpoints200Response { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-24T14:46:07.416771019Z[Etc/UTC]") +public class WebhookEndpointsPaginated { public static final String JSON_PROPERTY_WEBHOOK_ENDPOINTS = "webhook_endpoints"; - private List webhookEndpoints = new ArrayList<>(); + private List webhookEndpoints = new ArrayList<>(); public static final String JSON_PROPERTY_META = "meta"; private PaginationMeta meta; - public FindAllWebhookEndpoints200Response() { + public WebhookEndpointsPaginated() { } - public FindAllWebhookEndpoints200Response webhookEndpoints(List webhookEndpoints) { + public WebhookEndpointsPaginated webhookEndpoints(List webhookEndpoints) { this.webhookEndpoints = webhookEndpoints; return this; } - public FindAllWebhookEndpoints200Response addWebhookEndpointsItem(Object webhookEndpointsItem) { + public WebhookEndpointsPaginated addWebhookEndpointsItem(WebhookEndpointObject webhookEndpointsItem) { if (this.webhookEndpoints == null) { this.webhookEndpoints = new ArrayList<>(); } @@ -67,19 +68,19 @@ public FindAllWebhookEndpoints200Response addWebhookEndpointsItem(Object webhook @JsonProperty(JSON_PROPERTY_WEBHOOK_ENDPOINTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getWebhookEndpoints() { + public List getWebhookEndpoints() { return webhookEndpoints; } @JsonProperty(JSON_PROPERTY_WEBHOOK_ENDPOINTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWebhookEndpoints(List webhookEndpoints) { + public void setWebhookEndpoints(List webhookEndpoints) { this.webhookEndpoints = webhookEndpoints; } - public FindAllWebhookEndpoints200Response meta(PaginationMeta meta) { + public WebhookEndpointsPaginated meta(PaginationMeta meta) { this.meta = meta; return this; @@ -112,9 +113,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FindAllWebhookEndpoints200Response findAllWebhookEndpoints200Response = (FindAllWebhookEndpoints200Response) o; - return Objects.equals(this.webhookEndpoints, findAllWebhookEndpoints200Response.webhookEndpoints) && - Objects.equals(this.meta, findAllWebhookEndpoints200Response.meta); + WebhookEndpointsPaginated webhookEndpointsPaginated = (WebhookEndpointsPaginated) o; + return Objects.equals(this.webhookEndpoints, webhookEndpointsPaginated.webhookEndpoints) && + Objects.equals(this.meta, webhookEndpointsPaginated.meta); } @Override @@ -125,7 +126,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class FindAllWebhookEndpoints200Response {\n"); + sb.append("class WebhookEndpointsPaginated {\n"); sb.append(" webhookEndpoints: ").append(toIndentedString(webhookEndpoints)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); sb.append("}"); diff --git a/src/test/java/org/getlago/client/api/AddOnsApiTest.java b/src/test/java/org/getlago/client/api/AddOnsApiTest.java index 8d58c70..a21fbf6 100644 --- a/src/test/java/org/getlago/client/api/AddOnsApiTest.java +++ b/src/test/java/org/getlago/client/api/AddOnsApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,8 +21,6 @@ import org.openapitools.client.model.ApiErrorNotFound; import org.openapitools.client.model.ApiErrorUnauthorized; import org.openapitools.client.model.ApiErrorUnprocessableEntity; -import org.openapitools.client.model.AppliedAddOn; -import org.openapitools.client.model.AppliedAddOnInput; import org.junit.Test; import org.junit.Ignore; @@ -41,19 +39,6 @@ public class AddOnsApiTest { private final AddOnsApi api = new AddOnsApi(); - /** - * Apply an add-on to a customer - * - * Apply an add-on to a customer - */ - @Test - public void applyAddOnTest() { - AppliedAddOnInput appliedAddOnInput = null; - AppliedAddOn response = api.applyAddOn(appliedAddOnInput).block(); - - // TODO: test validations - } - /** * Create an add-on * diff --git a/src/test/java/org/getlago/client/api/AnalyticsApiTest.java b/src/test/java/org/getlago/client/api/AnalyticsApiTest.java new file mode 100644 index 0000000..26d08d7 --- /dev/null +++ b/src/test/java/org/getlago/client/api/AnalyticsApiTest.java @@ -0,0 +1,94 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.getlago.client.api; + +import org.openapitools.client.model.ApiErrorUnauthorized; +import org.openapitools.client.model.Currency; +import org.openapitools.client.model.GrossRevenues; +import org.openapitools.client.model.InvoicedUsages; +import org.openapitools.client.model.Mrrs; +import org.openapitools.client.model.OutstandingInvoices; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * API tests for AnalyticsApi + */ +@Ignore +public class AnalyticsApiTest { + + private final AnalyticsApi api = new AnalyticsApi(); + + + /** + * List gross revenue + * + * Gross revenue is the sum of monthly `finalized` invoice payments and fees paid in advance that are not invoiceable. This total is calculated after deducting taxes and discounts. + */ + @Test + public void findAllGrossRevenuesTest() { + Currency currency = null; + String externalCustomerId = null; + GrossRevenues response = api.findAllGrossRevenues(currency, externalCustomerId).block(); + + // TODO: test validations + } + + /** + * List usage revenue + * + * Reports a monthly analysis focused on the revenue generated from all usage-based fees. It exclusively accounts for revenue that has been formally invoiced. Importantly, this report does not include revenue related to the usage in the current billing period, limiting its scope to previously invoiced amounts. + */ + @Test + public void findAllInvoicedUsagesTest() { + Currency currency = null; + InvoicedUsages response = api.findAllInvoicedUsages(currency).block(); + + // TODO: test validations + } + + /** + * List MRR + * + * This endpoint is used to list MRR. + */ + @Test + public void findAllMrrsTest() { + Currency currency = null; + Integer months = null; + Mrrs response = api.findAllMrrs(currency, months).block(); + + // TODO: test validations + } + + /** + * List outstanding invoices + * + * Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`. + */ + @Test + public void findAllOutstandingInvoicesTest() { + Currency currency = null; + OutstandingInvoices response = api.findAllOutstandingInvoices(currency).block(); + + // TODO: test validations + } + +} diff --git a/src/test/java/org/getlago/client/api/BillableMetricsApiTest.java b/src/test/java/org/getlago/client/api/BillableMetricsApiTest.java index b638605..9f9a0ee 100644 --- a/src/test/java/org/getlago/client/api/BillableMetricsApiTest.java +++ b/src/test/java/org/getlago/client/api/BillableMetricsApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/getlago/client/api/CouponsApiTest.java b/src/test/java/org/getlago/client/api/CouponsApiTest.java index 75a9c4b..5bef41f 100644 --- a/src/test/java/org/getlago/client/api/CouponsApiTest.java +++ b/src/test/java/org/getlago/client/api/CouponsApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/getlago/client/api/CreditNotesApiTest.java b/src/test/java/org/getlago/client/api/CreditNotesApiTest.java index c396c06..87c2b5a 100644 --- a/src/test/java/org/getlago/client/api/CreditNotesApiTest.java +++ b/src/test/java/org/getlago/client/api/CreditNotesApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,8 @@ import org.openapitools.client.model.ApiErrorUnprocessableEntity; import org.openapitools.client.model.CreditNote; import org.openapitools.client.model.CreditNoteCreateInput; +import org.openapitools.client.model.CreditNoteEstimateInput; +import org.openapitools.client.model.CreditNoteEstimated; import org.openapitools.client.model.CreditNoteUpdateInput; import org.openapitools.client.model.CreditNotes; import java.util.UUID; @@ -67,6 +69,19 @@ public void downloadCreditNoteTest() { // TODO: test validations } + /** + * Estimate amounts for a new credit note + * + * This endpoint allows you to retrieve amounts for a new credit note creation. + */ + @Test + public void estimateCreditNoteTest() { + CreditNoteEstimateInput creditNoteEstimateInput = null; + CreditNoteEstimated response = api.estimateCreditNote(creditNoteEstimateInput).block(); + + // TODO: test validations + } + /** * List all credit notes * diff --git a/src/test/java/org/getlago/client/api/CustomersApiTest.java b/src/test/java/org/getlago/client/api/CustomersApiTest.java index ac5a231..fb64752 100644 --- a/src/test/java/org/getlago/client/api/CustomersApiTest.java +++ b/src/test/java/org/getlago/client/api/CustomersApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,8 +21,10 @@ import org.openapitools.client.model.AppliedCoupon; import org.openapitools.client.model.Customer; import org.openapitools.client.model.CustomerCreateInput; +import org.openapitools.client.model.CustomerPastUsage; import org.openapitools.client.model.CustomerUsage; import org.openapitools.client.model.CustomersPaginated; +import org.openapitools.client.model.GenerateCustomerCheckoutURL200Response; import org.openapitools.client.model.GetCustomerPortalUrl200Response; import java.util.UUID; import org.junit.Test; @@ -83,6 +85,24 @@ public void destroyCustomerTest() { // TODO: test validations } + /** + * Retrieve customer past usage + * + * This endpoint enables the retrieval of the usage-based billing data for a customer within past periods. + */ + @Test + public void findAllCustomerPastUsageTest() { + String externalCustomerId = null; + String externalSubscriptionId = null; + Integer page = null; + Integer perPage = null; + String billableMetricCode = null; + Integer periodsCount = null; + CustomerPastUsage response = api.findAllCustomerPastUsage(externalCustomerId, externalSubscriptionId, page, perPage, billableMetricCode, periodsCount).block(); + + // TODO: test validations + } + /** * List all customers * @@ -124,6 +144,19 @@ public void findCustomerCurrentUsageTest() { // TODO: test validations } + /** + * Generate a Customer Payment Provider Checkout URL + * + * This endpoint regenerates the Payment Provider Checkout URL of a Customer. + */ + @Test + public void generateCustomerCheckoutURLTest() { + String externalCustomerId = null; + GenerateCustomerCheckoutURL200Response response = api.generateCustomerCheckoutURL(externalCustomerId).block(); + + // TODO: test validations + } + /** * Get a customer portal URL * diff --git a/src/test/java/org/getlago/client/api/EventsApiTest.java b/src/test/java/org/getlago/client/api/EventsApiTest.java index f933f63..527c6f4 100644 --- a/src/test/java/org/getlago/client/api/EventsApiTest.java +++ b/src/test/java/org/getlago/client/api/EventsApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -61,7 +61,7 @@ public void createBatchEventsTest() { @Test public void createEventTest() { EventInput eventInput = null; - api.createEvent(eventInput).block(); + Event response = api.createEvent(eventInput).block(); // TODO: test validations } diff --git a/src/test/java/org/getlago/client/api/FeesApiTest.java b/src/test/java/org/getlago/client/api/FeesApiTest.java index 44f0910..53b24ac 100644 --- a/src/test/java/org/getlago/client/api/FeesApiTest.java +++ b/src/test/java/org/getlago/client/api/FeesApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/getlago/client/api/InvoicesApiTest.java b/src/test/java/org/getlago/client/api/InvoicesApiTest.java index 732acb8..5b400c2 100644 --- a/src/test/java/org/getlago/client/api/InvoicesApiTest.java +++ b/src/test/java/org/getlago/client/api/InvoicesApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/getlago/client/api/OrganizationsApiTest.java b/src/test/java/org/getlago/client/api/OrganizationsApiTest.java index 88f8211..51d04a3 100644 --- a/src/test/java/org/getlago/client/api/OrganizationsApiTest.java +++ b/src/test/java/org/getlago/client/api/OrganizationsApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/getlago/client/api/PlansApiTest.java b/src/test/java/org/getlago/client/api/PlansApiTest.java index 47a2f35..62aaafc 100644 --- a/src/test/java/org/getlago/client/api/PlansApiTest.java +++ b/src/test/java/org/getlago/client/api/PlansApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/getlago/client/api/SubscriptionsApiTest.java b/src/test/java/org/getlago/client/api/SubscriptionsApiTest.java index 9847c12..1b1da2b 100644 --- a/src/test/java/org/getlago/client/api/SubscriptionsApiTest.java +++ b/src/test/java/org/getlago/client/api/SubscriptionsApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -84,6 +84,19 @@ public void findAllSubscriptionsTest() { // TODO: test validations } + /** + * Retrieve a subscription + * + * This endpoint retrieves a specific subscription. + */ + @Test + public void findSubscriptionTest() { + String externalId = null; + Subscription response = api.findSubscription(externalId).block(); + + // TODO: test validations + } + /** * Update a subscription * diff --git a/src/test/java/org/getlago/client/api/TaxesApiTest.java b/src/test/java/org/getlago/client/api/TaxesApiTest.java index 64d4be3..cccc6b4 100644 --- a/src/test/java/org/getlago/client/api/TaxesApiTest.java +++ b/src/test/java/org/getlago/client/api/TaxesApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/getlago/client/api/WalletsApiTest.java b/src/test/java/org/getlago/client/api/WalletsApiTest.java index ca4c6a9..dfc11a3 100644 --- a/src/test/java/org/getlago/client/api/WalletsApiTest.java +++ b/src/test/java/org/getlago/client/api/WalletsApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/getlago/client/api/WebhookEndpointsApiTest.java b/src/test/java/org/getlago/client/api/WebhookEndpointsApiTest.java index a1e91e1..6242b0c 100644 --- a/src/test/java/org/getlago/client/api/WebhookEndpointsApiTest.java +++ b/src/test/java/org/getlago/client/api/WebhookEndpointsApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,10 +18,11 @@ import org.openapitools.client.model.ApiErrorNotFound; import org.openapitools.client.model.ApiErrorUnauthorized; import org.openapitools.client.model.ApiErrorUnprocessableEntity; -import org.openapitools.client.model.CreateWebhookEndpoint200Response; -import org.openapitools.client.model.CreateWebhookEndpointRequest; -import org.openapitools.client.model.FindAllWebhookEndpoints200Response; import java.util.UUID; +import org.openapitools.client.model.WebhookEndpoint; +import org.openapitools.client.model.WebhookEndpointCreateInput; +import org.openapitools.client.model.WebhookEndpointUpdateInput; +import org.openapitools.client.model.WebhookEndpointsPaginated; import org.junit.Test; import org.junit.Ignore; @@ -47,8 +48,8 @@ public class WebhookEndpointsApiTest { */ @Test public void createWebhookEndpointTest() { - CreateWebhookEndpointRequest createWebhookEndpointRequest = null; - CreateWebhookEndpoint200Response response = api.createWebhookEndpoint(createWebhookEndpointRequest).block(); + WebhookEndpointCreateInput webhookEndpointCreateInput = null; + WebhookEndpoint response = api.createWebhookEndpoint(webhookEndpointCreateInput).block(); // TODO: test validations } @@ -61,7 +62,7 @@ public void createWebhookEndpointTest() { @Test public void destroyWebhookEndpointTest() { UUID lagoId = null; - Object response = api.destroyWebhookEndpoint(lagoId).block(); + WebhookEndpoint response = api.destroyWebhookEndpoint(lagoId).block(); // TODO: test validations } @@ -75,7 +76,7 @@ public void destroyWebhookEndpointTest() { public void findAllWebhookEndpointsTest() { Integer page = null; Integer perPage = null; - FindAllWebhookEndpoints200Response response = api.findAllWebhookEndpoints(page, perPage).block(); + WebhookEndpointsPaginated response = api.findAllWebhookEndpoints(page, perPage).block(); // TODO: test validations } @@ -88,7 +89,7 @@ public void findAllWebhookEndpointsTest() { @Test public void findWebhookEndpointTest() { UUID lagoId = null; - Object response = api.findWebhookEndpoint(lagoId).block(); + WebhookEndpoint response = api.findWebhookEndpoint(lagoId).block(); // TODO: test validations } @@ -101,8 +102,8 @@ public void findWebhookEndpointTest() { @Test public void updateWebhookEndpointTest() { UUID lagoId = null; - CreateWebhookEndpointRequest createWebhookEndpointRequest = null; - Object response = api.updateWebhookEndpoint(lagoId, createWebhookEndpointRequest).block(); + WebhookEndpointUpdateInput webhookEndpointUpdateInput = null; + WebhookEndpoint response = api.updateWebhookEndpoint(lagoId, webhookEndpointUpdateInput).block(); // TODO: test validations } diff --git a/src/test/java/org/getlago/client/api/WebhooksApiTest.java b/src/test/java/org/getlago/client/api/WebhooksApiTest.java index 2948a30..71d4a66 100644 --- a/src/test/java/org/getlago/client/api/WebhooksApiTest.java +++ b/src/test/java/org/getlago/client/api/WebhooksApiTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AddOnBaseInputTest.java b/src/test/java/org/openapitools/client/model/AddOnBaseInputTest.java index 90ae2e3..ea1d5f5 100644 --- a/src/test/java/org/openapitools/client/model/AddOnBaseInputTest.java +++ b/src/test/java/org/openapitools/client/model/AddOnBaseInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.jackson.nullable.JsonNullable; @@ -51,6 +52,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'code' */ diff --git a/src/test/java/org/openapitools/client/model/AddOnCreateInputAddOnTest.java b/src/test/java/org/openapitools/client/model/AddOnCreateInputAddOnTest.java index 3fac436..72a9454 100644 --- a/src/test/java/org/openapitools/client/model/AddOnCreateInputAddOnTest.java +++ b/src/test/java/org/openapitools/client/model/AddOnCreateInputAddOnTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.jackson.nullable.JsonNullable; @@ -51,6 +52,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'code' */ diff --git a/src/test/java/org/openapitools/client/model/AddOnCreateInputTest.java b/src/test/java/org/openapitools/client/model/AddOnCreateInputTest.java index 5ac086d..36736d4 100644 --- a/src/test/java/org/openapitools/client/model/AddOnCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/AddOnCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AddOnObjectTest.java b/src/test/java/org/openapitools/client/model/AddOnObjectTest.java index 3cb8ae0..49def37 100644 --- a/src/test/java/org/openapitools/client/model/AddOnObjectTest.java +++ b/src/test/java/org/openapitools/client/model/AddOnObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -62,6 +63,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'code' */ diff --git a/src/test/java/org/openapitools/client/model/AddOnTest.java b/src/test/java/org/openapitools/client/model/AddOnTest.java index fa24d54..96873ce 100644 --- a/src/test/java/org/openapitools/client/model/AddOnTest.java +++ b/src/test/java/org/openapitools/client/model/AddOnTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AddOnUpdateInputTest.java b/src/test/java/org/openapitools/client/model/AddOnUpdateInputTest.java index 725fc81..2ed4d05 100644 --- a/src/test/java/org/openapitools/client/model/AddOnUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/AddOnUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AddOnsPaginatedTest.java b/src/test/java/org/openapitools/client/model/AddOnsPaginatedTest.java index 1923e15..800a6f3 100644 --- a/src/test/java/org/openapitools/client/model/AddOnsPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/AddOnsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.AddOnObject; import org.openapitools.client.model.PaginationMeta; diff --git a/src/test/java/org/openapitools/client/model/ApiErrorBadRequestTest.java b/src/test/java/org/openapitools/client/model/ApiErrorBadRequestTest.java index 0ad9a76..706f280 100644 --- a/src/test/java/org/openapitools/client/model/ApiErrorBadRequestTest.java +++ b/src/test/java/org/openapitools/client/model/ApiErrorBadRequestTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/ApiErrorForbiddenTest.java b/src/test/java/org/openapitools/client/model/ApiErrorForbiddenTest.java index 102eb6d..c4d26c4 100644 --- a/src/test/java/org/openapitools/client/model/ApiErrorForbiddenTest.java +++ b/src/test/java/org/openapitools/client/model/ApiErrorForbiddenTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/ApiErrorNotAllowedTest.java b/src/test/java/org/openapitools/client/model/ApiErrorNotAllowedTest.java index 9fa1760..b4764fe 100644 --- a/src/test/java/org/openapitools/client/model/ApiErrorNotAllowedTest.java +++ b/src/test/java/org/openapitools/client/model/ApiErrorNotAllowedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/ApiErrorNotFoundTest.java b/src/test/java/org/openapitools/client/model/ApiErrorNotFoundTest.java index f3ea388..92ac88b 100644 --- a/src/test/java/org/openapitools/client/model/ApiErrorNotFoundTest.java +++ b/src/test/java/org/openapitools/client/model/ApiErrorNotFoundTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/ApiErrorUnauthorizedTest.java b/src/test/java/org/openapitools/client/model/ApiErrorUnauthorizedTest.java index 7714c4c..75d7099 100644 --- a/src/test/java/org/openapitools/client/model/ApiErrorUnauthorizedTest.java +++ b/src/test/java/org/openapitools/client/model/ApiErrorUnauthorizedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/ApiErrorUnprocessableEntityTest.java b/src/test/java/org/openapitools/client/model/ApiErrorUnprocessableEntityTest.java index 2159d7d..e4b0013 100644 --- a/src/test/java/org/openapitools/client/model/ApiErrorUnprocessableEntityTest.java +++ b/src/test/java/org/openapitools/client/model/ApiErrorUnprocessableEntityTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AppliedCouponInputAppliedCouponTest.java b/src/test/java/org/openapitools/client/model/AppliedCouponInputAppliedCouponTest.java index 456daaf..ee00262 100644 --- a/src/test/java/org/openapitools/client/model/AppliedCouponInputAppliedCouponTest.java +++ b/src/test/java/org/openapitools/client/model/AppliedCouponInputAppliedCouponTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AppliedCouponInputTest.java b/src/test/java/org/openapitools/client/model/AppliedCouponInputTest.java index 23410fa..81b4e5a 100644 --- a/src/test/java/org/openapitools/client/model/AppliedCouponInputTest.java +++ b/src/test/java/org/openapitools/client/model/AppliedCouponInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AppliedCouponObjectExtendedTest.java b/src/test/java/org/openapitools/client/model/AppliedCouponObjectExtendedTest.java index 6c65a05..a1331e6 100644 --- a/src/test/java/org/openapitools/client/model/AppliedCouponObjectExtendedTest.java +++ b/src/test/java/org/openapitools/client/model/AppliedCouponObjectExtendedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.CreditObject; diff --git a/src/test/java/org/openapitools/client/model/AppliedCouponObjectTest.java b/src/test/java/org/openapitools/client/model/AppliedCouponObjectTest.java index c50755e..f5b8ab4 100644 --- a/src/test/java/org/openapitools/client/model/AppliedCouponObjectTest.java +++ b/src/test/java/org/openapitools/client/model/AppliedCouponObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AppliedCouponTest.java b/src/test/java/org/openapitools/client/model/AppliedCouponTest.java index 860a5c3..4c51a33 100644 --- a/src/test/java/org/openapitools/client/model/AppliedCouponTest.java +++ b/src/test/java/org/openapitools/client/model/AppliedCouponTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AppliedCouponsPaginatedTest.java b/src/test/java/org/openapitools/client/model/AppliedCouponsPaginatedTest.java index c85264e..bb85030 100644 --- a/src/test/java/org/openapitools/client/model/AppliedCouponsPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/AppliedCouponsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.AppliedCouponObjectExtended; import org.openapitools.client.model.PaginationMeta; diff --git a/src/test/java/org/openapitools/client/model/BaseAppliedTaxTest.java b/src/test/java/org/openapitools/client/model/BaseAppliedTaxTest.java index 215f0d4..845ee94 100644 --- a/src/test/java/org/openapitools/client/model/BaseAppliedTaxTest.java +++ b/src/test/java/org/openapitools/client/model/BaseAppliedTaxTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/BillableMetricBaseInputTest.java b/src/test/java/org/openapitools/client/model/BillableMetricBaseInputTest.java index d79372a..68a249e 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricBaseInputTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricBaseInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -89,6 +89,14 @@ public void aggregationTypeTest() { // TODO: test aggregationType } + /** + * Test the property 'weightedInterval' + */ + @Test + public void weightedIntervalTest() { + // TODO: test weightedInterval + } + /** * Test the property 'group' */ diff --git a/src/test/java/org/openapitools/client/model/BillableMetricCreateInputBillableMetricTest.java b/src/test/java/org/openapitools/client/model/BillableMetricCreateInputBillableMetricTest.java index e5ed385..c98fad4 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricCreateInputBillableMetricTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricCreateInputBillableMetricTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -89,6 +89,14 @@ public void aggregationTypeTest() { // TODO: test aggregationType } + /** + * Test the property 'weightedInterval' + */ + @Test + public void weightedIntervalTest() { + // TODO: test weightedInterval + } + /** * Test the property 'group' */ diff --git a/src/test/java/org/openapitools/client/model/BillableMetricCreateInputTest.java b/src/test/java/org/openapitools/client/model/BillableMetricCreateInputTest.java index 2936b46..92f0f6f 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/BillableMetricGroupTest.java b/src/test/java/org/openapitools/client/model/BillableMetricGroupTest.java index 9f35a75..44be8b4 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricGroupTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricGroupTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.BillableMetricGroupValuesInner; import org.junit.Assert; diff --git a/src/test/java/org/openapitools/client/model/BillableMetricGroupValuesInnerOneOfTest.java b/src/test/java/org/openapitools/client/model/BillableMetricGroupValuesInnerOneOfTest.java index 6461bcf..35e704a 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricGroupValuesInnerOneOfTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricGroupValuesInnerOneOfTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.Assert; import org.junit.Ignore; diff --git a/src/test/java/org/openapitools/client/model/BillableMetricGroupValuesInnerTest.java b/src/test/java/org/openapitools/client/model/BillableMetricGroupValuesInnerTest.java index 6ca0684..1cc299b 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricGroupValuesInnerTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricGroupValuesInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.BillableMetricGroupValuesInnerOneOf; import org.junit.Assert; diff --git a/src/test/java/org/openapitools/client/model/BillableMetricObjectTest.java b/src/test/java/org/openapitools/client/model/BillableMetricObjectTest.java index ebe9090..98bc54a 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricObjectTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -107,6 +107,14 @@ public void aggregationTypeTest() { // TODO: test aggregationType } + /** + * Test the property 'weightedInterval' + */ + @Test + public void weightedIntervalTest() { + // TODO: test weightedInterval + } + /** * Test the property 'group' */ diff --git a/src/test/java/org/openapitools/client/model/BillableMetricTest.java b/src/test/java/org/openapitools/client/model/BillableMetricTest.java index 733eed3..1038cef 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/BillableMetricUpdateInputTest.java b/src/test/java/org/openapitools/client/model/BillableMetricUpdateInputTest.java index 1bfb26a..b243059 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/BillableMetricsPaginatedTest.java b/src/test/java/org/openapitools/client/model/BillableMetricsPaginatedTest.java index bab5b70..a606109 100644 --- a/src/test/java/org/openapitools/client/model/BillableMetricsPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/BillableMetricsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.BillableMetricObject; import org.openapitools.client.model.PaginationMeta; diff --git a/src/test/java/org/openapitools/client/model/ChargeObjectPropertiesTest.java b/src/test/java/org/openapitools/client/model/ChargeObjectPropertiesTest.java index 5b5e32e..9cfa094 100644 --- a/src/test/java/org/openapitools/client/model/ChargeObjectPropertiesTest.java +++ b/src/test/java/org/openapitools/client/model/ChargeObjectPropertiesTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ChargePropertiesGraduatedPercentageRangesInner; import org.openapitools.client.model.ChargePropertiesGraduatedRangesInner; diff --git a/src/test/java/org/openapitools/client/model/ChargeObjectTest.java b/src/test/java/org/openapitools/client/model/ChargeObjectTest.java index 2025db8..f05a113 100644 --- a/src/test/java/org/openapitools/client/model/ChargeObjectTest.java +++ b/src/test/java/org/openapitools/client/model/ChargeObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.ChargeObjectProperties; @@ -67,6 +68,14 @@ public void billableMetricCodeTest() { // TODO: test billableMetricCode } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'createdAt' */ diff --git a/src/test/java/org/openapitools/client/model/ChargePropertiesGraduatedPercentageRangesInnerTest.java b/src/test/java/org/openapitools/client/model/ChargePropertiesGraduatedPercentageRangesInnerTest.java index de05104..7d5a774 100644 --- a/src/test/java/org/openapitools/client/model/ChargePropertiesGraduatedPercentageRangesInnerTest.java +++ b/src/test/java/org/openapitools/client/model/ChargePropertiesGraduatedPercentageRangesInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/ChargePropertiesGraduatedRangesInnerTest.java b/src/test/java/org/openapitools/client/model/ChargePropertiesGraduatedRangesInnerTest.java index 8e2727d..e32cb72 100644 --- a/src/test/java/org/openapitools/client/model/ChargePropertiesGraduatedRangesInnerTest.java +++ b/src/test/java/org/openapitools/client/model/ChargePropertiesGraduatedRangesInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/ChargePropertiesTest.java b/src/test/java/org/openapitools/client/model/ChargePropertiesTest.java index bcbe106..cc1bf85 100644 --- a/src/test/java/org/openapitools/client/model/ChargePropertiesTest.java +++ b/src/test/java/org/openapitools/client/model/ChargePropertiesTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ChargePropertiesGraduatedPercentageRangesInner; import org.openapitools.client.model.ChargePropertiesGraduatedRangesInner; diff --git a/src/test/java/org/openapitools/client/model/ChargePropertiesVolumeRangesInnerTest.java b/src/test/java/org/openapitools/client/model/ChargePropertiesVolumeRangesInnerTest.java index bbbe6df..ea8c581 100644 --- a/src/test/java/org/openapitools/client/model/ChargePropertiesVolumeRangesInnerTest.java +++ b/src/test/java/org/openapitools/client/model/ChargePropertiesVolumeRangesInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CountryTest.java b/src/test/java/org/openapitools/client/model/CountryTest.java index 51787f9..6fdd6ac 100644 --- a/src/test/java/org/openapitools/client/model/CountryTest.java +++ b/src/test/java/org/openapitools/client/model/CountryTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CouponBaseInputAppliesToTest.java b/src/test/java/org/openapitools/client/model/CouponBaseInputAppliesToTest.java index f74fd65..5021a6b 100644 --- a/src/test/java/org/openapitools/client/model/CouponBaseInputAppliesToTest.java +++ b/src/test/java/org/openapitools/client/model/CouponBaseInputAppliesToTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/test/java/org/openapitools/client/model/CouponBaseInputTest.java b/src/test/java/org/openapitools/client/model/CouponBaseInputTest.java index 9232e86..1dae1e2 100644 --- a/src/test/java/org/openapitools/client/model/CouponBaseInputTest.java +++ b/src/test/java/org/openapitools/client/model/CouponBaseInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CouponCreateInputCouponTest.java b/src/test/java/org/openapitools/client/model/CouponCreateInputCouponTest.java index c405efb..02cc2bc 100644 --- a/src/test/java/org/openapitools/client/model/CouponCreateInputCouponTest.java +++ b/src/test/java/org/openapitools/client/model/CouponCreateInputCouponTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CouponCreateInputTest.java b/src/test/java/org/openapitools/client/model/CouponCreateInputTest.java index 3d6a2e1..94e84ba 100644 --- a/src/test/java/org/openapitools/client/model/CouponCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/CouponCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CouponObjectTest.java b/src/test/java/org/openapitools/client/model/CouponObjectTest.java index a16e3e3..3905eb6 100644 --- a/src/test/java/org/openapitools/client/model/CouponObjectTest.java +++ b/src/test/java/org/openapitools/client/model/CouponObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -189,4 +190,12 @@ public void createdAtTest() { // TODO: test createdAt } + /** + * Test the property 'terminatedAt' + */ + @Test + public void terminatedAtTest() { + // TODO: test terminatedAt + } + } diff --git a/src/test/java/org/openapitools/client/model/CouponTest.java b/src/test/java/org/openapitools/client/model/CouponTest.java index 0520e33..d58c97c 100644 --- a/src/test/java/org/openapitools/client/model/CouponTest.java +++ b/src/test/java/org/openapitools/client/model/CouponTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CouponUpdateInputTest.java b/src/test/java/org/openapitools/client/model/CouponUpdateInputTest.java index 9f56bf9..f991160 100644 --- a/src/test/java/org/openapitools/client/model/CouponUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/CouponUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CouponsPaginatedTest.java b/src/test/java/org/openapitools/client/model/CouponsPaginatedTest.java index 4824f91..ccd78fb 100644 --- a/src/test/java/org/openapitools/client/model/CouponsPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/CouponsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.CouponObject; import org.openapitools.client.model.PaginationMeta; diff --git a/src/test/java/org/openapitools/client/model/CreditNoteAppliedTaxObjectTest.java b/src/test/java/org/openapitools/client/model/CreditNoteAppliedTaxObjectTest.java index f54f9e7..0377281 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteAppliedTaxObjectTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteAppliedTaxObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteTest.java b/src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteTest.java index 101eed3..b17389f 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,9 +19,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; -import org.openapitools.client.model.CreditNoteCreateInputCreditNoteItemsInner; +import org.openapitools.client.model.CreditNoteEstimateInputCreditNoteItemsInner; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/src/test/java/org/openapitools/client/model/CreditNoteCreateInputTest.java b/src/test/java/org/openapitools/client/model/CreditNoteCreateInputTest.java index 2f5b03d..1fb89f7 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteItemsInnerTest.java b/src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteItemsInnerTest.java similarity index 68% rename from src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteItemsInnerTest.java rename to src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteItemsInnerTest.java index 637daec..2fdc2a1 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteCreateInputCreditNoteItemsInnerTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteItemsInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,17 +24,17 @@ import org.junit.Test; /** - * Model tests for CreditNoteCreateInputCreditNoteItemsInner + * Model tests for CreditNoteEstimateInputCreditNoteItemsInner */ -public class CreditNoteCreateInputCreditNoteItemsInnerTest { - private final CreditNoteCreateInputCreditNoteItemsInner model = new CreditNoteCreateInputCreditNoteItemsInner(); +public class CreditNoteEstimateInputCreditNoteItemsInnerTest { + private final CreditNoteEstimateInputCreditNoteItemsInner model = new CreditNoteEstimateInputCreditNoteItemsInner(); /** - * Model tests for CreditNoteCreateInputCreditNoteItemsInner + * Model tests for CreditNoteEstimateInputCreditNoteItemsInner */ @Test - public void testCreditNoteCreateInputCreditNoteItemsInner() { - // TODO: test CreditNoteCreateInputCreditNoteItemsInner + public void testCreditNoteEstimateInputCreditNoteItemsInner() { + // TODO: test CreditNoteEstimateInputCreditNoteItemsInner } /** diff --git a/src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteTest.java b/src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteTest.java new file mode 100644 index 0000000..18da282 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/CreditNoteEstimateInputCreditNoteTest.java @@ -0,0 +1,60 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import org.openapitools.client.model.CreditNoteEstimateInputCreditNoteItemsInner; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for CreditNoteEstimateInputCreditNote + */ +public class CreditNoteEstimateInputCreditNoteTest { + private final CreditNoteEstimateInputCreditNote model = new CreditNoteEstimateInputCreditNote(); + + /** + * Model tests for CreditNoteEstimateInputCreditNote + */ + @Test + public void testCreditNoteEstimateInputCreditNote() { + // TODO: test CreditNoteEstimateInputCreditNote + } + + /** + * Test the property 'invoiceId' + */ + @Test + public void invoiceIdTest() { + // TODO: test invoiceId + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + +} diff --git a/src/test/java/org/openapitools/client/model/CreditNoteEstimateInputTest.java b/src/test/java/org/openapitools/client/model/CreditNoteEstimateInputTest.java new file mode 100644 index 0000000..614c9e2 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/CreditNoteEstimateInputTest.java @@ -0,0 +1,48 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.CreditNoteEstimateInputCreditNote; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for CreditNoteEstimateInput + */ +public class CreditNoteEstimateInputTest { + private final CreditNoteEstimateInput model = new CreditNoteEstimateInput(); + + /** + * Model tests for CreditNoteEstimateInput + */ + @Test + public void testCreditNoteEstimateInput() { + // TODO: test CreditNoteEstimateInput + } + + /** + * Test the property 'creditNote' + */ + @Test + public void creditNoteTest() { + // TODO: test creditNote + } + +} diff --git a/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInnerTest.java b/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInnerTest.java new file mode 100644 index 0000000..cb880bd --- /dev/null +++ b/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInnerTest.java @@ -0,0 +1,106 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.UUID; +import org.openapitools.client.model.Currency; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner + */ +public class CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInnerTest { + private final CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner model = new CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner(); + + /** + * Model tests for CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner + */ + @Test + public void testCreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner() { + // TODO: test CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner + } + + /** + * Test the property 'lagoTaxId' + */ + @Test + public void lagoTaxIdTest() { + // TODO: test lagoTaxId + } + + /** + * Test the property 'taxName' + */ + @Test + public void taxNameTest() { + // TODO: test taxName + } + + /** + * Test the property 'taxCode' + */ + @Test + public void taxCodeTest() { + // TODO: test taxCode + } + + /** + * Test the property 'taxRate' + */ + @Test + public void taxRateTest() { + // TODO: test taxRate + } + + /** + * Test the property 'taxDescription' + */ + @Test + public void taxDescriptionTest() { + // TODO: test taxDescription + } + + /** + * Test the property 'baseAmountCents' + */ + @Test + public void baseAmountCentsTest() { + // TODO: test baseAmountCents + } + + /** + * Test the property 'amountCents' + */ + @Test + public void amountCentsTest() { + // TODO: test amountCents + } + + /** + * Test the property 'amountCurrency' + */ + @Test + public void amountCurrencyTest() { + // TODO: test amountCurrency + } + +} diff --git a/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInnerTest.java b/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInnerTest.java new file mode 100644 index 0000000..3ff9c1f --- /dev/null +++ b/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteItemsInnerTest.java @@ -0,0 +1,56 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.UUID; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for CreditNoteEstimatedEstimatedCreditNoteItemsInner + */ +public class CreditNoteEstimatedEstimatedCreditNoteItemsInnerTest { + private final CreditNoteEstimatedEstimatedCreditNoteItemsInner model = new CreditNoteEstimatedEstimatedCreditNoteItemsInner(); + + /** + * Model tests for CreditNoteEstimatedEstimatedCreditNoteItemsInner + */ + @Test + public void testCreditNoteEstimatedEstimatedCreditNoteItemsInner() { + // TODO: test CreditNoteEstimatedEstimatedCreditNoteItemsInner + } + + /** + * Test the property 'amountCents' + */ + @Test + public void amountCentsTest() { + // TODO: test amountCents + } + + /** + * Test the property 'lagoFeeId' + */ + @Test + public void lagoFeeIdTest() { + // TODO: test lagoFeeId + } + +} diff --git a/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteTest.java b/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteTest.java new file mode 100644 index 0000000..596f993 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/CreditNoteEstimatedEstimatedCreditNoteTest.java @@ -0,0 +1,135 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import org.openapitools.client.model.CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner; +import org.openapitools.client.model.CreditNoteEstimatedEstimatedCreditNoteItemsInner; +import org.openapitools.client.model.Currency; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for CreditNoteEstimatedEstimatedCreditNote + */ +public class CreditNoteEstimatedEstimatedCreditNoteTest { + private final CreditNoteEstimatedEstimatedCreditNote model = new CreditNoteEstimatedEstimatedCreditNote(); + + /** + * Model tests for CreditNoteEstimatedEstimatedCreditNote + */ + @Test + public void testCreditNoteEstimatedEstimatedCreditNote() { + // TODO: test CreditNoteEstimatedEstimatedCreditNote + } + + /** + * Test the property 'lagoInvoiceId' + */ + @Test + public void lagoInvoiceIdTest() { + // TODO: test lagoInvoiceId + } + + /** + * Test the property 'invoiceNumber' + */ + @Test + public void invoiceNumberTest() { + // TODO: test invoiceNumber + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + + /** + * Test the property 'taxesAmountCents' + */ + @Test + public void taxesAmountCentsTest() { + // TODO: test taxesAmountCents + } + + /** + * Test the property 'taxesRate' + */ + @Test + public void taxesRateTest() { + // TODO: test taxesRate + } + + /** + * Test the property 'subTotalExcludingTaxesAmountCents' + */ + @Test + public void subTotalExcludingTaxesAmountCentsTest() { + // TODO: test subTotalExcludingTaxesAmountCents + } + + /** + * Test the property 'maxCreditableAmountCents' + */ + @Test + public void maxCreditableAmountCentsTest() { + // TODO: test maxCreditableAmountCents + } + + /** + * Test the property 'maxRefundableAmountCents' + */ + @Test + public void maxRefundableAmountCentsTest() { + // TODO: test maxRefundableAmountCents + } + + /** + * Test the property 'couponsAdjustmentAmountCents' + */ + @Test + public void couponsAdjustmentAmountCentsTest() { + // TODO: test couponsAdjustmentAmountCents + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'appliedTaxes' + */ + @Test + public void appliedTaxesTest() { + // TODO: test appliedTaxes + } + +} diff --git a/src/test/java/org/openapitools/client/model/CreditNoteEstimatedTest.java b/src/test/java/org/openapitools/client/model/CreditNoteEstimatedTest.java new file mode 100644 index 0000000..217d50f --- /dev/null +++ b/src/test/java/org/openapitools/client/model/CreditNoteEstimatedTest.java @@ -0,0 +1,48 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.CreditNoteEstimatedEstimatedCreditNote; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for CreditNoteEstimated + */ +public class CreditNoteEstimatedTest { + private final CreditNoteEstimated model = new CreditNoteEstimated(); + + /** + * Model tests for CreditNoteEstimated + */ + @Test + public void testCreditNoteEstimated() { + // TODO: test CreditNoteEstimated + } + + /** + * Test the property 'estimatedCreditNote' + */ + @Test + public void estimatedCreditNoteTest() { + // TODO: test estimatedCreditNote + } + +} diff --git a/src/test/java/org/openapitools/client/model/CreditNoteItemObjectFeeTest.java b/src/test/java/org/openapitools/client/model/CreditNoteItemObjectFeeTest.java index d9448f1..54d642d 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteItemObjectFeeTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteItemObjectFeeTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -120,6 +121,14 @@ public void externalSubscriptionIdTest() { // TODO: test externalSubscriptionId } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'amountCents' */ @@ -160,6 +169,14 @@ public void unitsTest() { // TODO: test units } + /** + * Test the property 'preciseUnitAmount' + */ + @Test + public void preciseUnitAmountTest() { + // TODO: test preciseUnitAmount + } + /** * Test the property 'totalAmountCents' */ diff --git a/src/test/java/org/openapitools/client/model/CreditNoteItemObjectTest.java b/src/test/java/org/openapitools/client/model/CreditNoteItemObjectTest.java index 771f98e..93f6411 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteItemObjectTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteItemObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CreditNoteObjectTest.java b/src/test/java/org/openapitools/client/model/CreditNoteObjectTest.java index 62c9060..e264720 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteObjectTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.CreditNoteAppliedTaxObject; @@ -194,11 +195,11 @@ public void refundAmountCentsTest() { } /** - * Test the property 'couponsAdjustementAmountCents' + * Test the property 'couponsAdjustmentAmountCents' */ @Test - public void couponsAdjustementAmountCentsTest() { - // TODO: test couponsAdjustementAmountCents + public void couponsAdjustmentAmountCentsTest() { + // TODO: test couponsAdjustmentAmountCents } /** diff --git a/src/test/java/org/openapitools/client/model/CreditNoteTest.java b/src/test/java/org/openapitools/client/model/CreditNoteTest.java index 3e70023..f7c083f 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CreditNoteUpdateInputCreditNoteTest.java b/src/test/java/org/openapitools/client/model/CreditNoteUpdateInputCreditNoteTest.java index 4adea89..8dd186b 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteUpdateInputCreditNoteTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteUpdateInputCreditNoteTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CreditNoteUpdateInputTest.java b/src/test/java/org/openapitools/client/model/CreditNoteUpdateInputTest.java index 79cc250..c72e1ce 100644 --- a/src/test/java/org/openapitools/client/model/CreditNoteUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNoteUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CreditNotesTest.java b/src/test/java/org/openapitools/client/model/CreditNotesTest.java index df1be00..86fc5bb 100644 --- a/src/test/java/org/openapitools/client/model/CreditNotesTest.java +++ b/src/test/java/org/openapitools/client/model/CreditNotesTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.CreditNoteObject; import org.junit.Assert; diff --git a/src/test/java/org/openapitools/client/model/CreditObjectInvoiceTest.java b/src/test/java/org/openapitools/client/model/CreditObjectInvoiceTest.java index fa038ca..f6eec4e 100644 --- a/src/test/java/org/openapitools/client/model/CreditObjectInvoiceTest.java +++ b/src/test/java/org/openapitools/client/model/CreditObjectInvoiceTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CreditObjectItemTest.java b/src/test/java/org/openapitools/client/model/CreditObjectItemTest.java index 2ff6ef9..594bfce 100644 --- a/src/test/java/org/openapitools/client/model/CreditObjectItemTest.java +++ b/src/test/java/org/openapitools/client/model/CreditObjectItemTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -38,11 +38,11 @@ public void testCreditObjectItem() { } /** - * Test the property 'lagoId' + * Test the property 'lagoItemId' */ @Test - public void lagoIdTest() { - // TODO: test lagoId + public void lagoItemIdTest() { + // TODO: test lagoItemId } /** diff --git a/src/test/java/org/openapitools/client/model/CreditObjectTest.java b/src/test/java/org/openapitools/client/model/CreditObjectTest.java index d4baa11..ae5d67c 100644 --- a/src/test/java/org/openapitools/client/model/CreditObjectTest.java +++ b/src/test/java/org/openapitools/client/model/CreditObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CurrencyTest.java b/src/test/java/org/openapitools/client/model/CurrencyTest.java index b77053e..5692cb0 100644 --- a/src/test/java/org/openapitools/client/model/CurrencyTest.java +++ b/src/test/java/org/openapitools/client/model/CurrencyTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CustomerBillingConfigurationTest.java b/src/test/java/org/openapitools/client/model/CustomerBillingConfigurationTest.java index f7c16ad..0e6bd6b 100644 --- a/src/test/java/org/openapitools/client/model/CustomerBillingConfigurationTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerBillingConfigurationTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectBillableMetricTest.java b/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectBillableMetricTest.java index 6048ee7..38bb30d 100644 --- a/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectBillableMetricTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectBillableMetricTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectChargeTest.java b/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectChargeTest.java index ae13a06..521a25c 100644 --- a/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectChargeTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectChargeTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,4 +53,12 @@ public void chargeModelTest() { // TODO: test chargeModel } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + } diff --git a/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectGroupsInnerTest.java b/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectGroupsInnerTest.java index 989f1a2..df875fa 100644 --- a/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectGroupsInnerTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectGroupsInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -73,6 +73,14 @@ public void unitsTest() { // TODO: test units } + /** + * Test the property 'eventsCount' + */ + @Test + public void eventsCountTest() { + // TODO: test eventsCount + } + /** * Test the property 'amountCents' */ diff --git a/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectTest.java b/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectTest.java index 14ecf6d..2451e28 100644 --- a/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerChargeUsageObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.client.model.CustomerChargeUsageObjectBillableMetric; @@ -50,6 +51,14 @@ public void unitsTest() { // TODO: test units } + /** + * Test the property 'eventsCount' + */ + @Test + public void eventsCountTest() { + // TODO: test eventsCount + } + /** * Test the property 'amountCents' */ diff --git a/src/test/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataInnerTest.java b/src/test/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataInnerTest.java index 8602b13..753fcdd 100644 --- a/src/test/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataInnerTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerCreateInputCustomerMetadataInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CustomerCreateInputCustomerTest.java b/src/test/java/org/openapitools/client/model/CustomerCreateInputCustomerTest.java index b55cd9d..1923c68 100644 --- a/src/test/java/org/openapitools/client/model/CustomerCreateInputCustomerTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerCreateInputCustomerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Country; import org.openapitools.client.model.Currency; diff --git a/src/test/java/org/openapitools/client/model/CustomerCreateInputTest.java b/src/test/java/org/openapitools/client/model/CustomerCreateInputTest.java index fa117f1..c6be4d1 100644 --- a/src/test/java/org/openapitools/client/model/CustomerCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CustomerMetadataTest.java b/src/test/java/org/openapitools/client/model/CustomerMetadataTest.java index ffd4198..afbcbb2 100644 --- a/src/test/java/org/openapitools/client/model/CustomerMetadataTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerMetadataTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CustomerObjectExtendedTest.java b/src/test/java/org/openapitools/client/model/CustomerObjectExtendedTest.java index a3772d8..f581d69 100644 --- a/src/test/java/org/openapitools/client/model/CustomerObjectExtendedTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerObjectExtendedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Country; diff --git a/src/test/java/org/openapitools/client/model/CustomerObjectTest.java b/src/test/java/org/openapitools/client/model/CustomerObjectTest.java index 43af411..c11cb36 100644 --- a/src/test/java/org/openapitools/client/model/CustomerObjectTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Country; diff --git a/src/test/java/org/openapitools/client/model/CustomerPastUsageTest.java b/src/test/java/org/openapitools/client/model/CustomerPastUsageTest.java new file mode 100644 index 0000000..af923e7 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/CustomerPastUsageTest.java @@ -0,0 +1,60 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.CustomerUsage; +import org.openapitools.client.model.PaginationMeta; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for CustomerPastUsage + */ +public class CustomerPastUsageTest { + private final CustomerPastUsage model = new CustomerPastUsage(); + + /** + * Model tests for CustomerPastUsage + */ + @Test + public void testCustomerPastUsage() { + // TODO: test CustomerPastUsage + } + + /** + * Test the property 'usagePeriods' + */ + @Test + public void usagePeriodsTest() { + // TODO: test usagePeriods + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/org/openapitools/client/model/CustomerTest.java b/src/test/java/org/openapitools/client/model/CustomerTest.java index 3b1ead0..026bf1a 100644 --- a/src/test/java/org/openapitools/client/model/CustomerTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CustomerUsageObjectTest.java b/src/test/java/org/openapitools/client/model/CustomerUsageObjectTest.java index 11e2398..165bba5 100644 --- a/src/test/java/org/openapitools/client/model/CustomerUsageObjectTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerUsageObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,9 +20,15 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import java.util.UUID; import org.openapitools.client.model.Currency; import org.openapitools.client.model.CustomerChargeUsageObject; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -65,6 +71,14 @@ public void issuingDateTest() { // TODO: test issuingDate } + /** + * Test the property 'lagoInvoiceId' + */ + @Test + public void lagoInvoiceIdTest() { + // TODO: test lagoInvoiceId + } + /** * Test the property 'currency' */ diff --git a/src/test/java/org/openapitools/client/model/CustomerUsageTest.java b/src/test/java/org/openapitools/client/model/CustomerUsageTest.java index e8aaffb..5804b47 100644 --- a/src/test/java/org/openapitools/client/model/CustomerUsageTest.java +++ b/src/test/java/org/openapitools/client/model/CustomerUsageTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/CustomersPaginatedTest.java b/src/test/java/org/openapitools/client/model/CustomersPaginatedTest.java index 49e62e7..95e6198 100644 --- a/src/test/java/org/openapitools/client/model/CustomersPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/CustomersPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.CustomerObjectExtended; import org.openapitools.client.model.PaginationMeta; diff --git a/src/test/java/org/openapitools/client/model/EventBatchInputEventPropertiesTest.java b/src/test/java/org/openapitools/client/model/EventBatchInputEventPropertiesTest.java index c87302f..79d102f 100644 --- a/src/test/java/org/openapitools/client/model/EventBatchInputEventPropertiesTest.java +++ b/src/test/java/org/openapitools/client/model/EventBatchInputEventPropertiesTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/EventBatchInputEventTest.java b/src/test/java/org/openapitools/client/model/EventBatchInputEventTest.java index a1ee8ab..b688642 100644 --- a/src/test/java/org/openapitools/client/model/EventBatchInputEventTest.java +++ b/src/test/java/org/openapitools/client/model/EventBatchInputEventTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.EventBatchInputEventProperties; import org.junit.Assert; diff --git a/src/test/java/org/openapitools/client/model/EventBatchInputTest.java b/src/test/java/org/openapitools/client/model/EventBatchInputTest.java index f3af066..6944891 100644 --- a/src/test/java/org/openapitools/client/model/EventBatchInputTest.java +++ b/src/test/java/org/openapitools/client/model/EventBatchInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/EventEstimateFeesInputEventTest.java b/src/test/java/org/openapitools/client/model/EventEstimateFeesInputEventTest.java index e109fee..d3201ab 100644 --- a/src/test/java/org/openapitools/client/model/EventEstimateFeesInputEventTest.java +++ b/src/test/java/org/openapitools/client/model/EventEstimateFeesInputEventTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/EventEstimateFeesInputTest.java b/src/test/java/org/openapitools/client/model/EventEstimateFeesInputTest.java index 149ecb3..d9e3fe2 100644 --- a/src/test/java/org/openapitools/client/model/EventEstimateFeesInputTest.java +++ b/src/test/java/org/openapitools/client/model/EventEstimateFeesInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/EventInputEventTest.java b/src/test/java/org/openapitools/client/model/EventInputEventTest.java index 044aa94..a784db1 100644 --- a/src/test/java/org/openapitools/client/model/EventInputEventTest.java +++ b/src/test/java/org/openapitools/client/model/EventInputEventTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,9 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.EventBatchInputEventProperties; +import java.util.HashMap; +import java.util.Map; +import org.openapitools.client.model.EventInputEventTimestamp; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/org/openapitools/client/model/EventInputEventTimestampTest.java b/src/test/java/org/openapitools/client/model/EventInputEventTimestampTest.java new file mode 100644 index 0000000..99dfb25 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/EventInputEventTimestampTest.java @@ -0,0 +1,35 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for EventInputEventTimestamp + */ +public class EventInputEventTimestampTest { + private final EventInputEventTimestamp model = new EventInputEventTimestamp(); + + /** + * Model tests for EventInputEventTimestamp + */ + @Test + public void testEventInputEventTimestamp() { + // TODO: test EventInputEventTimestamp + } + +} diff --git a/src/test/java/org/openapitools/client/model/EventInputTest.java b/src/test/java/org/openapitools/client/model/EventInputTest.java index ced9674..ed92d0b 100644 --- a/src/test/java/org/openapitools/client/model/EventInputTest.java +++ b/src/test/java/org/openapitools/client/model/EventInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AppliedAddOnInputTest.java b/src/test/java/org/openapitools/client/model/EventObjectPropertiesTest.java similarity index 61% rename from src/test/java/org/openapitools/client/model/AppliedAddOnInputTest.java rename to src/test/java/org/openapitools/client/model/EventObjectPropertiesTest.java index a6d62e4..e6a6a58 100644 --- a/src/test/java/org/openapitools/client/model/AppliedAddOnInputTest.java +++ b/src/test/java/org/openapitools/client/model/EventObjectPropertiesTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,31 +18,32 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.AppliedAddOnInputAppliedAddOn; +import java.util.HashMap; +import java.util.Map; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** - * Model tests for AppliedAddOnInput + * Model tests for EventObjectProperties */ -public class AppliedAddOnInputTest { - private final AppliedAddOnInput model = new AppliedAddOnInput(); +public class EventObjectPropertiesTest { + private final EventObjectProperties model = new EventObjectProperties(); /** - * Model tests for AppliedAddOnInput + * Model tests for EventObjectProperties */ @Test - public void testAppliedAddOnInput() { - // TODO: test AppliedAddOnInput + public void testEventObjectProperties() { + // TODO: test EventObjectProperties } /** - * Test the property 'appliedAddOn' + * Test the property 'operationType' */ @Test - public void appliedAddOnTest() { - // TODO: test appliedAddOn + public void operationTypeTest() { + // TODO: test operationType } } diff --git a/src/test/java/org/openapitools/client/model/EventObjectTest.java b/src/test/java/org/openapitools/client/model/EventObjectTest.java index 390dab5..b3c2fd4 100644 --- a/src/test/java/org/openapitools/client/model/EventObjectTest.java +++ b/src/test/java/org/openapitools/client/model/EventObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.UUID; -import org.openapitools.client.model.EventBatchInputEventProperties; +import org.openapitools.client.model.EventObjectProperties; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/org/openapitools/client/model/EventTest.java b/src/test/java/org/openapitools/client/model/EventTest.java index ebc331a..46f4574 100644 --- a/src/test/java/org/openapitools/client/model/EventTest.java +++ b/src/test/java/org/openapitools/client/model/EventTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/FeeAppliedTaxObjectTest.java b/src/test/java/org/openapitools/client/model/FeeAppliedTaxObjectTest.java index daab04e..4e736fd 100644 --- a/src/test/java/org/openapitools/client/model/FeeAppliedTaxObjectTest.java +++ b/src/test/java/org/openapitools/client/model/FeeAppliedTaxObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/FeeObjectItemTest.java b/src/test/java/org/openapitools/client/model/FeeObjectItemTest.java index 7f02161..ae7d962 100644 --- a/src/test/java/org/openapitools/client/model/FeeObjectItemTest.java +++ b/src/test/java/org/openapitools/client/model/FeeObjectItemTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -61,6 +61,22 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + + /** + * Test the property 'groupInvoiceDisplayName' + */ + @Test + public void groupInvoiceDisplayNameTest() { + // TODO: test groupInvoiceDisplayName + } + /** * Test the property 'lagoItemId' */ diff --git a/src/test/java/org/openapitools/client/model/FeeObjectTest.java b/src/test/java/org/openapitools/client/model/FeeObjectTest.java index 888c394..29a5026 100644 --- a/src/test/java/org/openapitools/client/model/FeeObjectTest.java +++ b/src/test/java/org/openapitools/client/model/FeeObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; @@ -120,6 +121,14 @@ public void externalSubscriptionIdTest() { // TODO: test externalSubscriptionId } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'amountCents' */ @@ -160,6 +169,14 @@ public void unitsTest() { // TODO: test units } + /** + * Test the property 'preciseUnitAmount' + */ + @Test + public void preciseUnitAmountTest() { + // TODO: test preciseUnitAmount + } + /** * Test the property 'totalAmountCents' */ diff --git a/src/test/java/org/openapitools/client/model/FeeTest.java b/src/test/java/org/openapitools/client/model/FeeTest.java index 017cea8..639ad29 100644 --- a/src/test/java/org/openapitools/client/model/FeeTest.java +++ b/src/test/java/org/openapitools/client/model/FeeTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/FeeUpdateInputFeeTest.java b/src/test/java/org/openapitools/client/model/FeeUpdateInputFeeTest.java index 555ad84..3a409e1 100644 --- a/src/test/java/org/openapitools/client/model/FeeUpdateInputFeeTest.java +++ b/src/test/java/org/openapitools/client/model/FeeUpdateInputFeeTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/FeeUpdateInputTest.java b/src/test/java/org/openapitools/client/model/FeeUpdateInputTest.java index 5a83441..00f9fce 100644 --- a/src/test/java/org/openapitools/client/model/FeeUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/FeeUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/FeesPaginatedTest.java b/src/test/java/org/openapitools/client/model/FeesPaginatedTest.java index fb221d6..68fb095 100644 --- a/src/test/java/org/openapitools/client/model/FeesPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/FeesPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.FeeObject; import org.openapitools.client.model.PaginationMeta; diff --git a/src/test/java/org/openapitools/client/model/FeesTest.java b/src/test/java/org/openapitools/client/model/FeesTest.java index 9e0d945..2588fb5 100644 --- a/src/test/java/org/openapitools/client/model/FeesTest.java +++ b/src/test/java/org/openapitools/client/model/FeesTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.FeeObject; import org.junit.Assert; diff --git a/src/test/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200ResponseTest.java b/src/test/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200ResponseTest.java new file mode 100644 index 0000000..39ebbf0 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/GenerateCustomerCheckoutURL200ResponseTest.java @@ -0,0 +1,71 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for GenerateCustomerCheckoutURL200Response + */ +public class GenerateCustomerCheckoutURL200ResponseTest { + private final GenerateCustomerCheckoutURL200Response model = new GenerateCustomerCheckoutURL200Response(); + + /** + * Model tests for GenerateCustomerCheckoutURL200Response + */ + @Test + public void testGenerateCustomerCheckoutURL200Response() { + // TODO: test GenerateCustomerCheckoutURL200Response + } + + /** + * Test the property 'lagoCustomerId' + */ + @Test + public void lagoCustomerIdTest() { + // TODO: test lagoCustomerId + } + + /** + * Test the property 'externalCustomerId' + */ + @Test + public void externalCustomerIdTest() { + // TODO: test externalCustomerId + } + + /** + * Test the property 'paymentProvider' + */ + @Test + public void paymentProviderTest() { + // TODO: test paymentProvider + } + + /** + * Test the property 'checkoutUrl' + */ + @Test + public void checkoutUrlTest() { + // TODO: test checkoutUrl + } + +} diff --git a/src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomerTest.java b/src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomerTest.java index 5b507c1..f99ff2c 100644 --- a/src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomerTest.java +++ b/src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseCustomerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseTest.java b/src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseTest.java index b9c874d..b26a064 100644 --- a/src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseTest.java +++ b/src/test/java/org/openapitools/client/model/GetCustomerPortalUrl200ResponseTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/GrossRevenueObjectTest.java b/src/test/java/org/openapitools/client/model/GrossRevenueObjectTest.java new file mode 100644 index 0000000..97dfc4d --- /dev/null +++ b/src/test/java/org/openapitools/client/model/GrossRevenueObjectTest.java @@ -0,0 +1,64 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.Currency; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for GrossRevenueObject + */ +public class GrossRevenueObjectTest { + private final GrossRevenueObject model = new GrossRevenueObject(); + + /** + * Model tests for GrossRevenueObject + */ + @Test + public void testGrossRevenueObject() { + // TODO: test GrossRevenueObject + } + + /** + * Test the property 'month' + */ + @Test + public void monthTest() { + // TODO: test month + } + + /** + * Test the property 'amountCents' + */ + @Test + public void amountCentsTest() { + // TODO: test amountCents + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + +} diff --git a/src/test/java/org/openapitools/client/model/GrossRevenuesTest.java b/src/test/java/org/openapitools/client/model/GrossRevenuesTest.java new file mode 100644 index 0000000..b6be3bc --- /dev/null +++ b/src/test/java/org/openapitools/client/model/GrossRevenuesTest.java @@ -0,0 +1,51 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.GrossRevenueObject; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for GrossRevenues + */ +public class GrossRevenuesTest { + private final GrossRevenues model = new GrossRevenues(); + + /** + * Model tests for GrossRevenues + */ + @Test + public void testGrossRevenues() { + // TODO: test GrossRevenues + } + + /** + * Test the property 'grossRevenues' + */ + @Test + public void grossRevenuesTest() { + // TODO: test grossRevenues + } + +} diff --git a/src/test/java/org/openapitools/client/model/GroupObjectTest.java b/src/test/java/org/openapitools/client/model/GroupObjectTest.java index c267881..5bbefaf 100644 --- a/src/test/java/org/openapitools/client/model/GroupObjectTest.java +++ b/src/test/java/org/openapitools/client/model/GroupObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/GroupPropertiesObjectTest.java b/src/test/java/org/openapitools/client/model/GroupPropertiesObjectTest.java index a4ce114..8953b13 100644 --- a/src/test/java/org/openapitools/client/model/GroupPropertiesObjectTest.java +++ b/src/test/java/org/openapitools/client/model/GroupPropertiesObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,6 +46,14 @@ public void groupIdTest() { // TODO: test groupId } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'values' */ diff --git a/src/test/java/org/openapitools/client/model/GroupPropertiesObjectValuesTest.java b/src/test/java/org/openapitools/client/model/GroupPropertiesObjectValuesTest.java index f4b9748..a383cb0 100644 --- a/src/test/java/org/openapitools/client/model/GroupPropertiesObjectValuesTest.java +++ b/src/test/java/org/openapitools/client/model/GroupPropertiesObjectValuesTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ChargePropertiesGraduatedPercentageRangesInner; import org.openapitools.client.model.ChargePropertiesGraduatedRangesInner; diff --git a/src/test/java/org/openapitools/client/model/GroupsPaginatedTest.java b/src/test/java/org/openapitools/client/model/GroupsPaginatedTest.java index ba231bc..bd43f40 100644 --- a/src/test/java/org/openapitools/client/model/GroupsPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/GroupsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.GroupObject; import org.openapitools.client.model.PaginationMeta; diff --git a/src/test/java/org/openapitools/client/model/InvoiceAppliedTaxObjectTest.java b/src/test/java/org/openapitools/client/model/InvoiceAppliedTaxObjectTest.java index d70fd30..f75e090 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceAppliedTaxObjectTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceAppliedTaxObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/InvoiceMetadataObjectTest.java b/src/test/java/org/openapitools/client/model/InvoiceMetadataObjectTest.java index 6d517fd..9580e83 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceMetadataObjectTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceMetadataObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/InvoiceObjectCustomerTest.java b/src/test/java/org/openapitools/client/model/InvoiceObjectCustomerTest.java index c7e71d7..51b96cf 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceObjectCustomerTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceObjectCustomerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Country; diff --git a/src/test/java/org/openapitools/client/model/InvoiceObjectExtendedTest.java b/src/test/java/org/openapitools/client/model/InvoiceObjectExtendedTest.java index 149b3ed..44976d1 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceObjectExtendedTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceObjectExtendedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import java.net.URI; import java.time.LocalDate; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.CreditObject; diff --git a/src/test/java/org/openapitools/client/model/InvoiceObjectTest.java b/src/test/java/org/openapitools/client/model/InvoiceObjectTest.java index 5a45ce2..031f804 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceObjectTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import java.net.URI; import java.time.LocalDate; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Currency; diff --git a/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesInnerTest.java b/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesInnerTest.java index 33796a3..0f11c06 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesInnerTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceFeesInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -50,6 +51,14 @@ public void addOnCodeTest() { // TODO: test addOnCode } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'unitAmountCents' */ diff --git a/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceTest.java b/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceTest.java index d67411b..23f7522 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputInvoiceTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.client.model.InvoiceOneOffCreateInputInvoiceFeesInner; diff --git a/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputTest.java b/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputTest.java index e732efd..fb3fd23 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceOneOffCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/InvoiceTest.java b/src/test/java/org/openapitools/client/model/InvoiceTest.java index c505f47..eb208cb 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInnerTest.java b/src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInnerTest.java index 1565dec..ca70bba 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInnerTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceMetadataInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceTest.java b/src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceTest.java index 6088918..e50a7ce 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceUpdateInputInvoiceTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.InvoiceUpdateInputInvoiceMetadataInner; import org.junit.Assert; diff --git a/src/test/java/org/openapitools/client/model/InvoiceUpdateInputTest.java b/src/test/java/org/openapitools/client/model/InvoiceUpdateInputTest.java index dafcdc4..9c8d862 100644 --- a/src/test/java/org/openapitools/client/model/InvoiceUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/InvoiceUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOnTest.java b/src/test/java/org/openapitools/client/model/InvoicedUsageObjectTest.java similarity index 53% rename from src/test/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOnTest.java rename to src/test/java/org/openapitools/client/model/InvoicedUsageObjectTest.java index edc6151..fa37519 100644 --- a/src/test/java/org/openapitools/client/model/AppliedAddOnInputAppliedAddOnTest.java +++ b/src/test/java/org/openapitools/client/model/InvoicedUsageObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,42 +19,38 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.client.model.Currency; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** - * Model tests for AppliedAddOnInputAppliedAddOn + * Model tests for InvoicedUsageObject */ -public class AppliedAddOnInputAppliedAddOnTest { - private final AppliedAddOnInputAppliedAddOn model = new AppliedAddOnInputAppliedAddOn(); +public class InvoicedUsageObjectTest { + private final InvoicedUsageObject model = new InvoicedUsageObject(); /** - * Model tests for AppliedAddOnInputAppliedAddOn + * Model tests for InvoicedUsageObject */ @Test - public void testAppliedAddOnInputAppliedAddOn() { - // TODO: test AppliedAddOnInputAppliedAddOn + public void testInvoicedUsageObject() { + // TODO: test InvoicedUsageObject } /** - * Test the property 'externalCustomerId' + * Test the property 'month' */ @Test - public void externalCustomerIdTest() { - // TODO: test externalCustomerId + public void monthTest() { + // TODO: test month } /** - * Test the property 'addOnCode' + * Test the property 'code' */ @Test - public void addOnCodeTest() { - // TODO: test addOnCode + public void codeTest() { + // TODO: test code } /** @@ -66,11 +62,11 @@ public void amountCentsTest() { } /** - * Test the property 'amountCurrency' + * Test the property 'currency' */ @Test - public void amountCurrencyTest() { - // TODO: test amountCurrency + public void currencyTest() { + // TODO: test currency } } diff --git a/src/test/java/org/openapitools/client/model/InvoicedUsagesTest.java b/src/test/java/org/openapitools/client/model/InvoicedUsagesTest.java new file mode 100644 index 0000000..a1907c8 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/InvoicedUsagesTest.java @@ -0,0 +1,51 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.InvoicedUsageObject; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for InvoicedUsages + */ +public class InvoicedUsagesTest { + private final InvoicedUsages model = new InvoicedUsages(); + + /** + * Model tests for InvoicedUsages + */ + @Test + public void testInvoicedUsages() { + // TODO: test InvoicedUsages + } + + /** + * Test the property 'invoicedUsages' + */ + @Test + public void invoicedUsagesTest() { + // TODO: test invoicedUsages + } + +} diff --git a/src/test/java/org/openapitools/client/model/InvoicesPaginatedTest.java b/src/test/java/org/openapitools/client/model/InvoicesPaginatedTest.java index 22e651d..c253b3b 100644 --- a/src/test/java/org/openapitools/client/model/InvoicesPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/InvoicesPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.InvoiceObject; import org.openapitools.client.model.PaginationMeta; diff --git a/src/test/java/org/openapitools/client/model/MrrObjectTest.java b/src/test/java/org/openapitools/client/model/MrrObjectTest.java new file mode 100644 index 0000000..242487d --- /dev/null +++ b/src/test/java/org/openapitools/client/model/MrrObjectTest.java @@ -0,0 +1,64 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.Currency; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for MrrObject + */ +public class MrrObjectTest { + private final MrrObject model = new MrrObject(); + + /** + * Model tests for MrrObject + */ + @Test + public void testMrrObject() { + // TODO: test MrrObject + } + + /** + * Test the property 'month' + */ + @Test + public void monthTest() { + // TODO: test month + } + + /** + * Test the property 'amountCents' + */ + @Test + public void amountCentsTest() { + // TODO: test amountCents + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + +} diff --git a/src/test/java/org/openapitools/client/model/AppliedAddOnTest.java b/src/test/java/org/openapitools/client/model/MrrsTest.java similarity index 64% rename from src/test/java/org/openapitools/client/model/AppliedAddOnTest.java rename to src/test/java/org/openapitools/client/model/MrrsTest.java index de3ebef..b8acc1b 100644 --- a/src/test/java/org/openapitools/client/model/AppliedAddOnTest.java +++ b/src/test/java/org/openapitools/client/model/MrrsTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,31 +18,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.AppliedAddOnObject; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.MrrObject; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** - * Model tests for AppliedAddOn + * Model tests for Mrrs */ -public class AppliedAddOnTest { - private final AppliedAddOn model = new AppliedAddOn(); +public class MrrsTest { + private final Mrrs model = new Mrrs(); /** - * Model tests for AppliedAddOn + * Model tests for Mrrs */ @Test - public void testAppliedAddOn() { - // TODO: test AppliedAddOn + public void testMrrs() { + // TODO: test Mrrs } /** - * Test the property 'appliedAddOn' + * Test the property 'mrrs' */ @Test - public void appliedAddOnTest() { - // TODO: test appliedAddOn + public void mrrsTest() { + // TODO: test mrrs } } diff --git a/src/test/java/org/openapitools/client/model/OrganizationBillingConfigurationTest.java b/src/test/java/org/openapitools/client/model/OrganizationBillingConfigurationTest.java index 39c0918..33ca8ea 100644 --- a/src/test/java/org/openapitools/client/model/OrganizationBillingConfigurationTest.java +++ b/src/test/java/org/openapitools/client/model/OrganizationBillingConfigurationTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/OrganizationObjectTest.java b/src/test/java/org/openapitools/client/model/OrganizationObjectTest.java index dd81179..8ef18c4 100644 --- a/src/test/java/org/openapitools/client/model/OrganizationObjectTest.java +++ b/src/test/java/org/openapitools/client/model/OrganizationObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,9 +20,11 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.Country; +import org.openapitools.client.model.Currency; import org.openapitools.client.model.OrganizationBillingConfiguration; import org.openapitools.client.model.TaxObject; import org.openapitools.client.model.Timezone; @@ -96,6 +98,14 @@ public void countryTest() { // TODO: test country } + /** + * Test the property 'defaultCurrency' + */ + @Test + public void defaultCurrencyTest() { + // TODO: test defaultCurrency + } + /** * Test the property 'addressLine1' */ diff --git a/src/test/java/org/openapitools/client/model/OrganizationTest.java b/src/test/java/org/openapitools/client/model/OrganizationTest.java index 3117fad..fa11284 100644 --- a/src/test/java/org/openapitools/client/model/OrganizationTest.java +++ b/src/test/java/org/openapitools/client/model/OrganizationTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/OrganizationUpdateInputOrganizationTest.java b/src/test/java/org/openapitools/client/model/OrganizationUpdateInputOrganizationTest.java index 14b910b..3aeae03 100644 --- a/src/test/java/org/openapitools/client/model/OrganizationUpdateInputOrganizationTest.java +++ b/src/test/java/org/openapitools/client/model/OrganizationUpdateInputOrganizationTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,8 +19,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Country; +import org.openapitools.client.model.Currency; import org.openapitools.client.model.OrganizationBillingConfiguration; import org.openapitools.client.model.Timezone; import org.openapitools.jackson.nullable.JsonNullable; @@ -61,6 +63,14 @@ public void countryTest() { // TODO: test country } + /** + * Test the property 'defaultCurrency' + */ + @Test + public void defaultCurrencyTest() { + // TODO: test defaultCurrency + } + /** * Test the property 'addressLine1' */ diff --git a/src/test/java/org/openapitools/client/model/OrganizationUpdateInputTest.java b/src/test/java/org/openapitools/client/model/OrganizationUpdateInputTest.java index 9a90954..41b8ccc 100644 --- a/src/test/java/org/openapitools/client/model/OrganizationUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/OrganizationUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/OutstandingInvoiceObjectTest.java b/src/test/java/org/openapitools/client/model/OutstandingInvoiceObjectTest.java new file mode 100644 index 0000000..12f0d6f --- /dev/null +++ b/src/test/java/org/openapitools/client/model/OutstandingInvoiceObjectTest.java @@ -0,0 +1,80 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.Currency; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for OutstandingInvoiceObject + */ +public class OutstandingInvoiceObjectTest { + private final OutstandingInvoiceObject model = new OutstandingInvoiceObject(); + + /** + * Model tests for OutstandingInvoiceObject + */ + @Test + public void testOutstandingInvoiceObject() { + // TODO: test OutstandingInvoiceObject + } + + /** + * Test the property 'month' + */ + @Test + public void monthTest() { + // TODO: test month + } + + /** + * Test the property 'paymentStatus' + */ + @Test + public void paymentStatusTest() { + // TODO: test paymentStatus + } + + /** + * Test the property 'invoicesCount' + */ + @Test + public void invoicesCountTest() { + // TODO: test invoicesCount + } + + /** + * Test the property 'amountCents' + */ + @Test + public void amountCentsTest() { + // TODO: test amountCents + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + +} diff --git a/src/test/java/org/openapitools/client/model/OutstandingInvoicesTest.java b/src/test/java/org/openapitools/client/model/OutstandingInvoicesTest.java new file mode 100644 index 0000000..699edcd --- /dev/null +++ b/src/test/java/org/openapitools/client/model/OutstandingInvoicesTest.java @@ -0,0 +1,51 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.OutstandingInvoiceObject; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for OutstandingInvoices + */ +public class OutstandingInvoicesTest { + private final OutstandingInvoices model = new OutstandingInvoices(); + + /** + * Model tests for OutstandingInvoices + */ + @Test + public void testOutstandingInvoices() { + // TODO: test OutstandingInvoices + } + + /** + * Test the property 'outstandingInvoices' + */ + @Test + public void outstandingInvoicesTest() { + // TODO: test outstandingInvoices + } + +} diff --git a/src/test/java/org/openapitools/client/model/PaginationMetaTest.java b/src/test/java/org/openapitools/client/model/PaginationMetaTest.java index 66b5682..34dfd72 100644 --- a/src/test/java/org/openapitools/client/model/PaginationMetaTest.java +++ b/src/test/java/org/openapitools/client/model/PaginationMetaTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInnerTest.java b/src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInnerTest.java index 6f35028..580e960 100644 --- a/src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInnerTest.java +++ b/src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerGroupPropertiesInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerTest.java b/src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerTest.java index e392220..02d1731 100644 --- a/src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerTest.java +++ b/src/test/java/org/openapitools/client/model/PlanCreateInputPlanChargesInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.ChargeObjectProperties; @@ -73,6 +74,14 @@ public void invoiceableTest() { // TODO: test invoiceable } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'prorated' */ diff --git a/src/test/java/org/openapitools/client/model/PlanCreateInputPlanTest.java b/src/test/java/org/openapitools/client/model/PlanCreateInputPlanTest.java index 04dcb25..537ac5b 100644 --- a/src/test/java/org/openapitools/client/model/PlanCreateInputPlanTest.java +++ b/src/test/java/org/openapitools/client/model/PlanCreateInputPlanTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.client.model.PlanCreateInputPlanChargesInner; @@ -53,6 +54,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'code' */ diff --git a/src/test/java/org/openapitools/client/model/PlanCreateInputTest.java b/src/test/java/org/openapitools/client/model/PlanCreateInputTest.java index e80bac9..1e69020 100644 --- a/src/test/java/org/openapitools/client/model/PlanCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/PlanCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/PlanObjectTest.java b/src/test/java/org/openapitools/client/model/PlanObjectTest.java index 64ea936..aedacd1 100644 --- a/src/test/java/org/openapitools/client/model/PlanObjectTest.java +++ b/src/test/java/org/openapitools/client/model/PlanObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,7 @@ import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.ChargeObject; @@ -64,6 +65,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'createdAt' */ diff --git a/src/test/java/org/openapitools/client/model/PlanOverridesObjectChargesInnerTest.java b/src/test/java/org/openapitools/client/model/PlanOverridesObjectChargesInnerTest.java new file mode 100644 index 0000000..365ac65 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/PlanOverridesObjectChargesInnerTest.java @@ -0,0 +1,101 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import org.openapitools.client.model.ChargeObjectProperties; +import org.openapitools.client.model.PlanCreateInputPlanChargesInnerGroupPropertiesInner; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for PlanOverridesObjectChargesInner + */ +public class PlanOverridesObjectChargesInnerTest { + private final PlanOverridesObjectChargesInner model = new PlanOverridesObjectChargesInner(); + + /** + * Model tests for PlanOverridesObjectChargesInner + */ + @Test + public void testPlanOverridesObjectChargesInner() { + // TODO: test PlanOverridesObjectChargesInner + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'billableMetricId' + */ + @Test + public void billableMetricIdTest() { + // TODO: test billableMetricId + } + + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + + /** + * Test the property 'minAmountCents' + */ + @Test + public void minAmountCentsTest() { + // TODO: test minAmountCents + } + + /** + * Test the property 'properties' + */ + @Test + public void propertiesTest() { + // TODO: test properties + } + + /** + * Test the property 'groupProperties' + */ + @Test + public void groupPropertiesTest() { + // TODO: test groupProperties + } + + /** + * Test the property 'taxCodes' + */ + @Test + public void taxCodesTest() { + // TODO: test taxCodes + } + +} diff --git a/src/test/java/org/openapitools/client/model/AppliedAddOnObjectTest.java b/src/test/java/org/openapitools/client/model/PlanOverridesObjectTest.java similarity index 53% rename from src/test/java/org/openapitools/client/model/AppliedAddOnObjectTest.java rename to src/test/java/org/openapitools/client/model/PlanOverridesObjectTest.java index e02e814..bf03b43 100644 --- a/src/test/java/org/openapitools/client/model/AppliedAddOnObjectTest.java +++ b/src/test/java/org/openapitools/client/model/PlanOverridesObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,89 +18,92 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.UUID; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import org.openapitools.client.model.Currency; +import org.openapitools.client.model.PlanOverridesObjectChargesInner; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** - * Model tests for AppliedAddOnObject + * Model tests for PlanOverridesObject */ -public class AppliedAddOnObjectTest { - private final AppliedAddOnObject model = new AppliedAddOnObject(); +public class PlanOverridesObjectTest { + private final PlanOverridesObject model = new PlanOverridesObject(); /** - * Model tests for AppliedAddOnObject + * Model tests for PlanOverridesObject */ @Test - public void testAppliedAddOnObject() { - // TODO: test AppliedAddOnObject + public void testPlanOverridesObject() { + // TODO: test PlanOverridesObject } /** - * Test the property 'lagoId' + * Test the property 'amountCents' */ @Test - public void lagoIdTest() { - // TODO: test lagoId + public void amountCentsTest() { + // TODO: test amountCents } /** - * Test the property 'lagoAddOnId' + * Test the property 'amountCurrency' */ @Test - public void lagoAddOnIdTest() { - // TODO: test lagoAddOnId + public void amountCurrencyTest() { + // TODO: test amountCurrency } /** - * Test the property 'addOnCode' + * Test the property 'description' */ @Test - public void addOnCodeTest() { - // TODO: test addOnCode + public void descriptionTest() { + // TODO: test description } /** - * Test the property 'lagoCustomerId' + * Test the property 'invoiceDisplayName' */ @Test - public void lagoCustomerIdTest() { - // TODO: test lagoCustomerId + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName } /** - * Test the property 'externalCustomerId' + * Test the property 'name' */ @Test - public void externalCustomerIdTest() { - // TODO: test externalCustomerId + public void nameTest() { + // TODO: test name } /** - * Test the property 'amountCents' + * Test the property 'taxCodes' */ @Test - public void amountCentsTest() { - // TODO: test amountCents + public void taxCodesTest() { + // TODO: test taxCodes } /** - * Test the property 'amountCurrency' + * Test the property 'trialPeriod' */ @Test - public void amountCurrencyTest() { - // TODO: test amountCurrency + public void trialPeriodTest() { + // TODO: test trialPeriod } /** - * Test the property 'createdAt' + * Test the property 'charges' */ @Test - public void createdAtTest() { - // TODO: test createdAt + public void chargesTest() { + // TODO: test charges } } diff --git a/src/test/java/org/openapitools/client/model/PlanTest.java b/src/test/java/org/openapitools/client/model/PlanTest.java index b828f09..24e5d03 100644 --- a/src/test/java/org/openapitools/client/model/PlanTest.java +++ b/src/test/java/org/openapitools/client/model/PlanTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInnerTest.java b/src/test/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInnerTest.java index d4023e4..ad67f30 100644 --- a/src/test/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInnerTest.java +++ b/src/test/java/org/openapitools/client/model/PlanUpdateInputPlanChargesInnerTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import org.openapitools.client.model.ChargeObjectProperties; @@ -81,6 +82,14 @@ public void invoiceableTest() { // TODO: test invoiceable } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'prorated' */ diff --git a/src/test/java/org/openapitools/client/model/PlanUpdateInputPlanTest.java b/src/test/java/org/openapitools/client/model/PlanUpdateInputPlanTest.java index fee9881..4e57c07 100644 --- a/src/test/java/org/openapitools/client/model/PlanUpdateInputPlanTest.java +++ b/src/test/java/org/openapitools/client/model/PlanUpdateInputPlanTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Currency; import org.openapitools.client.model.PlanUpdateInputPlanChargesInner; @@ -53,6 +54,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'invoiceDisplayName' + */ + @Test + public void invoiceDisplayNameTest() { + // TODO: test invoiceDisplayName + } + /** * Test the property 'code' */ diff --git a/src/test/java/org/openapitools/client/model/PlanUpdateInputTest.java b/src/test/java/org/openapitools/client/model/PlanUpdateInputTest.java index 1ac38c8..ba40b1f 100644 --- a/src/test/java/org/openapitools/client/model/PlanUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/PlanUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/PlansPaginatedTest.java b/src/test/java/org/openapitools/client/model/PlansPaginatedTest.java index 15402bd..e536f3f 100644 --- a/src/test/java/org/openapitools/client/model/PlansPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/PlansPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.PlanObject; diff --git a/src/test/java/org/openapitools/client/model/SubscriptionCreateInputSubscriptionTest.java b/src/test/java/org/openapitools/client/model/SubscriptionCreateInputSubscriptionTest.java index 524d564..f9d08eb 100644 --- a/src/test/java/org/openapitools/client/model/SubscriptionCreateInputSubscriptionTest.java +++ b/src/test/java/org/openapitools/client/model/SubscriptionCreateInputSubscriptionTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import org.openapitools.client.model.PlanOverridesObject; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -77,6 +78,14 @@ public void billingTimeTest() { // TODO: test billingTime } + /** + * Test the property 'endingAt' + */ + @Test + public void endingAtTest() { + // TODO: test endingAt + } + /** * Test the property 'subscriptionAt' */ @@ -85,4 +94,12 @@ public void subscriptionAtTest() { // TODO: test subscriptionAt } + /** + * Test the property 'planOverrides' + */ + @Test + public void planOverridesTest() { + // TODO: test planOverrides + } + } diff --git a/src/test/java/org/openapitools/client/model/SubscriptionCreateInputTest.java b/src/test/java/org/openapitools/client/model/SubscriptionCreateInputTest.java index fd07be7..9f5396e 100644 --- a/src/test/java/org/openapitools/client/model/SubscriptionCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/SubscriptionCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/SubscriptionObjectExtendedTest.java b/src/test/java/org/openapitools/client/model/SubscriptionObjectExtendedTest.java new file mode 100644 index 0000000..aea61ab --- /dev/null +++ b/src/test/java/org/openapitools/client/model/SubscriptionObjectExtendedTest.java @@ -0,0 +1,190 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.UUID; +import org.openapitools.client.model.PlanObject; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for SubscriptionObjectExtended + */ +public class SubscriptionObjectExtendedTest { + private final SubscriptionObjectExtended model = new SubscriptionObjectExtended(); + + /** + * Model tests for SubscriptionObjectExtended + */ + @Test + public void testSubscriptionObjectExtended() { + // TODO: test SubscriptionObjectExtended + } + + /** + * Test the property 'lagoId' + */ + @Test + public void lagoIdTest() { + // TODO: test lagoId + } + + /** + * Test the property 'externalId' + */ + @Test + public void externalIdTest() { + // TODO: test externalId + } + + /** + * Test the property 'lagoCustomerId' + */ + @Test + public void lagoCustomerIdTest() { + // TODO: test lagoCustomerId + } + + /** + * Test the property 'externalCustomerId' + */ + @Test + public void externalCustomerIdTest() { + // TODO: test externalCustomerId + } + + /** + * Test the property 'billingTime' + */ + @Test + public void billingTimeTest() { + // TODO: test billingTime + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'planCode' + */ + @Test + public void planCodeTest() { + // TODO: test planCode + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'canceledAt' + */ + @Test + public void canceledAtTest() { + // TODO: test canceledAt + } + + /** + * Test the property 'startedAt' + */ + @Test + public void startedAtTest() { + // TODO: test startedAt + } + + /** + * Test the property 'endingAt' + */ + @Test + public void endingAtTest() { + // TODO: test endingAt + } + + /** + * Test the property 'subscriptionAt' + */ + @Test + public void subscriptionAtTest() { + // TODO: test subscriptionAt + } + + /** + * Test the property 'terminatedAt' + */ + @Test + public void terminatedAtTest() { + // TODO: test terminatedAt + } + + /** + * Test the property 'previousPlanCode' + */ + @Test + public void previousPlanCodeTest() { + // TODO: test previousPlanCode + } + + /** + * Test the property 'nextPlanCode' + */ + @Test + public void nextPlanCodeTest() { + // TODO: test nextPlanCode + } + + /** + * Test the property 'downgradePlanDate' + */ + @Test + public void downgradePlanDateTest() { + // TODO: test downgradePlanDate + } + + /** + * Test the property 'plan' + */ + @Test + public void planTest() { + // TODO: test plan + } + +} diff --git a/src/test/java/org/openapitools/client/model/SubscriptionObjectTest.java b/src/test/java/org/openapitools/client/model/SubscriptionObjectTest.java index 62fd13e..2a274ae 100644 --- a/src/test/java/org/openapitools/client/model/SubscriptionObjectTest.java +++ b/src/test/java/org/openapitools/client/model/SubscriptionObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -130,6 +130,14 @@ public void startedAtTest() { // TODO: test startedAt } + /** + * Test the property 'endingAt' + */ + @Test + public void endingAtTest() { + // TODO: test endingAt + } + /** * Test the property 'subscriptionAt' */ diff --git a/src/test/java/org/openapitools/client/model/SubscriptionTest.java b/src/test/java/org/openapitools/client/model/SubscriptionTest.java index 7b7dfee..39fde18 100644 --- a/src/test/java/org/openapitools/client/model/SubscriptionTest.java +++ b/src/test/java/org/openapitools/client/model/SubscriptionTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.SubscriptionObject; +import org.openapitools.client.model.SubscriptionObjectExtended; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/org/openapitools/client/model/SubscriptionUpdateInputSubscriptionTest.java b/src/test/java/org/openapitools/client/model/SubscriptionUpdateInputSubscriptionTest.java index cfb94cd..b3bced7 100644 --- a/src/test/java/org/openapitools/client/model/SubscriptionUpdateInputSubscriptionTest.java +++ b/src/test/java/org/openapitools/client/model/SubscriptionUpdateInputSubscriptionTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import org.openapitools.client.model.PlanOverridesObject; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; @@ -49,6 +50,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'endingAt' + */ + @Test + public void endingAtTest() { + // TODO: test endingAt + } + /** * Test the property 'subscriptionAt' */ @@ -57,4 +66,12 @@ public void subscriptionAtTest() { // TODO: test subscriptionAt } + /** + * Test the property 'planOverrides' + */ + @Test + public void planOverridesTest() { + // TODO: test planOverrides + } + } diff --git a/src/test/java/org/openapitools/client/model/SubscriptionUpdateInputTest.java b/src/test/java/org/openapitools/client/model/SubscriptionUpdateInputTest.java index 695b328..48be1e6 100644 --- a/src/test/java/org/openapitools/client/model/SubscriptionUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/SubscriptionUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/SubscriptionsPaginatedTest.java b/src/test/java/org/openapitools/client/model/SubscriptionsPaginatedTest.java index ac23a8a..3f7ece4 100644 --- a/src/test/java/org/openapitools/client/model/SubscriptionsPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/SubscriptionsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.SubscriptionObject; diff --git a/src/test/java/org/openapitools/client/model/TaxBaseInputTest.java b/src/test/java/org/openapitools/client/model/TaxBaseInputTest.java index 3b71b14..08410f2 100644 --- a/src/test/java/org/openapitools/client/model/TaxBaseInputTest.java +++ b/src/test/java/org/openapitools/client/model/TaxBaseInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/TaxCreateInputTaxTest.java b/src/test/java/org/openapitools/client/model/TaxCreateInputTaxTest.java index cdd8e36..9a78ca1 100644 --- a/src/test/java/org/openapitools/client/model/TaxCreateInputTaxTest.java +++ b/src/test/java/org/openapitools/client/model/TaxCreateInputTaxTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/TaxCreateInputTest.java b/src/test/java/org/openapitools/client/model/TaxCreateInputTest.java index cac3f8f..ea61969 100644 --- a/src/test/java/org/openapitools/client/model/TaxCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/TaxCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/TaxObjectTest.java b/src/test/java/org/openapitools/client/model/TaxObjectTest.java index c97a810..2487449 100644 --- a/src/test/java/org/openapitools/client/model/TaxObjectTest.java +++ b/src/test/java/org/openapitools/client/model/TaxObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/TaxTest.java b/src/test/java/org/openapitools/client/model/TaxTest.java index 898e108..45c1e00 100644 --- a/src/test/java/org/openapitools/client/model/TaxTest.java +++ b/src/test/java/org/openapitools/client/model/TaxTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/TaxUpdateInputTest.java b/src/test/java/org/openapitools/client/model/TaxUpdateInputTest.java index 65593a2..41e9d62 100644 --- a/src/test/java/org/openapitools/client/model/TaxUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/TaxUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/TaxesPaginatedTest.java b/src/test/java/org/openapitools/client/model/TaxesPaginatedTest.java index 10ba6e2..57ad7ea 100644 --- a/src/test/java/org/openapitools/client/model/TaxesPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/TaxesPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.TaxObject; diff --git a/src/test/java/org/openapitools/client/model/TimezoneTest.java b/src/test/java/org/openapitools/client/model/TimezoneTest.java index ad80692..486217c 100644 --- a/src/test/java/org/openapitools/client/model/TimezoneTest.java +++ b/src/test/java/org/openapitools/client/model/TimezoneTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletCreateInputTest.java b/src/test/java/org/openapitools/client/model/WalletCreateInputTest.java index ecb7c29..ac56c20 100644 --- a/src/test/java/org/openapitools/client/model/WalletCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/WalletCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletCreateInputWalletTest.java b/src/test/java/org/openapitools/client/model/WalletCreateInputWalletTest.java index 4598292..846404f 100644 --- a/src/test/java/org/openapitools/client/model/WalletCreateInputWalletTest.java +++ b/src/test/java/org/openapitools/client/model/WalletCreateInputWalletTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletObjectTest.java b/src/test/java/org/openapitools/client/model/WalletObjectTest.java index 391e3f6..ee17f55 100644 --- a/src/test/java/org/openapitools/client/model/WalletObjectTest.java +++ b/src/test/java/org/openapitools/client/model/WalletObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletTest.java b/src/test/java/org/openapitools/client/model/WalletTest.java index 8d2b1ba..6676293 100644 --- a/src/test/java/org/openapitools/client/model/WalletTest.java +++ b/src/test/java/org/openapitools/client/model/WalletTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletTransactionCreateInputTest.java b/src/test/java/org/openapitools/client/model/WalletTransactionCreateInputTest.java index 107608a..f236183 100644 --- a/src/test/java/org/openapitools/client/model/WalletTransactionCreateInputTest.java +++ b/src/test/java/org/openapitools/client/model/WalletTransactionCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletTransactionCreateInputWalletTransactionTest.java b/src/test/java/org/openapitools/client/model/WalletTransactionCreateInputWalletTransactionTest.java index 9275d90..481c7af 100644 --- a/src/test/java/org/openapitools/client/model/WalletTransactionCreateInputWalletTransactionTest.java +++ b/src/test/java/org/openapitools/client/model/WalletTransactionCreateInputWalletTransactionTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletTransactionObjectTest.java b/src/test/java/org/openapitools/client/model/WalletTransactionObjectTest.java index 2ec6f14..cd7726f 100644 --- a/src/test/java/org/openapitools/client/model/WalletTransactionObjectTest.java +++ b/src/test/java/org/openapitools/client/model/WalletTransactionObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletTransactionsPaginatedTest.java b/src/test/java/org/openapitools/client/model/WalletTransactionsPaginatedTest.java index 6dab157..752a45a 100644 --- a/src/test/java/org/openapitools/client/model/WalletTransactionsPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/WalletTransactionsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.WalletTransactionObject; diff --git a/src/test/java/org/openapitools/client/model/WalletTransactionsTest.java b/src/test/java/org/openapitools/client/model/WalletTransactionsTest.java index acd5f84..1aea426 100644 --- a/src/test/java/org/openapitools/client/model/WalletTransactionsTest.java +++ b/src/test/java/org/openapitools/client/model/WalletTransactionsTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.WalletTransactionObject; import org.junit.Assert; diff --git a/src/test/java/org/openapitools/client/model/WalletUpdateInputTest.java b/src/test/java/org/openapitools/client/model/WalletUpdateInputTest.java index ebf30b8..4cc8376 100644 --- a/src/test/java/org/openapitools/client/model/WalletUpdateInputTest.java +++ b/src/test/java/org/openapitools/client/model/WalletUpdateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletUpdateInputWalletTest.java b/src/test/java/org/openapitools/client/model/WalletUpdateInputWalletTest.java index 3ce721b..f843c37 100644 --- a/src/test/java/org/openapitools/client/model/WalletUpdateInputWalletTest.java +++ b/src/test/java/org/openapitools/client/model/WalletUpdateInputWalletTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/org/openapitools/client/model/WalletsPaginatedTest.java b/src/test/java/org/openapitools/client/model/WalletsPaginatedTest.java index b2aa76e..338445d 100644 --- a/src/test/java/org/openapitools/client/model/WalletsPaginatedTest.java +++ b/src/test/java/org/openapitools/client/model/WalletsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; import org.openapitools.client.model.WalletObject; diff --git a/src/test/java/org/openapitools/client/model/CreateWebhookEndpointRequestTest.java b/src/test/java/org/openapitools/client/model/WebhookEndpointCreateInputTest.java similarity index 66% rename from src/test/java/org/openapitools/client/model/CreateWebhookEndpointRequestTest.java rename to src/test/java/org/openapitools/client/model/WebhookEndpointCreateInputTest.java index 3417b82..ce21e96 100644 --- a/src/test/java/org/openapitools/client/model/CreateWebhookEndpointRequestTest.java +++ b/src/test/java/org/openapitools/client/model/WebhookEndpointCreateInputTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,23 +18,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.CreateWebhookEndpointRequestWebhookEndpoint; +import org.openapitools.client.model.WebhookEndpointCreateInputWebhookEndpoint; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** - * Model tests for CreateWebhookEndpointRequest + * Model tests for WebhookEndpointCreateInput */ -public class CreateWebhookEndpointRequestTest { - private final CreateWebhookEndpointRequest model = new CreateWebhookEndpointRequest(); +public class WebhookEndpointCreateInputTest { + private final WebhookEndpointCreateInput model = new WebhookEndpointCreateInput(); /** - * Model tests for CreateWebhookEndpointRequest + * Model tests for WebhookEndpointCreateInput */ @Test - public void testCreateWebhookEndpointRequest() { - // TODO: test CreateWebhookEndpointRequest + public void testWebhookEndpointCreateInput() { + // TODO: test WebhookEndpointCreateInput } /** diff --git a/src/test/java/org/openapitools/client/model/CreateWebhookEndpointRequestWebhookEndpointTest.java b/src/test/java/org/openapitools/client/model/WebhookEndpointCreateInputWebhookEndpointTest.java similarity index 71% rename from src/test/java/org/openapitools/client/model/CreateWebhookEndpointRequestWebhookEndpointTest.java rename to src/test/java/org/openapitools/client/model/WebhookEndpointCreateInputWebhookEndpointTest.java index 1f7af55..cb86da3 100644 --- a/src/test/java/org/openapitools/client/model/CreateWebhookEndpointRequestWebhookEndpointTest.java +++ b/src/test/java/org/openapitools/client/model/WebhookEndpointCreateInputWebhookEndpointTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,17 +27,17 @@ import org.junit.Test; /** - * Model tests for CreateWebhookEndpointRequestWebhookEndpoint + * Model tests for WebhookEndpointCreateInputWebhookEndpoint */ -public class CreateWebhookEndpointRequestWebhookEndpointTest { - private final CreateWebhookEndpointRequestWebhookEndpoint model = new CreateWebhookEndpointRequestWebhookEndpoint(); +public class WebhookEndpointCreateInputWebhookEndpointTest { + private final WebhookEndpointCreateInputWebhookEndpoint model = new WebhookEndpointCreateInputWebhookEndpoint(); /** - * Model tests for CreateWebhookEndpointRequestWebhookEndpoint + * Model tests for WebhookEndpointCreateInputWebhookEndpoint */ @Test - public void testCreateWebhookEndpointRequestWebhookEndpoint() { - // TODO: test CreateWebhookEndpointRequestWebhookEndpoint + public void testWebhookEndpointCreateInputWebhookEndpoint() { + // TODO: test WebhookEndpointCreateInputWebhookEndpoint } /** diff --git a/src/test/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseWebhookEndpointTest.java b/src/test/java/org/openapitools/client/model/WebhookEndpointObjectTest.java similarity index 74% rename from src/test/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseWebhookEndpointTest.java rename to src/test/java/org/openapitools/client/model/WebhookEndpointObjectTest.java index aac18c6..f8141ff 100644 --- a/src/test/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseWebhookEndpointTest.java +++ b/src/test/java/org/openapitools/client/model/WebhookEndpointObjectTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,17 +25,17 @@ import org.junit.Test; /** - * Model tests for CreateWebhookEndpoint200ResponseWebhookEndpoint + * Model tests for WebhookEndpointObject */ -public class CreateWebhookEndpoint200ResponseWebhookEndpointTest { - private final CreateWebhookEndpoint200ResponseWebhookEndpoint model = new CreateWebhookEndpoint200ResponseWebhookEndpoint(); +public class WebhookEndpointObjectTest { + private final WebhookEndpointObject model = new WebhookEndpointObject(); /** - * Model tests for CreateWebhookEndpoint200ResponseWebhookEndpoint + * Model tests for WebhookEndpointObject */ @Test - public void testCreateWebhookEndpoint200ResponseWebhookEndpoint() { - // TODO: test CreateWebhookEndpoint200ResponseWebhookEndpoint + public void testWebhookEndpointObject() { + // TODO: test WebhookEndpointObject } /** diff --git a/src/test/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseTest.java b/src/test/java/org/openapitools/client/model/WebhookEndpointTest.java similarity index 64% rename from src/test/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseTest.java rename to src/test/java/org/openapitools/client/model/WebhookEndpointTest.java index 5f3b3ff..e312419 100644 --- a/src/test/java/org/openapitools/client/model/CreateWebhookEndpoint200ResponseTest.java +++ b/src/test/java/org/openapitools/client/model/WebhookEndpointTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,23 +18,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.CreateWebhookEndpoint200ResponseWebhookEndpoint; +import org.openapitools.client.model.WebhookEndpointObject; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** - * Model tests for CreateWebhookEndpoint200Response + * Model tests for WebhookEndpoint */ -public class CreateWebhookEndpoint200ResponseTest { - private final CreateWebhookEndpoint200Response model = new CreateWebhookEndpoint200Response(); +public class WebhookEndpointTest { + private final WebhookEndpoint model = new WebhookEndpoint(); /** - * Model tests for CreateWebhookEndpoint200Response + * Model tests for WebhookEndpoint */ @Test - public void testCreateWebhookEndpoint200Response() { - // TODO: test CreateWebhookEndpoint200Response + public void testWebhookEndpoint() { + // TODO: test WebhookEndpoint } /** diff --git a/src/test/java/org/openapitools/client/model/WebhookEndpointUpdateInputTest.java b/src/test/java/org/openapitools/client/model/WebhookEndpointUpdateInputTest.java new file mode 100644 index 0000000..b87cf50 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/WebhookEndpointUpdateInputTest.java @@ -0,0 +1,48 @@ +/* + * Lago API documentation + * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. + * + * The version of the OpenAPI document: 0.52.0-beta + * Contact: tech@getlago.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.client.model.WebhookEndpointCreateInputWebhookEndpoint; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + +/** + * Model tests for WebhookEndpointUpdateInput + */ +public class WebhookEndpointUpdateInputTest { + private final WebhookEndpointUpdateInput model = new WebhookEndpointUpdateInput(); + + /** + * Model tests for WebhookEndpointUpdateInput + */ + @Test + public void testWebhookEndpointUpdateInput() { + // TODO: test WebhookEndpointUpdateInput + } + + /** + * Test the property 'webhookEndpoint' + */ + @Test + public void webhookEndpointTest() { + // TODO: test webhookEndpoint + } + +} diff --git a/src/test/java/org/openapitools/client/model/FindAllWebhookEndpoints200ResponseTest.java b/src/test/java/org/openapitools/client/model/WebhookEndpointsPaginatedTest.java similarity index 71% rename from src/test/java/org/openapitools/client/model/FindAllWebhookEndpoints200ResponseTest.java rename to src/test/java/org/openapitools/client/model/WebhookEndpointsPaginatedTest.java index 47d210b..14b0c78 100644 --- a/src/test/java/org/openapitools/client/model/FindAllWebhookEndpoints200ResponseTest.java +++ b/src/test/java/org/openapitools/client/model/WebhookEndpointsPaginatedTest.java @@ -2,7 +2,7 @@ * Lago API documentation * Lago API allows your application to push customer information and metrics (events) from your application to the billing application. * - * The version of the OpenAPI document: 0.46.0-beta + * The version of the OpenAPI document: 0.52.0-beta * Contact: tech@getlago.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,24 +19,26 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.PaginationMeta; +import org.openapitools.client.model.WebhookEndpointObject; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** - * Model tests for FindAllWebhookEndpoints200Response + * Model tests for WebhookEndpointsPaginated */ -public class FindAllWebhookEndpoints200ResponseTest { - private final FindAllWebhookEndpoints200Response model = new FindAllWebhookEndpoints200Response(); +public class WebhookEndpointsPaginatedTest { + private final WebhookEndpointsPaginated model = new WebhookEndpointsPaginated(); /** - * Model tests for FindAllWebhookEndpoints200Response + * Model tests for WebhookEndpointsPaginated */ @Test - public void testFindAllWebhookEndpoints200Response() { - // TODO: test FindAllWebhookEndpoints200Response + public void testWebhookEndpointsPaginated() { + // TODO: test WebhookEndpointsPaginated } /**