VGSExpDateSeparateSerializer
public struct VGSExpDateSeparateSerializer : VGSFormatSerializerProtocol
Expiration Date Separate serializer, split date string to components with separate fieldNames
-
Field Name that will be used as a JSON key with month value from expDate string on send request.
Declaration
Swift
public let monthFieldName: String
-
Field Name that will be used as a JSON key with year value from expDate string on send request.
Declaration
Swift
public let yearFieldName: String
-
Initialization
Declaration
Swift
public init(monthFieldName: String, yearFieldName: String)
Parameters
monthFieldName
key, that should be associated with month value in request JSON.
yearFieldName
key, that should be associated with year value in request JSON.