Sha256: ffa5aa7615b388d1ca248623ac8d30a73ab6a413eec1948d9b0082c37b00d35c
Contents?: true
Size: 1.81 KB
Versions: 10
Compression:
Stored size: 1.81 KB
Contents
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. # typed: true # frozen_string_literal: true module OpenApiSDK module Operations class GetCustomerDiscount < ::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::GetCustomerInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomerInterval, false) } } field :type, ::OpenApiSDK::Operations::GetCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomerType, false) } } sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::GetCustomerInterval, type: ::OpenApiSDK::Operations::GetCustomerType).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
10 entries across 10 versions & 1 rubygems