src/Amadeus/Client/Struct/Pay/DeleteVirtualCard.php 1 location
|
@@ 49-51 (lines=3) @@
|
| 46 |
|
*/ |
| 47 |
|
public function __construct(PayDeleteVirtualCardOptions $params, $version) |
| 48 |
|
{ |
| 49 |
|
if ($params->amadeusReference === null || $params->externalReference === null) { |
| 50 |
|
throw new InvalidArgumentException('All DeleteVirtualCard options are mandatory'); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
$this->References[] = new Reference(Reference::TYPE_AMADEUS, $params->amadeusReference); |
| 54 |
|
$this->References[] = new Reference(Reference::TYPE_EXTERNAL, $params->externalReference); |
src/Amadeus/Client/Struct/Pay/GetVirtualCardDetails.php 1 location
|
@@ 54-56 (lines=3) @@
|
| 51 |
|
*/ |
| 52 |
|
public function __construct(PayGetVirtualCardDetailsOptions $params, $version) |
| 53 |
|
{ |
| 54 |
|
if ($params->amadeusReference === null || $params->externalReference === null) { |
| 55 |
|
throw new InvalidArgumentException('Both References in DeleteVirtualCard options are mandatory'); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
$this->References[] = new Reference(Reference::TYPE_AMADEUS, $params->amadeusReference); |
| 59 |
|
$this->References[] = new Reference(Reference::TYPE_EXTERNAL, $params->externalReference); |