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