Sha256: 225d098a2609dd83c2ef92bfcfa2996f772108167f5e3617c6ff1eb1f41686dd

Contents?: true

Size: 937 Bytes

Versions: 44

Compression:

Stored size: 937 Bytes

Contents

---
title: NetSuite
layout: reference_netsuite
ledger: netsuite
---

### Resource Metadata and Schemas

Due to NetSuites granular user permissions and custom attributes, resources and methods for those resources can vary from one user (a.k.a. token) to another.  Because of this variance, there are some helper classes that allow you to retrieve NetSuite records, allowed methods, attributes/parameters, etc.

To retrieve the metadata for a record:

```ruby
metadata = LedgerSync::Ledgers::NetSuite::Record::Metadata.new(
  client: netsuite_client, # Assuming this is previous defined
  record: :customer
)

puts metadata.http_methods # Returns a list of LedgerSync::Ledgers::NetSuite::Record::HTTPMethod objects
puts metadata.properties # Returns a list of LedgerSync::Ledgers::NetSuite::Record::Property objects
```

### Reference

- [NetSuite REST API Documentation](https://docs.oracle.com/cloud/latest/netsuitecs_gs/NSTRW/NSTRW.pdf)

Version data entries

44 entries across 22 versions & 1 rubygems

Version Path
ledger_sync-1.4.1 documentation/site/reference/netsuite/index.md
ledger_sync-1.4.1 documentation/site/_includes/reference/netsuite/index.md
ledger_sync-1.4.0 documentation/site/reference/netsuite/index.md
ledger_sync-1.4.0 documentation/site/_includes/reference/netsuite/index.md