Code Monkey home page Code Monkey logo

netsuite-restlet-php-sdk's People

Contributors

nebkam avatar silvesterk avatar vodzo avatar zidar-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

netsuite-restlet-php-sdk's Issues

Change the way scriptlets are parametrized

Currently, scripts are parametrized by their IDs in config.json
What we were afraid of, deploy URL param can (and does) differ in sandbox VS development
So, how do we handle this?

  1. Parametrize the full URL?
  2. Parametrize the path?
  3. Parametrize script ID and deploy ID as a touple?
  4. Something else?

In any case, it will have to be a BC breaking change, since we're changing int to string or array or something else..
Please comment your thoughts @silvesterk @Shinhan @Vodzo @tabonka

Normalizovanje datumskih polja

U OldCrmPaymentItem bi bilo lepo namestiti da transactionDate i lastModifiedDate budu DateTime objekti. Verovatno je isti problem i sa PaymentItem koji ima vrlo sličnu strukturu.

Primer podataka koje dobijamo od servera:
{ "recordType": "customerpayment", "lastmodifieddate": "15.06.2021 12:16", "trandate": "22.02.2021", "customer": "16377", "line": "1", "tranid": "46737", "amount": "5000.00", "invoice_old_crm_id": "514809", "appliedtotransaction": "Invoice #01-2105867" }

Guzzle method Utils::chooseHandler does not exist in versions lower than 7

File: src/ApiClient.php

private function bootstrapGuzzle(?LoggerInterface $logger): Client
		{
		$stack = new HandlerStack();
                // The line with the method
		$stack->setHandler(Utils::chooseHandler());
		if ($logger)
			{
			$stack->push(Middleware::log($logger, new MessageFormatter(MessageFormatter::DEBUG), LogLevel::DEBUG));
			}

		return new Client([
			'handler' => $stack
		]);
		}

Error message: Call to undefined method GuzzleHttp\Utils::chooseHandler()
Guzzle version: ^6.3

Changing the Guzzle version is not a possibility .

I quickfixed the issue on my local by changing the line in question with the following code:

$stack->setHandler(new CurlHandler());

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.