-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DefaultSettings to Subscription Schedules #987
Add DefaultSettings to Subscription Schedules #987
Conversation
subschedule.go
Outdated
AmountGTE int64 `json:"amount_gte"` | ||
ResetBillingCycleAnchor bool `json:"reset_billing_cycle_anchor"` | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be here. Sharing was done before and used the subscription's one SubscriptionBillingThresholdsParams
and sharing is what the spec says to do (and what java does). Si you should remove that class and use SubscriptionBillingThresholdsParams
instead.
subschedule.go
Outdated
// SubscriptionScheduleDefaultSettings is a structure representing the | ||
// subscription schedule’s default settings. | ||
type SubscriptionScheduleDefaultSettings struct { | ||
BillingThresholds *SubscriptionScheduleBillingThresholds `json:"billing_thresholds"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above. That class should not be here
subschedule.go
Outdated
Params `form:"*"` | ||
Customer *string `form:"customer"` | ||
DefaultSettings *SubscriptionScheduleDefaultSettingsParams `form:"default_settings"` | ||
DefaultSource *string `form:"default_source"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should remove DefaultSource
Looked and compared with stripe-dotnet and the changes lgtm. Assigning to @ob-stripe for final review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compared to release notes and this LGTM.
* added caching service to mapper * added integer to list * merged in main and cleaned up PR * more cleanup * reverted class change * silenced CI failures for mapper * updated git ignore * Sanitize duration_in_months always (#985) * Support amending orders with coupons (#956) * Productionize coupon order trigger (#934) * Ensure updateCoupons trigger is deterministic (#988) * Update 'add_invoice_items.period.end.type' on proration invoices (#987) * Backend proration with amendment (#847) * Add class access for coupon handler (#990) * Manual Translation in Sync Preferences (#992) * passing in mapper to amendment funcs * removed extra backoff * return empty list for non supported cache types --------- Co-authored-by: Nada Ismail <[email protected]> Co-authored-by: jmather-c <[email protected]> Co-authored-by: mbianco-stripe <[email protected]>
r? @remi-stripe
cc @stripe/api-libraries
Updates API version to:
2019-11-05
Updates stripe-mock minimum version to
0.71.0
Adds:
DefaultSettings
withBillingThresholds
,CollectionMethod
,DefaultPaymentMethod
,InvoiceSettings
toSubscriptionSchedule
Removes:
BillingThresholds
,CollectionMethod
,DefaultPaymentMethod
,DefaultSource
,InvoiceSettings
fromSubscriptionSchedule