@aptos-scp/scp-component-store-selling-features-domain-model 2.20.0 → 2.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,7 +164,7 @@ export declare class TenderType {
164
164
  export declare function combineOriginalUnreferencedAndMappedTenders(tender: IOriginalTender, unreferencedAndMappedTenders: IOriginalTender[]): void;
165
165
  export declare function getConfiguredTender(originalTenderId: string, configurationManager: IConfigurationManager): any;
166
166
  export declare function getAllRefundableCardTypes(tenderTypeBehavior: any): string[];
167
- export declare function getMappedCardTypeNames(originalTender: IOriginalTender, tenderConfig: any, refundCardTypes: any): string[];
167
+ export declare function getMappedCardTypeNames(tenderConfig: any, refundCardTypes: any): string[];
168
168
  export declare function getActiveTendersByConfiguredPaymentRestrictions(activeTenderTypes: TenderType[], saleItemTypes: string[], diContainer: Container, orderTypes?: string[], productAttributeTypes?: string[]): TenderType[];
169
169
  export declare function getRefundableTendersByPaymentRestrictions(originalRefundableTenders: IOriginalTender[], saleItemTypes: string[], diContainer: Container, orderTypes?: string[], productAttributeTypes?: string[]): IOriginalTender[];
170
170
  export declare function getSaleItemTypes(transaction: MerchandiseTransaction): string[];
@@ -794,7 +794,7 @@ function getConfiguredMappedTenders(originalTender, configurationManager, transa
794
794
  if (!_.isEmpty(cardTypeExceptionsForOriginalTender)) {
795
795
  refundTenderTypes = cardTypeExceptionsForOriginalTender.refundTenderTypes;
796
796
  refundCardTypes = cardTypeExceptionsForOriginalTender.refundCardTypes;
797
- const mappedCardTypeNames = getMappedCardTypeNames(originalTender, tenderConfig, refundCardTypes);
797
+ const mappedCardTypeNames = getMappedCardTypeNames(tenderConfig, refundCardTypes);
798
798
  excludeCardTypes = mappedCardTypeNames;
799
799
  addCardTypeTendersToMappedTenders(mappedCardTypeNames, tenderDefinitions, mappedTenders, originalTender, transactionId, originalTransactions);
800
800
  }
@@ -878,7 +878,7 @@ function getMappedTenderTypeNames(originalTender, tenderConfig, originalTransact
878
878
  isOriginalTenderAmountAllowed(originalTender, mappedRefundTenderType, originalTransactions, refundDue));
879
879
  }));
880
880
  }
881
- function getMappedCardTypeNames(originalTender, tenderConfig, refundCardTypes) {
881
+ function getMappedCardTypeNames(tenderConfig, refundCardTypes) {
882
882
  return (refundCardTypes &&
883
883
  Object.keys(refundCardTypes).filter((cardType) => {
884
884
  const mappedRefundCardType = refundCardTypes[cardType];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-scp/scp-component-store-selling-features-domain-model",
3
- "version": "2.20.0",
3
+ "version": "2.20.1",
4
4
  "description": "This component library provides the common components to handle the coordination of processing the business events from the UI.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE.md",