Skip to content

Added AsyncAddList to Invoice#1

Merged
diegopolido merged 1 commit intopenrosehill:masterfrom
prburke:upstream_async_add_list
Oct 7, 2021
Merged

Added AsyncAddList to Invoice#1
diegopolido merged 1 commit intopenrosehill:masterfrom
prburke:upstream_async_add_list

Conversation

@diegopolido
Copy link
Copy Markdown

PR copied from NetSweet#169

Added AsyncAddList action to Invoice. Also added basic infrastructure that can be extended to support other asynchronous requests (e.g. NetSuite::Async::Status, NetSuite::Async::WriteResponseList, etc.)

Here is a simplified example of how it can be used:

job_status = NetSuite::Records::Invoice.async_add_list([invoices])
if job_status
  begin
    job_status = NetSuite::Async::Status.get(job_id: job_status.job_id)
    ...
  end until job_status.finished?
  response = NetSuite::Async::WriteResponseList.get(job_id: job_id)
  ...
end

@diegopolido diegopolido changed the base branch from master to upstream_async_add_list October 7, 2021 19:55
@diegopolido diegopolido changed the base branch from upstream_async_add_list to master October 7, 2021 19:56
@diegopolido diegopolido merged commit d735007 into penrosehill:master Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants