Method: LockstepSdk::CompanyDetailsModel#as_json

Defined in:
lib/lockstep_sdk/models/company_details_model.rb

#as_json(options = {}) ⇒ object

Returns This object as a JSON key-value structure.

Returns:

  • (object)

    This object as a JSON key-value structure



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/lockstep_sdk/models/company_details_model.rb', line 135

def as_json(options={})
    {
        'groupKey' => @group_key,
        'customerId' => @customer_id,
        'name' => @name,
        'address1' => @address1,
        'address2' => @address2,
        'address3' => @address3,
        'city' => @city,
        'state' => @state,
        'postalCode' => @postal_code,
        'country' => @country,
        'phoneNumber' => @phone_number,
        'faxNumber' => @fax_number,
        'email' => @email,
        'contactId' => @contact_id,
        'contactName' => @contact_name,
        'contactEmail' => @contact_email,
        'outstandingInvoices' => @outstanding_invoices,
        'groupBaseCurrencyCode' => @group_base_currency_code,
        'outstandingAmount' => @outstanding_amount,
        'amountPastDue' => @amount_past_due,
        'payments' => @payments,
    }
end