From f020979d3e715b75620daecc5c4a76fd97519d04 Mon Sep 17 00:00:00 2001 From: maxio-sdk Date: Fri, 2 Feb 2024 09:07:23 +0000 Subject: [PATCH] Automated commit message --- doc/controllers/components.md | 32 ++++++++--------- doc/controllers/coupons.md | 16 ++++----- .../events-based-billing-segments.md | 16 ++++----- doc/controllers/insights.md | 12 +++---- doc/controllers/invoices.md | 20 +++++------ doc/controllers/offers.md | 8 ++--- doc/controllers/payment-profiles.md | 16 ++++----- doc/controllers/product-price-points.md | 8 ++--- doc/controllers/subscription-components.md | 32 ++++++++--------- .../subscription-group-invoice-account.md | 16 ++++----- doc/controllers/subscription-group-status.md | 8 ++--- doc/controllers/subscription-groups.md | 16 ++++----- doc/controllers/subscription-status.md | 8 ++--- doc/controllers/subscriptions.md | 32 ++++++++--------- .../controllers/ComponentsController.java | 32 ++++++++--------- .../controllers/CouponsController.java | 16 ++++----- .../EventsBasedBillingSegmentsController.java | 16 ++++----- .../controllers/InsightsController.java | 16 ++++----- .../controllers/InvoicesController.java | 24 ++++++------- .../controllers/OffersController.java | 8 ++--- .../PaymentProfilesController.java | 16 ++++----- .../ProductPricePointsController.java | 8 ++--- .../SubscriptionComponentsController.java | 34 +++++++++---------- ...criptionGroupInvoiceAccountController.java | 16 ++++----- .../SubscriptionGroupStatusController.java | 8 ++--- .../SubscriptionGroupsController.java | 16 ++++----- .../SubscriptionStatusController.java | 8 ++--- .../controllers/SubscriptionsController.java | 32 ++++++++--------- ...ListConsolidatedInvoiceSegmentsInput.java} | 28 +++++++-------- ...sInput.java => ListMrrMovementsInput.java} | 26 +++++++------- 30 files changed, 272 insertions(+), 272 deletions(-) rename src/main/java/com/maxio/advancedbilling/models/{ListInvoiceSegmentsInput.java => ListConsolidatedInvoiceSegmentsInput.java} (85%) rename src/main/java/com/maxio/advancedbilling/models/{ReadMrrMovementsInput.java => ListMrrMovementsInput.java} (90%) diff --git a/doc/controllers/components.md b/doc/controllers/components.md index 8642e0ab..44029873 100644 --- a/doc/controllers/components.md +++ b/doc/controllers/components.md @@ -15,17 +15,17 @@ ComponentsController componentsController = client.getComponentsController(); * [Create on Off Component](../../doc/controllers/components.md#create-on-off-component) * [Create Prepaid Usage Component](../../doc/controllers/components.md#create-prepaid-usage-component) * [Create Event Based Component](../../doc/controllers/components.md#create-event-based-component) -* [Read Component by Handle](../../doc/controllers/components.md#read-component-by-handle) -* [Read Component by Id](../../doc/controllers/components.md#read-component-by-id) +* [Find Component](../../doc/controllers/components.md#find-component) +* [Read Component](../../doc/controllers/components.md#read-component) * [Update Product Family Component](../../doc/controllers/components.md#update-product-family-component) * [Archive Component](../../doc/controllers/components.md#archive-component) * [List Components](../../doc/controllers/components.md#list-components) * [Update Component](../../doc/controllers/components.md#update-component) -* [Update Default Price Point for Component](../../doc/controllers/components.md#update-default-price-point-for-component) +* [Promote Component Price Point to Default](../../doc/controllers/components.md#promote-component-price-point-to-default) * [List Components for Product Family](../../doc/controllers/components.md#list-components-for-product-family) * [Create Component Price Point](../../doc/controllers/components.md#create-component-price-point) * [List Component Price Points](../../doc/controllers/components.md#list-component-price-points) -* [Create Component Price Points](../../doc/controllers/components.md#create-component-price-points) +* [Bulk Create Component Price Points](../../doc/controllers/components.md#bulk-create-component-price-points) * [Update Component Price Point](../../doc/controllers/components.md#update-component-price-point) * [Archive Component Price Point](../../doc/controllers/components.md#archive-component-price-point) * [Unarchive Component Price Point](../../doc/controllers/components.md#unarchive-component-price-point) @@ -659,12 +659,12 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`ErrorListResponseException`](../../doc/models/error-list-response-exception.md) | -# Read Component by Handle +# Find Component This request will return information regarding a component having the handle you provide. You can identify your components with a handle so you don't have to save or reference the IDs we generate. ```java -ComponentResponse readComponentByHandle( +ComponentResponse findComponent( final String handle) ``` @@ -684,7 +684,7 @@ ComponentResponse readComponentByHandle( String handle = "handle6"; try { - ComponentResponse result = componentsController.readComponentByHandle(handle); + ComponentResponse result = componentsController.findComponent(handle); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -724,14 +724,14 @@ try { ``` -# Read Component by Id +# Read Component This request will return information regarding a component from a specific product family. You may read the component by either the component's id or handle. When using the handle, it must be prefixed with `handle:`. ```java -ComponentResponse readComponentById( +ComponentResponse readComponent( final int productFamilyId, final String componentId) ``` @@ -754,7 +754,7 @@ int productFamilyId = 140; String componentId = "component_id8"; try { - ComponentResponse result = componentsController.readComponentById(productFamilyId, componentId); + ComponentResponse result = componentsController.readComponent(productFamilyId, componentId); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -1173,7 +1173,7 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`ErrorListResponseException`](../../doc/models/error-list-response-exception.md) | -# Update Default Price Point for Component +# Promote Component Price Point to Default Sets a new default price point for the component. This new default will apply to all new subscriptions going forward - existing subscriptions will remain on their current price point. @@ -1182,7 +1182,7 @@ See [Price Points Documentation](https://chargify.zendesk.com/hc/en-us/articles/ Note: Custom price points are not able to be set as the default for a component. ```java -ComponentResponse updateDefaultPricePointForComponent( +ComponentResponse promoteComponentPricePointToDefault( final int componentId, final int pricePointId) ``` @@ -1205,7 +1205,7 @@ int componentId = 222; int pricePointId = 10; try { - ComponentResponse result = componentsController.updateDefaultPricePointForComponent(componentId, pricePointId); + ComponentResponse result = componentsController.promoteComponentPricePointToDefault(componentId, pricePointId); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -1566,12 +1566,12 @@ try { ``` -# Create Component Price Points +# Bulk Create Component Price Points Use this endpoint to create multiple component price points in one request. ```java -ComponentPricePointsResponse createComponentPricePoints( +ComponentPricePointsResponse bulkCreateComponentPricePoints( final String componentId, final CreateComponentPricePointsRequest body) ``` @@ -1655,7 +1655,7 @@ CreateComponentPricePointsRequest body = new CreateComponentPricePointsRequest.B .build(); try { - ComponentPricePointsResponse result = componentsController.createComponentPricePoints(componentId, body); + ComponentPricePointsResponse result = componentsController.bulkCreateComponentPricePoints(componentId, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/coupons.md b/doc/controllers/coupons.md index b945e348..b5ec251e 100644 --- a/doc/controllers/coupons.md +++ b/doc/controllers/coupons.md @@ -12,14 +12,14 @@ CouponsController couponsController = client.getCouponsController(); * [Create Coupon](../../doc/controllers/coupons.md#create-coupon) * [List Coupons for Product Family](../../doc/controllers/coupons.md#list-coupons-for-product-family) -* [Read Coupon by Code](../../doc/controllers/coupons.md#read-coupon-by-code) +* [Find Coupon](../../doc/controllers/coupons.md#find-coupon) * [Read Coupon](../../doc/controllers/coupons.md#read-coupon) * [Update Coupon](../../doc/controllers/coupons.md#update-coupon) * [Archive Coupon](../../doc/controllers/coupons.md#archive-coupon) * [List Coupons](../../doc/controllers/coupons.md#list-coupons) * [Read Coupon Usage](../../doc/controllers/coupons.md#read-coupon-usage) * [Validate Coupon](../../doc/controllers/coupons.md#validate-coupon) -* [Update Coupon Currency Prices](../../doc/controllers/coupons.md#update-coupon-currency-prices) +* [Create or Update Coupon Currency Prices](../../doc/controllers/coupons.md#create-or-update-coupon-currency-prices) * [Create Coupon Subcodes](../../doc/controllers/coupons.md#create-coupon-subcodes) * [List Coupon Subcodes](../../doc/controllers/coupons.md#list-coupon-subcodes) * [Update Coupon Subcodes](../../doc/controllers/coupons.md#update-coupon-subcodes) @@ -257,14 +257,14 @@ try { ``` -# Read Coupon by Code +# Find Coupon You can search for a coupon via the API with the find method. By passing a code parameter, the find will attempt to locate a coupon that matches that code. If no coupon is found, a 404 is returned. If you have more than one product family and if the coupon you are trying to find does not belong to the default product family in your site, then you will need to specify (either in the url or as a query string param) the product family id. ```java -CouponResponse readCouponByCode( +CouponResponse findCoupon( final Integer productFamilyId, final String code) ``` @@ -284,7 +284,7 @@ CouponResponse readCouponByCode( ```java try { - CouponResponse result = couponsController.readCouponByCode(null, null); + CouponResponse result = couponsController.findCoupon(null, null); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -811,14 +811,14 @@ try { | 404 | Not Found | [`SingleStringErrorResponseException`](../../doc/models/single-string-error-response-exception.md) | -# Update Coupon Currency Prices +# Create or Update Coupon Currency Prices This endpoint allows you to create and/or update currency prices for an existing coupon. Multiple prices can be created or updated in a single request but each of the currencies must be defined on the site level already and the coupon must be an amount-based coupon, not percentage. Currency pricing for coupons must mirror the setup of the primary coupon pricing - if the primary coupon is percentage based, you will not be able to define pricing in non-primary currencies. ```java -CouponCurrencyResponse updateCouponCurrencyPrices( +CouponCurrencyResponse createOrUpdateCouponCurrencyPrices( final int couponId, final CouponCurrencyRequest body) ``` @@ -855,7 +855,7 @@ CouponCurrencyRequest body = new CouponCurrencyRequest.Builder( .build(); try { - CouponCurrencyResponse result = couponsController.updateCouponCurrencyPrices(couponId, body); + CouponCurrencyResponse result = couponsController.createOrUpdateCouponCurrencyPrices(couponId, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/events-based-billing-segments.md b/doc/controllers/events-based-billing-segments.md index 6b99f673..63fd77b0 100644 --- a/doc/controllers/events-based-billing-segments.md +++ b/doc/controllers/events-based-billing-segments.md @@ -14,8 +14,8 @@ EventsBasedBillingSegmentsController eventsBasedBillingSegmentsController = clie * [List Segments for Price Point](../../doc/controllers/events-based-billing-segments.md#list-segments-for-price-point) * [Update Segment](../../doc/controllers/events-based-billing-segments.md#update-segment) * [Delete Segment](../../doc/controllers/events-based-billing-segments.md#delete-segment) -* [Create Segments](../../doc/controllers/events-based-billing-segments.md#create-segments) -* [Update Segments](../../doc/controllers/events-based-billing-segments.md#update-segments) +* [Bulk Create Segments](../../doc/controllers/events-based-billing-segments.md#bulk-create-segments) +* [Bulk Update Segments](../../doc/controllers/events-based-billing-segments.md#bulk-update-segments) # Create Segment @@ -256,7 +256,7 @@ try { | 422 | Unprocessable Entity (WebDAV) | `ApiException` | -# Create Segments +# Bulk Create Segments This endpoint allows you to create multiple segments in one request. The array of segments can contain up to `2000` records. @@ -265,7 +265,7 @@ If any of the records contain an error the whole request would fail and none of You may specify component and/or price point by using either the numeric ID or the `handle:gold` syntax. ```java -ListSegmentsResponse createSegments( +ListSegmentsResponse bulkCreateSegments( final String componentId, final String pricePointId, final BulkCreateSegments body) @@ -289,7 +289,7 @@ ListSegmentsResponse createSegments( String componentId = "component_id8"; String pricePointId = "price_point_id8"; try { - ListSegmentsResponse result = eventsBasedBillingSegmentsController.createSegments(componentId, pricePointId, null); + ListSegmentsResponse result = eventsBasedBillingSegmentsController.bulkCreateSegments(componentId, pricePointId, null); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -306,7 +306,7 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`EventBasedBillingSegmentException`](../../doc/models/event-based-billing-segment-exception.md) | -# Update Segments +# Bulk Update Segments This endpoint allows you to update multiple segments in one request. The array of segments can contain up to `1000` records. @@ -315,7 +315,7 @@ If any of the records contain an error the whole request would fail and none of You may specify component and/or price point by using either the numeric ID or the `handle:gold` syntax. ```java -ListSegmentsResponse updateSegments( +ListSegmentsResponse bulkUpdateSegments( final String componentId, final String pricePointId, final BulkUpdateSegments body) @@ -339,7 +339,7 @@ ListSegmentsResponse updateSegments( String componentId = "component_id8"; String pricePointId = "price_point_id8"; try { - ListSegmentsResponse result = eventsBasedBillingSegmentsController.updateSegments(componentId, pricePointId, null); + ListSegmentsResponse result = eventsBasedBillingSegmentsController.bulkUpdateSegments(componentId, pricePointId, null); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/insights.md b/doc/controllers/insights.md index 09332d47..d13e1a30 100644 --- a/doc/controllers/insights.md +++ b/doc/controllers/insights.md @@ -12,7 +12,7 @@ InsightsController insightsController = client.getInsightsController(); * [Read Site Stats](../../doc/controllers/insights.md#read-site-stats) * [Read Mrr](../../doc/controllers/insights.md#read-mrr) -* [Read Mrr Movements](../../doc/controllers/insights.md#read-mrr-movements) +* [List Mrr Movements](../../doc/controllers/insights.md#list-mrr-movements) * [List Mrr Per Subscription](../../doc/controllers/insights.md#list-mrr-per-subscription) @@ -126,7 +126,7 @@ try { ``` -# Read Mrr Movements +# List Mrr Movements **This endpoint is deprecated.** @@ -156,8 +156,8 @@ Usage includes revenue from: * Prepaid Usage Components ```java -ListMRRResponse readMrrMovements( - final ReadMrrMovementsInput input) +ListMRRResponse listMrrMovements( + final ListMrrMovementsInput input) ``` ## Parameters @@ -176,13 +176,13 @@ ListMRRResponse readMrrMovements( ## Example Usage ```java -ReadMrrMovementsInput readMrrMovementsInput = new ReadMrrMovementsInput.Builder() +ListMrrMovementsInput listMrrMovementsInput = new ListMrrMovementsInput.Builder() .page(2) .perPage(20) .build(); try { - ListMRRResponse result = insightsController.readMrrMovements(readMrrMovementsInput); + ListMRRResponse result = insightsController.listMrrMovements(listMrrMovementsInput); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/invoices.md b/doc/controllers/invoices.md index 9763c8f1..72ae7fbf 100644 --- a/doc/controllers/invoices.md +++ b/doc/controllers/invoices.md @@ -15,13 +15,13 @@ InvoicesController invoicesController = client.getInvoicesController(); * [Read Invoice](../../doc/controllers/invoices.md#read-invoice) * [List Invoice Events](../../doc/controllers/invoices.md#list-invoice-events) * [Record Payment for Invoice](../../doc/controllers/invoices.md#record-payment-for-invoice) -* [Record External Payment for Invoices](../../doc/controllers/invoices.md#record-external-payment-for-invoices) +* [Record Payment for Multiple Invoices](../../doc/controllers/invoices.md#record-payment-for-multiple-invoices) * [List Credit Notes](../../doc/controllers/invoices.md#list-credit-notes) * [Read Credit Note](../../doc/controllers/invoices.md#read-credit-note) * [Record Payment for Subscription](../../doc/controllers/invoices.md#record-payment-for-subscription) * [Reopen Invoice](../../doc/controllers/invoices.md#reopen-invoice) * [Void Invoice](../../doc/controllers/invoices.md#void-invoice) -* [List Invoice Segments](../../doc/controllers/invoices.md#list-invoice-segments) +* [List Consolidated Invoice Segments](../../doc/controllers/invoices.md#list-consolidated-invoice-segments) * [Create Invoice](../../doc/controllers/invoices.md#create-invoice) * [Send Invoice](../../doc/controllers/invoices.md#send-invoice) * [Preview Customer Information Changes](../../doc/controllers/invoices.md#preview-customer-information-changes) @@ -1128,7 +1128,7 @@ try { ``` -# Record External Payment for Invoices +# Record Payment for Multiple Invoices This API call should be used when you want to record an external payment against multiple invoices. @@ -1158,7 +1158,7 @@ In order apply a payment to multiple invoices, at minimum, specify the `amount` Note that the invoice payment amounts must be greater than 0. Total amount must be greater or equal to invoices payment amount sum. ```java -MultiInvoicePaymentResponse recordExternalPaymentForInvoices( +MultiInvoicePaymentResponse recordPaymentForMultipleInvoices( final CreateMultiInvoicePaymentRequest body) ``` @@ -1201,7 +1201,7 @@ CreateMultiInvoicePaymentRequest body = new CreateMultiInvoicePaymentRequest.Bui .build(); try { - MultiInvoicePaymentResponse result = invoicesController.recordExternalPaymentForInvoices(body); + MultiInvoicePaymentResponse result = invoicesController.recordPaymentForMultipleInvoices(body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -2073,13 +2073,13 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`ErrorListResponseException`](../../doc/models/error-list-response-exception.md) | -# List Invoice Segments +# List Consolidated Invoice Segments Invoice segments returned on the index will only include totals, not detailed breakdowns for `line_items`, `discounts`, `taxes`, `credits`, `payments`, or `custom_fields`. ```java -ConsolidatedInvoice listInvoiceSegments( - final ListInvoiceSegmentsInput input) +ConsolidatedInvoice listConsolidatedInvoiceSegments( + final ListConsolidatedInvoiceSegmentsInput input) ``` ## Parameters @@ -2098,7 +2098,7 @@ ConsolidatedInvoice listInvoiceSegments( ## Example Usage ```java -ListInvoiceSegmentsInput listInvoiceSegmentsInput = new ListInvoiceSegmentsInput.Builder( +ListConsolidatedInvoiceSegmentsInput listConsolidatedInvoiceSegmentsInput = new ListConsolidatedInvoiceSegmentsInput.Builder( "invoice_uid0" ) .page(2) @@ -2107,7 +2107,7 @@ ListInvoiceSegmentsInput listInvoiceSegmentsInput = new ListInvoiceSegmentsInput .build(); try { - ConsolidatedInvoice result = invoicesController.listInvoiceSegments(listInvoiceSegmentsInput); + ConsolidatedInvoice result = invoicesController.listConsolidatedInvoiceSegments(listConsolidatedInvoiceSegmentsInput); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/offers.md b/doc/controllers/offers.md index 79b0260e..ca1b755f 100644 --- a/doc/controllers/offers.md +++ b/doc/controllers/offers.md @@ -12,7 +12,7 @@ OffersController offersController = client.getOffersController(); * [Create Offer](../../doc/controllers/offers.md#create-offer) * [List Offers](../../doc/controllers/offers.md#list-offers) -* [Read Offers](../../doc/controllers/offers.md#read-offers) +* [Read Offer](../../doc/controllers/offers.md#read-offer) * [Archive Offer](../../doc/controllers/offers.md#archive-offer) * [Unarchive Offer](../../doc/controllers/offers.md#unarchive-offer) @@ -228,12 +228,12 @@ try { ``` -# Read Offers +# Read Offer This method allows you to list a specific offer's attributes. This is different than list all offers for a site, as it requires an `offer_id`. ```java -OfferResponse readOffers( +OfferResponse readOffer( final int offerId) ``` @@ -253,7 +253,7 @@ OfferResponse readOffers( int offerId = 130; try { - OfferResponse result = offersController.readOffers(offerId); + OfferResponse result = offersController.readOffer(offerId); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/payment-profiles.md b/doc/controllers/payment-profiles.md index a3e78756..28a5a50c 100644 --- a/doc/controllers/payment-profiles.md +++ b/doc/controllers/payment-profiles.md @@ -18,8 +18,8 @@ PaymentProfilesController paymentProfilesController = client.getPaymentProfilesC * [Delete Subscriptions Payment Profile](../../doc/controllers/payment-profiles.md#delete-subscriptions-payment-profile) * [Verify Bank Account](../../doc/controllers/payment-profiles.md#verify-bank-account) * [Delete Subscription Group Payment Profile](../../doc/controllers/payment-profiles.md#delete-subscription-group-payment-profile) -* [Update Subscription Default Payment Profile](../../doc/controllers/payment-profiles.md#update-subscription-default-payment-profile) -* [Update Subscription Group Default Payment Profile](../../doc/controllers/payment-profiles.md#update-subscription-group-default-payment-profile) +* [Change Subscription Default Payment Profile](../../doc/controllers/payment-profiles.md#change-subscription-default-payment-profile) +* [Change Subscription Group Default Payment Profile](../../doc/controllers/payment-profiles.md#change-subscription-group-default-payment-profile) * [Read One Time Token](../../doc/controllers/payment-profiles.md#read-one-time-token) * [Send Request Update Payment Email](../../doc/controllers/payment-profiles.md#send-request-update-payment-email) @@ -878,14 +878,14 @@ try { ``` -# Update Subscription Default Payment Profile +# Change Subscription Default Payment Profile This will change the default payment profile on the subscription to the existing payment profile with the id specified. You must elect to change the existing payment profile to a new payment profile ID in order to receive a satisfactory response from this endpoint. ```java -PaymentProfileResponse updateSubscriptionDefaultPaymentProfile( +PaymentProfileResponse changeSubscriptionDefaultPaymentProfile( final int subscriptionId, final int paymentProfileId) ``` @@ -908,7 +908,7 @@ int subscriptionId = 222; int paymentProfileId = 198; try { - PaymentProfileResponse result = paymentProfilesController.updateSubscriptionDefaultPaymentProfile(subscriptionId, paymentProfileId); + PaymentProfileResponse result = paymentProfilesController.changeSubscriptionDefaultPaymentProfile(subscriptionId, paymentProfileId); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -954,7 +954,7 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`ErrorListResponseException`](../../doc/models/error-list-response-exception.md) | -# Update Subscription Group Default Payment Profile +# Change Subscription Group Default Payment Profile This will change the default payment profile on the subscription group to the existing payment profile with the id specified. @@ -963,7 +963,7 @@ You must elect to change the existing payment profile to a new payment profile I The new payment profile must belong to the subscription group's customer, otherwise you will receive an error. ```java -PaymentProfileResponse updateSubscriptionGroupDefaultPaymentProfile( +PaymentProfileResponse changeSubscriptionGroupDefaultPaymentProfile( final String uid, final int paymentProfileId) ``` @@ -986,7 +986,7 @@ String uid = "uid0"; int paymentProfileId = 198; try { - PaymentProfileResponse result = paymentProfilesController.updateSubscriptionGroupDefaultPaymentProfile(uid, paymentProfileId); + PaymentProfileResponse result = paymentProfilesController.changeSubscriptionGroupDefaultPaymentProfile(uid, paymentProfileId); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/product-price-points.md b/doc/controllers/product-price-points.md index 062868ed..530cd1f7 100644 --- a/doc/controllers/product-price-points.md +++ b/doc/controllers/product-price-points.md @@ -17,7 +17,7 @@ ProductPricePointsController productPricePointsController = client.getProductPri * [Archive Product Price Point](../../doc/controllers/product-price-points.md#archive-product-price-point) * [Unarchive Product Price Point](../../doc/controllers/product-price-points.md#unarchive-product-price-point) * [Promote Product Price Point to Default](../../doc/controllers/product-price-points.md#promote-product-price-point-to-default) -* [Create Product Price Points](../../doc/controllers/product-price-points.md#create-product-price-points) +* [Bulk Create Product Price Points](../../doc/controllers/product-price-points.md#bulk-create-product-price-points) * [Create Product Currency Prices](../../doc/controllers/product-price-points.md#create-product-currency-prices) * [Update Product Currency Prices](../../doc/controllers/product-price-points.md#update-product-currency-prices) * [List All Product Price Points](../../doc/controllers/product-price-points.md#list-all-product-price-points) @@ -574,12 +574,12 @@ try { ``` -# Create Product Price Points +# Bulk Create Product Price Points Use this endpoint to create multiple product price points in one request. ```java -BulkCreateProductPricePointsResponse createProductPricePoints( +BulkCreateProductPricePointsResponse bulkCreateProductPricePoints( final int productId, final BulkCreateProductPricePointsRequest body) ``` @@ -638,7 +638,7 @@ BulkCreateProductPricePointsRequest body = new BulkCreateProductPricePointsReque .build(); try { - BulkCreateProductPricePointsResponse result = productPricePointsController.createProductPricePoints(productId, body); + BulkCreateProductPricePointsResponse result = productPricePointsController.bulkCreateProductPricePoints(productId, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/subscription-components.md b/doc/controllers/subscription-components.md index 7c2cbb71..fdede091 100644 --- a/doc/controllers/subscription-components.md +++ b/doc/controllers/subscription-components.md @@ -12,20 +12,20 @@ SubscriptionComponentsController subscriptionComponentsController = client.getSu * [Read Subscription Component](../../doc/controllers/subscription-components.md#read-subscription-component) * [List Subscription Components](../../doc/controllers/subscription-components.md#list-subscription-components) -* [Update Subscription Components Price Points](../../doc/controllers/subscription-components.md#update-subscription-components-price-points) -* [Reset Subscription Components Price Points](../../doc/controllers/subscription-components.md#reset-subscription-components-price-points) +* [Bulk Update Subscription Components Price Points](../../doc/controllers/subscription-components.md#bulk-update-subscription-components-price-points) +* [Bulk Reset Subscription Components Price Points](../../doc/controllers/subscription-components.md#bulk-reset-subscription-components-price-points) * [Allocate Component](../../doc/controllers/subscription-components.md#allocate-component) * [List Allocations](../../doc/controllers/subscription-components.md#list-allocations) * [Allocate Components](../../doc/controllers/subscription-components.md#allocate-components) * [Preview Allocations](../../doc/controllers/subscription-components.md#preview-allocations) -* [Update Prepaid Usage Allocation](../../doc/controllers/subscription-components.md#update-prepaid-usage-allocation) +* [Update Prepaid Usage Allocation Expiration Date](../../doc/controllers/subscription-components.md#update-prepaid-usage-allocation-expiration-date) * [Delete Prepaid Usage Allocation](../../doc/controllers/subscription-components.md#delete-prepaid-usage-allocation) * [Create Usage](../../doc/controllers/subscription-components.md#create-usage) * [List Usages](../../doc/controllers/subscription-components.md#list-usages) * [Activate Event Based Component](../../doc/controllers/subscription-components.md#activate-event-based-component) * [Deactivate Event Based Component](../../doc/controllers/subscription-components.md#deactivate-event-based-component) * [Record Event](../../doc/controllers/subscription-components.md#record-event) -* [Record Events](../../doc/controllers/subscription-components.md#record-events) +* [Bulk Record Events](../../doc/controllers/subscription-components.md#bulk-record-events) * [List Subscription Components for Site](../../doc/controllers/subscription-components.md#list-subscription-components-for-site) @@ -184,7 +184,7 @@ try { ``` -# Update Subscription Components Price Points +# Bulk Update Subscription Components Price Points Updates the price points on one or more of a subscription's components. @@ -195,7 +195,7 @@ The `price_point` key can take either a: 3. `"_default"` string, which will reset the price point to the component's current default price point. ```java -BulkComponentSPricePointAssignment updateSubscriptionComponentsPricePoints( +BulkComponentSPricePointAssignment bulkUpdateSubscriptionComponentsPricePoints( final int subscriptionId, final BulkComponentSPricePointAssignment body) ``` @@ -239,7 +239,7 @@ BulkComponentSPricePointAssignment body = new BulkComponentSPricePointAssignment .build(); try { - BulkComponentSPricePointAssignment result = subscriptionComponentsController.updateSubscriptionComponentsPricePoints(subscriptionId, body); + BulkComponentSPricePointAssignment result = subscriptionComponentsController.bulkUpdateSubscriptionComponentsPricePoints(subscriptionId, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -272,14 +272,14 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`ComponentPricePointErrorException`](../../doc/models/component-price-point-error-exception.md) | -# Reset Subscription Components Price Points +# Bulk Reset Subscription Components Price Points Resets all of a subscription's components to use the current default. **Note**: this will update the price point for all of the subscription's components, even ones that have not been allocated yet. ```java -SubscriptionResponse resetSubscriptionComponentsPricePoints( +SubscriptionResponse bulkResetSubscriptionComponentsPricePoints( final int subscriptionId) ``` @@ -299,7 +299,7 @@ SubscriptionResponse resetSubscriptionComponentsPricePoints( int subscriptionId = 222; try { - SubscriptionResponse result = subscriptionComponentsController.resetSubscriptionComponentsPricePoints(subscriptionId); + SubscriptionResponse result = subscriptionComponentsController.bulkResetSubscriptionComponentsPricePoints(subscriptionId); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -916,7 +916,7 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`ComponentAllocationErrorException`](../../doc/models/component-allocation-error-exception.md) | -# Update Prepaid Usage Allocation +# Update Prepaid Usage Allocation Expiration Date When the expiration interval options are selected on a prepaid usage component price point, all allocations will be created with an expiration date. This expiration date can be changed after the fact to allow for extending or shortening the allocation's active window. @@ -931,7 +931,7 @@ A few limitations exist when changing an allocation's expiration date: - An expiration date can be changed towards the past (essentially expiring it) up to the subscription's current period beginning date. ```java -Void updatePrepaidUsageAllocation( +Void updatePrepaidUsageAllocationExpirationDate( final int subscriptionId, final int componentId, final int allocationId, @@ -964,7 +964,7 @@ UpdateAllocationExpirationDate body = new UpdateAllocationExpirationDate.Builder .build(); try { - subscriptionComponentsController.updatePrepaidUsageAllocation(subscriptionId, componentId, allocationId, body); + subscriptionComponentsController.updatePrepaidUsageAllocationExpirationDate(subscriptionId, componentId, allocationId, body); } catch (ApiException e) { e.printStackTrace(); } catch (IOException e) { @@ -1407,7 +1407,7 @@ try { ``` -# Record Events +# Bulk Record Events Use this endpoint to record a collection of events. @@ -1416,7 +1416,7 @@ Use this endpoint to record a collection of events. A maximum of 1000 events can be published in a single request. A 422 will be returned if this limit is exceeded. ```java -Void recordEvents( +Void bulkRecordEvents( final String subdomain, final String apiHandle, final String storeUid, @@ -1451,7 +1451,7 @@ List body = Arrays.asList( ); try { - subscriptionComponentsController.recordEvents(subdomain, apiHandle, null, body); + subscriptionComponentsController.bulkRecordEvents(subdomain, apiHandle, null, body); } catch (ApiException e) { e.printStackTrace(); } catch (IOException e) { diff --git a/doc/controllers/subscription-group-invoice-account.md b/doc/controllers/subscription-group-invoice-account.md index b5e092f0..37bf4377 100644 --- a/doc/controllers/subscription-group-invoice-account.md +++ b/doc/controllers/subscription-group-invoice-account.md @@ -12,8 +12,8 @@ SubscriptionGroupInvoiceAccountController subscriptionGroupInvoiceAccountControl * [Create Subscription Group Prepayment](../../doc/controllers/subscription-group-invoice-account.md#create-subscription-group-prepayment) * [List Prepayments for Subscription Group](../../doc/controllers/subscription-group-invoice-account.md#list-prepayments-for-subscription-group) -* [Issue Subscription Group Service Credits](../../doc/controllers/subscription-group-invoice-account.md#issue-subscription-group-service-credits) -* [Deduct Subscription Group Service Credits](../../doc/controllers/subscription-group-invoice-account.md#deduct-subscription-group-service-credits) +* [Issue Subscription Group Service Credit](../../doc/controllers/subscription-group-invoice-account.md#issue-subscription-group-service-credit) +* [Deduct Subscription Group Service Credit](../../doc/controllers/subscription-group-invoice-account.md#deduct-subscription-group-service-credit) # Create Subscription Group Prepayment @@ -143,12 +143,12 @@ try { | 404 | Not Found | `ApiException` | -# Issue Subscription Group Service Credits +# Issue Subscription Group Service Credit Credit can be issued for a subscription group identified by the group's `uid`. Credit will be added to the group in the amount specified in the request body. The credit will be applied to group member invoices as they are generated. ```java -ServiceCreditResponse issueSubscriptionGroupServiceCredits( +ServiceCreditResponse issueSubscriptionGroupServiceCredit( final String uid, final IssueServiceCreditRequest body) ``` @@ -180,7 +180,7 @@ IssueServiceCreditRequest body = new IssueServiceCreditRequest.Builder( .build(); try { - ServiceCreditResponse result = subscriptionGroupInvoiceAccountController.issueSubscriptionGroupServiceCredits(uid, body); + ServiceCreditResponse result = subscriptionGroupInvoiceAccountController.issueSubscriptionGroupServiceCredit(uid, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -210,12 +210,12 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`ErrorListResponseException`](../../doc/models/error-list-response-exception.md) | -# Deduct Subscription Group Service Credits +# Deduct Subscription Group Service Credit Credit can be deducted for a subscription group identified by the group's `uid`. Credit will be deducted from the group in the amount specified in the request body. ```java -ServiceCredit deductSubscriptionGroupServiceCredits( +ServiceCredit deductSubscriptionGroupServiceCredit( final String uid, final DeductServiceCreditRequest body) ``` @@ -247,7 +247,7 @@ DeductServiceCreditRequest body = new DeductServiceCreditRequest.Builder( .build(); try { - ServiceCredit result = subscriptionGroupInvoiceAccountController.deductSubscriptionGroupServiceCredits(uid, body); + ServiceCredit result = subscriptionGroupInvoiceAccountController.deductSubscriptionGroupServiceCredit(uid, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/subscription-group-status.md b/doc/controllers/subscription-group-status.md index fe449b67..2706bcd0 100644 --- a/doc/controllers/subscription-group-status.md +++ b/doc/controllers/subscription-group-status.md @@ -12,7 +12,7 @@ SubscriptionGroupStatusController subscriptionGroupStatusController = client.get * [Cancel Subscriptions in Group](../../doc/controllers/subscription-group-status.md#cancel-subscriptions-in-group) * [Initiate Delayed Cancellation for Group](../../doc/controllers/subscription-group-status.md#initiate-delayed-cancellation-for-group) -* [Stop Delayed Cancellation for Group](../../doc/controllers/subscription-group-status.md#stop-delayed-cancellation-for-group) +* [Cancel Delayed Cancellation for Group](../../doc/controllers/subscription-group-status.md#cancel-delayed-cancellation-for-group) * [Reactivate Subscription Group](../../doc/controllers/subscription-group-status.md#reactivate-subscription-group) @@ -105,12 +105,12 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`ErrorListResponseException`](../../doc/models/error-list-response-exception.md) | -# Stop Delayed Cancellation for Group +# Cancel Delayed Cancellation for Group Removing the delayed cancellation on a subscription group will ensure that the subscriptions do not get canceled at the end of the period. The request will reset the `cancel_at_end_of_period` flag to false on each member in the group. ```java -Void stopDelayedCancellationForGroup( +Void cancelDelayedCancellationForGroup( final String uid) ``` @@ -130,7 +130,7 @@ Void stopDelayedCancellationForGroup( String uid = "uid0"; try { - subscriptionGroupStatusController.stopDelayedCancellationForGroup(uid); + subscriptionGroupStatusController.cancelDelayedCancellationForGroup(uid); } catch (ApiException e) { e.printStackTrace(); } catch (IOException e) { diff --git a/doc/controllers/subscription-groups.md b/doc/controllers/subscription-groups.md index 4dc75017..d3589871 100644 --- a/doc/controllers/subscription-groups.md +++ b/doc/controllers/subscription-groups.md @@ -16,8 +16,8 @@ SubscriptionGroupsController subscriptionGroupsController = client.getSubscripti * [Read Subscription Group](../../doc/controllers/subscription-groups.md#read-subscription-group) * [Update Subscription Group Members](../../doc/controllers/subscription-groups.md#update-subscription-group-members) * [Delete Subscription Group](../../doc/controllers/subscription-groups.md#delete-subscription-group) -* [Read Subscription Group by Subscription Id](../../doc/controllers/subscription-groups.md#read-subscription-group-by-subscription-id) -* [Create Subscription Group Hierarchy](../../doc/controllers/subscription-groups.md#create-subscription-group-hierarchy) +* [Find Subscription Group](../../doc/controllers/subscription-groups.md#find-subscription-group) +* [Add Subscription to Group](../../doc/controllers/subscription-groups.md#add-subscription-to-group) * [Remove Subscription From Group](../../doc/controllers/subscription-groups.md#remove-subscription-from-group) @@ -454,14 +454,14 @@ try { | 404 | Not Found | `ApiException` | -# Read Subscription Group by Subscription Id +# Find Subscription Group Use this endpoint to find subscription group associated with subscription. If the subscription is not in a group endpoint will return 404 code. ```java -FullSubscriptionGroupResponse readSubscriptionGroupBySubscriptionId( +FullSubscriptionGroupResponse findSubscriptionGroup( final String subscriptionId) ``` @@ -481,7 +481,7 @@ FullSubscriptionGroupResponse readSubscriptionGroupBySubscriptionId( String subscriptionId = "subscription_id0"; try { - FullSubscriptionGroupResponse result = subscriptionGroupsController.readSubscriptionGroupBySubscriptionId(subscriptionId); + FullSubscriptionGroupResponse result = subscriptionGroupsController.findSubscriptionGroup(subscriptionId); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -538,7 +538,7 @@ try { | 404 | Not Found | `ApiException` | -# Create Subscription Group Hierarchy +# Add Subscription to Group For sites making use of the [Relationship Billing](https://chargify.zendesk.com/hc/en-us/articles/4407737494171) and [Customer Hierarchy](https://chargify.zendesk.com/hc/en-us/articles/4407746683291) features, it is possible to add existing subscriptions to subscription groups. @@ -556,7 +556,7 @@ To create a new subscription into a subscription group, please reference the fol [Create Subscription in a Subscription Group](https://developers.chargify.com/docs/api-docs/d571659cf0f24-create-subscription#subscription-in-a-subscription-group) ```java -SubscriptionGroupResponse createSubscriptionGroupHierarchy( +SubscriptionGroupResponse addSubscriptionToGroup( final int subscriptionId, final AddSubscriptionToAGroup body) ``` @@ -595,7 +595,7 @@ AddSubscriptionToAGroup body = new AddSubscriptionToAGroup.Builder() .build(); try { - SubscriptionGroupResponse result = subscriptionGroupsController.createSubscriptionGroupHierarchy(subscriptionId, body); + SubscriptionGroupResponse result = subscriptionGroupsController.addSubscriptionToGroup(subscriptionId, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/subscription-status.md b/doc/controllers/subscription-status.md index 2492d268..5b4a0832 100644 --- a/doc/controllers/subscription-status.md +++ b/doc/controllers/subscription-status.md @@ -17,7 +17,7 @@ SubscriptionStatusController subscriptionStatusController = client.getSubscripti * [Update Automatic Subscription Resumption](../../doc/controllers/subscription-status.md#update-automatic-subscription-resumption) * [Reactivate Subscription](../../doc/controllers/subscription-status.md#reactivate-subscription) * [Initiate Delayed Cancellation](../../doc/controllers/subscription-status.md#initiate-delayed-cancellation) -* [Stop Delayed Cancellation](../../doc/controllers/subscription-status.md#stop-delayed-cancellation) +* [Cancel Delayed Cancellation](../../doc/controllers/subscription-status.md#cancel-delayed-cancellation) * [Cancel Dunning](../../doc/controllers/subscription-status.md#cancel-dunning) * [Preview Renewal](../../doc/controllers/subscription-status.md#preview-renewal) @@ -1245,14 +1245,14 @@ try { | 404 | Not Found | `ApiException` | -# Stop Delayed Cancellation +# Cancel Delayed Cancellation Removing the delayed cancellation on a subscription will ensure that it doesn't get canceled at the end of the period that it is in. The request will reset the `cancel_at_end_of_period` flag to `false`. This endpoint is idempotent. If the subscription was not set to cancel in the future, removing the delayed cancellation has no effect and the call will be successful. ```java -DelayedCancellationResponse stopDelayedCancellation( +DelayedCancellationResponse cancelDelayedCancellation( final int subscriptionId) ``` @@ -1272,7 +1272,7 @@ DelayedCancellationResponse stopDelayedCancellation( int subscriptionId = 222; try { - DelayedCancellationResponse result = subscriptionStatusController.stopDelayedCancellation(subscriptionId); + DelayedCancellationResponse result = subscriptionStatusController.cancelDelayedCancellation(subscriptionId); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/doc/controllers/subscriptions.md b/doc/controllers/subscriptions.md index 4725f012..002977eb 100644 --- a/doc/controllers/subscriptions.md +++ b/doc/controllers/subscriptions.md @@ -15,12 +15,12 @@ SubscriptionsController subscriptionsController = client.getSubscriptionsControl * [Update Subscription](../../doc/controllers/subscriptions.md#update-subscription) * [Read Subscription](../../doc/controllers/subscriptions.md#read-subscription) * [Override Subscription](../../doc/controllers/subscriptions.md#override-subscription) -* [Read Subscription by Reference](../../doc/controllers/subscriptions.md#read-subscription-by-reference) +* [Find Subscription](../../doc/controllers/subscriptions.md#find-subscription) * [Purge Subscription](../../doc/controllers/subscriptions.md#purge-subscription) -* [Create Prepaid Subscription](../../doc/controllers/subscriptions.md#create-prepaid-subscription) +* [Update Prepaid Subscription Configuration](../../doc/controllers/subscriptions.md#update-prepaid-subscription-configuration) * [Preview Subscription](../../doc/controllers/subscriptions.md#preview-subscription) -* [Apply Coupon to Subscription](../../doc/controllers/subscriptions.md#apply-coupon-to-subscription) -* [Delete Coupon From Subscription](../../doc/controllers/subscriptions.md#delete-coupon-from-subscription) +* [Apply Coupons to Subscription](../../doc/controllers/subscriptions.md#apply-coupons-to-subscription) +* [Remove Coupon From Subscription](../../doc/controllers/subscriptions.md#remove-coupon-from-subscription) * [Activate Subscription](../../doc/controllers/subscriptions.md#activate-subscription) @@ -1367,12 +1367,12 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`SingleErrorResponseException`](../../doc/models/single-error-response-exception.md) | -# Read Subscription by Reference +# Find Subscription Use this endpoint to find a subscription by its reference. ```java -SubscriptionResponse readSubscriptionByReference( +SubscriptionResponse findSubscription( final String reference) ``` @@ -1390,7 +1390,7 @@ SubscriptionResponse readSubscriptionByReference( ```java try { - SubscriptionResponse result = subscriptionsController.readSubscriptionByReference(null); + SubscriptionResponse result = subscriptionsController.findSubscription(null); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -1446,12 +1446,12 @@ Liquid error: Value cannot be null. (Parameter 'key')try { ``` -# Create Prepaid Subscription +# Update Prepaid Subscription Configuration Use this endpoint to update a subscription's prepaid configuration. ```java -PrepaidConfigurationResponse createPrepaidSubscription( +PrepaidConfigurationResponse updatePrepaidSubscriptionConfiguration( final int subscriptionId, final UpsertPrepaidConfigurationRequest body) ``` @@ -1482,7 +1482,7 @@ UpsertPrepaidConfigurationRequest body = new UpsertPrepaidConfigurationRequest.B .build(); try { - PrepaidConfigurationResponse result = subscriptionsController.createPrepaidSubscription(subscriptionId, body); + PrepaidConfigurationResponse result = subscriptionsController.updatePrepaidSubscriptionConfiguration(subscriptionId, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -1690,7 +1690,7 @@ try { ``` -# Apply Coupon to Subscription +# Apply Coupons to Subscription An existing subscription can accommodate multiple discounts/coupon codes. This is only applicable if each coupon is stackable. For more information on stackable coupons, we recommend reviewing our [coupon documentation.](https://chargify.zendesk.com/hc/en-us/articles/4407755909531#stackable-coupons) @@ -1701,7 +1701,7 @@ Passing in a coupon code as a query parameter will add the code to the subscript For this reason, using this query parameter on this endpoint has been deprecated in favor of using the request body parameters as described below. When passing in request body parameters, the list of coupon codes will simply be added to any existing list of codes on the subscription. ```java -SubscriptionResponse applyCouponToSubscription( +SubscriptionResponse applyCouponsToSubscription( final int subscriptionId, final String code, final AddCouponsRequest body) @@ -1731,7 +1731,7 @@ AddCouponsRequest body = new AddCouponsRequest.Builder() .build(); try { - SubscriptionResponse result = subscriptionsController.applyCouponToSubscription(subscriptionId, null, body); + SubscriptionResponse result = subscriptionsController.applyCouponsToSubscription(subscriptionId, null, body); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); @@ -1897,14 +1897,14 @@ try { | 422 | Unprocessable Entity (WebDAV) | [`SubscriptionAddCouponErrorException`](../../doc/models/subscription-add-coupon-error-exception.md) | -# Delete Coupon From Subscription +# Remove Coupon From Subscription Use this endpoint to remove a coupon from an existing subscription. For more information on the expected behaviour of removing a coupon from a subscription, please see our documentation [here.](https://chargify.zendesk.com/hc/en-us/articles/4407896488987#removing-a-coupon) ```java -String deleteCouponFromSubscription( +String removeCouponFromSubscription( final int subscriptionId, final String couponCode) ``` @@ -1926,7 +1926,7 @@ String deleteCouponFromSubscription( int subscriptionId = 222; try { - String result = subscriptionsController.deleteCouponFromSubscription(subscriptionId, null); + String result = subscriptionsController.removeCouponFromSubscription(subscriptionId, null); System.out.println(result); } catch (ApiException e) { e.printStackTrace(); diff --git a/src/main/java/com/maxio/advancedbilling/controllers/ComponentsController.java b/src/main/java/com/maxio/advancedbilling/controllers/ComponentsController.java index c9026ae0..ac41bd49 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/ComponentsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/ComponentsController.java @@ -361,15 +361,15 @@ private ApiCall prepareCreateEventBasedComponen * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ComponentResponse readComponentByHandle( + public ComponentResponse findComponent( final String handle) throws ApiException, IOException { - return prepareReadComponentByHandleRequest(handle).execute(); + return prepareFindComponentRequest(handle).execute(); } /** - * Builds the ApiCall object for readComponentByHandle. + * Builds the ApiCall object for findComponent. */ - private ApiCall prepareReadComponentByHandleRequest( + private ApiCall prepareFindComponentRequest( final String handle) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) @@ -403,16 +403,16 @@ private ApiCall prepareReadComponentByHandleReq * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ComponentResponse readComponentById( + public ComponentResponse readComponent( final int productFamilyId, final String componentId) throws ApiException, IOException { - return prepareReadComponentByIdRequest(productFamilyId, componentId).execute(); + return prepareReadComponentRequest(productFamilyId, componentId).execute(); } /** - * Builds the ApiCall object for readComponentById. + * Builds the ApiCall object for readComponent. */ - private ApiCall prepareReadComponentByIdRequest( + private ApiCall prepareReadComponentRequest( final int productFamilyId, final String componentId) throws IOException { return new ApiCall.Builder() @@ -660,17 +660,17 @@ private ApiCall prepareUpdateComponentRequest( * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ComponentResponse updateDefaultPricePointForComponent( + public ComponentResponse promoteComponentPricePointToDefault( final int componentId, final int pricePointId) throws ApiException, IOException { - return prepareUpdateDefaultPricePointForComponentRequest(componentId, + return preparePromoteComponentPricePointToDefaultRequest(componentId, pricePointId).execute(); } /** - * Builds the ApiCall object for updateDefaultPricePointForComponent. + * Builds the ApiCall object for promoteComponentPricePointToDefault. */ - private ApiCall prepareUpdateDefaultPricePointForComponentRequest( + private ApiCall preparePromoteComponentPricePointToDefaultRequest( final int componentId, final int pricePointId) throws IOException { return new ApiCall.Builder() @@ -857,16 +857,16 @@ private ApiCall prepareListComponent * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ComponentPricePointsResponse createComponentPricePoints( + public ComponentPricePointsResponse bulkCreateComponentPricePoints( final String componentId, final CreateComponentPricePointsRequest body) throws ApiException, IOException { - return prepareCreateComponentPricePointsRequest(componentId, body).execute(); + return prepareBulkCreateComponentPricePointsRequest(componentId, body).execute(); } /** - * Builds the ApiCall object for createComponentPricePoints. + * Builds the ApiCall object for bulkCreateComponentPricePoints. */ - private ApiCall prepareCreateComponentPricePointsRequest( + private ApiCall prepareBulkCreateComponentPricePointsRequest( final String componentId, final CreateComponentPricePointsRequest body) throws JsonProcessingException, IOException { return new ApiCall.Builder() diff --git a/src/main/java/com/maxio/advancedbilling/controllers/CouponsController.java b/src/main/java/com/maxio/advancedbilling/controllers/CouponsController.java index 9ca877b4..dbbcbf99 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/CouponsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/CouponsController.java @@ -178,16 +178,16 @@ private ApiCall, ApiException> prepareListCouponsForProduct * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public CouponResponse readCouponByCode( + public CouponResponse findCoupon( final Integer productFamilyId, final String code) throws ApiException, IOException { - return prepareReadCouponByCodeRequest(productFamilyId, code).execute(); + return prepareFindCouponRequest(productFamilyId, code).execute(); } /** - * Builds the ApiCall object for readCouponByCode. + * Builds the ApiCall object for findCoupon. */ - private ApiCall prepareReadCouponByCodeRequest( + private ApiCall prepareFindCouponRequest( final Integer productFamilyId, final String code) throws IOException { return new ApiCall.Builder() @@ -547,16 +547,16 @@ private ApiCall prepareValidateCouponRequest( * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public CouponCurrencyResponse updateCouponCurrencyPrices( + public CouponCurrencyResponse createOrUpdateCouponCurrencyPrices( final int couponId, final CouponCurrencyRequest body) throws ApiException, IOException { - return prepareUpdateCouponCurrencyPricesRequest(couponId, body).execute(); + return prepareCreateOrUpdateCouponCurrencyPricesRequest(couponId, body).execute(); } /** - * Builds the ApiCall object for updateCouponCurrencyPrices. + * Builds the ApiCall object for createOrUpdateCouponCurrencyPrices. */ - private ApiCall prepareUpdateCouponCurrencyPricesRequest( + private ApiCall prepareCreateOrUpdateCouponCurrencyPricesRequest( final int couponId, final CouponCurrencyRequest body) throws JsonProcessingException, IOException { return new ApiCall.Builder() diff --git a/src/main/java/com/maxio/advancedbilling/controllers/EventsBasedBillingSegmentsController.java b/src/main/java/com/maxio/advancedbilling/controllers/EventsBasedBillingSegmentsController.java index 6c818c5d..dfc325f2 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/EventsBasedBillingSegmentsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/EventsBasedBillingSegmentsController.java @@ -289,17 +289,17 @@ private ApiCall prepareDeleteSegmentRequest( * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ListSegmentsResponse createSegments( + public ListSegmentsResponse bulkCreateSegments( final String componentId, final String pricePointId, final BulkCreateSegments body) throws ApiException, IOException { - return prepareCreateSegmentsRequest(componentId, pricePointId, body).execute(); + return prepareBulkCreateSegmentsRequest(componentId, pricePointId, body).execute(); } /** - * Builds the ApiCall object for createSegments. + * Builds the ApiCall object for bulkCreateSegments. */ - private ApiCall prepareCreateSegmentsRequest( + private ApiCall prepareBulkCreateSegmentsRequest( final String componentId, final String pricePointId, final BulkCreateSegments body) throws JsonProcessingException, IOException { @@ -350,17 +350,17 @@ private ApiCall prepareCreateSegmentsRequest * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ListSegmentsResponse updateSegments( + public ListSegmentsResponse bulkUpdateSegments( final String componentId, final String pricePointId, final BulkUpdateSegments body) throws ApiException, IOException { - return prepareUpdateSegmentsRequest(componentId, pricePointId, body).execute(); + return prepareBulkUpdateSegmentsRequest(componentId, pricePointId, body).execute(); } /** - * Builds the ApiCall object for updateSegments. + * Builds the ApiCall object for bulkUpdateSegments. */ - private ApiCall prepareUpdateSegmentsRequest( + private ApiCall prepareBulkUpdateSegmentsRequest( final String componentId, final String pricePointId, final BulkUpdateSegments body) throws JsonProcessingException, IOException { diff --git a/src/main/java/com/maxio/advancedbilling/controllers/InsightsController.java b/src/main/java/com/maxio/advancedbilling/controllers/InsightsController.java index 48b49953..306e78dd 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/InsightsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/InsightsController.java @@ -13,9 +13,9 @@ import com.maxio.advancedbilling.exceptions.SubscriptionsMrrErrorResponseException; import com.maxio.advancedbilling.http.request.HttpMethod; import com.maxio.advancedbilling.models.ListMRRResponse; +import com.maxio.advancedbilling.models.ListMrrMovementsInput; import com.maxio.advancedbilling.models.ListMrrPerSubscriptionInput; import com.maxio.advancedbilling.models.MRRResponse; -import com.maxio.advancedbilling.models.ReadMrrMovementsInput; import com.maxio.advancedbilling.models.SiteSummary; import com.maxio.advancedbilling.models.SubscriptionMRRResponse; import io.apimatic.core.ApiCall; @@ -137,22 +137,22 @@ private ApiCall prepareReadMrrRequest( * revenue from: * Metered Components * Prepaid Usage Components. * @deprecated * - * @param input ReadMrrMovementsInput object containing request parameters + * @param input ListMrrMovementsInput object containing request parameters * @return Returns the ListMRRResponse response from the API call * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ @Deprecated - public ListMRRResponse readMrrMovements( - final ReadMrrMovementsInput input) throws ApiException, IOException { - return prepareReadMrrMovementsRequest(input).execute(); + public ListMRRResponse listMrrMovements( + final ListMrrMovementsInput input) throws ApiException, IOException { + return prepareListMrrMovementsRequest(input).execute(); } /** - * Builds the ApiCall object for readMrrMovements. + * Builds the ApiCall object for listMrrMovements. */ - private ApiCall prepareReadMrrMovementsRequest( - final ReadMrrMovementsInput input) throws IOException { + private ApiCall prepareListMrrMovementsRequest( + final ListMrrMovementsInput input) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) .requestBuilder(requestBuilder -> requestBuilder diff --git a/src/main/java/com/maxio/advancedbilling/controllers/InvoicesController.java b/src/main/java/com/maxio/advancedbilling/controllers/InvoicesController.java index fd9b8ddc..dcd30e58 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/InvoicesController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/InvoicesController.java @@ -23,11 +23,11 @@ import com.maxio.advancedbilling.models.InvoiceEventType; import com.maxio.advancedbilling.models.InvoiceResponse; import com.maxio.advancedbilling.models.IssueInvoiceRequest; +import com.maxio.advancedbilling.models.ListConsolidatedInvoiceSegmentsInput; import com.maxio.advancedbilling.models.ListCreditNotesInput; import com.maxio.advancedbilling.models.ListCreditNotesResponse; import com.maxio.advancedbilling.models.ListInvoiceEventsInput; import com.maxio.advancedbilling.models.ListInvoiceEventsResponse; -import com.maxio.advancedbilling.models.ListInvoiceSegmentsInput; import com.maxio.advancedbilling.models.ListInvoicesInput; import com.maxio.advancedbilling.models.ListInvoicesResponse; import com.maxio.advancedbilling.models.MultiInvoicePaymentResponse; @@ -359,15 +359,15 @@ private ApiCall prepareRecordPaymentForInvoiceRequest( * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public MultiInvoicePaymentResponse recordExternalPaymentForInvoices( + public MultiInvoicePaymentResponse recordPaymentForMultipleInvoices( final CreateMultiInvoicePaymentRequest body) throws ApiException, IOException { - return prepareRecordExternalPaymentForInvoicesRequest(body).execute(); + return prepareRecordPaymentForMultipleInvoicesRequest(body).execute(); } /** - * Builds the ApiCall object for recordExternalPaymentForInvoices. + * Builds the ApiCall object for recordPaymentForMultipleInvoices. */ - private ApiCall prepareRecordExternalPaymentForInvoicesRequest( + private ApiCall prepareRecordPaymentForMultipleInvoicesRequest( final CreateMultiInvoicePaymentRequest body) throws JsonProcessingException, IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) @@ -647,21 +647,21 @@ private ApiCall prepareVoidInvoiceRequest( /** * Invoice segments returned on the index will only include totals, not detailed breakdowns for * `line_items`, `discounts`, `taxes`, `credits`, `payments`, or `custom_fields`. - * @param input ListInvoiceSegmentsInput object containing request parameters + * @param input ListConsolidatedInvoiceSegmentsInput object containing request parameters * @return Returns the ConsolidatedInvoice response from the API call * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ConsolidatedInvoice listInvoiceSegments( - final ListInvoiceSegmentsInput input) throws ApiException, IOException { - return prepareListInvoiceSegmentsRequest(input).execute(); + public ConsolidatedInvoice listConsolidatedInvoiceSegments( + final ListConsolidatedInvoiceSegmentsInput input) throws ApiException, IOException { + return prepareListConsolidatedInvoiceSegmentsRequest(input).execute(); } /** - * Builds the ApiCall object for listInvoiceSegments. + * Builds the ApiCall object for listConsolidatedInvoiceSegments. */ - private ApiCall prepareListInvoiceSegmentsRequest( - final ListInvoiceSegmentsInput input) throws IOException { + private ApiCall prepareListConsolidatedInvoiceSegmentsRequest( + final ListConsolidatedInvoiceSegmentsInput input) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) .requestBuilder(requestBuilder -> requestBuilder diff --git a/src/main/java/com/maxio/advancedbilling/controllers/OffersController.java b/src/main/java/com/maxio/advancedbilling/controllers/OffersController.java index 4b756ccb..fbcd8be5 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/OffersController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/OffersController.java @@ -134,15 +134,15 @@ private ApiCall prepareListOffersRequest( * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public OfferResponse readOffers( + public OfferResponse readOffer( final int offerId) throws ApiException, IOException { - return prepareReadOffersRequest(offerId).execute(); + return prepareReadOfferRequest(offerId).execute(); } /** - * Builds the ApiCall object for readOffers. + * Builds the ApiCall object for readOffer. */ - private ApiCall prepareReadOffersRequest( + private ApiCall prepareReadOfferRequest( final int offerId) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) diff --git a/src/main/java/com/maxio/advancedbilling/controllers/PaymentProfilesController.java b/src/main/java/com/maxio/advancedbilling/controllers/PaymentProfilesController.java index d8ca2093..be4a553a 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/PaymentProfilesController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/PaymentProfilesController.java @@ -567,17 +567,17 @@ private ApiCall prepareDeleteSubscriptionGroupPaymentProfile * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public PaymentProfileResponse updateSubscriptionDefaultPaymentProfile( + public PaymentProfileResponse changeSubscriptionDefaultPaymentProfile( final int subscriptionId, final int paymentProfileId) throws ApiException, IOException { - return prepareUpdateSubscriptionDefaultPaymentProfileRequest(subscriptionId, + return prepareChangeSubscriptionDefaultPaymentProfileRequest(subscriptionId, paymentProfileId).execute(); } /** - * Builds the ApiCall object for updateSubscriptionDefaultPaymentProfile. + * Builds the ApiCall object for changeSubscriptionDefaultPaymentProfile. */ - private ApiCall prepareUpdateSubscriptionDefaultPaymentProfileRequest( + private ApiCall prepareChangeSubscriptionDefaultPaymentProfileRequest( final int subscriptionId, final int paymentProfileId) throws IOException { return new ApiCall.Builder() @@ -620,17 +620,17 @@ private ApiCall prepareUpdateSubscriptionD * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public PaymentProfileResponse updateSubscriptionGroupDefaultPaymentProfile( + public PaymentProfileResponse changeSubscriptionGroupDefaultPaymentProfile( final String uid, final int paymentProfileId) throws ApiException, IOException { - return prepareUpdateSubscriptionGroupDefaultPaymentProfileRequest(uid, + return prepareChangeSubscriptionGroupDefaultPaymentProfileRequest(uid, paymentProfileId).execute(); } /** - * Builds the ApiCall object for updateSubscriptionGroupDefaultPaymentProfile. + * Builds the ApiCall object for changeSubscriptionGroupDefaultPaymentProfile. */ - private ApiCall prepareUpdateSubscriptionGroupDefaultPaymentProfileRequest( + private ApiCall prepareChangeSubscriptionGroupDefaultPaymentProfileRequest( final String uid, final int paymentProfileId) throws IOException { return new ApiCall.Builder() diff --git a/src/main/java/com/maxio/advancedbilling/controllers/ProductPricePointsController.java b/src/main/java/com/maxio/advancedbilling/controllers/ProductPricePointsController.java index 48434bb8..593e42ad 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/ProductPricePointsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/ProductPricePointsController.java @@ -398,16 +398,16 @@ private ApiCall preparePromoteProductPricePointTo * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public BulkCreateProductPricePointsResponse createProductPricePoints( + public BulkCreateProductPricePointsResponse bulkCreateProductPricePoints( final int productId, final BulkCreateProductPricePointsRequest body) throws ApiException, IOException { - return prepareCreateProductPricePointsRequest(productId, body).execute(); + return prepareBulkCreateProductPricePointsRequest(productId, body).execute(); } /** - * Builds the ApiCall object for createProductPricePoints. + * Builds the ApiCall object for bulkCreateProductPricePoints. */ - private ApiCall prepareCreateProductPricePointsRequest( + private ApiCall prepareBulkCreateProductPricePointsRequest( final int productId, final BulkCreateProductPricePointsRequest body) throws JsonProcessingException, IOException { return new ApiCall.Builder() diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java index e17c6f7e..f214efb8 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionComponentsController.java @@ -175,17 +175,17 @@ private ApiCall, ApiException> prepareListSu * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public BulkComponentSPricePointAssignment updateSubscriptionComponentsPricePoints( + public BulkComponentSPricePointAssignment bulkUpdateSubscriptionComponentsPricePoints( final int subscriptionId, final BulkComponentSPricePointAssignment body) throws ApiException, IOException { - return prepareUpdateSubscriptionComponentsPricePointsRequest(subscriptionId, + return prepareBulkUpdateSubscriptionComponentsPricePointsRequest(subscriptionId, body).execute(); } /** - * Builds the ApiCall object for updateSubscriptionComponentsPricePoints. + * Builds the ApiCall object for bulkUpdateSubscriptionComponentsPricePoints. */ - private ApiCall prepareUpdateSubscriptionComponentsPricePointsRequest( + private ApiCall prepareBulkUpdateSubscriptionComponentsPricePointsRequest( final int subscriptionId, final BulkComponentSPricePointAssignment body) throws JsonProcessingException, IOException { return new ApiCall.Builder() @@ -224,15 +224,15 @@ private ApiCall prepareUpdateS * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public SubscriptionResponse resetSubscriptionComponentsPricePoints( + public SubscriptionResponse bulkResetSubscriptionComponentsPricePoints( final int subscriptionId) throws ApiException, IOException { - return prepareResetSubscriptionComponentsPricePointsRequest(subscriptionId).execute(); + return prepareBulkResetSubscriptionComponentsPricePointsRequest(subscriptionId).execute(); } /** - * Builds the ApiCall object for resetSubscriptionComponentsPricePoints. + * Builds the ApiCall object for bulkResetSubscriptionComponentsPricePoints. */ - private ApiCall prepareResetSubscriptionComponentsPricePointsRequest( + private ApiCall prepareBulkResetSubscriptionComponentsPricePointsRequest( final int subscriptionId) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) @@ -542,19 +542,19 @@ private ApiCall preparePreviewAllocatio * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public void updatePrepaidUsageAllocation( + public void updatePrepaidUsageAllocationExpirationDate( final int subscriptionId, final int componentId, final int allocationId, final UpdateAllocationExpirationDate body) throws ApiException, IOException { - prepareUpdatePrepaidUsageAllocationRequest(subscriptionId, componentId, allocationId, - body).execute(); + prepareUpdatePrepaidUsageAllocationExpirationDateRequest(subscriptionId, componentId, + allocationId, body).execute(); } /** - * Builds the ApiCall object for updatePrepaidUsageAllocation. + * Builds the ApiCall object for updatePrepaidUsageAllocationExpirationDate. */ - private ApiCall prepareUpdatePrepaidUsageAllocationRequest( + private ApiCall prepareUpdatePrepaidUsageAllocationExpirationDateRequest( final int subscriptionId, final int componentId, final int allocationId, @@ -957,18 +957,18 @@ private ApiCall prepareRecordEventRequest( * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public void recordEvents( + public void bulkRecordEvents( final String subdomain, final String apiHandle, final String storeUid, final List body) throws ApiException, IOException { - prepareRecordEventsRequest(subdomain, apiHandle, storeUid, body).execute(); + prepareBulkRecordEventsRequest(subdomain, apiHandle, storeUid, body).execute(); } /** - * Builds the ApiCall object for recordEvents. + * Builds the ApiCall object for bulkRecordEvents. */ - private ApiCall prepareRecordEventsRequest( + private ApiCall prepareBulkRecordEventsRequest( final String subdomain, final String apiHandle, final String storeUid, diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupInvoiceAccountController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupInvoiceAccountController.java index 5fe2f8b1..5bbeba5a 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupInvoiceAccountController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupInvoiceAccountController.java @@ -149,16 +149,16 @@ private ApiCall prepareLi * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ServiceCreditResponse issueSubscriptionGroupServiceCredits( + public ServiceCreditResponse issueSubscriptionGroupServiceCredit( final String uid, final IssueServiceCreditRequest body) throws ApiException, IOException { - return prepareIssueSubscriptionGroupServiceCreditsRequest(uid, body).execute(); + return prepareIssueSubscriptionGroupServiceCreditRequest(uid, body).execute(); } /** - * Builds the ApiCall object for issueSubscriptionGroupServiceCredits. + * Builds the ApiCall object for issueSubscriptionGroupServiceCredit. */ - private ApiCall prepareIssueSubscriptionGroupServiceCreditsRequest( + private ApiCall prepareIssueSubscriptionGroupServiceCreditRequest( final String uid, final IssueServiceCreditRequest body) throws JsonProcessingException, IOException { return new ApiCall.Builder() @@ -197,16 +197,16 @@ private ApiCall prepareIssueSubscriptionGro * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public ServiceCredit deductSubscriptionGroupServiceCredits( + public ServiceCredit deductSubscriptionGroupServiceCredit( final String uid, final DeductServiceCreditRequest body) throws ApiException, IOException { - return prepareDeductSubscriptionGroupServiceCreditsRequest(uid, body).execute(); + return prepareDeductSubscriptionGroupServiceCreditRequest(uid, body).execute(); } /** - * Builds the ApiCall object for deductSubscriptionGroupServiceCredits. + * Builds the ApiCall object for deductSubscriptionGroupServiceCredit. */ - private ApiCall prepareDeductSubscriptionGroupServiceCreditsRequest( + private ApiCall prepareDeductSubscriptionGroupServiceCreditRequest( final String uid, final DeductServiceCreditRequest body) throws JsonProcessingException, IOException { return new ApiCall.Builder() diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupStatusController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupStatusController.java index d6e47e4c..84e6a416 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupStatusController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupStatusController.java @@ -129,15 +129,15 @@ private ApiCall prepareInitiateDelayedCancellationForGroupRe * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public void stopDelayedCancellationForGroup( + public void cancelDelayedCancellationForGroup( final String uid) throws ApiException, IOException { - prepareStopDelayedCancellationForGroupRequest(uid).execute(); + prepareCancelDelayedCancellationForGroupRequest(uid).execute(); } /** - * Builds the ApiCall object for stopDelayedCancellationForGroup. + * Builds the ApiCall object for cancelDelayedCancellationForGroup. */ - private ApiCall prepareStopDelayedCancellationForGroupRequest( + private ApiCall prepareCancelDelayedCancellationForGroupRequest( final String uid) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupsController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupsController.java index 5a30e6b7..cf6515ae 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionGroupsController.java @@ -319,15 +319,15 @@ private ApiCall prepareDeleteSubs * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public FullSubscriptionGroupResponse readSubscriptionGroupBySubscriptionId( + public FullSubscriptionGroupResponse findSubscriptionGroup( final String subscriptionId) throws ApiException, IOException { - return prepareReadSubscriptionGroupBySubscriptionIdRequest(subscriptionId).execute(); + return prepareFindSubscriptionGroupRequest(subscriptionId).execute(); } /** - * Builds the ApiCall object for readSubscriptionGroupBySubscriptionId. + * Builds the ApiCall object for findSubscriptionGroup. */ - private ApiCall prepareReadSubscriptionGroupBySubscriptionIdRequest( + private ApiCall prepareFindSubscriptionGroupRequest( final String subscriptionId) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) @@ -379,16 +379,16 @@ private ApiCall prepareReadSubscrip * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public SubscriptionGroupResponse createSubscriptionGroupHierarchy( + public SubscriptionGroupResponse addSubscriptionToGroup( final int subscriptionId, final AddSubscriptionToAGroup body) throws ApiException, IOException { - return prepareCreateSubscriptionGroupHierarchyRequest(subscriptionId, body).execute(); + return prepareAddSubscriptionToGroupRequest(subscriptionId, body).execute(); } /** - * Builds the ApiCall object for createSubscriptionGroupHierarchy. + * Builds the ApiCall object for addSubscriptionToGroup. */ - private ApiCall prepareCreateSubscriptionGroupHierarchyRequest( + private ApiCall prepareAddSubscriptionToGroupRequest( final int subscriptionId, final AddSubscriptionToAGroup body) throws JsonProcessingException, IOException { return new ApiCall.Builder() diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionStatusController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionStatusController.java index 62e6bb4e..6634a6f2 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionStatusController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionStatusController.java @@ -456,15 +456,15 @@ private ApiCall prepareInitiateDelaye * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public DelayedCancellationResponse stopDelayedCancellation( + public DelayedCancellationResponse cancelDelayedCancellation( final int subscriptionId) throws ApiException, IOException { - return prepareStopDelayedCancellationRequest(subscriptionId).execute(); + return prepareCancelDelayedCancellationRequest(subscriptionId).execute(); } /** - * Builds the ApiCall object for stopDelayedCancellation. + * Builds the ApiCall object for cancelDelayedCancellation. */ - private ApiCall prepareStopDelayedCancellationRequest( + private ApiCall prepareCancelDelayedCancellationRequest( final int subscriptionId) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) diff --git a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionsController.java b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionsController.java index 33086890..2fba0146 100644 --- a/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionsController.java +++ b/src/main/java/com/maxio/advancedbilling/controllers/SubscriptionsController.java @@ -725,15 +725,15 @@ private ApiCall prepareOverrideSubscriptionRequest( * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public SubscriptionResponse readSubscriptionByReference( + public SubscriptionResponse findSubscription( final String reference) throws ApiException, IOException { - return prepareReadSubscriptionByReferenceRequest(reference).execute(); + return prepareFindSubscriptionRequest(reference).execute(); } /** - * Builds the ApiCall object for readSubscriptionByReference. + * Builds the ApiCall object for findSubscription. */ - private ApiCall prepareReadSubscriptionByReferenceRequest( + private ApiCall prepareFindSubscriptionRequest( final String reference) throws IOException { return new ApiCall.Builder() .globalConfig(getGlobalConfiguration()) @@ -813,16 +813,16 @@ private ApiCall preparePurgeSubscriptionRequest( * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public PrepaidConfigurationResponse createPrepaidSubscription( + public PrepaidConfigurationResponse updatePrepaidSubscriptionConfiguration( final int subscriptionId, final UpsertPrepaidConfigurationRequest body) throws ApiException, IOException { - return prepareCreatePrepaidSubscriptionRequest(subscriptionId, body).execute(); + return prepareUpdatePrepaidSubscriptionConfigurationRequest(subscriptionId, body).execute(); } /** - * Builds the ApiCall object for createPrepaidSubscription. + * Builds the ApiCall object for updatePrepaidSubscriptionConfiguration. */ - private ApiCall prepareCreatePrepaidSubscriptionRequest( + private ApiCall prepareUpdatePrepaidSubscriptionConfigurationRequest( final int subscriptionId, final UpsertPrepaidConfigurationRequest body) throws JsonProcessingException, IOException { return new ApiCall.Builder() @@ -928,17 +928,17 @@ private ApiCall preparePreviewSubscri * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public SubscriptionResponse applyCouponToSubscription( + public SubscriptionResponse applyCouponsToSubscription( final int subscriptionId, final String code, final AddCouponsRequest body) throws ApiException, IOException { - return prepareApplyCouponToSubscriptionRequest(subscriptionId, code, body).execute(); + return prepareApplyCouponsToSubscriptionRequest(subscriptionId, code, body).execute(); } /** - * Builds the ApiCall object for applyCouponToSubscription. + * Builds the ApiCall object for applyCouponsToSubscription. */ - private ApiCall prepareApplyCouponToSubscriptionRequest( + private ApiCall prepareApplyCouponsToSubscriptionRequest( final int subscriptionId, final String code, final AddCouponsRequest body) throws JsonProcessingException, IOException { @@ -981,16 +981,16 @@ private ApiCall prepareApplyCouponToSubscrip * @throws ApiException Represents error response from the server. * @throws IOException Signals that an I/O exception of some sort has occurred. */ - public String deleteCouponFromSubscription( + public String removeCouponFromSubscription( final int subscriptionId, final String couponCode) throws ApiException, IOException { - return prepareDeleteCouponFromSubscriptionRequest(subscriptionId, couponCode).execute(); + return prepareRemoveCouponFromSubscriptionRequest(subscriptionId, couponCode).execute(); } /** - * Builds the ApiCall object for deleteCouponFromSubscription. + * Builds the ApiCall object for removeCouponFromSubscription. */ - private ApiCall prepareDeleteCouponFromSubscriptionRequest( + private ApiCall prepareRemoveCouponFromSubscriptionRequest( final int subscriptionId, final String couponCode) throws IOException { return new ApiCall.Builder() diff --git a/src/main/java/com/maxio/advancedbilling/models/ListInvoiceSegmentsInput.java b/src/main/java/com/maxio/advancedbilling/models/ListConsolidatedInvoiceSegmentsInput.java similarity index 85% rename from src/main/java/com/maxio/advancedbilling/models/ListInvoiceSegmentsInput.java rename to src/main/java/com/maxio/advancedbilling/models/ListConsolidatedInvoiceSegmentsInput.java index 54f688c3..b66f707c 100644 --- a/src/main/java/com/maxio/advancedbilling/models/ListInvoiceSegmentsInput.java +++ b/src/main/java/com/maxio/advancedbilling/models/ListConsolidatedInvoiceSegmentsInput.java @@ -11,9 +11,9 @@ import com.fasterxml.jackson.annotation.JsonSetter; /** - * This is a model class for ListInvoiceSegmentsInput type. + * This is a model class for ListConsolidatedInvoiceSegmentsInput type. */ -public class ListInvoiceSegmentsInput { +public class ListConsolidatedInvoiceSegmentsInput { private String invoiceUid; private Integer page; private Integer perPage; @@ -22,7 +22,7 @@ public class ListInvoiceSegmentsInput { /** * Default constructor. */ - public ListInvoiceSegmentsInput() { + public ListConsolidatedInvoiceSegmentsInput() { page = 1; perPage = 20; direction = Direction.ASC; @@ -35,7 +35,7 @@ public ListInvoiceSegmentsInput() { * @param perPage Integer value for perPage. * @param direction Direction value for direction. */ - public ListInvoiceSegmentsInput( + public ListConsolidatedInvoiceSegmentsInput( String invoiceUid, Integer page, Integer perPage, @@ -142,19 +142,19 @@ public void setDirection(Direction direction) { } /** - * Converts this ListInvoiceSegmentsInput into string format. + * Converts this ListConsolidatedInvoiceSegmentsInput into string format. * @return String representation of this class */ @Override public String toString() { - return "ListInvoiceSegmentsInput [" + "invoiceUid=" + invoiceUid + ", page=" + page - + ", perPage=" + perPage + ", direction=" + direction + "]"; + return "ListConsolidatedInvoiceSegmentsInput [" + "invoiceUid=" + invoiceUid + ", page=" + + page + ", perPage=" + perPage + ", direction=" + direction + "]"; } /** - * Builds a new {@link ListInvoiceSegmentsInput.Builder} object. + * Builds a new {@link ListConsolidatedInvoiceSegmentsInput.Builder} object. * Creates the instance with the state of the current model. - * @return a new {@link ListInvoiceSegmentsInput.Builder} object + * @return a new {@link ListConsolidatedInvoiceSegmentsInput.Builder} object */ public Builder toBuilder() { Builder builder = new Builder(invoiceUid) @@ -165,7 +165,7 @@ public Builder toBuilder() { } /** - * Class to build instances of {@link ListInvoiceSegmentsInput}. + * Class to build instances of {@link ListConsolidatedInvoiceSegmentsInput}. */ public static class Builder { private String invoiceUid; @@ -228,11 +228,11 @@ public Builder direction(Direction direction) { } /** - * Builds a new {@link ListInvoiceSegmentsInput} object using the set fields. - * @return {@link ListInvoiceSegmentsInput} + * Builds a new {@link ListConsolidatedInvoiceSegmentsInput} object using the set fields. + * @return {@link ListConsolidatedInvoiceSegmentsInput} */ - public ListInvoiceSegmentsInput build() { - return new ListInvoiceSegmentsInput(invoiceUid, page, perPage, direction); + public ListConsolidatedInvoiceSegmentsInput build() { + return new ListConsolidatedInvoiceSegmentsInput(invoiceUid, page, perPage, direction); } } } diff --git a/src/main/java/com/maxio/advancedbilling/models/ReadMrrMovementsInput.java b/src/main/java/com/maxio/advancedbilling/models/ListMrrMovementsInput.java similarity index 90% rename from src/main/java/com/maxio/advancedbilling/models/ReadMrrMovementsInput.java rename to src/main/java/com/maxio/advancedbilling/models/ListMrrMovementsInput.java index d3d95296..d336e13b 100644 --- a/src/main/java/com/maxio/advancedbilling/models/ReadMrrMovementsInput.java +++ b/src/main/java/com/maxio/advancedbilling/models/ListMrrMovementsInput.java @@ -11,9 +11,9 @@ import com.fasterxml.jackson.annotation.JsonSetter; /** - * This is a model class for ReadMrrMovementsInput type. + * This is a model class for ListMrrMovementsInput type. */ -public class ReadMrrMovementsInput { +public class ListMrrMovementsInput { private Integer subscriptionId; private Integer page; private Integer perPage; @@ -22,7 +22,7 @@ public class ReadMrrMovementsInput { /** * Default constructor. */ - public ReadMrrMovementsInput() { + public ListMrrMovementsInput() { page = 1; perPage = 10; } @@ -34,7 +34,7 @@ public ReadMrrMovementsInput() { * @param perPage Integer value for perPage. * @param direction SortingDirection value for direction. */ - public ReadMrrMovementsInput( + public ListMrrMovementsInput( Integer subscriptionId, Integer page, Integer perPage, @@ -142,19 +142,19 @@ public void setDirection(SortingDirection direction) { } /** - * Converts this ReadMrrMovementsInput into string format. + * Converts this ListMrrMovementsInput into string format. * @return String representation of this class */ @Override public String toString() { - return "ReadMrrMovementsInput [" + "subscriptionId=" + subscriptionId + ", page=" + page + return "ListMrrMovementsInput [" + "subscriptionId=" + subscriptionId + ", page=" + page + ", perPage=" + perPage + ", direction=" + direction + "]"; } /** - * Builds a new {@link ReadMrrMovementsInput.Builder} object. + * Builds a new {@link ListMrrMovementsInput.Builder} object. * Creates the instance with the state of the current model. - * @return a new {@link ReadMrrMovementsInput.Builder} object + * @return a new {@link ListMrrMovementsInput.Builder} object */ public Builder toBuilder() { Builder builder = new Builder() @@ -166,7 +166,7 @@ public Builder toBuilder() { } /** - * Class to build instances of {@link ReadMrrMovementsInput}. + * Class to build instances of {@link ListMrrMovementsInput}. */ public static class Builder { private Integer subscriptionId; @@ -217,11 +217,11 @@ public Builder direction(SortingDirection direction) { } /** - * Builds a new {@link ReadMrrMovementsInput} object using the set fields. - * @return {@link ReadMrrMovementsInput} + * Builds a new {@link ListMrrMovementsInput} object using the set fields. + * @return {@link ListMrrMovementsInput} */ - public ReadMrrMovementsInput build() { - return new ReadMrrMovementsInput(subscriptionId, page, perPage, direction); + public ListMrrMovementsInput build() { + return new ListMrrMovementsInput(subscriptionId, page, perPage, direction); } } }