Sha256: 1949a8fa1e564278a5a47f389c533acc990813746e24cbcccae49ae24cdedb09

Contents?: true

Size: 1.83 KB

Versions: 7

Compression:

Stored size: 1.83 KB

Contents

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module OpenApiSDK
  module Operations
  

    class CreateCustomerDiscount < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }

      field :coupon_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponId') } }

      field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } }

      field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } }

      field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :interval, ::OpenApiSDK::Operations::CreateCustomerInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::CreateCustomerInterval, false) } }

      field :type, ::OpenApiSDK::Operations::CreateCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::CreateCustomerType, false) } }


      sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::CreateCustomerInterval, type: ::OpenApiSDK::Operations::CreateCustomerType).void }
      def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil)
        @amount = amount
        @coupon_id = coupon_id
        @coupon_test_id = coupon_test_id
        @duration = duration
        @id = id
        @interval = interval
        @type = type
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dub-0.2.2.pre.alpha.55 lib/open_api_sdk/models/operations/createcustomer_discount.rb
dub-0.2.2.pre.alpha.54 lib/open_api_sdk/models/operations/createcustomer_discount.rb
dub-0.2.2.pre.alpha.53 lib/open_api_sdk/models/operations/createcustomer_discount.rb
dub-0.2.2.pre.alpha.52 lib/open_api_sdk/models/operations/createcustomer_discount.rb
dub-0.2.2.pre.alpha.51 lib/open_api_sdk/models/operations/createcustomer_discount.rb
dub-0.2.2.pre.alpha.50 lib/open_api_sdk/models/operations/createcustomer_discount.rb
dub-0.2.2.pre.alpha.49 lib/open_api_sdk/models/operations/createcustomer_discount.rb