Skip to content

6.0.0

Latest
Compare
Choose a tag to compare
@maciej-nedza maciej-nedza released this 13 Dec 16:02
f28d454
  • 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 AmountInCents or Percentage property
    • Code, Name, Description, AmountInCents 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 EndDate changes type from ZonedDateTime to LocalDate. Response Coupon EndDate is still ZonedDateTime (its calculated as end of the day)
    • UpdateCoupon now throws ErrorListResponseException
    • added CurrencyPrices for Coupon response. Note you need to specify suitable query parameters to access it
    • added CurrencyPrices query parameter for ReadCoupon and FindCoupon
    • added some missing descriptions
    • changed Coupon AmountInCents to Long
    • changed CouponCurrency Price to nullable Double and id to nullable Integer
    • CreateOrUpdateCouponCurrencyPrices now throws ErrorStringMapResponseException
  • Subscription Fixes:

    • added SubscriptionResponse for PurgeSubscription operation
    • PurgeSubscription now throws SubscriptionResponseErrorException
    • UpdatePrepaidSubscriptionConfiguration 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 UpgradeCharge and DowngradeCredit from EbbComponent, OnOffComponent and MeteredComponent request models (not applicable for this type of component)
    • removed deprecated PriceInCents from component request models
    • removed prices from OnOffComponent request model (unitPrice should be used)
    • Fixed ComponentPricePoint ExpirationIntervalUnit type
    • corrected some descriptions
    • Define exceptions for create component price points operations
  • Currency Prices fixes:

    • add CurrencyPrices query parameter to ReadComponentPricePoint
    • UpdateCurrencyPrice Price is now Double instead of Int
    • Add PriceId and PricePointId 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 EventSpecificData mappings.
    • removed EventType used in Events endpoints for filter. EventKey should be used instead.
  • Misc:

    • Added missing properties and types for Invoice
    • fixed RecordEvent and BulkRecordEvents. 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 InitiateDelayedCancellation and CancelDunning throw ErrorListResponseException on 422 error
    • added Processing Invoice Status
    • Fix errors for Subscription Notes
    • Add error model for ListOffers
    • Use date/dateTime 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 ListProductPricePoints

Full Changelog: 5.1.0...6.0.0