NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...

    NetSuite Subscription Line record type

    Hierarchy (View Summary)

    Index

    Constructors

    • Loads an existing record with the given internal id

      Parameters

      • id: NonNullable<string | number>

        record internal id to load

      • OptionalisDynamic: boolean

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

      Returns SubscriptionLineBase

      // load customer with internal id 123
      const c = new Customer(123)
    • Creates an NSDAL instance for the given existing NetSuite record object. This does NOT reload the record - it just wraps the supplied rec

      Parameters

      • rec: NonNullable<ClientCurrentRecord | Record>

        an existing netsuite record

      Returns SubscriptionLineBase

      // 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)
    • creates a new record

      Parameters

      • Optionalunused: Nullable<string | number>

        either null or leave this parameter out entirely

      • OptionalisDynamic: boolean

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

      • Optionaldefaultvalues: object

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

      Returns SubscriptionLineBase

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

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

    Properties

    _id: number

    Netsuite internal id of this record

    advancerenewalperiodnumber: number
    advancerenewalperiodunit: string | number

    NetSuite lists this as a select field, but often the value is a string (e.g. DAYS).

    billingaccountstartdate: Date

    Billing Account Start Date

    billingmode: string | number

    Billing Mode NetSuite lists this as a select field, but often the value is a string (e.g. IN_ADVANCE).

    catalogtype: string | number

    Catalog Type NetSuite lists this as a select field, but often the value is a string (e.g. OPTIONAL).

    currency: number

    Currency

    customform: number

    Custom Form

    defaultValues?: object
    enddate: Date

    End Date

    externalid: string

    External ID

    includeinrenewal: boolean

    Include In Renewal Subscription

    item: number

    Item

    linenumber: number

    Line Number

    nsrecord: Record

    underlying netsuite record

    ponumber: string

    PO Number

    prorateenddate: boolean

    Prorate End Date

    proratestartdate: boolean

    Prorate Start Date

    recurrencestartdate: Date

    Recurrence Start Date

    revrecoption: string

    Revenue Recognition Option

    salesorder: number

    Sales Order

    salesorderlinenumber: number

    Sales Order Line Number

    startdate: Date

    Start Date

    subscription: number

    Subscription

    subscriptionlinestatus: string | number

    Subscription Line Status NetSuite lists this as a select field, but often the value is a string (e.g. ACTIVE).

    subscriptionlinetype: number

    Subscription Line Type

    subscriptionplan: number

    Subscription Plan

    terminationdate: Date

    Termination Date

    total: string | number

    Total

    Accessors

    Methods

    • Persists this record to the NS database

      Parameters

      • OptionalenableSourcing: boolean
      • OptionalignoreMandatoryFields: boolean

      Returns number