Ejemplo n.º 1
0
 public static PurchaseForm CoachingModelToPurchaseForm(CoachingModel coachingModel, string pricing, PersonalInformation PersonalInformation, string ApprovalURL = null, string CaptureURL = null)
 {
     return(new PurchaseForm
     {
         PurchaseType = Utils.PurchaseTypeEnum.PurchaseType.Coaching,
         CoachingModel = coachingModel,
         Pricing = pricing,
         PersonalInformation = PersonalInformation,
         PayPalApproval = ApprovalURL,
         PayPalCapture = CaptureURL
     });
 }
Ejemplo n.º 2
0
 public static PurchaseForm PlacementMatchesModelToPurchaseForm(PlacementMatchesModel placementMatchesModel, string pricing, PersonalInformation PersonalInformation, string ApprovalURL = null, string CaptureURL = null)
 {
     return(new PurchaseForm
     {
         PlacementMatchesModel = placementMatchesModel,
         PurchaseType = PurchaseType.PlacementMatches,
         Pricing = pricing,
         PersonalInformation = PersonalInformation,
         PayPalApproval = ApprovalURL,
         PayPalCapture = CaptureURL
     });
 }
Ejemplo n.º 3
0
 public static PurchaseForm BoostingModelToPurchaseForm(BoostingModel boostingModel, string pricing, PersonalInformation PersonalInformation, string ApprovalURL = null, string CaptureURL = null)
 {
     return(new PurchaseForm
     {
         BoostingModel = boostingModel,
         Pricing = pricing,
         PurchaseType = PurchaseType.SoloBoosting,
         PersonalInformation = PersonalInformation,
         PayPalApproval = ApprovalURL,
         PayPalCapture = CaptureURL
     });
 }
Ejemplo n.º 4
0
 public static PurchaseForm TFTPlacementModelPurchaseForm(TFTPlacementModel TFTPlacementModel, string pricing, PersonalInformation PersonalInformation, string ApprovalURL = null, string CaptureURL = null)
 {
     return(new PurchaseForm
     {
         TFTPlacementModel = TFTPlacementModel,
         PurchaseType = PurchaseType.TFTPlacement,
         Pricing = pricing,
         PersonalInformation = PersonalInformation,
         PayPalApproval = ApprovalURL,
         PayPalCapture = CaptureURL
     });
 }