// use Apoloz\AlfaBank\Sbp\Data\DigitalRuble\CashLink\ChangeAccForCashUniQrRequestData; use Apoloz\AlfaBank\Sbp\Data\DigitalRuble\CashLink\ChangeAccForCashUniQrResponseData; use Saloon\Contracts\Body\HasBody; use Saloon\Enums\Method; use Saloon\Http\Request; use Saloon\Http\Response; // //
// class ChangeAccForCashUniQrRequest extends Request implements HasBody { use HasStringBody; //
// protected Method $method = Method::POST; //
//
// public function __construct( protected ChangeAccForCashUniQrRequestData $data ) {} //
// public function resolveEndpoint(): string { return ''; // Endpoint is determined by SbpConnector's base URL } //
//
// public function createDtoFromResponse(Response $response): ChangeAccForCashUniQrResponseData { return ChangeAccForCashUniQrResponseData::from($response->json()); } //
//
// protected function defaultBody(): string { $bodyArray = [ 'command' => 'ChangeAccForCashUniQr', 'TermNo' => $this->data->TermNo, ]; if ($this->data->messageID !== null) { $bodyArray['messageID'] = $this->data->messageID; } if ($this->data->qrcId !== null) { $bodyArray['qrcId'] = $this->data->qrcId; } if ($this->data->account !== null) { $bodyArray['account'] = $this->data->account; } if ($this->data->accountDR !== null) { $bodyArray['accountDR'] = $this->data->accountDR; } if ($this->data->NewTermNo !== null) { $bodyArray['NewTermNo'] = $this->data->NewTermNo; } if ($this->data->NewMerchantId !== null) { $bodyArray['NewMerchantId'] = $this->data->NewMerchantId; } if ($this->data->redirectUrl !== null) { $bodyArray['redirectUrl'] = $this->data->redirectUrl; } if ($this->data->paymentPageUrl !== null) { $bodyArray['paymentPageUrl'] = $this->data->paymentPageUrl; } if ($this->data->fraudScore !== null) { $bodyArray['fraudScore'] = $this->data->fraudScore; } return CmsSigner::canonicalize($bodyArray); } //
}