[DE-1091] Release 0.5.0 #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
AdvancedBillingClientwas slightly reworked:Domainparameter has been removed.Subdomainparameter changed name tositeEnvironmenthas changed. Now it's either defaultUS, orEUfor Advanced Billing eu hosting. The default isUS. SDK is now supporting EU hosted accounts.Coupon fixes:
CreateOrUpdateCoupontoCouponRequestCreateOrUpdatePercentageCouponPercentagetoCouponPayloadPercentageCreateOrUpdateCouponCoupontoCouponPayloadCouponPayload. Using it, specify eitherAmountInCentsorPercentagepropertyCode,Name,Description,AmountInCentsandPercentageare not required properties inCouponPayloadmodel. It means they're not send as nulls if unset. It enables patching coupon withUpdateCouponwithout specifying these properties values. Previous version enforced setting them.CouponPayloadEndDatechanges type fromZonedDateTimetoLocalDate. ResponseCouponEndDateis stillZonedDateTime(its calculated as end of the day)UpdateCouponnow throwsErrorListResponseExceptionCurrencyPricesforCouponresponse. Note you need to specify suitable query parameters to access itCurrencyPricesquery parameter forReadCouponandFindCouponCouponAmountInCentsto LongCouponCurrencyPriceto nullable Double andidto nullable IntegerCreateOrUpdateCouponCurrencyPricesnow throwsErrorStringMapResponseExceptionSubscription Fixes:
SubscriptionResponseforPurgeSubscriptionoperationPurgeSubscriptionnow throwsSubscriptionResponseErrorExceptionUpdatePrepaidSubscriptionConfigurationnow throwsApiExceptionwhen the status code is 422Components fixes:
PrepaidComponentPricePoint. UseCreatePrepaidComponentPricePointwhen creating price points forPrepaidComponenttogether with component insteadComponentPricePoint(response model)UpgradeChargeandDowngradeCreditfromEbbComponent,OnOffComponentandMeteredComponentrequest models (not applicable for this type of component)PriceInCentsfrom component request modelspricesfromOnOffComponentrequest model (unitPrice should be used)ComponentPricePointExpirationIntervalUnittypeCurrency Prices fixes:
CurrencyPricesquery parameter toReadComponentPricePointUpdateCurrencyPricePriceis nowDoubleinstead ofIntPriceIdandPricePointIdtoCurrencyPriceEvents fixes:
EventKeyenum and filled it with missing event typesSubscriptionGroupSignupFailureandSubscriptionGroupSignupFailureandSubscriptionGroupSignupSuccessintoSubscriptionGroupSignupEventData.KeytoEventSpecificDatamappings.EventTypeused inEventsendpoints for filter.EventKeyshould be used instead.Misc:
InvoiceRecordEventandBulkRecordEvents. Now they work with default environment, with subdomain specified during client initialization. They no longer need subdomain provided to the method executionupdate subscription groupandadd subscription to groupoperationsInitiateDelayedCancellationandCancelDunningthrowErrorListResponseExceptionon 422 errorprocessingInvoice StatusListOffersArchivedproperty withListProductPricePoints