-
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:
- renamed
CreateOrUpdateCoupon
toCouponRequest
- renamed
CreateOrUpdatePercentageCouponPercentage
toCouponPayloadPercentage
- changed
CreateOrUpdateCouponCoupon
toCouponPayload
- There're no longer 2 distinct models for Flat amount and Percentage coupon. They're merged into
CouponPayload
. Using it, specify eitheramount_in_cents
orpercentage
property code
,name
,description
,amount_in_cents
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
end_date
changes type fromdatetime
todate
. Responsecoupon
end_date
is stilldatetime
(its calculated as end of the day)update_coupon
now throwsErrorListResponseException
- added
currency_prices
forCoupon
response. Note you need to specify suitable query parameters to access it - added
currency_prices
query parameter forread_coupon
andfind_coupon
- added some missing descriptions
- changed
Coupon
amount_in_cents
to long - changed
CouponCurrency
price
to nullable double andid
to nullable Integer create_or_update_coupon_currency_prices
now throwsErrorStringMapResponseException
- renamed
-
Subscription Fixes:
- added
SubscriptionResponse
forpurge_subscription
operation purge_subscription
now throwsSubscriptionResponseErrorException
update_prepaid_subscription_configuration
now throwsApiException
when the status code is 422
- added
-
Components fixes:
- removed
PrepaidComponentPricePoint
. UseCreatePrepaidComponentPricePoint
when creating price points forPrepaidComponent
together with component instead - added prepaid-specific properties to
ComponentPricePoint
(response model) - removed
upgrade_charge
anddowngrade_credit
fromEbbComponent
,OnOffComponent
andMeteredComponent
request models (not applicable for this type of component) - removed deprecated
price_in_cents
from component request models - removed
prices
fromOnOffComponent
request model (unit_price should be used) - Fixed
ComponentPricePoint
expiration_interval_unit
type - corrected some descriptions
- Define exceptions for create component price points operations
- removed
-
Currency Prices fixes:
- add
currency_prices
query parameter toread_component_price_point
UpdateCurrencyPrice
price
is nowdouble
instead ofint
- Add
price_id
andprice_point_id
toCurrencyPrice
- Return verbose exception message for currency prices operations
- add
-
Events fixes:
- Added
EventKey
enum and filled it with missing event types - merged
SubscriptionGroupSignupFailure
andSubscriptionGroupSignupFailure
andSubscriptionGroupSignupSuccess
intoSubscriptionGroupSignupEventData
. - documented
key
toevent_specific_data
mappings. - removed
EventType
used inevents
endpoints for filter.EventKey
should be used instead.
- Added
-
Misc:
- Added missing properties and types for
Invoice
- fixed
record_event
andbulk_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
andadd subscription to group
operations - Make
initiate_delayed_cancellation
andcancel_dunning
throwErrorListResponseException
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 withlist_product_price_points
- Added missing properties and types for
Full Changelog: 5.2.0...6.0.0