FundingOption
protocol FundingOption
Funding Option
-
The complete list of plans to which the PlanTypes refers
Declaration
Swift
var allPlans: [Plan] { get }
-
The available amount for this funding option Typically non-null for
PAYPAL_BALANCE
instrumentsDeclaration
Swift
var availableAmount: UnitAmount? { get }
-
The funding instrument
Declaration
Swift
var fundingInstrument: FundingInstrument { get }
-
Funding option identifier
Declaration
Swift
var id: String? { get }
-
A mapping from plan id to plan for ease of reference, not part of the GraphQL payload but computed on FundingOption creation
Declaration
Swift
var planMap: [String : Plan] { get }
-
Maps to the PlanTypes object in GraphQL,
To do
this is deprecated and we will need to migrate in the futureDeclaration
Swift
var plans: PlanTypes? { get }