public static function transformToArray(OrderChangeRegisterObject $orderStatus)
 {
     return ["pstrDocumentoComprador" => $orderStatus->getDocument(), "pstrIdventa" => $orderStatus->getIdOrder(), "pstrPinCompra" => $orderStatus->getPin(), "pstrEstadoVenta" => $orderStatus->getStatus()];
 }
 public function test_order_change_register_should_work()
 {
     $expected = (object) ["RegistrarTrazaVentaResult" => (object) ["EjecucionExitosa" => true, "MensajeValidacion" => null]];
     $this->soapFake->shouldReceive("RegistrarTrazaVenta")->andReturn($expected);
     $orderChange = new OrderChangeRegister();
     $orderChange->setIdOrder(123)->setPin(123)->setDocument(123)->setStatus(OrderStatus::STATUS_APPROVED);
     $result = $this->client->orderChangeRegister($orderChange);
     $this->assertTrue($result);
 }