Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added AsyncAddList to Invoice #1

Merged
merged 1 commit into from
Oct 7, 2021

Conversation

diegopolido
Copy link

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