Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 1.16 KB

ChargePropertiesGraduatedPercentageRangesInner.md

File metadata and controls

24 lines (18 loc) · 1.16 KB

LagoAPI::ChargePropertiesGraduatedPercentageRangesInner

Properties

Name Type Description Notes
from_value Integer Specifies the lower value of a tier for a `graduated_percentage` charge model. It must be either 0 or the previous range's `to_value + 1` to maintain the proper sequence of values.
to_value Integer Specifies the highest value of a tier for a `graduated_percentage` charge model. - This value must be higher than the from_value of the same tier. - This value must be null for the last tier.
rate String The percentage rate that is applied to the amount of each transaction in the tier for a `graduated_percentage` charge model. It is expressed as a decimal value.
flat_amount String The flat amount for a whole tier, excluding tax, for a `graduated_percentage` charge model. It is expressed as a decimal value.

Example

require 'lago_ruby'

instance = LagoAPI::ChargePropertiesGraduatedPercentageRangesInner.new(
  from_value: 0,
  to_value: 10,
  rate: 1,
  flat_amount: 10
)