Olivier,
I read the JIRA issue. it shows an example from TMF620 and application duration.
If this helps, this is how we adjusted TMF637 and we us both applicationDuration
and validFor
for the priceAlteration sub-resource:
(note that we don't use @schemaLocation, @type, @referredType and @baseType, so we removed them.)
{
"productPrice": [
{
"id": "47020611",
"name": "AIB_BB_500",
"priceType": "recurring",
"recurringChargePeriod": "month",
"price": {
"taxIncludedAmount": {
"value": 979,
"unit": "NOK"
}
},
"priceAlteration": [
{
"id": "47020602",
"name": "AIB_BB_500_FREE_OV",
"priceType": "recurring",
"recurringChargePeriod": "month",
"applicationDuration": {
"amount": 2,
"units": "Month"
},
"validFor": {
"startDateTime": "2024-02-07T09:47:52+01:00",
"endDateTime": "2024-05-07T09:47:52+02:00"
},
"priority": 1,
"price": {
"taxIncludedAmount": {
"value": -979,
"unit": "NOK"
}
}
}
]
}
]
}