| /****************************************************************************** |
| * Copyright (c) 2000-2019 Ericsson AB |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html |
| * |
| * Contributors: |
| * Gabor Szalai - initial implementation and initial documentation |
| ******************************************************************************/ |
| // |
| // File: TS29594_Nchf_SpendingLimitControl.ttcn |
| // Description: Type definitions for 3GPP TS29594 CommonData |
| /////////////////////////////////////////////// |
| module TS29594_Nchf_SpendingLimitControl { |
| |
| import from TS29571_CommonData all |
| |
| external function f_enc_SpendingLimitContext(in SpendingLimitContext pdu) return octetstring |
| with { extension "prototype(convert) encode(JSON)" } |
| |
| external function f_dec_SpendingLimitContext(in octetstring stream, out SpendingLimitContext pdu) return integer |
| with { extension "prototype(backtrack) decode(JSON)" } |
| |
| external function f_enc_SpendingLimitStatus(in SpendingLimitStatus pdu) return octetstring |
| with { extension "prototype(convert) encode(JSON)" } |
| |
| external function f_dec_SpendingLimitStatus(in octetstring stream, out SpendingLimitStatus pdu) return integer |
| with { extension "prototype(backtrack) decode(JSON)" } |
| |
| external function f_enc_SubscriptionTerminationInfo(in SubscriptionTerminationInfo pdu) return octetstring |
| with { extension "prototype(convert) encode(JSON)" } |
| |
| external function f_dec_SubscriptionTerminationInfo(in octetstring stream, out SubscriptionTerminationInfo pdu) return integer |
| with { extension "prototype(backtrack) decode(JSON)" } |
| |
| |
| type set SpendingLimitContext { |
| TS29571_CommonData.Supi supi optional, |
| set of PolicyCounterId policyCounterIds optional, |
| TS29571_CommonData.Uri notificationUri optional, |
| TS29571_CommonData.SupportedFeatures supportedFeatures optional |
| } |
| |
| type set SpendingLimitStatus { |
| TS29571_CommonData.Supi supi optional, |
| set of record { |
| universal charstring key, |
| PolicyCounterInfo additionalProperties |
| } statusInfos, |
| TS29571_CommonData.SupportedFeatures supportedFeatures optional |
| } with { |
| variant (statusInfos) "as map" |
| } |
| |
| type set PolicyCounterInfo { |
| PolicyCounterId policyCounterId, |
| charstring currentStatus, |
| set of PendingPolicyCounterStatus penPolCounterStatuses optional |
| } |
| |
| type set PendingPolicyCounterStatus { |
| charstring policyCounterStatus, |
| TS29571_CommonData.DateTime activationTime |
| } |
| |
| type charstring PolicyCounterId |
| |
| type set SubscriptionTerminationInfo { |
| TS29571_CommonData.DateTime supi, |
| TerminationCause termCause optional |
| } |
| |
| type enumerated TerminationCause_enum { REMOVED_SUBSCRIBER} |
| |
| type union TerminationCause { |
| TerminationCause_enum enum_val, |
| charstring other_val |
| } with { |
| variant "JSON: as value" |
| } |
| |
| |
| |
| |
| |
| |
| } with { |
| encode "JSON" |
| } |