Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DE-1091] Release 6.0.0 #54

Merged
merged 2 commits into from
Dec 13, 2024
Merged

[DE-1091] Release 6.0.0 #54

merged 2 commits into from
Dec 13, 2024

Conversation

maciej-nedza
Copy link
Contributor

@maciej-nedza maciej-nedza commented Dec 12, 2024

  • AdvancedBillingClient was slightly reworked:

    • domain parameter has been removed.
    • subdomain parameter changed name to site
    • Environment has changed. Now it's either default US, or EU for Advanced Billing eu hosting. The default is US. SDK is now supporting EU hosted accounts.
  • Coupon fixes:

    • renamed CreateOrUpdateCoupon to CouponRequest
    • renamed CreateOrUpdatePercentageCouponPercentage to CouponPayloadPercentage
    • changed CreateOrUpdateCouponCoupon to CouponPayload
    • There're no longer 2 distinct models for Flat amount and Percentage coupon. They're merged into CouponPayload. Using it, specify either amount_in_cents or percentage property
    • code, name, description, amount_in_cents and percentage are not required properties in CouponPayload model. It means they're not send as nulls if unset. It enables patching coupon with updateCoupon without specifying these properties values. Previous version enforced setting them.
    • CouponPayload end_date changes type from datetime to date. Response coupon end_date is still datetime (its calculated as end of the day)
    • update_coupon now throws ErrorListResponseException
    • added currency_prices for Coupon response. Note you need to specify suitable query parameters to access it
    • added currency_prices query parameter for read_coupon and find_coupon
    • added some missing descriptions
    • changed Coupon amount_in_cents to long
    • changed CouponCurrency price to nullable double and id to nullable Integer
    • create_or_update_coupon_currency_prices now throws ErrorStringMapResponseException
  • Subscription Fixes:

    • added SubscriptionResponse for purge_subscription operation
    • purge_subscription now throws SubscriptionResponseErrorException
    • update_prepaid_subscription_configuration now throws ApiException when the status code is 422
  • Components fixes:

    • removed PrepaidComponentPricePoint. Use CreatePrepaidComponentPricePoint when creating price points for PrepaidComponent together with component instead
    • added prepaid-specific properties to ComponentPricePoint (response model)
    • removed upgrade_charge and downgrade_credit from EbbComponent, OnOffComponent and MeteredComponent request models (not applicable for this type of component)
    • removed deprecated price_in_cents from component request models
    • removed prices from OnOffComponent request model (unit_price should be used)
    • Fixed ComponentPricePoint expiration_interval_unit type
    • corrected some descriptions
    • Define exceptions for create component price points operations
  • Currency Prices fixes:

    • add currency_prices query parameter to read_component_price_point
    • UpdateCurrencyPrice price is now double instead of int
    • Add price_id and price_point_id to CurrencyPrice
    • Return verbose exception message for currency prices operations
  • Events fixes:

    • Added EventKey enum and filled it with missing event types
    • merged SubscriptionGroupSignupFailure and SubscriptionGroupSignupFailure and SubscriptionGroupSignupSuccess into SubscriptionGroupSignupEventData.
    • documented key to event_specific_data mappings.
    • removed EventType used in events endpoints for filter. EventKey should be used instead.
  • Misc:

    • Added missing properties and types for Invoice
    • fixed record_event and bulk_record_events. Now they work with default environment, with subdomain specified during client initialization. They no longer need subdomain provided to the method execution
    • Fixed types for models required for update subscription group and add subscription to group operations
    • Make initiate_delayed_cancellation and cancel_dunning throw ErrorListResponseException on 422 error
    • added processing Invoice Status
    • Fix errors for Subscription Notes
    • Add error model for list_offers
    • Use date/date_time instead of string for filtering when listing products and product families
    • Now it's possible to list archived product price points using archived property with list_product_price_points

@maciej-nedza maciej-nedza changed the title Release 6.0.0 [DE-1091] Release 6.0.0 Dec 12, 2024
@maciej-nedza maciej-nedza merged commit e9b12a5 into main Dec 13, 2024
1 check passed
@maciej-nedza maciej-nedza deleted the publish branch December 13, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants