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 0.5.0 #37

Merged
merged 3 commits into from
Dec 13, 2024
Merged

[DE-1091] Release 0.5.0 #37

merged 3 commits into from
Dec 13, 2024

Conversation

maciej-nedza
Copy link
Contributor

@maciej-nedza maciej-nedza commented Dec 13, 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 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

@maciej-nedza maciej-nedza force-pushed the release-6.0.0 branch 3 times, most recently from 9acfd60 to 0bf418c Compare December 13, 2024 13:23
@maciej-nedza maciej-nedza merged commit 740cd1e into main Dec 13, 2024
1 check passed
@maciej-nedza maciej-nedza deleted the release-6.0.0 branch December 13, 2024 15:22
@maciej-nedza maciej-nedza changed the title [DE-1091] Release 6.0.0 [DE-1091] Release 0.5.0 Dec 13, 2024
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.

2 participants