CustomerSelectedBundleSku

class oci.ccd_offers.models.CustomerSelectedBundleSku(**kwargs)

Bases: oci.ccd_offers.models.bundle_sku.BundleSku

A bundle SKU whose quantity is selected by the customer within the configured range. For FLEX offers, the maxQuantity should be equal to minQuantity if provided.

Attributes

QUANTITY_RULE_CUSTOMER_SELECTED str(object=’’) -> str
QUANTITY_RULE_FIXED_RATIO str(object=’’) -> str
currency_code Gets the currency_code of this BundleSku.
list_price Gets the list_price of this BundleSku.
max_quantity Gets the max_quantity of this CustomerSelectedBundleSku.
min_quantity [Required] Gets the min_quantity of this CustomerSelectedBundleSku.
quantity_rule [Required] Gets the quantity_rule of this BundleSku.
sku [Required] Gets the sku of this BundleSku.
sku_display_name Gets the sku_display_name of this BundleSku.
sku_metric Gets the sku_metric of this BundleSku.

Methods

__init__(**kwargs) Initializes a new CustomerSelectedBundleSku object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
QUANTITY_RULE_CUSTOMER_SELECTED = 'CUSTOMER_SELECTED'
QUANTITY_RULE_FIXED_RATIO = 'FIXED_RATIO'
__init__(**kwargs)

Initializes a new CustomerSelectedBundleSku object with values from keyword arguments. The default value of the quantity_rule attribute of this class is CUSTOMER_SELECTED and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • sku (str) – The value to assign to the sku property of this CustomerSelectedBundleSku.
  • sku_display_name (str) – The value to assign to the sku_display_name property of this CustomerSelectedBundleSku.
  • sku_metric (str) – The value to assign to the sku_metric property of this CustomerSelectedBundleSku.
  • quantity_rule (str) – The value to assign to the quantity_rule property of this CustomerSelectedBundleSku. Allowed values for this property are: “FIXED_RATIO”, “CUSTOMER_SELECTED”
  • list_price (str) – The value to assign to the list_price property of this CustomerSelectedBundleSku.
  • currency_code (str) – The value to assign to the currency_code property of this CustomerSelectedBundleSku.
  • min_quantity (int) – The value to assign to the min_quantity property of this CustomerSelectedBundleSku.
  • max_quantity (int) – The value to assign to the max_quantity property of this CustomerSelectedBundleSku.
currency_code

Gets the currency_code of this BundleSku. The currency code of listPrice associated with the product or SKU. Only set this property if the product or SKU is private. Tier pricing SKUs aren’t supported.

Returns:The currency_code of this BundleSku.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

list_price

Gets the list_price of this BundleSku. List price of a SKU. Only set this property if the product or SKU is private. Tier pricing SKUs aren’t supported.

Returns:The list_price of this BundleSku.
Return type:str
max_quantity

Gets the max_quantity of this CustomerSelectedBundleSku. The maximum quantity the customer can select for this bundled SKU. For FLEX offers must be equal to minQuantity if provided.

Returns:The max_quantity of this CustomerSelectedBundleSku.
Return type:int
min_quantity

[Required] Gets the min_quantity of this CustomerSelectedBundleSku. The minimum quantity the customer can select for this bundled SKU. For FLEX offers, minQuantity and maxQuantity must be equal if maxQuantity provided.

Returns:The min_quantity of this CustomerSelectedBundleSku.
Return type:int
quantity_rule

[Required] Gets the quantity_rule of this BundleSku. Determines how CCD resolves the bundled SKU quantity. FIXED_RATIO quantities are derived from the primary quantity using ratio. CUSTOMER_SELECTED quantities are provided by the customer within the configured minimum and maximum.

Allowed values for this property are: “FIXED_RATIO”, “CUSTOMER_SELECTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The quantity_rule of this BundleSku.
Return type:str
sku

[Required] Gets the sku of this BundleSku. The bundled SKU part number (prefaced with “B”). For example, the “E4 MEMORY” SKU will be bundled with the main “E4 OCPUs” SKU.

Returns:The sku of this BundleSku.
Return type:str
sku_display_name

Gets the sku_display_name of this BundleSku. The SKU display name is derived by CCD. If CCD cannot derive a unique value, it uses the caller-provided value.

Returns:The sku_display_name of this BundleSku.
Return type:str
sku_metric

Gets the sku_metric of this BundleSku. The SKU billing metric is derived by CCD. If CCD cannot derive a unique value, it uses the caller-provided value.

Returns:The sku_metric of this BundleSku.
Return type:str