UnrestrictedData
@interface UnrestrictedData : TemplateData
This class is to store Unreserved Template Data of Push Payment Data tags 80-99 and to store Unreserved Template Data of Additional Data tags 50-99.
Note
To assign Application Identifier (tag 00), use AID property from TemplateData class.-
Get Context Specific Data value for tag string. The tags are from 1 to 99.
Declaration
Objective-C
- (NSString *_Nullable) getContextSpecificDataForTag:(NSString *_Nonnull)tag error:(NSError *_Nullable *_Nullable)error;
Swift
func getContextSpecificData(forTag tag: String) throws -> String
Parameters
tag
NSString* tag for which to get value.
Return Value
Value if found else
nil
-
Set Context Specific Data value for tag string. The tags are from 1 to 99.
Declaration
Objective-C
- (BOOL)setContextSpecificData:(NSString *_Nonnull)value forTag:(NSString *_Nonnull)tag error:(NSError *_Nullable *_Nullable)error;
Swift
func setContextSpecific(_ value: String, forTag tag: String) throws
Parameters
value
NSString* to set
tag
NSString* tag to set the value of
-
Set Context Specific Data value for tag string. This method is similar to (setContextSpecificData:error:). In this method user do not specify the tag, the function will determine the tag. The tags are from 1 to 99.
Declaration
Objective-C
- (BOOL)setDynamicContextSpecificData:(NSString *_Nonnull)value error:(NSError *_Nullable *_Nullable)error;
Swift
func setDynamicContextSpecific(_ value: String) throws
Parameters
value
NSString* to be inserted
-
Get Context Specific Data all available tag. The return value can then be use to get the value by calling method (getTagInfoValueForTagString:error:). The tags are from 1 to 99.
Declaration
Objective-C
- (NSArray<NSString *> *_Nullable)getAllDynamicContextSpecificDataTags;
Swift
func getAllDynamicContextSpecificDataTags() -> [String]?
Return Value
NSArray of available tag in string