Class ExternalCreditAccountTransactionExecutionProvider

    • Constructor Detail

      • ExternalCreditAccountTransactionExecutionProvider

        public ExternalCreditAccountTransactionExecutionProvider​(org.springframework.web.reactive.function.client.WebClient webClient,
                                                                 com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                                                 com.broadleafcommerce.common.extension.TypeFactory typeFactory,
                                                                 ExternalCreditAccountProperties properties)
    • Method Detail

      • readCustomerStoreCreditAccount

        public CreditAccount readCustomerStoreCreditAccount​(@NonNull
                                                            @NonNull String customerId,
                                                            @NonNull
                                                            @NonNull String creditAccountNumber,
                                                            @Nullable
                                                            com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Description copied from interface: CreditAccountTransactionExecutionProvider
        Reads the credit account for the specified customer id and account number.
        Specified by:
        readCustomerStoreCreditAccount in interface CreditAccountTransactionExecutionProvider
        Parameters:
        customerId - the customer id
        creditAccountNumber - the credit account number
        contextInfo - Context information around sandbox and multitenant state.
        Returns:
        the credit account number
      • readCustomerStoreCreditAccounts

        public org.springframework.data.domain.Page<CreditAccount> readCustomerStoreCreditAccounts​(String customerId,
                                                                                                   List<String> creditAccountNumbers,
                                                                                                   @Nullable
                                                                                                   com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Description copied from interface: CreditAccountTransactionExecutionProvider
        Reads the credit account for the specified customer id and account numbers.
        Specified by:
        readCustomerStoreCreditAccounts in interface CreditAccountTransactionExecutionProvider
        Parameters:
        customerId - the customer id
        creditAccountNumbers - the credit account numbers
        contextInfo - Context information around sandbox and multitenant state.
        Returns:
        the credit accounts
      • getBaseUri

        protected org.springframework.web.util.UriComponentsBuilder getBaseUri()
        Gets the base URI common to all requests this provider will make.
        Returns:
        a URI components builder with the base URI set up
      • getServiceClient

        protected String getServiceClient()