Class: Google::Apis::GanV1beta1::CcOffer::DefaultFee

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/gan_v1beta1/classes.rb,
generated/google/apis/gan_v1beta1/representations.rb,
generated/google/apis/gan_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DefaultFee

Returns a new instance of DefaultFee



679
680
681
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 679

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#categoryString

The type of charge, for example Purchases. Corresponds to the JSON property category

Returns:

  • (String)


660
661
662
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 660

def category
  @category
end

#max_rateFloat

The highest rate the issuer may charge for defaulting on debt in this category. Expressed as an absolute number, not as a percentage. Corresponds to the JSON property maxRate

Returns:

  • (Float)


666
667
668
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 666

def max_rate
  @max_rate
end

#min_rateFloat

The lowest rate the issuer may charge for defaulting on debt in this category. Expressed as an absolute number, not as a percentage. Corresponds to the JSON property minRate

Returns:

  • (Float)


672
673
674
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 672

def min_rate
  @min_rate
end

#rate_typeString

Fixed or variable. Corresponds to the JSON property rateType

Returns:

  • (String)


677
678
679
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 677

def rate_type
  @rate_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



684
685
686
687
688
689
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 684

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @max_rate = args[:max_rate] if args.key?(:max_rate)
  @min_rate = args[:min_rate] if args.key?(:min_rate)
  @rate_type = args[:rate_type] if args.key?(:rate_type)
end