@@ -16512,14 +16512,31 @@ module Stripe
1651216512 end
1651316513 end
1651416514 class ServicePeriod < ::Stripe::StripeObject
16515+ class Iterations < ::Stripe::StripeObject
16516+ # Attribute for field count
16517+ sig { returns(T.nilable(Integer)) }
16518+ def count; end
16519+ # Attribute for field type
16520+ sig { returns(String) }
16521+ def type; end
16522+ def self.inner_class_types
16523+ @inner_class_types = {}
16524+ end
16525+ def self.field_remappings
16526+ @field_remappings = {}
16527+ end
16528+ end
1651516529 # Attribute for field interval
1651616530 sig { returns(String) }
1651716531 def interval; end
1651816532 # Attribute for field interval_count
1651916533 sig { returns(Integer) }
1652016534 def interval_count; end
16535+ # Attribute for field iterations
16536+ sig { returns(Iterations) }
16537+ def iterations; end
1652116538 def self.inner_class_types
16522- @inner_class_types = {}
16539+ @inner_class_types = {iterations: Iterations }
1652316540 end
1652416541 def self.field_remappings
1652516542 @field_remappings = {}
@@ -104799,6 +104816,20 @@ module Stripe
104799104816 def initialize(configuration: nil, id: nil); end
104800104817 end
104801104818 class ServicePeriod < ::Stripe::RequestParams
104819+ class Iterations < ::Stripe::RequestParams
104820+ # The number of iterations the service period will repeat for. Only used when type is `count`, defaults to 1.
104821+ sig { returns(T.nilable(Integer)) }
104822+ def count; end
104823+ sig { params(_count: T.nilable(Integer)).returns(T.nilable(Integer)) }
104824+ def count=(_count); end
104825+ # The type of iterations, defaults to `count` if omitted.
104826+ sig { returns(String) }
104827+ def type; end
104828+ sig { params(_type: String).returns(String) }
104829+ def type=(_type); end
104830+ sig { params(count: T.nilable(Integer), type: String).void }
104831+ def initialize(count: nil, type: nil); end
104832+ end
104802104833 # Specifies coupon frequency. Either `day`, `week`, `month` or `year`.
104803104834 sig { returns(String) }
104804104835 def interval; end
@@ -104809,8 +104840,17 @@ module Stripe
104809104840 def interval_count; end
104810104841 sig { params(_interval_count: Integer).returns(Integer) }
104811104842 def interval_count=(_interval_count); end
104812- sig { params(interval: String, interval_count: Integer).void }
104813- def initialize(interval: nil, interval_count: nil); end
104843+ # Specifies the number of times the coupon is contiguously applied.
104844+ sig { returns(T.nilable(CouponCreateParams::ServicePeriod::Iterations)) }
104845+ def iterations; end
104846+ sig {
104847+ params(_iterations: T.nilable(CouponCreateParams::ServicePeriod::Iterations)).returns(T.nilable(CouponCreateParams::ServicePeriod::Iterations))
104848+ }
104849+ def iterations=(_iterations); end
104850+ sig {
104851+ params(interval: String, interval_count: Integer, iterations: T.nilable(CouponCreateParams::ServicePeriod::Iterations)).void
104852+ }
104853+ def initialize(interval: nil, interval_count: nil, iterations: nil); end
104814104854 end
104815104855 # A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
104816104856 sig { returns(T.nilable(Integer)) }
0 commit comments