Ruby SDK changes

2.162.0

Released: 2024-10-13

  • Added: ability to estimate the subscription cost when the payment of the subscription is delegated to a different customer using:
    • ProvisionSubscriptionInput.paying_customer_id
    • UpdateSubscriptionInput.paying_customer_id
    • ApplySubscriptionInput.paying_customer_id
    • PreviewSubscriptionInput.paying_customer_id
    • EstimateSubscriptionInput.paying_customer_id
    • EstimateSubscriptionUpdateInput.paying_customer_id

2.160.0

Released: 2024-10-13

  • Added: raise error when sync to Stripe fails due to unrecognized customer billing address

2.151.0

Released: 2024-10-06

  • Added: ability to more easily determine the usage period of metered entitlements using:
    • EntitlementFragment.usage_period_start
    • EntitlementFragment.usage_period_end
  • 🟑 Deprecated: Entitlement.nextResetDate field

2.131.1

Released: 2024-09-19

  • Added: raise error when attempting to import a customer with an existing billing_id

2.129.0

Released: 2024-09-17

  • Added: CustomerPortalSubscriptionFragment.plan_id

2.123.1

Released: 2024-09-11

  • Added: SubscriptionCouponInput.billing_coupon_id
  • 🟑 Deprecated: ProvisionSubscriptionInput.promotion_code
  • 🟑 Deprecated: UpdateSubscriptionInput.promotion_code
  • 🟑 Deprecated: ApplySubscriptionInput.promotion_code
  • 🟑 Deprecated: PreviewSubscriptionInput.promotion_code
  • 🟑 Deprecated: EstimateSubscriptionInput.promotion_code
  • 🟑 Deprecated: EstimateSubscriptionUpdateInput.promotion_code

2.100.2

Released: 2024-09-01

  • Added: ability to delegate payment of a provisioned subscription to a different customer using:
    • ProvisionSubscriptionInput.paying_customer_id
    • ApplySubscriptionInput.paying_customer_id
    • SlimSubscriptionFragmentV2.payingCustomer
    • FullSubscription.payingCustomer

2.86.0

Released: 2024-08-22

  • Added: ability to apply a coupon to a subscription using the Stigg coupon ID using:
    • ProvisionSubscriptionInput.applied_coupon
    • UpdateSubscriptionInput.applied_coupon
    • ApplySubscriptionInput.applied_coupon
    • PreviewSubscriptionInput.applied_coupon
    • EstimateSubscriptionInput.applied_coupon
    • EstimateSubscriptionUpdateInput.applied_coupon

2.80.2

Released: 2024-08-20

  • Changed: ImportCustomerBulk changed to ImportCustomerBulkInput

2.62.4

Released: 2024-08-07

  • Added: ability to undo subscription scheduled cancelation usingcancel_subscription_updates()

2.62.0

Released: 2024-08-07

  • Added: ability to preview a subscription's upcoming invoice usingpreview_next_invoice()

2.20.0

Released: 2024-07-07

  • Changed: fetch_usage_history() now returns the precise timestamp when the usage was reset

2.13.5

Released: 2024-07-01

  • Changed: UpdateSubscriptionInput.subscription_entitlements does not require the full list of entitlements when needing to add or update specific entitlements

2.8.2

Released: 2024-06-27

  • Added: TrialOverrideConfigurationInput.trial_end_date to allow scheduled trial cancelation when provisioning and updating subscriptions

1.236.0

Released: 2024-06-20

  • Added: ability to get the list of active subscriptions from Edge using get_active_subscriptions_list()

1.232.0

Released: 2024-06-16

  • Added: ability to get the list of active subscriptions using get_active_subscriptions()

1.0.0

Released: 2024-01-22

❗Breaking change

  • Changed: For Volume/tiered pricing, unit_price was moved to flat_price.