Interface CreditAccountTransactionExecutionProvider

  • All Known Implementing Classes:
    ExternalCreditAccountTransactionExecutionProvider

    public interface CreditAccountTransactionExecutionProvider
    Provider for interfacing with a CreditAccountService's APIs to execute credit account transactions.
    Author:
    Dima Myroniuk (dmyroniuk)
    • Method Detail

      • readCustomerStoreCreditAccount

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

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