Skip to content

6.0.0

Latest
Compare
Choose a tag to compare
@maciej-nedza maciej-nedza released this 13 Dec 15:55
e9b12a5
  • 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

Full Changelog: 5.2.0...6.0.0