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 }); }
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 }); }
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 }); }
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 }); }