hi,
"Price" should only represent "money" (a charge, a discount (percentage, value)) that you pay for a unit or measure (one-time charge of $100, $9.99 per month, $1 per GB...)
it seems you only want to represent the 500 minutes.
Usage/allowance "information" It's stored in a dedicated entity: product (which is the equivalent of both the productSpecification and the productOffering in TMF 620)
The product (productSpecification) describes what the product user can do, in this case, make up to 500 minutes of voice calls for an agreed price.
Note: GB922 - Product has a section (2.2.12) that explain how to model usage (aka UsageVolumeProductSpec) in great details.
I think you need:
1. A product (representing the productSpecification) that would have 2 productCharacteristics and their respective value:
- volume = '500'
- unitOfMeasure = 'minutes' (note: this UoM has nothing to do with the UoM you see in prices)
(or just one characteristic: usage = '500 Minutes')
2. a price, (representing the productOfferingPrice) that would have the price value (9.99), the currency ($), the unit of measure (per month) etc.
This will allow to contruct this expression:
The product User gets productCharacteristic: '500 Minutes' for productPrice: $9.99 per month
------------------------------
Kind regards,
Matthieu Hattab
Lyse Platform
------------------------------
Original Message:
Sent: Apr 11, 2023 09:31
From: Bartłomiej Król
Subject: TMF 637 - How to present value of allowance price
First of all thanks Vance for your reply.
In TMF637 R19.0.1 specification the unitOfMeasure field is String typed not object as in your example. So i am not sure it answers my needs.
------------------------------
Bartłomiej Król
Comarch S.A.
Original Message:
Sent: Apr 11, 2023 01:49
From: Vance Shipley
Subject: TMF 637 - How to present value of allowance price
Is this what you're looking for?
{
"@type": "ProductOffering",
"description": "1GB/month",
"productOfferingPrice": [
{
"name": "Subscription",
"description": "Monthly subscription charge",
"priceType": "recurring",
"recurringChargePeriod": "monthly",
"price": {
"taxExcludedAmount": 20.00
},
"productOfferPriceAlteration": {
"name": "Allowance",
"description": "Usage included in monthly subscription.",
"priceType": "recurring",
"recurringChargePeriod": "monthly",
"unitOfMeasure": {
"amount": 1000000000,
"units": "octets"
},
"price": {
"taxExcludedAmount": "0"
}
}
},
...
],
...
}
------------------------------
Vance Shipley
SigScale
Original Message:
Sent: Apr 03, 2023 06:15
From: Bartłomiej Król
Subject: TMF 637 - How to present value of allowance price
Hi,
I have some problem with presenting price that represents package of free minutes or data usage.
For example 500 min for national calls.
In specificationon on ProductPrice schema I found field unitOfMeasure for which description sounds: "A string. Could be minutes, GB..." so i have field for unit but i can not find proper field for value.
On Price schema there are fields:
* dutyFreeAmount - A money (Money). All taxes excluded amount (expressed in the given currency).
* taxIncludedAmount - A money (Money). All taxes included amount (expressed in the given currency).
* percentage - A float. Percentage to apply for ProdOfferPriceAlteration.
and none of these seems to match my needs.
So, should I create extension for ProductPrice to present price of such type? Or maybe I missed something?
------------------------------
Bartłomiej Król
Comarch S.A.
------------------------------