IdsCollection
$ids,
string
$key,
protected string
$orderTransactionId,
float
$amount = 420.69,
string
$state = OrderTransactionCaptureStates::STATE_PENDING,
protected ?string
$externalReference = null
) { $this->id =
$ids->
get($key);
$this->ids =
$ids;
$this->stateId =
$this->
getStateMachineState(OrderTransactionCaptureStates::STATE_MACHINE,
$state);
$this->
amount($amount);
} public function amount(float
$amount): self
{ $this->amount =
new CalculatedPrice($amount,
$amount,
new CalculatedTaxCollection(),
new TaxRuleCollection());
return $this;
} /**
* @param array<string, mixed> $customParams
*/