001// --------------------------------------------------------------------------------
002// Copyright 2002-2026 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016
017package com.echothree.control.user.payment.server;
018
019import com.echothree.control.user.payment.common.PaymentRemote;
020import com.echothree.control.user.payment.common.form.*;
021import com.echothree.control.user.payment.common.result.*;
022import com.echothree.control.user.payment.server.command.*;
023import com.echothree.model.data.user.common.pk.UserVisitPK;
024import com.echothree.util.common.command.CommandResult;
025import com.echothree.util.common.command.VoidResult;
026import javax.ejb.Stateless;
027import javax.enterprise.inject.spi.CDI;
028
029@Stateless
030public class PaymentBean
031        extends PaymentFormsImpl
032        implements PaymentRemote, PaymentLocal {
033    
034    // -------------------------------------------------------------------------
035    //   Testing
036    // -------------------------------------------------------------------------
037    
038    @Override
039    public String ping() {
040        return "PaymentBean is alive!";
041    }
042    
043    // --------------------------------------------------------------------------------
044    //   Billing Account Role Type Types
045    // --------------------------------------------------------------------------------
046    
047    @Override
048    public CommandResult<VoidResult> createBillingAccountRoleType(UserVisitPK userVisitPK, CreateBillingAccountRoleTypeForm form) {
049        return CDI.current().select(CreateBillingAccountRoleTypeCommand.class).get().run(userVisitPK, form);
050    }
051    
052    // --------------------------------------------------------------------------------
053    //   Billing Account Role Type Descriptions
054    // --------------------------------------------------------------------------------
055    
056    @Override
057    public CommandResult<VoidResult> createBillingAccountRoleTypeDescription(UserVisitPK userVisitPK, CreateBillingAccountRoleTypeDescriptionForm form) {
058        return CDI.current().select(CreateBillingAccountRoleTypeDescriptionCommand.class).get().run(userVisitPK, form);
059    }
060    
061    // -------------------------------------------------------------------------
062    //   Payment Method Types
063    // -------------------------------------------------------------------------
064
065    @Override
066    public CommandResult<CreatePaymentMethodTypeResult> createPaymentMethodType(UserVisitPK userVisitPK, CreatePaymentMethodTypeForm form) {
067        return CDI.current().select(CreatePaymentMethodTypeCommand.class).get().run(userVisitPK, form);
068    }
069
070    @Override
071    public CommandResult<GetPaymentMethodTypesResult> getPaymentMethodTypes(UserVisitPK userVisitPK, GetPaymentMethodTypesForm form) {
072        return CDI.current().select(GetPaymentMethodTypesCommand.class).get().run(userVisitPK, form);
073    }
074
075    @Override
076    public CommandResult<GetPaymentMethodTypeResult> getPaymentMethodType(UserVisitPK userVisitPK, GetPaymentMethodTypeForm form) {
077        return CDI.current().select(GetPaymentMethodTypeCommand.class).get().run(userVisitPK, form);
078    }
079
080    @Override
081    public CommandResult<GetPaymentMethodTypeChoicesResult> getPaymentMethodTypeChoices(UserVisitPK userVisitPK, GetPaymentMethodTypeChoicesForm form) {
082        return CDI.current().select(GetPaymentMethodTypeChoicesCommand.class).get().run(userVisitPK, form);
083    }
084
085    @Override
086    public CommandResult<VoidResult> setDefaultPaymentMethodType(UserVisitPK userVisitPK, SetDefaultPaymentMethodTypeForm form) {
087        return CDI.current().select(SetDefaultPaymentMethodTypeCommand.class).get().run(userVisitPK, form);
088    }
089
090    @Override
091    public CommandResult<EditPaymentMethodTypeResult> editPaymentMethodType(UserVisitPK userVisitPK, EditPaymentMethodTypeForm form) {
092        return CDI.current().select(EditPaymentMethodTypeCommand.class).get().run(userVisitPK, form);
093    }
094
095    @Override
096    public CommandResult<VoidResult> deletePaymentMethodType(UserVisitPK userVisitPK, DeletePaymentMethodTypeForm form) {
097        return CDI.current().select(DeletePaymentMethodTypeCommand.class).get().run(userVisitPK, form);
098    }
099
100    // -------------------------------------------------------------------------
101    //   Payment Method Type Descriptions
102    // -------------------------------------------------------------------------
103
104    @Override
105    public CommandResult<VoidResult> createPaymentMethodTypeDescription(UserVisitPK userVisitPK, CreatePaymentMethodTypeDescriptionForm form) {
106        return CDI.current().select(CreatePaymentMethodTypeDescriptionCommand.class).get().run(userVisitPK, form);
107    }
108
109    @Override
110    public CommandResult<GetPaymentMethodTypeDescriptionsResult> getPaymentMethodTypeDescriptions(UserVisitPK userVisitPK, GetPaymentMethodTypeDescriptionsForm form) {
111        return CDI.current().select(GetPaymentMethodTypeDescriptionsCommand.class).get().run(userVisitPK, form);
112    }
113
114    @Override
115    public CommandResult<EditPaymentMethodTypeDescriptionResult> editPaymentMethodTypeDescription(UserVisitPK userVisitPK, EditPaymentMethodTypeDescriptionForm form) {
116        return CDI.current().select(EditPaymentMethodTypeDescriptionCommand.class).get().run(userVisitPK, form);
117    }
118
119    @Override
120    public CommandResult<VoidResult> deletePaymentMethodTypeDescription(UserVisitPK userVisitPK, DeletePaymentMethodTypeDescriptionForm form) {
121        return CDI.current().select(DeletePaymentMethodTypeDescriptionCommand.class).get().run(userVisitPK, form);
122    }
123
124    // -------------------------------------------------------------------------
125    //   Payment Method Type PartyTypes
126    // -------------------------------------------------------------------------
127
128    @Override
129    public CommandResult<CreatePaymentMethodTypePartyTypeResult> createPaymentMethodTypePartyType(UserVisitPK userVisitPK, CreatePaymentMethodTypePartyTypeForm form) {
130        return CDI.current().select(CreatePaymentMethodTypePartyTypeCommand.class).get().run(userVisitPK, form);
131    }
132
133//    @Override
134//    public CommandResult<GetPaymentMethodTypePartyTypesResult> getPaymentMethodTypePartyTypes(UserVisitPK userVisitPK, GetPaymentMethodTypePartyTypesForm form) {
135//        return CDI.current().select(GetPaymentMethodTypePartyTypesCommand.class).get().run(userVisitPK, form);
136//    }
137//
138//    @Override
139//    public CommandResult<GetPaymentMethodTypePartyTypeResult> getPaymentMethodTypePartyType(UserVisitPK userVisitPK, GetPaymentMethodTypePartyTypeForm form) {
140//        return CDI.current().select(GetPaymentMethodTypePartyTypeCommand.class).get().run(userVisitPK, form);
141//    }
142//
143//    @Override
144//    public CommandResult<GetPaymentMethodTypePartyTypeChoicesResult> getPaymentMethodTypePartyTypeChoices(UserVisitPK userVisitPK, GetPaymentMethodTypePartyTypeChoicesForm form) {
145//        return CDI.current().select(GetPaymentMethodTypePartyTypeChoicesCommand.class).get().run(userVisitPK, form);
146//    }
147//
148//    @Override
149//    public CommandResult<NoResult> setDefaultPaymentMethodTypePartyType(UserVisitPK userVisitPK, SetDefaultPaymentMethodTypePartyTypeForm form) {
150//        return CDI.current().select(SetDefaultPaymentMethodTypePartyTypeCommand.class).get().run(userVisitPK, form);
151//    }
152//
153//    @Override
154//    public CommandResult<EditPaymentMethodTypePartyTypeResult> editPaymentMethodTypePartyType(UserVisitPK userVisitPK, EditPaymentMethodTypePartyTypeForm form) {
155//        return CDI.current().select(EditPaymentMethodTypePartyTypeCommand.class).get().run(userVisitPK, form);
156//    }
157//
158//    @Override
159//    public CommandResult<NoResult> deletePaymentMethodTypePartyType(UserVisitPK userVisitPK, DeletePaymentMethodTypePartyTypeForm form) {
160//        return CDI.current().select(DeletePaymentMethodTypePartyTypeCommand.class).get().run(userVisitPK, form);
161//    }
162
163    // -------------------------------------------------------------------------
164    //   Payment Processor Types
165    // -------------------------------------------------------------------------
166
167    @Override
168    public CommandResult<CreatePaymentProcessorTypeResult> createPaymentProcessorType(UserVisitPK userVisitPK, CreatePaymentProcessorTypeForm form) {
169        return CDI.current().select(CreatePaymentProcessorTypeCommand.class).get().run(userVisitPK, form);
170    }
171
172    @Override
173    public CommandResult<GetPaymentProcessorTypesResult> getPaymentProcessorTypes(UserVisitPK userVisitPK, GetPaymentProcessorTypesForm form) {
174        return CDI.current().select(GetPaymentProcessorTypesCommand.class).get().run(userVisitPK, form);
175    }
176
177    @Override
178    public CommandResult<GetPaymentProcessorTypeResult> getPaymentProcessorType(UserVisitPK userVisitPK, GetPaymentProcessorTypeForm form) {
179        return CDI.current().select(GetPaymentProcessorTypeCommand.class).get().run(userVisitPK, form);
180    }
181
182    @Override
183    public CommandResult<GetPaymentProcessorTypeChoicesResult> getPaymentProcessorTypeChoices(UserVisitPK userVisitPK, GetPaymentProcessorTypeChoicesForm form) {
184        return CDI.current().select(GetPaymentProcessorTypeChoicesCommand.class).get().run(userVisitPK, form);
185    }
186
187    @Override
188    public CommandResult<VoidResult> setDefaultPaymentProcessorType(UserVisitPK userVisitPK, SetDefaultPaymentProcessorTypeForm form) {
189        return CDI.current().select(SetDefaultPaymentProcessorTypeCommand.class).get().run(userVisitPK, form);
190    }
191
192    @Override
193    public CommandResult<EditPaymentProcessorTypeResult> editPaymentProcessorType(UserVisitPK userVisitPK, EditPaymentProcessorTypeForm form) {
194        return CDI.current().select(EditPaymentProcessorTypeCommand.class).get().run(userVisitPK, form);
195    }
196
197    @Override
198    public CommandResult<VoidResult> deletePaymentProcessorType(UserVisitPK userVisitPK, DeletePaymentProcessorTypeForm form) {
199        return CDI.current().select(DeletePaymentProcessorTypeCommand.class).get().run(userVisitPK, form);
200    }
201
202    // -------------------------------------------------------------------------
203    //   Payment Processor Type Descriptions
204    // -------------------------------------------------------------------------
205
206    @Override
207    public CommandResult<VoidResult> createPaymentProcessorTypeDescription(UserVisitPK userVisitPK, CreatePaymentProcessorTypeDescriptionForm form) {
208        return CDI.current().select(CreatePaymentProcessorTypeDescriptionCommand.class).get().run(userVisitPK, form);
209    }
210
211    @Override
212    public CommandResult<GetPaymentProcessorTypeDescriptionsResult> getPaymentProcessorTypeDescriptions(UserVisitPK userVisitPK, GetPaymentProcessorTypeDescriptionsForm form) {
213        return CDI.current().select(GetPaymentProcessorTypeDescriptionsCommand.class).get().run(userVisitPK, form);
214    }
215
216    @Override
217    public CommandResult<EditPaymentProcessorTypeDescriptionResult> editPaymentProcessorTypeDescription(UserVisitPK userVisitPK, EditPaymentProcessorTypeDescriptionForm form) {
218        return CDI.current().select(EditPaymentProcessorTypeDescriptionCommand.class).get().run(userVisitPK, form);
219    }
220
221    @Override
222    public CommandResult<VoidResult> deletePaymentProcessorTypeDescription(UserVisitPK userVisitPK, DeletePaymentProcessorTypeDescriptionForm form) {
223        return CDI.current().select(DeletePaymentProcessorTypeDescriptionCommand.class).get().run(userVisitPK, form);
224    }
225
226    // -------------------------------------------------------------------------
227    //   Payment Processor Type Code Types
228    // -------------------------------------------------------------------------
229
230    @Override
231    public CommandResult<CreatePaymentProcessorTypeCodeTypeResult> createPaymentProcessorTypeCodeType(UserVisitPK userVisitPK, CreatePaymentProcessorTypeCodeTypeForm form) {
232        return CDI.current().select(CreatePaymentProcessorTypeCodeTypeCommand.class).get().run(userVisitPK, form);
233    }
234
235//    @Override
236//    public CommandResult<GetPaymentProcessorTypeCodeTypesResult> getPaymentProcessorTypeCodeTypes(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeTypesForm form) {
237//        return CDI.current().select(GetPaymentProcessorTypeCodeTypesCommand.class).get().run(userVisitPK, form);
238//    }
239
240    @Override
241    public CommandResult<GetPaymentProcessorTypeCodeTypeResult> getPaymentProcessorTypeCodeType(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeTypeForm form) {
242        return CDI.current().select(GetPaymentProcessorTypeCodeTypeCommand.class).get().run(userVisitPK, form);
243    }
244
245//    @Override
246//    public CommandResult<GetPaymentProcessorTypeCodeTypeChoicesResult> getPaymentProcessorTypeCodeTypeChoices(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeTypeChoicesForm form) {
247//        return CDI.current().select(GetPaymentProcessorTypeCodeTypeChoicesCommand.class).get().run(userVisitPK, form);
248//    }
249//
250//    @Override
251//    public CommandResult<NoResult> setDefaultPaymentProcessorTypeCodeType(UserVisitPK userVisitPK, SetDefaultPaymentProcessorTypeCodeTypeForm form) {
252//        return CDI.current().select(SetDefaultPaymentProcessorTypeCodeTypeCommand.class).get().run(userVisitPK, form);
253//    }
254//
255//    @Override
256//    public CommandResult<EditPaymentProcessorTypeCodeTypeResult> editPaymentProcessorTypeCodeType(UserVisitPK userVisitPK, EditPaymentProcessorTypeCodeTypeForm form) {
257//        return CDI.current().select(EditPaymentProcessorTypeCodeTypeCommand.class).get().run(userVisitPK, form);
258//    }
259//
260//    @Override
261//    public CommandResult<NoResult> deletePaymentProcessorTypeCodeType(UserVisitPK userVisitPK, DeletePaymentProcessorTypeCodeTypeForm form) {
262//        return CDI.current().select(DeletePaymentProcessorTypeCodeTypeCommand.class).get().run(userVisitPK, form);
263//    }
264
265    // -------------------------------------------------------------------------
266    //   Payment Processor Type Code Type Descriptions
267    // -------------------------------------------------------------------------
268
269    @Override
270    public CommandResult<VoidResult> createPaymentProcessorTypeCodeTypeDescription(UserVisitPK userVisitPK, CreatePaymentProcessorTypeCodeTypeDescriptionForm form) {
271        return CDI.current().select(CreatePaymentProcessorTypeCodeTypeDescriptionCommand.class).get().run(userVisitPK, form);
272    }
273
274//    @Override
275//    public CommandResult<GetPaymentProcessorTypeCodeTypeDescriptionResult> getPaymentProcessorTypeCodeTypeDescription(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeTypeDescriptionForm form) {
276//        return CDI.current().select(GetPaymentProcessorTypeCodeTypeDescriptionCommand.class).get().run(userVisitPK, form);
277//    }
278//
279//    @Override
280//    public CommandResult<GetPaymentProcessorTypeCodeTypeDescriptionsResult> getPaymentProcessorTypeCodeTypeDescriptions(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeTypeDescriptionsForm form) {
281//        return CDI.current().select(GetPaymentProcessorTypeCodeTypeDescriptionsCommand.class).get().run(userVisitPK, form);
282//    }
283//
284//    @Override
285//    public CommandResult<EditPaymentProcessorTypeCodeTypeDescriptionResult> editPaymentProcessorTypeCodeTypeDescription(UserVisitPK userVisitPK, EditPaymentProcessorTypeCodeTypeDescriptionForm form) {
286//        return CDI.current().select(EditPaymentProcessorTypeCodeTypeDescriptionCommand.class).get().run(userVisitPK, form);
287//    }
288//
289//    @Override
290//    public CommandResult<NoResult> deletePaymentProcessorTypeCodeTypeDescription(UserVisitPK userVisitPK, DeletePaymentProcessorTypeCodeTypeDescriptionForm form) {
291//        return CDI.current().select(DeletePaymentProcessorTypeCodeTypeDescriptionCommand.class).get().run(userVisitPK, form);
292//    }
293
294    // -------------------------------------------------------------------------
295    //   Payment Processor Type Codes
296    // -------------------------------------------------------------------------
297
298    @Override
299    public CommandResult<CreatePaymentProcessorTypeCodeResult> createPaymentProcessorTypeCode(UserVisitPK userVisitPK, CreatePaymentProcessorTypeCodeForm form) {
300        return CDI.current().select(CreatePaymentProcessorTypeCodeCommand.class).get().run(userVisitPK, form);
301    }
302
303//    @Override
304//    public CommandResult<GetPaymentProcessorTypeCodesResult> getPaymentProcessorTypeCodes(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodesForm form) {
305//        return CDI.current().select(GetPaymentProcessorTypeCodesCommand.class).get().run(userVisitPK, form);
306//    }
307
308    @Override
309    public CommandResult<GetPaymentProcessorTypeCodeResult> getPaymentProcessorTypeCode(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeForm form) {
310        return CDI.current().select(GetPaymentProcessorTypeCodeCommand.class).get().run(userVisitPK, form);
311    }
312
313//    @Override
314//    public CommandResult<GetPaymentProcessorTypeCodeChoicesResult> getPaymentProcessorTypeCodeChoices(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeChoicesForm form) {
315//        return CDI.current().select(GetPaymentProcessorTypeCodeChoicesCommand.class).get().run(userVisitPK, form);
316//    }
317//
318//    @Override
319//    public CommandResult<NoResult> setDefaultPaymentProcessorTypeCode(UserVisitPK userVisitPK, SetDefaultPaymentProcessorTypeCodeForm form) {
320//        return CDI.current().select(SetDefaultPaymentProcessorTypeCodeCommand.class).get().run(userVisitPK, form);
321//    }
322//
323//    @Override
324//    public CommandResult<EditPaymentProcessorTypeCodeResult> editPaymentProcessorTypeCode(UserVisitPK userVisitPK, EditPaymentProcessorTypeCodeForm form) {
325//        return CDI.current().select(EditPaymentProcessorTypeCodeCommand.class).get().run(userVisitPK, form);
326//    }
327//
328//    @Override
329//    public CommandResult<NoResult> deletePaymentProcessorTypeCode(UserVisitPK userVisitPK, DeletePaymentProcessorTypeCodeForm form) {
330//        return CDI.current().select(DeletePaymentProcessorTypeCodeCommand.class).get().run(userVisitPK, form);
331//    }
332
333    // -------------------------------------------------------------------------
334    //   Payment Processor Type Code Descriptions
335    // -------------------------------------------------------------------------
336
337    @Override
338    public CommandResult<VoidResult> createPaymentProcessorTypeCodeDescription(UserVisitPK userVisitPK, CreatePaymentProcessorTypeCodeDescriptionForm form) {
339        return CDI.current().select(CreatePaymentProcessorTypeCodeDescriptionCommand.class).get().run(userVisitPK, form);
340    }
341
342//    @Override
343//    public CommandResult<GetPaymentProcessorTypeCodeDescriptionResult> getPaymentProcessorTypeCodeDescription(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeDescriptionForm form) {
344//        return CDI.current().select(GetPaymentProcessorTypeCodeDescriptionCommand.class).get().run(userVisitPK, form);
345//    }
346//
347//    @Override
348//    public CommandResult<GetPaymentProcessorTypeCodeDescriptionsResult> getPaymentProcessorTypeCodeDescriptions(UserVisitPK userVisitPK, GetPaymentProcessorTypeCodeDescriptionsForm form) {
349//        return CDI.current().select(GetPaymentProcessorTypeCodeDescriptionsCommand.class).get().run(userVisitPK, form);
350//    }
351//
352//    @Override
353//    public CommandResult<EditPaymentProcessorTypeCodeDescriptionResult> editPaymentProcessorTypeCodeDescription(UserVisitPK userVisitPK, EditPaymentProcessorTypeCodeDescriptionForm form) {
354//        return CDI.current().select(EditPaymentProcessorTypeCodeDescriptionCommand.class).get().run(userVisitPK, form);
355//    }
356//
357//    @Override
358//    public CommandResult<NoResult> deletePaymentProcessorTypeCodeDescription(UserVisitPK userVisitPK, DeletePaymentProcessorTypeCodeDescriptionForm form) {
359//        return CDI.current().select(DeletePaymentProcessorTypeCodeDescriptionCommand.class).get().run(userVisitPK, form);
360//    }
361
362    // -------------------------------------------------------------------------
363    //   Payment Processor Type Actions
364    // -------------------------------------------------------------------------
365
366    @Override
367    public CommandResult<CreatePaymentProcessorTypeActionResult> createPaymentProcessorTypeAction(UserVisitPK userVisitPK, CreatePaymentProcessorTypeActionForm form) {
368        return CDI.current().select(CreatePaymentProcessorTypeActionCommand.class).get().run(userVisitPK, form);
369    }
370
371//    @Override
372//    public CommandResult<GetPaymentProcessorTypeActionsResult> getPaymentProcessorTypeActions(UserVisitPK userVisitPK, GetPaymentProcessorTypeActionsForm form) {
373//        return CDI.current().select(GetPaymentProcessorTypeActionsCommand.class).get().run(userVisitPK, form);
374//    }
375//
376//    @Override
377//    public CommandResult<GetPaymentProcessorTypeActionResult> getPaymentProcessorTypeAction(UserVisitPK userVisitPK, GetPaymentProcessorTypeActionForm form) {
378//        return CDI.current().select(GetPaymentProcessorTypeActionCommand.class).get().run(userVisitPK, form);
379//    }
380//
381//    @Override
382//    public CommandResult<GetPaymentProcessorTypeActionChoicesResult> getPaymentProcessorTypeActionChoices(UserVisitPK userVisitPK, GetPaymentProcessorTypeActionChoicesForm form) {
383//        return CDI.current().select(GetPaymentProcessorTypeActionChoicesCommand.class).get().run(userVisitPK, form);
384//    }
385//
386//    @Override
387//    public CommandResult<NoResult> setDefaultPaymentProcessorTypeAction(UserVisitPK userVisitPK, SetDefaultPaymentProcessorTypeActionForm form) {
388//        return CDI.current().select(SetDefaultPaymentProcessorTypeActionCommand.class).get().run(userVisitPK, form);
389//    }
390//
391//    @Override
392//    public CommandResult<EditPaymentProcessorTypeActionResult> editPaymentProcessorTypeAction(UserVisitPK userVisitPK, EditPaymentProcessorTypeActionForm form) {
393//        return CDI.current().select(EditPaymentProcessorTypeActionCommand.class).get().run(userVisitPK, form);
394//    }
395//
396//    @Override
397//    public CommandResult<NoResult> deletePaymentProcessorTypeAction(UserVisitPK userVisitPK, DeletePaymentProcessorTypeActionForm form) {
398//        return CDI.current().select(DeletePaymentProcessorTypeActionCommand.class).get().run(userVisitPK, form);
399//    }
400
401    // -------------------------------------------------------------------------
402    //   Payment Processors
403    // -------------------------------------------------------------------------
404    
405    @Override
406    public CommandResult<CreatePaymentProcessorResult> createPaymentProcessor(UserVisitPK userVisitPK, CreatePaymentProcessorForm form) {
407        return CDI.current().select(CreatePaymentProcessorCommand.class).get().run(userVisitPK, form);
408    }
409    
410    @Override
411    public CommandResult<EditPaymentProcessorResult> editPaymentProcessor(UserVisitPK userVisitPK, EditPaymentProcessorForm form) {
412        return CDI.current().select(EditPaymentProcessorCommand.class).get().run(userVisitPK, form);
413    }
414    
415    @Override
416    public CommandResult<GetPaymentProcessorsResult> getPaymentProcessors(UserVisitPK userVisitPK, GetPaymentProcessorsForm form) {
417        return CDI.current().select(GetPaymentProcessorsCommand.class).get().run(userVisitPK, form);
418    }
419    
420    @Override
421    public CommandResult<GetPaymentProcessorResult> getPaymentProcessor(UserVisitPK userVisitPK, GetPaymentProcessorForm form) {
422        return CDI.current().select(GetPaymentProcessorCommand.class).get().run(userVisitPK, form);
423    }
424    
425    @Override
426    public CommandResult<GetPaymentProcessorChoicesResult> getPaymentProcessorChoices(UserVisitPK userVisitPK, GetPaymentProcessorChoicesForm form) {
427        return CDI.current().select(GetPaymentProcessorChoicesCommand.class).get().run(userVisitPK, form);
428    }
429    
430    @Override
431    public CommandResult<VoidResult> setDefaultPaymentProcessor(UserVisitPK userVisitPK, SetDefaultPaymentProcessorForm form) {
432        return CDI.current().select(SetDefaultPaymentProcessorCommand.class).get().run(userVisitPK, form);
433    }
434    
435    @Override
436    public CommandResult<VoidResult> deletePaymentProcessor(UserVisitPK userVisitPK, DeletePaymentProcessorForm form) {
437        return CDI.current().select(DeletePaymentProcessorCommand.class).get().run(userVisitPK, form);
438    }
439
440    // -------------------------------------------------------------------------
441    //   Payment Processor Descriptions
442    // -------------------------------------------------------------------------
443
444    @Override
445    public CommandResult<VoidResult> createPaymentProcessorDescription(UserVisitPK userVisitPK, CreatePaymentProcessorDescriptionForm form) {
446        return CDI.current().select(CreatePaymentProcessorDescriptionCommand.class).get().run(userVisitPK, form);
447    }
448
449    @Override
450    public CommandResult<EditPaymentProcessorDescriptionResult> editPaymentProcessorDescription(UserVisitPK userVisitPK, EditPaymentProcessorDescriptionForm form) {
451        return CDI.current().select(EditPaymentProcessorDescriptionCommand.class).get().run(userVisitPK, form);
452    }
453
454    @Override
455    public CommandResult<GetPaymentProcessorDescriptionResult> getPaymentProcessorDescription(UserVisitPK userVisitPK, GetPaymentProcessorDescriptionForm form) {
456        return CDI.current().select(GetPaymentProcessorDescriptionCommand.class).get().run(userVisitPK, form);
457    }
458
459    @Override
460    public CommandResult<GetPaymentProcessorDescriptionsResult> getPaymentProcessorDescriptions(UserVisitPK userVisitPK, GetPaymentProcessorDescriptionsForm form) {
461        return CDI.current().select(GetPaymentProcessorDescriptionsCommand.class).get().run(userVisitPK, form);
462    }
463
464    @Override
465    public CommandResult<VoidResult> deletePaymentProcessorDescription(UserVisitPK userVisitPK, DeletePaymentProcessorDescriptionForm form) {
466        return CDI.current().select(DeletePaymentProcessorDescriptionCommand.class).get().run(userVisitPK, form);
467    }
468
469    // -------------------------------------------------------------------------
470    //   Payment Processor Actions
471    // -------------------------------------------------------------------------
472
473    @Override
474    public CommandResult<VoidResult> createPaymentProcessorAction(UserVisitPK userVisitPK, CreatePaymentProcessorActionForm form) {
475        return CDI.current().select(CreatePaymentProcessorActionCommand.class).get().run(userVisitPK, form);
476    }
477
478//    @Override
479//    public CommandResult<GetPaymentProcessorActionResult> getPaymentProcessorAction(UserVisitPK userVisitPK, GetPaymentProcessorActionForm form) {
480//        return CDI.current().select(GetPaymentProcessorActionCommand.class).get().run(userVisitPK, form);
481//    }
482//
483//    @Override
484//    public CommandResult<GetPaymentProcessorActionsResult> getPaymentProcessorActions(UserVisitPK userVisitPK, GetPaymentProcessorActionsForm form) {
485//        return CDI.current().select(GetPaymentProcessorActionsCommand.class).get().run(userVisitPK, form);
486//    }
487//
488//    @Override
489//    public CommandResult<NoResult> deletePaymentProcessorAction(UserVisitPK userVisitPK, DeletePaymentProcessorActionForm form) {
490//        return CDI.current().select(DeletePaymentProcessorActionCommand.class).get().run(userVisitPK, form);
491//    }
492
493    // -------------------------------------------------------------------------
494    //   Payment Processor Transactions
495    // -------------------------------------------------------------------------
496
497    @Override
498    public CommandResult<GetPaymentProcessorTransactionsResult> getPaymentProcessorTransactions(UserVisitPK userVisitPK, GetPaymentProcessorTransactionsForm form) {
499        return CDI.current().select(GetPaymentProcessorTransactionsCommand.class).get().run(userVisitPK, form);
500    }
501
502    @Override
503    public CommandResult<GetPaymentProcessorTransactionResult> getPaymentProcessorTransaction(UserVisitPK userVisitPK, GetPaymentProcessorTransactionForm form) {
504        return CDI.current().select(GetPaymentProcessorTransactionCommand.class).get().run(userVisitPK, form);
505    }
506
507    // -------------------------------------------------------------------------
508    //   Payment Processor Transaction Codes
509    // -------------------------------------------------------------------------
510
511    @Override
512    public CommandResult<GetPaymentProcessorTransactionCodesResult> getPaymentProcessorTransactionCodes(UserVisitPK userVisitPK, GetPaymentProcessorTransactionCodesForm form) {
513        return CDI.current().select(GetPaymentProcessorTransactionCodesCommand.class).get().run(userVisitPK, form);
514    }
515
516    // -------------------------------------------------------------------------
517    //   Payment Methods
518    // -------------------------------------------------------------------------
519    
520    @Override
521    public CommandResult<CreatePaymentMethodResult> createPaymentMethod(UserVisitPK userVisitPK, CreatePaymentMethodForm form) {
522        return CDI.current().select(CreatePaymentMethodCommand.class).get().run(userVisitPK, form);
523    }
524    
525    @Override
526    public CommandResult<EditPaymentMethodResult> editPaymentMethod(UserVisitPK userVisitPK, EditPaymentMethodForm form) {
527        return CDI.current().select(EditPaymentMethodCommand.class).get().run(userVisitPK, form);
528    }
529    
530    @Override
531    public CommandResult<GetPaymentMethodsResult> getPaymentMethods(UserVisitPK userVisitPK, GetPaymentMethodsForm form) {
532        return CDI.current().select(GetPaymentMethodsCommand.class).get().run(userVisitPK, form);
533    }
534    
535    @Override
536    public CommandResult<GetPaymentMethodResult> getPaymentMethod(UserVisitPK userVisitPK, GetPaymentMethodForm form) {
537        return CDI.current().select(GetPaymentMethodCommand.class).get().run(userVisitPK, form);
538    }
539    
540    @Override
541    public CommandResult<GetPaymentMethodChoicesResult> getPaymentMethodChoices(UserVisitPK userVisitPK, GetPaymentMethodChoicesForm form) {
542        return CDI.current().select(GetPaymentMethodChoicesCommand.class).get().run(userVisitPK, form);
543    }
544    
545    @Override
546    public CommandResult<VoidResult> setDefaultPaymentMethod(UserVisitPK userVisitPK, SetDefaultPaymentMethodForm form) {
547        return CDI.current().select(SetDefaultPaymentMethodCommand.class).get().run(userVisitPK, form);
548    }
549    
550    @Override
551    public CommandResult<VoidResult> deletePaymentMethod(UserVisitPK userVisitPK, DeletePaymentMethodForm form) {
552        return CDI.current().select(DeletePaymentMethodCommand.class).get().run(userVisitPK, form);
553    }
554    
555    // -------------------------------------------------------------------------
556    //   Payment Method Descriptions
557    // -------------------------------------------------------------------------
558    
559    @Override
560    public CommandResult<VoidResult> createPaymentMethodDescription(UserVisitPK userVisitPK, CreatePaymentMethodDescriptionForm form) {
561        return CDI.current().select(CreatePaymentMethodDescriptionCommand.class).get().run(userVisitPK, form);
562    }
563    
564    @Override
565    public CommandResult<EditPaymentMethodDescriptionResult> editPaymentMethodDescription(UserVisitPK userVisitPK, EditPaymentMethodDescriptionForm form) {
566        return CDI.current().select(EditPaymentMethodDescriptionCommand.class).get().run(userVisitPK, form);
567    }
568    
569    @Override
570    public CommandResult<GetPaymentMethodDescriptionResult> getPaymentMethodDescription(UserVisitPK userVisitPK, GetPaymentMethodDescriptionForm form) {
571        return CDI.current().select(GetPaymentMethodDescriptionCommand.class).get().run(userVisitPK, form);
572    }
573
574    @Override
575    public CommandResult<GetPaymentMethodDescriptionsResult> getPaymentMethodDescriptions(UserVisitPK userVisitPK, GetPaymentMethodDescriptionsForm form) {
576        return CDI.current().select(GetPaymentMethodDescriptionsCommand.class).get().run(userVisitPK, form);
577    }
578
579    @Override
580    public CommandResult<VoidResult> deletePaymentMethodDescription(UserVisitPK userVisitPK, DeletePaymentMethodDescriptionForm form) {
581        return CDI.current().select(DeletePaymentMethodDescriptionCommand.class).get().run(userVisitPK, form);
582    }
583    
584    // -------------------------------------------------------------------------
585    //   Party Payment Methods
586    // -------------------------------------------------------------------------
587    
588    @Override
589    public CommandResult<CreatePartyPaymentMethodResult> createPartyPaymentMethod(UserVisitPK userVisitPK, CreatePartyPaymentMethodForm form) {
590        return CDI.current().select(CreatePartyPaymentMethodCommand.class).get().run(userVisitPK, form);
591    }
592    
593    @Override
594    public CommandResult<EditPartyPaymentMethodResult> editPartyPaymentMethod(UserVisitPK userVisitPK, EditPartyPaymentMethodForm form) {
595        return CDI.current().select(EditPartyPaymentMethodCommand.class).get().run(userVisitPK, form);
596    }
597
598    @Override
599    public CommandResult<GetPartyPaymentMethodResult> getPartyPaymentMethod(UserVisitPK userVisitPK, GetPartyPaymentMethodForm form) {
600        return CDI.current().select(GetPartyPaymentMethodCommand.class).get().run(userVisitPK, form);
601    }
602    
603    @Override
604    public CommandResult<GetPartyPaymentMethodsResult> getPartyPaymentMethods(UserVisitPK userVisitPK, GetPartyPaymentMethodsForm form) {
605        return CDI.current().select(GetPartyPaymentMethodsCommand.class).get().run(userVisitPK, form);
606    }
607
608    @Override
609    public CommandResult<GetPartyPaymentMethodChoicesResult> getPartyPaymentMethodChoices(UserVisitPK userVisitPK, GetPartyPaymentMethodChoicesForm form) {
610        return CDI.current().select(GetPartyPaymentMethodChoicesCommand.class).get().run(userVisitPK, form);
611    }
612
613    @Override
614    public CommandResult<VoidResult> setDefaultPartyPaymentMethod(UserVisitPK userVisitPK, SetDefaultPartyPaymentMethodForm form) {
615        return CDI.current().select(SetDefaultPartyPaymentMethodCommand.class).get().run(userVisitPK, form);
616    }
617
618    @Override
619    public CommandResult<VoidResult> deletePartyPaymentMethod(UserVisitPK userVisitPK, DeletePartyPaymentMethodForm form) {
620        return CDI.current().select(DeletePartyPaymentMethodCommand.class).get().run(userVisitPK, form);
621    }
622
623    // -------------------------------------------------------------------------
624    //   Payment Processor Action Types
625    // -------------------------------------------------------------------------
626
627    @Override
628    public CommandResult<CreatePaymentProcessorActionTypeResult> createPaymentProcessorActionType(UserVisitPK userVisitPK, CreatePaymentProcessorActionTypeForm form) {
629        return CDI.current().select(CreatePaymentProcessorActionTypeCommand.class).get().run(userVisitPK, form);
630    }
631
632    @Override
633    public CommandResult<GetPaymentProcessorActionTypesResult> getPaymentProcessorActionTypes(UserVisitPK userVisitPK, GetPaymentProcessorActionTypesForm form) {
634        return CDI.current().select(GetPaymentProcessorActionTypesCommand.class).get().run(userVisitPK, form);
635    }
636
637    @Override
638    public CommandResult<GetPaymentProcessorActionTypeResult> getPaymentProcessorActionType(UserVisitPK userVisitPK, GetPaymentProcessorActionTypeForm form) {
639        return CDI.current().select(GetPaymentProcessorActionTypeCommand.class).get().run(userVisitPK, form);
640    }
641
642    @Override
643    public CommandResult<GetPaymentProcessorActionTypeChoicesResult> getPaymentProcessorActionTypeChoices(UserVisitPK userVisitPK, GetPaymentProcessorActionTypeChoicesForm form) {
644        return CDI.current().select(GetPaymentProcessorActionTypeChoicesCommand.class).get().run(userVisitPK, form);
645    }
646
647    @Override
648    public CommandResult<VoidResult> setDefaultPaymentProcessorActionType(UserVisitPK userVisitPK, SetDefaultPaymentProcessorActionTypeForm form) {
649        return CDI.current().select(SetDefaultPaymentProcessorActionTypeCommand.class).get().run(userVisitPK, form);
650    }
651
652    @Override
653    public CommandResult<EditPaymentProcessorActionTypeResult> editPaymentProcessorActionType(UserVisitPK userVisitPK, EditPaymentProcessorActionTypeForm form) {
654        return CDI.current().select(EditPaymentProcessorActionTypeCommand.class).get().run(userVisitPK, form);
655    }
656
657    @Override
658    public CommandResult<VoidResult> deletePaymentProcessorActionType(UserVisitPK userVisitPK, DeletePaymentProcessorActionTypeForm form) {
659        return CDI.current().select(DeletePaymentProcessorActionTypeCommand.class).get().run(userVisitPK, form);
660    }
661
662    // -------------------------------------------------------------------------
663    //   Payment Processor Action Type Descriptions
664    // -------------------------------------------------------------------------
665
666    @Override
667    public CommandResult<VoidResult> createPaymentProcessorActionTypeDescription(UserVisitPK userVisitPK, CreatePaymentProcessorActionTypeDescriptionForm form) {
668        return CDI.current().select(CreatePaymentProcessorActionTypeDescriptionCommand.class).get().run(userVisitPK, form);
669    }
670
671    @Override
672    public CommandResult<GetPaymentProcessorActionTypeDescriptionsResult> getPaymentProcessorActionTypeDescriptions(UserVisitPK userVisitPK, GetPaymentProcessorActionTypeDescriptionsForm form) {
673        return CDI.current().select(GetPaymentProcessorActionTypeDescriptionsCommand.class).get().run(userVisitPK, form);
674    }
675
676    @Override
677    public CommandResult<EditPaymentProcessorActionTypeDescriptionResult> editPaymentProcessorActionTypeDescription(UserVisitPK userVisitPK, EditPaymentProcessorActionTypeDescriptionForm form) {
678        return CDI.current().select(EditPaymentProcessorActionTypeDescriptionCommand.class).get().run(userVisitPK, form);
679    }
680
681    @Override
682    public CommandResult<VoidResult> deletePaymentProcessorActionTypeDescription(UserVisitPK userVisitPK, DeletePaymentProcessorActionTypeDescriptionForm form) {
683        return CDI.current().select(DeletePaymentProcessorActionTypeDescriptionCommand.class).get().run(userVisitPK, form);
684    }
685
686    // -------------------------------------------------------------------------
687    //   Payment Processor Result Codes
688    // -------------------------------------------------------------------------
689
690    @Override
691    public CommandResult<CreatePaymentProcessorResultCodeResult> createPaymentProcessorResultCode(UserVisitPK userVisitPK, CreatePaymentProcessorResultCodeForm form) {
692        return CDI.current().select(CreatePaymentProcessorResultCodeCommand.class).get().run(userVisitPK, form);
693    }
694
695    @Override
696    public CommandResult<GetPaymentProcessorResultCodesResult> getPaymentProcessorResultCodes(UserVisitPK userVisitPK, GetPaymentProcessorResultCodesForm form) {
697        return CDI.current().select(GetPaymentProcessorResultCodesCommand.class).get().run(userVisitPK, form);
698    }
699
700    @Override
701    public CommandResult<GetPaymentProcessorResultCodeResult> getPaymentProcessorResultCode(UserVisitPK userVisitPK, GetPaymentProcessorResultCodeForm form) {
702        return CDI.current().select(GetPaymentProcessorResultCodeCommand.class).get().run(userVisitPK, form);
703    }
704
705    @Override
706    public CommandResult<GetPaymentProcessorResultCodeChoicesResult> getPaymentProcessorResultCodeChoices(UserVisitPK userVisitPK, GetPaymentProcessorResultCodeChoicesForm form) {
707        return CDI.current().select(GetPaymentProcessorResultCodeChoicesCommand.class).get().run(userVisitPK, form);
708    }
709
710    @Override
711    public CommandResult<VoidResult> setDefaultPaymentProcessorResultCode(UserVisitPK userVisitPK, SetDefaultPaymentProcessorResultCodeForm form) {
712        return CDI.current().select(SetDefaultPaymentProcessorResultCodeCommand.class).get().run(userVisitPK, form);
713    }
714
715    @Override
716    public CommandResult<EditPaymentProcessorResultCodeResult> editPaymentProcessorResultCode(UserVisitPK userVisitPK, EditPaymentProcessorResultCodeForm form) {
717        return CDI.current().select(EditPaymentProcessorResultCodeCommand.class).get().run(userVisitPK, form);
718    }
719
720    @Override
721    public CommandResult<VoidResult> deletePaymentProcessorResultCode(UserVisitPK userVisitPK, DeletePaymentProcessorResultCodeForm form) {
722        return CDI.current().select(DeletePaymentProcessorResultCodeCommand.class).get().run(userVisitPK, form);
723    }
724
725    // -------------------------------------------------------------------------
726    //   Payment Processor Result Code Descriptions
727    // -------------------------------------------------------------------------
728
729    @Override
730    public CommandResult<VoidResult> createPaymentProcessorResultCodeDescription(UserVisitPK userVisitPK, CreatePaymentProcessorResultCodeDescriptionForm form) {
731        return CDI.current().select(CreatePaymentProcessorResultCodeDescriptionCommand.class).get().run(userVisitPK, form);
732    }
733
734    @Override
735    public CommandResult<GetPaymentProcessorResultCodeDescriptionsResult> getPaymentProcessorResultCodeDescriptions(UserVisitPK userVisitPK, GetPaymentProcessorResultCodeDescriptionsForm form) {
736        return CDI.current().select(GetPaymentProcessorResultCodeDescriptionsCommand.class).get().run(userVisitPK, form);
737    }
738
739    @Override
740    public CommandResult<EditPaymentProcessorResultCodeDescriptionResult> editPaymentProcessorResultCodeDescription(UserVisitPK userVisitPK, EditPaymentProcessorResultCodeDescriptionForm form) {
741        return CDI.current().select(EditPaymentProcessorResultCodeDescriptionCommand.class).get().run(userVisitPK, form);
742    }
743
744    @Override
745    public CommandResult<VoidResult> deletePaymentProcessorResultCodeDescription(UserVisitPK userVisitPK, DeletePaymentProcessorResultCodeDescriptionForm form) {
746        return CDI.current().select(DeletePaymentProcessorResultCodeDescriptionCommand.class).get().run(userVisitPK, form);
747    }
748
749}