Skip to content

Commit

Permalink
OctopusDeploy release: 6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
securesubmit-buildmaster committed Feb 2, 2023
1 parent 4675519 commit 065b210
Show file tree
Hide file tree
Showing 34 changed files with 2,303 additions and 1,188 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

## Latest version
#### Enhancements:
- GP-API: add risk assessment feature
- Refacto the Secure3DBuilder

## v6.0.6 (02/26/2023)
#### Enhancements:
- GPI Transactions : added support for credit, ach & reporting transactions
- GP-API: add to generateXGPSignature to GenerationUtils
- Portico Gateway: Fix incorrect date handling in schedule response
Expand Down
2 changes: 1 addition & 1 deletion metadata.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<xml>
<releaseNumber>6.0.6</releaseNumber>
<releaseNumber>6.1.0</releaseNumber>
</xml>
38 changes: 38 additions & 0 deletions src/Builders/FraudBuilder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

namespace GlobalPayments\Api\Builders;

use GlobalPayments\Api\Entities\Enums\AuthenticationSource;
use GlobalPayments\Api\Entities\Enums\TransactionType;
use GlobalPayments\Api\PaymentMethods\Interfaces\IPaymentMethod;
use GlobalPayments\Api\ServicesContainer;

class FraudBuilder extends SecureBuilder
{
public function __construct($transactionType)
{
parent::__construct();

$this->authenticationSource = AuthenticationSource::BROWSER;
$this->transactionType = $transactionType;
}

public function withPaymentMethod(IPaymentMethod $value)
{
$this->paymentMethod = $value;
return $this;
}

public function execute($configName = 'default')
{
$client = ServicesContainer::instance()->getFraudCheckClient($configName);
return $client->processFraud($this);
}

/** @return void */
public function setupValidations()
{
$this->validations->of(TransactionType::RISK_ASSESS)
->check('paymentMethod')->isNotNull();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
use GlobalPayments\Api\Entities\Product;
use GlobalPayments\Api\Mapping\EnumMapping;
use GlobalPayments\Api\PaymentMethods\BNPL;
use GlobalPayments\Api\PaymentMethods\Credit;
use GlobalPayments\Api\PaymentMethods\CreditCardData;
use GlobalPayments\Api\PaymentMethods\CreditTrackData;
use GlobalPayments\Api\PaymentMethods\DebitTrackData;
Expand Down Expand Up @@ -192,7 +193,10 @@ private function createFromAuthorizationBuilder($builder, GpApiConfig $config)
$requestBody['currency'] = $builder->currency;
$requestBody['reference'] = !empty($builder->clientTransactionId) ?
$builder->clientTransactionId : GenerationUtils::getGuid();
if ($builder->paymentMethod->mobileType == EncyptedMobileType::CLICK_TO_PAY) {
if (
$builder->paymentMethod instanceof Credit &&
$builder->paymentMethod->mobileType == EncyptedMobileType::CLICK_TO_PAY
) {
$requestBody['masked'] = $builder->maskedDataResponse === true ? 'YES' : 'NO';
}
$requestBody['description'] = $builder->description;
Expand Down
301 changes: 0 additions & 301 deletions src/Builders/RequestBuilder/GpApi/GpApiSecure3DRequestBuilder.php

This file was deleted.

Loading

0 comments on commit 065b210

Please sign in to comment.