{"size": 522, "ext": "js", "max_stars_repo_path": "release_18_1_0/Cartridges/int_hipay_controllers/cartridge/scripts/pipelets/HiPayGetApplicableCreditCards.js", "max_stars_repo_name": "VolodymyrNekhay/hipay-fullservice-sdk-salesforce-commerce-cloud", "max_stars_repo_stars_event_min_datetime": "2017-02-10T08:39:44.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-28T09:22:40.000Z", "max_issues_repo_path": "release_18_1_0/Cartridges/int_hipay_controllers/cartridge/scripts/pipelets/HiPayGetApplicableCreditCards.js", "max_issues_repo_name": "VolodymyrNekhay/hipay-fullservice-sdk-salesforce-commerce-cloud", "max_issues_repo_issues_event_min_datetime": "2018-04-10T16:33:58.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-10T22:23:17.000Z", "max_forks_repo_path": "release_18_1_0/Cartridges/int_hipay_controllers/cartridge/scripts/pipelets/HiPayGetApplicableCreditCards.js", "max_forks_repo_name": "VolodymyrNekhay/hipay-fullservice-sdk-salesforce-commerce-cloud", "max_forks_repo_forks_event_min_datetime": "2017-11-17T15:44:32.000Z", "max_forks_repo_forks_event_max_datetime": "2019-11-04T17:44:28.000Z"}
{"max_stars_count": 5, "max_issues_count": 5, "max_forks_count": 5, "avg_line_length": 34.8, "max_line_length": 173, "alphanum_fraction": 0.7720306513}
/**
* @input CountryCode : String The country code.
* @input PaymentAmount : Number The payment amount.
* @output ValidPaymentInstruments : dw.util.Collection The collection of valid payment instruments.
*/

function execute(args) {
    var countryCode   = args.CountryCode,
        paymentAmount = args.PaymentAmount;

    args.ValidPaymentInstruments = require('~/cartridge/scripts/lib/hipay/HiPayCheckoutModule').getApplicableCreditCards(countryCode, paymentAmount).ValidPaymentInstruments;

    return PIPELET_NEXT;
}
