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.
AdvancedBillingClient
was slightly reworked:Domain
parameter has been removed.Subdomain
parameter changed name tosite
Environment
has changed. Now it's either defaultUS
, orEU
for Advanced Billing eu hosting. The default isUS
. SDK is now supporting EU hosted accounts.Coupon fixes:
CreateOrUpdateCoupon
toCouponRequest
CreateOrUpdatePercentageCouponPercentage
toCouponPayloadPercentage
CreateOrUpdateCouponCoupon
toCouponPayload
CouponPayload
. Using it, specify eitherAmountInCents
orPercentage
propertyCode
,Name
,Description
,AmountInCents
andPercentage
are not required properties inCouponPayload
model. It means they're not send as nulls if unset. It enables patching coupon withUpdateCoupon
without specifying these properties values. Previous version enforced setting them.CouponPayload
EndDate
changes type fromZonedDateTime
toLocalDate
. ResponseCoupon
EndDate
is stillZonedDateTime
(its calculated as end of the day)UpdateCoupon
now throwsErrorListResponseException
CurrencyPrices
forCoupon
response. Note you need to specify suitable query parameters to access itCurrencyPrices
query parameter forReadCoupon
andFindCoupon
Coupon
AmountInCents
to LongCouponCurrency
Price
to nullable Double andid
to nullable IntegerCreateOrUpdateCouponCurrencyPrices
now throwsErrorStringMapResponseException
Subscription Fixes:
SubscriptionResponse
forPurgeSubscription
operationPurgeSubscription
now throwsSubscriptionResponseErrorException
UpdatePrepaidSubscriptionConfiguration
now throwsApiException
when the status code is 422Components fixes:
PrepaidComponentPricePoint
. UseCreatePrepaidComponentPricePoint
when creating price points forPrepaidComponent
together with component insteadComponentPricePoint
(response model)UpgradeCharge
andDowngradeCredit
fromEbbComponent
,OnOffComponent
andMeteredComponent
request models (not applicable for this type of component)PriceInCents
from component request modelsprices
fromOnOffComponent
request model (unitPrice should be used)ComponentPricePoint
ExpirationIntervalUnit
typeCurrency Prices fixes:
CurrencyPrices
query parameter toReadComponentPricePoint
UpdateCurrencyPrice
Price
is nowDouble
instead ofInt
PriceId
andPricePointId
toCurrencyPrice
Events fixes:
EventKey
enum and filled it with missing event typesSubscriptionGroupSignupFailure
andSubscriptionGroupSignupFailure
andSubscriptionGroupSignupSuccess
intoSubscriptionGroupSignupEventData
.Key
toEventSpecificData
mappings.EventType
used inEvents
endpoints for filter.EventKey
should be used instead.Misc:
Invoice
RecordEvent
andBulkRecordEvents
. Now they work with default environment, with subdomain specified during client initialization. They no longer need subdomain provided to the method executionupdate subscription group
andadd subscription to group
operationsInitiateDelayedCancellation
andCancelDunning
throwErrorListResponseException
on 422 errorprocessing
Invoice StatusListOffers
Archived
property withListProductPricePoints