Reference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::PercentageAdjustment.
An adjustment that applies a flat markup or markdown to an entire bill.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#percentage
defpercentage()->::Google::Type::Decimal
Returns
(::Google::Type::Decimal) — The percentage of the bill to adjust.
For example:
Mark down by 1% => "-1.00"
Mark up by 1% => "1.00"
Pass-Through => "0.00"
#percentage=
defpercentage=(value)->::Google::Type::Decimal
Parameter
value (::Google::Type::Decimal) — The percentage of the bill to adjust.
For example:
Mark down by 1% => "-1.00"
Mark up by 1% => "1.00"
Pass-Through => "0.00"
Returns
(::Google::Type::Decimal) — The percentage of the bill to adjust.
For example:
Mark down by 1% => "-1.00"
Mark up by 1% => "1.00"
Pass-Through => "0.00"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Channel V1 API - Class Google::Cloud::Channel::V1::PercentageAdjustment (v2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [2.2.0](/ruby/docs/reference/google-cloud-channel-v1/2.2.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [2.1.0](/ruby/docs/reference/google-cloud-channel-v1/2.1.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [2.0.1](/ruby/docs/reference/google-cloud-channel-v1/2.0.1/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [1.3.0](/ruby/docs/reference/google-cloud-channel-v1/1.3.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [1.2.0](/ruby/docs/reference/google-cloud-channel-v1/1.2.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [1.1.0](/ruby/docs/reference/google-cloud-channel-v1/1.1.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [1.0.1](/ruby/docs/reference/google-cloud-channel-v1/1.0.1/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.24.0](/ruby/docs/reference/google-cloud-channel-v1/0.24.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.23.2](/ruby/docs/reference/google-cloud-channel-v1/0.23.2/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.22.1](/ruby/docs/reference/google-cloud-channel-v1/0.22.1/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.21.0](/ruby/docs/reference/google-cloud-channel-v1/0.21.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.20.0](/ruby/docs/reference/google-cloud-channel-v1/0.20.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.19.0](/ruby/docs/reference/google-cloud-channel-v1/0.19.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.18.0](/ruby/docs/reference/google-cloud-channel-v1/0.18.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.17.0](/ruby/docs/reference/google-cloud-channel-v1/0.17.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.16.0](/ruby/docs/reference/google-cloud-channel-v1/0.16.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.15.0](/ruby/docs/reference/google-cloud-channel-v1/0.15.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.14.0](/ruby/docs/reference/google-cloud-channel-v1/0.14.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.13.0](/ruby/docs/reference/google-cloud-channel-v1/0.13.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.12.0](/ruby/docs/reference/google-cloud-channel-v1/0.12.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.11.0](/ruby/docs/reference/google-cloud-channel-v1/0.11.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.10.0](/ruby/docs/reference/google-cloud-channel-v1/0.10.0/Google-Cloud-Channel-V1-PercentageAdjustment)\n- [0.9.5](/ruby/docs/reference/google-cloud-channel-v1/0.9.5/Google-Cloud-Channel-V1-PercentageAdjustment) \nReference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::PercentageAdjustment.\n\nAn adjustment that applies a flat markup or markdown to an entire bill. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #percentage\n\n def percentage() -\u003e ::Google::Type::Decimal\n\n**Returns**\n\n- ([::Google::Type::Decimal](./Google-Type-Decimal)) --- The percentage of the bill to adjust. For example: Mark down by 1% =\\\u003e \"-1.00\" Mark up by 1% =\\\u003e \"1.00\" Pass-Through =\\\u003e \"0.00\"\n\n### #percentage=\n\n def percentage=(value) -\u003e ::Google::Type::Decimal\n\n**Parameter**\n\n- **value** ([::Google::Type::Decimal](./Google-Type-Decimal)) --- The percentage of the bill to adjust. For example: Mark down by 1% =\\\u003e \"-1.00\" Mark up by 1% =\\\u003e \"1.00\" Pass-Through =\\\u003e \"0.00\" \n**Returns**\n\n- ([::Google::Type::Decimal](./Google-Type-Decimal)) --- The percentage of the bill to adjust. For example: Mark down by 1% =\\\u003e \"-1.00\" Mark up by 1% =\\\u003e \"1.00\" Pass-Through =\\\u003e \"0.00\""]]