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