2,373 bytes added
, 11:06, 2 June 2014
{{Api_DataType_Spec
|Description=Represents a PricingModels object.
Pricing model is object who has information about what price should be applied to a product and what rule should be use to show the information as if the Pricing is for some [[UserType]] as TEF user or No-TEF user. Has the information about the [[RecurrenceType]] (Daily, Monthly, etc) and [[Quality]].
Almost all PricingModel is assigned to a [[PricingModelGroup]], even though is possible assign a content direct to one pricing model.
|Members=
{{{!}} border="2" style="width:800px" cellspacing="0" cellpadding="10"
{{!}}- style="background:#88ccff;font-size:110%"
! Field
! Data Type
! Description
{{!}}- valign="top"
! Chargingclass
{{!}} String
{{!}}
{{!}}- valign="top"
! DevicesType
{{!}} [[DeviceType]]
{{!}}
{{!}}- valign="top"
! GrantAllDevices
{{!}} bool
{{!}} Set true or false if all devices will be available for this Pricing Model.
{{!}}- valign="top"
! ID
{{!}} int
{{!}} A unique id to identify a pricing model.
{{!}}- valign="top"
! IsRecurring
{{!}} bool
{{!}} Set if the pricing model will be recur in a period specified in [[RecurrenceType]].
{{!}}- valign="top"
! Price
{{!}} doble
{{!}} A value to be used in a product to indicate the value that should be payed for that.
{{!}}- valign="top"
! Quality
{{!}} [[Quality]]
{{!}}
{{!}}- valign="top"
! RecurrenceType
{{!}} [[RecurrenceType]]
{{!}} Indicate the period should use in recurring payment.
{{!}}- valign="top"
! Title
{{!}} String
{{!}} Name of the pricing model.
{{!}}- valign="top"
! UserType
{{!}} [[UserType]]
{{!}} Set if the pricing model could be used with TEF user or NO-TEF user or both.
{{!}}- valign="top"
{{!}}}
|Example=
<syntaxhighlight lang="javascript">
{
"ID": 246,
"Title": "Estreia HD",
"Chargingclass": "Locadora Virtual HD",
"UserType": 1,
"Price": 9.9,
"RecurrenceType": 1,
"DevicesType": [],
"Isrecurring": false,
"GrantAllDevices": true,
"Quality": 2
}
</syntaxhighlight>
|KnownIssues=
None
|VersionHistory=
{{{!}} border="2" style="width:800px;" cellpadding="5" cellspacing="0"
{{!}}- style="background:#88ccff;font-size:110%"
! API Version Number
! Change description
! Changes author
{{!}}- valign="top"
! 1.0
{{!}} Initial data type implementation
{{!}} Harley Cabral
{{!}}- valign="top"
{{!}}}
|SeeAlso=
}}