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 eitheramount_in_cents
orpercentage
propertycode
,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
currency_prices
forCoupon
response. Note you need to specify suitable query parameters to access itcurrency_prices
query parameter forread_coupon
andfind_coupon
Coupon
amount_in_cents
to longCouponCurrency
price
to nullable double andid
to nullable Integercreate_or_update_coupon_currency_prices
now throwsErrorStringMapResponseException
Subscription Fixes:
SubscriptionResponse
forpurge_subscription
operationpurge_subscription
now throwsSubscriptionResponseErrorException
update_prepaid_subscription_configuration
now throwsApiException
when the status code is 422Components fixes:
PrepaidComponentPricePoint
. UseCreatePrepaidComponentPricePoint
when creating price points forPrepaidComponent
together with component insteadComponentPricePoint
(response model)upgrade_charge
anddowngrade_credit
fromEbbComponent
,OnOffComponent
andMeteredComponent
request models (not applicable for this type of component)price_in_cents
from component request modelsprices
fromOnOffComponent
request model (unit_price should be used)ComponentPricePoint
expiration_interval_unit
typeCurrency Prices fixes:
currency_prices
query parameter toread_component_price_point
UpdateCurrencyPrice
price
is nowdouble
instead ofint
price_id
andprice_point_id
toCurrencyPrice
Events fixes:
EventKey
enum and filled it with missing event typesSubscriptionGroupSignupFailure
andSubscriptionGroupSignupFailure
andSubscriptionGroupSignupSuccess
intoSubscriptionGroupSignupEventData
.key
toevent_specific_data
mappings.EventType
used inevents
endpoints for filter.EventKey
should be used instead.Misc:
Invoice
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 executionupdate subscription group
andadd subscription to group
operationsinitiate_delayed_cancellation
andcancel_dunning
throwErrorListResponseException
on 422 errorprocessing
Invoice Statuslist_offers
archived
property withlist_product_price_points