Class: LockstepSdk::InvoiceAddressModel
- Inherits:
-
Object
- Object
- LockstepSdk::InvoiceAddressModel
- Defined in:
- lib/lockstep_sdk/models/invoice_address_model.rb
Overview
Represents a single address for an invoice
Instance Attribute Summary collapse
-
#app_enrollment_id ⇒ Uuid
The AppEnrollmentId of the application that imported this record.
-
#city ⇒ String
The name of the city for this address.
-
#country ⇒ String
The country for this address.
-
#created ⇒ Date-time
The date on which this address record was created.
-
#created_user_id ⇒ Uuid
The ID number of the user who created this address.
-
#group_key ⇒ Uuid
The GroupKey uniquely identifies a single Lockstep Platform account.
-
#invoice_address_id ⇒ Uuid
The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
-
#invoice_id ⇒ Uuid
The ID number of the invoice this address belongs to.
-
#latitude ⇒ Float
The latitude of this address, if available.
-
#line1 ⇒ String
The first line of the address.
-
#line2 ⇒ String
The second line of the address.
-
#line3 ⇒ String
The third line of the address.
-
#longitude ⇒ Float
The longitude of this address, if available.
-
#modified ⇒ Date-time
The date on which this address record was last modified.
-
#modified_user_id ⇒ Uuid
The ID number of the user who most recently modified this address.
-
#postal_code ⇒ String
The postal code for this address.
-
#region ⇒ String
The state or region part of this address.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ InvoiceAddressModel
constructor
Initialize the InvoiceAddressModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ InvoiceAddressModel
Initialize the InvoiceAddressModel using the provided prototype
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 25 def initialize(params = {}) @invoice_address_id = params.dig(:invoice_address_id) @group_key = params.dig(:group_key) @invoice_id = params.dig(:invoice_id) @line1 = params.dig(:line1) @line2 = params.dig(:line2) @line3 = params.dig(:line3) @city = params.dig(:city) @region = params.dig(:region) @postal_code = params.dig(:postal_code) @country = params.dig(:country) @latitude = params.dig(:latitude) @longitude = params.dig(:longitude) @created = params.dig(:created) @created_user_id = params.dig(:created_user_id) @modified = params.dig(:modified) @modified_user_id = params.dig(:modified_user_id) @app_enrollment_id = params.dig(:app_enrollment_id) end |
Instance Attribute Details
#app_enrollment_id ⇒ Uuid
Returns The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
111 112 113 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 111 def app_enrollment_id @app_enrollment_id end |
#city ⇒ String
Returns The name of the city for this address.
71 72 73 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 71 def city @city end |
#country ⇒ String
Returns The country for this address.
83 84 85 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 83 def country @country end |
#created ⇒ Date-time
Returns The date on which this address record was created.
95 96 97 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 95 def created @created end |
#created_user_id ⇒ Uuid
Returns The ID number of the user who created this address.
99 100 101 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 99 def created_user_id @created_user_id end |
#group_key ⇒ Uuid
Returns The GroupKey uniquely identifies a single Lockstep Platform account. All records for this account will share the same GroupKey value. GroupKey values cannot be changed once created. For more information, see [Accounts and GroupKeys](developer.lockstep.io/docs/accounts-and-groupkeys).
51 52 53 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 51 def group_key @group_key end |
#invoice_address_id ⇒ Uuid
Returns The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
47 48 49 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 47 def invoice_address_id @invoice_address_id end |
#invoice_id ⇒ Uuid
Returns The ID number of the invoice this address belongs to.
55 56 57 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 55 def invoice_id @invoice_id end |
#latitude ⇒ Float
Returns The latitude of this address, if available.
87 88 89 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 87 def latitude @latitude end |
#line1 ⇒ String
Returns The first line of the address.
59 60 61 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 59 def line1 @line1 end |
#line2 ⇒ String
Returns The second line of the address.
63 64 65 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 63 def line2 @line2 end |
#line3 ⇒ String
Returns The third line of the address.
67 68 69 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 67 def line3 @line3 end |
#longitude ⇒ Float
Returns The longitude of this address, if available.
91 92 93 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 91 def longitude @longitude end |
#modified ⇒ Date-time
Returns The date on which this address record was last modified.
103 104 105 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 103 def modified @modified end |
#modified_user_id ⇒ Uuid
Returns The ID number of the user who most recently modified this address.
107 108 109 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 107 def modified_user_id @modified_user_id end |
#postal_code ⇒ String
Returns The postal code for this address.
79 80 81 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 79 def postal_code @postal_code end |
#region ⇒ String
Returns The state or region part of this address.
75 76 77 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 75 def region @region end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 115 def as_json(={}) { 'invoiceAddressId' => @invoice_address_id, 'groupKey' => @group_key, 'invoiceId' => @invoice_id, 'line1' => @line1, 'line2' => @line2, 'line3' => @line3, 'city' => @city, 'region' => @region, 'postalCode' => @postal_code, 'country' => @country, 'latitude' => @latitude, 'longitude' => @longitude, 'created' => @created, 'createdUserId' => @created_user_id, 'modified' => @modified, 'modifiedUserId' => @modified_user_id, 'appEnrollmentId' => @app_enrollment_id, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
139 140 141 |
# File 'lib/lockstep_sdk/models/invoice_address_model.rb', line 139 def to_json(*) "[#{as_json(*options).to_json(*options)}]" end |