Class TmaPaymentMethodApiController
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaPaymentMethodApiController
- All Implemented Interfaces:
PaymentMethodApi
@Controller
public class TmaPaymentMethodApiController
extends TmaBaseController
implements PaymentMethodApi
Default implementation of
PaymentMethodApi- Since:
- 1907
-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
BAD_REQUEST, NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<PaymentMethodType>createPaymentMethod(@Valid PaymentMethodType paymentMethod) protected de.hybris.platform.servicelayer.i18n.I18NServiceprotected org.springframework.context.MessageSourceprotected TmaPaymentMethodCreateValidatorprotected org.springframework.http.ResponseEntitygetUnsuccessfulResponse(String message, org.springframework.http.HttpStatus httpStatus) org.springframework.http.ResponseEntity<PaymentMethodType>retrievePaymentMethod(String id, @Valid String type, @Valid String baseSiteId, @Valid String relatedPartyId, @Valid String fields) protected List<PaymentMethodType>retrievePaymentMethodList(String type, String relatedPartyId, String fields, Integer pageSize, Integer currentPage) org.springframework.http.ResponseEntity<List<PaymentMethodType>>retrievePaymentMethods(@Valid String type, @Valid String baseSiteId, @Valid String bankAccountPeriodBIC, @Valid String bankAccountPeriodaccountNumber, @Valid String bankAccountPeriodbank, @Valid String bankCardPeriodcardNumber, @Valid String bankCardPeriodnameOnCard, @Valid String bankCardPeriodtype, @Valid String checkPeriodcheckId, @Valid String checkPeriodbank, @Valid String relatedPartyId, @Valid String relatedPartyPeriodtype, @Valid String loyaltyAccount, @Valid String digitalWalletPeriodservice, @Valid String digitalWalletPeriodid, @Valid String bucket, @Valid String voucherPeriodid, @Valid String voucherPeriodcode, @Valid String fields, @Valid Integer limit, @Valid Integer offset, @Valid Integer currentPage, @Valid Integer pageSize) protected StringMethods inherited from class de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
addDefaultFields, encodeUrl, filter, getAuthentication, getDataMapper, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getRequestUrl, getUnsuccessfulResponse, getUnsuccessfulResponseWithErrorRepresentation, getUser, handleInternalError, handleModelNotFoundException, handleTmaApiErrorInternal, hasRole, init, sanitize, sanitizeQueryString
-
Constructor Details
-
TmaPaymentMethodApiController
public TmaPaymentMethodApiController()
-
-
Method Details
-
retrievePaymentMethods
@RequestMapping(value="/paymentMethod", produces="application/json", method=GET) public org.springframework.http.ResponseEntity<List<PaymentMethodType>> retrievePaymentMethods(@Valid @RequestParam(value="type",required=false) @Valid String type, @Valid @RequestParam(value="baseSiteId",required=false) @Valid String baseSiteId, @Valid @RequestParam(value="bankAccount.BIC",required=false) @Valid String bankAccountPeriodBIC, @Valid @RequestParam(value="bankAccount.accountNumber",required=false) @Valid String bankAccountPeriodaccountNumber, @Valid @RequestParam(value="bankAccount.bank",required=false) @Valid String bankAccountPeriodbank, @Valid @RequestParam(value="bankCard.cardNumber",required=false) @Valid String bankCardPeriodcardNumber, @Valid @RequestParam(value="bankCard.nameOnCard",required=false) @Valid String bankCardPeriodnameOnCard, @Valid @RequestParam(value="bankCard.type",required=false) @Valid String bankCardPeriodtype, @Valid @RequestParam(value="check.checkId",required=false) @Valid String checkPeriodcheckId, @Valid @RequestParam(value="check.bank",required=false) @Valid String checkPeriodbank, @Valid @RequestParam(value="relatedParty.id",required=false) @Valid String relatedPartyId, @Valid @RequestParam(value="relatedParty.type",required=false) @Valid String relatedPartyPeriodtype, @Valid @RequestParam(value="loyaltyAccount",required=false) @Valid String loyaltyAccount, @Valid @RequestParam(value="digitalWallet.service",required=false) @Valid String digitalWalletPeriodservice, @Valid @RequestParam(value="digitalWallet.id",required=false) @Valid String digitalWalletPeriodid, @Valid @RequestParam(value="bucket",required=false) @Valid String bucket, @Valid @RequestParam(value="voucher.id",required=false) @Valid String voucherPeriodid, @Valid @RequestParam(value="voucher.code",required=false) @Valid String voucherPeriodcode, @Valid @RequestParam(value="fields",required=false) @Valid String fields, @Valid @RequestParam(value="limit",required=false) @Valid Integer limit, @Valid @RequestParam(value="offset",required=false) @Valid Integer offset, @Valid @RequestParam(required=false,defaultValue="0") @Valid Integer currentPage, @Valid @RequestParam(required=false,defaultValue="20") @Valid Integer pageSize) - Specified by:
retrievePaymentMethodsin interfacePaymentMethodApi
-
createPaymentMethod
@Secured("ROLE_TRUSTED_CLIENT") @RequestMapping(value="/paymentMethod", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) public org.springframework.http.ResponseEntity<PaymentMethodType> createPaymentMethod(@Valid @RequestBody @Valid PaymentMethodType paymentMethod) - Specified by:
createPaymentMethodin interfacePaymentMethodApi
-
retrievePaymentMethod
@RequestMapping(value="/paymentMethod/{id}", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<PaymentMethodType> retrievePaymentMethod(@PathVariable("id") String id, @Valid @RequestParam("type") @Valid String type, @Valid @RequestParam(value="baseSiteId",required=false) @Valid String baseSiteId, @Valid @RequestParam(value="relatedParty.id",required=false) @Valid String relatedPartyId, @Valid @RequestParam(value="fields",required=false) @Valid String fields) - Specified by:
retrievePaymentMethodin interfacePaymentMethodApi
-
validate
-
getUnsuccessfulResponse
protected org.springframework.http.ResponseEntity getUnsuccessfulResponse(String message, org.springframework.http.HttpStatus httpStatus) -
retrievePaymentMethodList
-
getMessageSource
protected org.springframework.context.MessageSource getMessageSource() -
getI18nService
protected de.hybris.platform.servicelayer.i18n.I18NService getI18nService() -
getTmaPaymentMethodCreateValidator
-