割引ソースプロパティを追加して、割引クーポンプロパティを削除します。互換性に関わる変更
新機能
この変更により、新しい source プロパティが Discount オブジェクトに追加され、自動展開された coupon
プロパティが削除されます。新しい source
プロパティは、次の属性を含むハッシュです。
type
: 割引の計算と適用に使用されるオブジェクトのタイプ。coupon
: 割引を作成するために引き換えられた Coupon。
この変更により互換性が失われる理由
これは互換性に関わる変更です。理由は以下の通りです:
- Discount オブジェクトのスキーマが変更されたため、Discount を含むレスポンスを別の方法で処理する必要があります。
- Coupon オブジェクトは、イベント通知内を含め、Discount オブジェクトでは自動的に展開されません。
影響
coupon
プロパティは、Discount オブジェクトで自動展開されなくなりました。割引クーポンの詳細を取得するには、割引クーポンを個別に 取得 するか、source
プロパティを使用して 展開 します。
この変更は、現在のクーポンの割引への引き換え方法には影響しませんが、将来的には割引機能の拡張が可能になります。
変更点
アップグレード
関連する変更
- Removes iterations parameter for subscription schedules
- Promotion Codes now reference Coupons using a polymorphic field for promotions
- Makes flexible billing mode the default for new subscriptions
- Updates computation of subscription schedule phase end date to consider billing cycle anchor changes
- Adds customer portal configuration trial behavior
- Adds the ability to itemize proration discount amounts