STPConnectAccountParams
public class STPConnectAccountParams : NSObject
extension STPConnectAccountParams: STPFormEncodable
Parameters for creating a Connect Account token.
-
Boolean indicating that the Terms Of Service were shown to the user & the user accepted them.
Declaration
Swift
@objc public let tosShownAndAccepted: NSNumber?
-
The business type.
Declaration
Swift
@objc public let businessType: STPConnectAccountBusinessType
-
Information about the individual represented by the account.
Declaration
Swift
@objc public let individual: STPConnectAccountIndividualParams?
-
Information about the company or business.
Declaration
Swift
@objc public let company: STPConnectAccountCompanyParams?
-
Declaration
Swift
@objc public var additionalAPIParameters: [AnyHashable : Any]
-
Initialize
STPConnectAccountParams
with tosShownAndAccepted = YES This method cannot be called withwasAccepted == NO
, guarded by aNSParameterAssert()
. Use this init method if you want to set thetosShownAndAccepted
parameter. If you don’t, use theinitWithIndividual:
version instead.Declaration
Swift
@objc public init?( tosShownAndAccepted wasAccepted: Bool, individual: STPConnectAccountIndividualParams )
Parameters
wasAccepted
Must be YES, but only if the user was shown & accepted the ToS
individual
Information about the person represented by the account. See
STPConnectAccountIndividualParams
. -
Initialize
STPConnectAccountParams
with tosShownAndAccepted = YES This method cannot be called withwasAccepted == NO
, guarded by aNSParameterAssert()
. Use this init method if you want to set thetosShownAndAccepted
parameter. If you don’t, use theinitWithCompany:
version instead.Declaration
Swift
@objc public init?( tosShownAndAccepted wasAccepted: Bool, company: STPConnectAccountCompanyParams )
Parameters
wasAccepted
Must be YES, but only if the user was shown & accepted the ToS
company
Information about the company or business. See
STPConnectAccountCompanyParams
. -
Initialize
STPConnectAccountParams
with the providedindividual
dictionary.Declaration
Swift
@objc public init(individual: STPConnectAccountIndividualParams)
Parameters
individual
Information about the person represented by the account This init method cannot change the
tosShownAndAccepted
parameter. UseinitWithTosShownAndAccepted:individual:
instead if you need to do that. -
Initialize
STPConnectAccountParams
with the providedcompany
dictionary.Declaration
Swift
@objc public init(company: STPConnectAccountCompanyParams)
Parameters
company
Information about the company or business This init method cannot change the
tosShownAndAccepted
parameter. UseinitWithTosShownAndAccepted:company:
instead if you need to do that.
-
Declaration
Swift
@objc public class func rootObjectName() -> String?
-
Declaration
Swift
@objc public class func propertyNamesToFormFieldNamesMapping() -> [String : String]