public static void GetCreatePaymentProfileForm <TPaymentMethodType>(PXGraph graph, PXSelectBase <TPaymentMethodType> customerPaymentMethodView, TPaymentMethodType currentCustomerPaymentMethod) where TPaymentMethodType : CustomerPaymentMethod, new() { GenericCustomerPaymentMethodAdaper <TPaymentMethodType> adapter = new GenericCustomerPaymentMethodAdaper <TPaymentMethodType>(customerPaymentMethodView); GetCreatePaymentProfileForm(graph, adapter); }
public static void GetOrCreatePaymentProfile <TPaymentMethodType, TDetialsType>(PXGraph graph , PXSelectBase <TPaymentMethodType> customerPaymentMethodView , PXSelectBase <TDetialsType> detailsView) where TPaymentMethodType : CustomerPaymentMethod, new() where TDetialsType : CustomerPaymentMethodDetail, new() { ICustomerPaymentMethodAdapter paymentAdapter = new GenericCustomerPaymentMethodAdaper <TPaymentMethodType>(customerPaymentMethodView); ICustomerPaymentMethodDetailAdapter paymentDetailAdapter = new GenericCustomerPaymentMethodDetailAdapter <TDetialsType>(detailsView); GetOrCreatePaymentProfile(graph, paymentAdapter, paymentDetailAdapter); }
public static void GetNewPaymentProfiles <TPaymentMethodType, TDetialsType>(PXGraph graph, PXSelectBase <TPaymentMethodType> customerPaymentMethodView, PXSelectBase <TDetialsType> detailsView, TPaymentMethodType currentCustomerPaymentMethod) where TPaymentMethodType : CustomerPaymentMethod, new() where TDetialsType : CustomerPaymentMethodDetail, new() { ICustomerPaymentMethodAdapter adapter = new GenericCustomerPaymentMethodAdaper <TPaymentMethodType>(customerPaymentMethodView); ICustomerPaymentMethodDetailAdapter detailAdapter = new GenericCustomerPaymentMethodDetailAdapter <TDetialsType>(detailsView); GetNewPaymentProfiles(graph, adapter, detailAdapter); }