private function getGetPaymentPlanParamsResponseForTesting()
 {
     $config = Svea\SveaConfig::getDefaultConfig();
     $addressRequest = new GetPaymentPlanParams($config);
     $response = $addressRequest->setCountryCode("SE")->doRequest();
     return $response;
 }
 public function testResultGetPaymentPlanParams()
 {
     $config = Svea\SveaConfig::getDefaultConfig();
     $paymentPlanRequest = new GetPaymentPlanParams($config);
     $request = $paymentPlanRequest->setCountryCode("SE")->doRequest();
     $this->assertEquals(1, $request->accepted);
     $this->assertEquals(0, $request->resultcode);
     //        $this->assertEquals(213060, $request->campaignCodes[0]->campaignCode);//don't test to be flexible
     $this->assertEquals('Köp nu betala om 3 månader (räntefritt)', $request->campaignCodes[0]->description);
     $this->assertEquals('InterestAndAmortizationFree', $request->campaignCodes[0]->paymentPlanType);
     $this->assertEquals(3, $request->campaignCodes[0]->contractLengthInMonths);
     $this->assertEquals(100, $request->campaignCodes[0]->initialFee);
     $this->assertEquals(29, $request->campaignCodes[0]->notificationFee);
     $this->assertEquals(0, $request->campaignCodes[0]->interestRatePercent);
     $this->assertEquals(3, $request->campaignCodes[0]->numberOfInterestFreeMonths);
     $this->assertEquals(3, $request->campaignCodes[0]->numberOfPaymentFreeMonths);
     $this->assertEquals(1000, $request->campaignCodes[0]->fromAmount);
     $this->assertEquals(50000, $request->campaignCodes[0]->toAmount);
 }