# BillingApi::DiscountDetails ## Properties | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **code** | **String** | A unique code associated with the discount. | | | **type** | **String** | The type of discount applied. | | | **value** | **Float** | The value or amount of the discount. The interpretation of this value depends on the 'type' of discount. | | ## Example ```ruby require 'pnap_billing_api' instance = BillingApi::DiscountDetails.new( code: new-year-2022-monthly, type: PRODUCT_CATEGORY_PERCENTAGE, value: 20.5 ) ```