Swiftgram/submodules/TelegramUI/TelegramUI/STPCardValidationState.h
Peter b317aab568 Add 'submodules/TelegramUI/' from commit 'fa3ac0b61a27c8dd3296518a15891a6f9750cbf2'
git-subtree-dir: submodules/TelegramUI
git-subtree-mainline: 5c1613d1048026b9e00a6ce753775cef87eb53fa
git-subtree-split: fa3ac0b61a27c8dd3296518a15891a6f9750cbf2
2019-06-11 19:00:46 +01:00

19 lines
740 B
Objective-C
Executable File

//
// STPCardValidationState.h
// Stripe
//
// Created by Jack Flintermann on 8/7/15.
// Copyright (c) 2015 Stripe, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* These fields indicate whether a card field represents a valid value, invalid value, or incomplete value.
*/
typedef NS_ENUM(NSInteger, STPCardValidationState) {
STPCardValidationStateValid, // The field's contents are valid. For example, a valid, 16-digit card number.
STPCardValidationStateInvalid, // The field's contents are invalid. For example, an expiration date of "13/42".
STPCardValidationStateIncomplete, // The field's contents are not yet valid, but could be by typing additional characters. For example, a CVC of "1".
};