Ruby SDK changes

2.233.0

Released: 2024-12-15

  • Added: SlimSubscriptionFragmentV2.trial_configuration and SlimSubscriptionFragmentV2.trial_end_date

2.217.0

Released: 2024-12-08

  • Added: ability to override prices when there's a scheduled update in place

2.212.4

Released: 2024-12-3

  • Added: TrialConfiguration to getActiveSubscriptions()

2.212.1

Released: 2024-12-02

  • Added: validation that coupon name does not exceed 40 characters

2.209.0

Released: 2024-12-02

  • Added: SubscriptionCouponDiscountInput.amounts_off
  • Added: SubscriptionCouponDiscountInput.description
  • Added: SubscriptionCouponDiscountInput.duration_in_months
  • Added: SubscriptionCouponDiscountInput.name
  • Added: SubscriptionCouponDiscountInput.percent_off

2.207.0

Released: 2024-12-01

  • Added: EstimateSubscriptionInput.TrialOverrideConfigurationInput.trial_end_behavior
  • Added: PreviewSubscriptionInput.TrialOverrideConfigurationInput.trial_end_behavior

2.204.0

Released: 2024-11-24

  • Added: EstimateSubscriptionInput.TrialOverrideConfigurationInput.trial_end_date
  • Added: PreviewSubscriptionInput.TrialOverrideConfigurationInput.trial_end_date

2.199.0

Released: 2024-11-21

  • Added: support for price localization in fixed fee coupons

2.196.1

Released: 2024-11-18

  • Added: Ability to remove customer's email address by passing an empty string on updateCustomerInput.email

2.196.0

Released: 2024-11-18

  • Added: delegate_subscription_to_customer()
  • Added: transfer_subscription_to_resource()
  • 🟑 Deprecated: transfer_subscription() method (please use transfer_subscription_to_resource() instead)

2.188.0

Released: 2024-11-05

  • Added: UsageHistoryFragment.Markersto reflect information about the reset usage dates

2.178.1

Released: 2024-11-04

  • Fixed: issue where customer.discount.deleted event from Stripe isn't handled properly

2.175.4

Released: 2024-10-31

  • Added: ability to set any date in the SubscriptionFragment.trialEndDate

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.