public function test_assign_pin_should_work()
 {
     $expected = (object) ["AsignarPinVentaResult" => (object) ["EjecucionExitosa" => true, "MensajeValidacion" => null]];
     $this->soapFake->shouldReceive("AsignarPinVenta")->andReturn($expected);
     $assign = new AssignPin();
     $assign->setDateBuy(new \DateTime())->setIdTicket(123)->setPin(123)->setStatus(OrderStatus::STATUS_APPROVED);
     $return = $this->client->assignPin($assign);
     $this->assertTrue($return);
 }
 public static function transformToArray(AssignPinObject $assignPin)
 {
     return ["pstrIdVentas" => [$assignPin->getIdTicket()], "pstrPINCompra" => $assignPin->getPin(), "pstrEstadoVenta" => $assignPin->getStatus(), "fechaTransa" => $assignPin->getDateBuy()->format('Y-m-d')];
 }