Subscription Change Order NetSuite record | On creation, the following default values are required: action and subscription.

Hierarchy

Constructors

  • Loads an existing record with the given internal id

    Example

    // load customer with internal id 123
    const c = new Customer(123)

    Parameters

    • id: NonNullable<string | number>

      record internal id to load

    • Optional isDynamic: boolean

      set true if you want to load the record in dynamic mode

    Returns SubscriptionChangeOrderBase

  • Creates an NSDAL instance for the given existing NetSuite record object. This does NOT reload the record - it just wraps the supplied rec

    Example

    // assume `ctx` is the _context_ object passed to a `beforeSubmit()` entrypoint.
    // results in an NFT representation of the 'new record'
    const customer = new Customer(ctx.newRecord)

    Parameters

    • rec: NonNullable<ClientCurrentRecord | Record>

      an existing netsuite record

    Returns SubscriptionChangeOrderBase

  • creates a new record

    Example

    // start a new customer record
    const c = new Customer()

    // start a new customer record in dynamic mode
    const c = new Customer(null, true)

    Parameters

    • Optional unused: Nullable<string | number>

      either null or leave this parameter out entirely

    • Optional isDynamic: boolean

      true if you want to create the record in dynamic mode, otherwise uses standard mode.

    • Optional defaultvalues: object

      optional defaultvalues object - specific to certain records that allow initializing a new record.

    Returns SubscriptionChangeOrderBase

Properties

_id: number

Netsuite internal id of this record

approvaldate: Date

Date Approved

approvalstatus: string | number

Approval Status NetSuite lists this as a select field, but it is a string value (e.g. APPROVED).

billingaccount: number

Billing Account

createdby: string

Created By

customer: number

Customer

datecreated: Date

Date Created

defaultValues?: object
effectivedate: Date

Effective Date This date needs to match any other Change Order effective dates or else NetSuite will throw an error.

externalid: string

External ID

idnumber: string

Number

memo: string

Memo

modificationtype: string

Modification Type

New Lines (newsubline) Sublist

nsrecord: Record

underlying netsuite record

reactivationoption: number

Reactivation Option

renewalenddate: Date

Renewal End Date

renewalmethod: number

Renewal Method

renewalplan: number

Renewal Subscription Plan

renewalpricebook: number

Renewal Price Book

renewalstartdate: Date

Renewal Start Date

Renewal Steps (renewalsteps) Sublist

renewalterm: string | number

Renewal Term

renewaltrantype: number

Renewal Transaction Type

requestoffcycleinvoice: boolean

Request Off-Cycle Invoice For Advance Charges

requestor: number

Requester

Items (subline) Sublist

subscription: number

Subscription

subscriptionplan: number

Subscription Plan

subscriptiontermduration: number

Subscription Term Duration

subscriptiontermtype: string

Subscription Term Type

subsidiary: number

Subsidiary

Accessors

  • get id(): number
  • Returns number

Methods

  • Persists this record to the NS database

    Returns

    Parameters

    • Optional enableSourcing: boolean
    • Optional ignoreMandatoryFields: boolean

    Returns number

  • The netsuite record type (constant string) - this is declared here and overridden in derived classes

    Returns Type

Generated using TypeDoc