lockstep_sdk 2022.4.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/lib/lockstep_sdk/clients/activities_client.rb +119 -0
  3. data/lib/lockstep_sdk/clients/api_keys_client.rb +78 -0
  4. data/lib/lockstep_sdk/clients/app_enrollments_client.rb +121 -0
  5. data/lib/lockstep_sdk/clients/applications_client.rb +100 -0
  6. data/lib/lockstep_sdk/clients/attachments_client.rb +121 -0
  7. data/lib/lockstep_sdk/clients/code_definitions_client.rb +60 -0
  8. data/lib/lockstep_sdk/clients/companies_client.rb +123 -0
  9. data/lib/lockstep_sdk/clients/contacts_client.rb +90 -0
  10. data/lib/lockstep_sdk/clients/credit_memo_applied_client.rb +92 -0
  11. data/lib/lockstep_sdk/clients/currencies_client.rb +55 -0
  12. data/lib/lockstep_sdk/clients/custom_field_definitions_client.rb +94 -0
  13. data/lib/lockstep_sdk/clients/custom_field_values_client.rb +97 -0
  14. data/lib/lockstep_sdk/clients/definitions_client.rb +95 -0
  15. data/lib/lockstep_sdk/clients/emails_client.rb +108 -0
  16. data/lib/lockstep_sdk/clients/invoice_history_client.rb +56 -0
  17. data/lib/lockstep_sdk/clients/invoices_client.rb +126 -0
  18. data/lib/lockstep_sdk/clients/leads_client.rb +40 -0
  19. data/lib/lockstep_sdk/clients/notes_client.rb +84 -0
  20. data/lib/lockstep_sdk/clients/payment_applications_client.rb +92 -0
  21. data/lib/lockstep_sdk/clients/payments_client.rb +138 -0
  22. data/lib/lockstep_sdk/clients/provisioning_client.rb +56 -0
  23. data/lib/lockstep_sdk/clients/reports_client.rb +114 -0
  24. data/lib/lockstep_sdk/clients/status_client.rb +53 -0
  25. data/lib/lockstep_sdk/clients/sync_client.rb +97 -0
  26. data/lib/lockstep_sdk/clients/user_accounts_client.rb +127 -0
  27. data/lib/lockstep_sdk/clients/user_roles_client.rb +54 -0
  28. data/lib/lockstep_sdk/lockstep_api.rb +264 -0
  29. data/lib/lockstep_sdk/models/activity_model.rb +221 -0
  30. data/lib/lockstep_sdk/models/activity_stream_item_model.rb +104 -0
  31. data/lib/lockstep_sdk/models/activity_xref_model.rb +72 -0
  32. data/lib/lockstep_sdk/models/aging_model.rb +62 -0
  33. data/lib/lockstep_sdk/models/api_key_model.rb +116 -0
  34. data/lib/lockstep_sdk/models/app_enrollment_custom_field_model.rb +110 -0
  35. data/lib/lockstep_sdk/models/app_enrollment_model.rb +151 -0
  36. data/lib/lockstep_sdk/models/application_model.rb +166 -0
  37. data/lib/lockstep_sdk/models/ar_aging_header_info_model.rb +86 -0
  38. data/lib/lockstep_sdk/models/ar_header_info_model.rb +170 -0
  39. data/lib/lockstep_sdk/models/at_risk_invoice_summary_model.rb +140 -0
  40. data/lib/lockstep_sdk/models/attachment_header_info_model.rb +74 -0
  41. data/lib/lockstep_sdk/models/attachment_model.rb +122 -0
  42. data/lib/lockstep_sdk/models/bulk_currency_conversion_model.rb +56 -0
  43. data/lib/lockstep_sdk/models/cashflow_report_model.rb +74 -0
  44. data/lib/lockstep_sdk/models/code_definition_model.rb +99 -0
  45. data/lib/lockstep_sdk/models/company_model.rb +336 -0
  46. data/lib/lockstep_sdk/models/connector_info_model.rb +69 -0
  47. data/lib/lockstep_sdk/models/contact_model.rb +227 -0
  48. data/lib/lockstep_sdk/models/country_model.rb +116 -0
  49. data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +150 -0
  50. data/lib/lockstep_sdk/models/credit_memo_invoice_model.rb +116 -0
  51. data/lib/lockstep_sdk/models/currency_model.rb +74 -0
  52. data/lib/lockstep_sdk/models/currency_rate_model.rb +68 -0
  53. data/lib/lockstep_sdk/models/custom_field_definition_model.rb +121 -0
  54. data/lib/lockstep_sdk/models/custom_field_value_model.rb +115 -0
  55. data/lib/lockstep_sdk/models/customer_details_model.rb +164 -0
  56. data/lib/lockstep_sdk/models/customer_details_payment_model.rb +104 -0
  57. data/lib/lockstep_sdk/models/customer_summary_model.rb +134 -0
  58. data/lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb +62 -0
  59. data/lib/lockstep_sdk/models/developer_account_submit_model.rb +62 -0
  60. data/lib/lockstep_sdk/models/email_model.rb +245 -0
  61. data/lib/lockstep_sdk/models/erp_info_data_model.rb +63 -0
  62. data/lib/lockstep_sdk/models/erp_info_model.rb +56 -0
  63. data/lib/lockstep_sdk/models/erp_model.rb +62 -0
  64. data/lib/lockstep_sdk/models/invite_data_model.rb +56 -0
  65. data/lib/lockstep_sdk/models/invite_model.rb +68 -0
  66. data/lib/lockstep_sdk/models/invite_submit_model.rb +50 -0
  67. data/lib/lockstep_sdk/models/invoice_address_model.rb +140 -0
  68. data/lib/lockstep_sdk/models/invoice_history_model.rb +238 -0
  69. data/lib/lockstep_sdk/models/invoice_line_model.rb +194 -0
  70. data/lib/lockstep_sdk/models/invoice_model.rb +325 -0
  71. data/lib/lockstep_sdk/models/invoice_payment_detail_model.rb +104 -0
  72. data/lib/lockstep_sdk/models/invoice_summary_model.rb +134 -0
  73. data/lib/lockstep_sdk/models/lead_model.rb +74 -0
  74. data/lib/lockstep_sdk/models/note_model.rb +121 -0
  75. data/lib/lockstep_sdk/models/payment_applied_model.rb +131 -0
  76. data/lib/lockstep_sdk/models/payment_detail_header_model.rb +80 -0
  77. data/lib/lockstep_sdk/models/payment_detail_model.rb +176 -0
  78. data/lib/lockstep_sdk/models/payment_model.rb +206 -0
  79. data/lib/lockstep_sdk/models/payment_summary_model.rb +128 -0
  80. data/lib/lockstep_sdk/models/provisioning_finalize_request_model.rb +74 -0
  81. data/lib/lockstep_sdk/models/provisioning_model.rb +74 -0
  82. data/lib/lockstep_sdk/models/provisioning_response_model.rb +86 -0
  83. data/lib/lockstep_sdk/models/risk_rate_model.rb +98 -0
  84. data/lib/lockstep_sdk/models/state_model.rb +62 -0
  85. data/lib/lockstep_sdk/models/status_model.rb +128 -0
  86. data/lib/lockstep_sdk/models/sync_entity_result_model.rb +74 -0
  87. data/lib/lockstep_sdk/models/sync_request_model.rb +98 -0
  88. data/lib/lockstep_sdk/models/sync_submit_model.rb +50 -0
  89. data/lib/lockstep_sdk/models/transfer_owner_model.rb +56 -0
  90. data/lib/lockstep_sdk/models/transfer_owner_submit_model.rb +50 -0
  91. data/lib/lockstep_sdk/models/user_account_model.rb +240 -0
  92. data/lib/lockstep_sdk/models/user_role_model.rb +86 -0
  93. data/lib/lockstep_sdk/version.rb +3 -0
  94. metadata +150 -0
@@ -0,0 +1,56 @@
1
+ #
2
+ # Lockstep Software Development Kit for Ruby
3
+ #
4
+ # (c) 2021-2022 Lockstep, Inc.
5
+ #
6
+ # For the full copyright and license information, please view the LICENSE
7
+ # file that was distributed with this source code.
8
+ #
9
+ # @author Ted Spence <tspence@lockstep.io>
10
+ # @author Manish Narayan B S <manish.n@lockstep.io>
11
+ # @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
12
+ # @copyright 2021-2022 Lockstep, Inc.
13
+ # @version 2022.4
14
+ # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
15
+ #
16
+
17
+
18
+ require 'json'
19
+
20
+ module LockstepSdk
21
+
22
+ ##
23
+ # Model containing information about a user for the invite/onboarding process.
24
+ class InviteDataModel
25
+
26
+ ##
27
+ # Initialize the InviteDataModel using the provided prototype
28
+ def initialize(params = {})
29
+ @email = params.dig(:email)
30
+ @user_status = params.dig(:user_status)
31
+ end
32
+
33
+ ##
34
+ # @return [String] The email address of the invited user.
35
+ attr_accessor :email
36
+
37
+ ##
38
+ # @return [String] The status of the user.
39
+ attr_accessor :user_status
40
+
41
+ ##
42
+ # @return [object] This object as a JSON key-value structure
43
+ def as_json(options={})
44
+ {
45
+ 'email' => @email,
46
+ 'userStatus' => @user_status,
47
+ }
48
+ end
49
+
50
+ ##
51
+ # @return [String] This object converted to a JSON string
52
+ def to_json(*options)
53
+ "[#{as_json(*options).to_json(*options)}]"
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,68 @@
1
+ #
2
+ # Lockstep Software Development Kit for Ruby
3
+ #
4
+ # (c) 2021-2022 Lockstep, Inc.
5
+ #
6
+ # For the full copyright and license information, please view the LICENSE
7
+ # file that was distributed with this source code.
8
+ #
9
+ # @author Ted Spence <tspence@lockstep.io>
10
+ # @author Manish Narayan B S <manish.n@lockstep.io>
11
+ # @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
12
+ # @copyright 2021-2022 Lockstep, Inc.
13
+ # @version 2022.4
14
+ # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
15
+ #
16
+
17
+
18
+ require 'json'
19
+
20
+ module LockstepSdk
21
+
22
+ ##
23
+ # Model from the User invite process
24
+ class InviteModel
25
+
26
+ ##
27
+ # Initialize the InviteModel using the provided prototype
28
+ def initialize(params = {})
29
+ @email = params.dig(:email)
30
+ @success = params.dig(:success)
31
+ @invited_user = params.dig(:invited_user)
32
+ @error_message = params.dig(:error_message)
33
+ end
34
+
35
+ ##
36
+ # @return [String] The invited email address
37
+ attr_accessor :email
38
+
39
+ ##
40
+ # @return [Boolean] True if the invite was sent successfully
41
+ attr_accessor :success
42
+
43
+ ##
44
+ # @return [UserAccountModel] The invited user, may be null if the user could not be invited
45
+ attr_accessor :invited_user
46
+
47
+ ##
48
+ # @return [String] The error message if the invite was not successful
49
+ attr_accessor :error_message
50
+
51
+ ##
52
+ # @return [object] This object as a JSON key-value structure
53
+ def as_json(options={})
54
+ {
55
+ 'email' => @email,
56
+ 'success' => @success,
57
+ 'invitedUser' => @invited_user,
58
+ 'errorMessage' => @error_message,
59
+ }
60
+ end
61
+
62
+ ##
63
+ # @return [String] This object converted to a JSON string
64
+ def to_json(*options)
65
+ "[#{as_json(*options).to_json(*options)}]"
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,50 @@
1
+ #
2
+ # Lockstep Software Development Kit for Ruby
3
+ #
4
+ # (c) 2021-2022 Lockstep, Inc.
5
+ #
6
+ # For the full copyright and license information, please view the LICENSE
7
+ # file that was distributed with this source code.
8
+ #
9
+ # @author Ted Spence <tspence@lockstep.io>
10
+ # @author Manish Narayan B S <manish.n@lockstep.io>
11
+ # @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
12
+ # @copyright 2021-2022 Lockstep, Inc.
13
+ # @version 2022.4
14
+ # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
15
+ #
16
+
17
+
18
+ require 'json'
19
+
20
+ module LockstepSdk
21
+
22
+ ##
23
+ # Model to invite a new user to your accounting group
24
+ class InviteSubmitModel
25
+
26
+ ##
27
+ # Initialize the InviteSubmitModel using the provided prototype
28
+ def initialize(params = {})
29
+ @email = params.dig(:email)
30
+ end
31
+
32
+ ##
33
+ # @return [Email] The email address of the user to invite
34
+ attr_accessor :email
35
+
36
+ ##
37
+ # @return [object] This object as a JSON key-value structure
38
+ def as_json(options={})
39
+ {
40
+ 'email' => @email,
41
+ }
42
+ end
43
+
44
+ ##
45
+ # @return [String] This object converted to a JSON string
46
+ def to_json(*options)
47
+ "[#{as_json(*options).to_json(*options)}]"
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,140 @@
1
+ #
2
+ # Lockstep Software Development Kit for Ruby
3
+ #
4
+ # (c) 2021-2022 Lockstep, Inc.
5
+ #
6
+ # For the full copyright and license information, please view the LICENSE
7
+ # file that was distributed with this source code.
8
+ #
9
+ # @author Ted Spence <tspence@lockstep.io>
10
+ # @author Manish Narayan B S <manish.n@lockstep.io>
11
+ # @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
12
+ # @copyright 2021-2022 Lockstep, Inc.
13
+ # @version 2022.4
14
+ # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
15
+ #
16
+
17
+
18
+ require 'json'
19
+
20
+ module LockstepSdk
21
+
22
+ ##
23
+ # Represents a single address for an invoice
24
+ class InvoiceAddressModel
25
+
26
+ ##
27
+ # Initialize the InvoiceAddressModel using the provided prototype
28
+ def initialize(params = {})
29
+ @invoice_address_id = params.dig(:invoice_address_id)
30
+ @group_key = params.dig(:group_key)
31
+ @invoice_id = params.dig(:invoice_id)
32
+ @line1 = params.dig(:line1)
33
+ @line2 = params.dig(:line2)
34
+ @line3 = params.dig(:line3)
35
+ @city = params.dig(:city)
36
+ @region = params.dig(:region)
37
+ @postal_code = params.dig(:postal_code)
38
+ @country = params.dig(:country)
39
+ @latitude = params.dig(:latitude)
40
+ @longitude = params.dig(:longitude)
41
+ @created = params.dig(:created)
42
+ @created_user_id = params.dig(:created_user_id)
43
+ @modified = params.dig(:modified)
44
+ @modified_user_id = params.dig(:modified_user_id)
45
+ end
46
+
47
+ ##
48
+ # @return [Uuid] The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
49
+ attr_accessor :invoice_address_id
50
+
51
+ ##
52
+ # @return [Uuid] 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](https://developer.lockstep.io/docs/accounts-and-groupkeys).
53
+ attr_accessor :group_key
54
+
55
+ ##
56
+ # @return [Uuid] The ID number of the invoice this address belongs to
57
+ attr_accessor :invoice_id
58
+
59
+ ##
60
+ # @return [String] The first line of the address.
61
+ attr_accessor :line1
62
+
63
+ ##
64
+ # @return [String] The second line of the address.
65
+ attr_accessor :line2
66
+
67
+ ##
68
+ # @return [String] The third line of the address.
69
+ attr_accessor :line3
70
+
71
+ ##
72
+ # @return [String] The name of the city for this address.
73
+ attr_accessor :city
74
+
75
+ ##
76
+ # @return [String] The state or region part of this address.
77
+ attr_accessor :region
78
+
79
+ ##
80
+ # @return [String] The postal code for this address.
81
+ attr_accessor :postal_code
82
+
83
+ ##
84
+ # @return [String] The country for this address.
85
+ attr_accessor :country
86
+
87
+ ##
88
+ # @return [Float] The latitude of this address, if available.
89
+ attr_accessor :latitude
90
+
91
+ ##
92
+ # @return [Float] The longitude of this address, if available.
93
+ attr_accessor :longitude
94
+
95
+ ##
96
+ # @return [Date-time] The date on which this address record was created.
97
+ attr_accessor :created
98
+
99
+ ##
100
+ # @return [Uuid] The ID number of the user who created this address.
101
+ attr_accessor :created_user_id
102
+
103
+ ##
104
+ # @return [Date-time] The date on which this address record was last modified.
105
+ attr_accessor :modified
106
+
107
+ ##
108
+ # @return [Uuid] The ID number of the user who most recently modified this address.
109
+ attr_accessor :modified_user_id
110
+
111
+ ##
112
+ # @return [object] This object as a JSON key-value structure
113
+ def as_json(options={})
114
+ {
115
+ 'invoiceAddressId' => @invoice_address_id,
116
+ 'groupKey' => @group_key,
117
+ 'invoiceId' => @invoice_id,
118
+ 'line1' => @line1,
119
+ 'line2' => @line2,
120
+ 'line3' => @line3,
121
+ 'city' => @city,
122
+ 'region' => @region,
123
+ 'postalCode' => @postal_code,
124
+ 'country' => @country,
125
+ 'latitude' => @latitude,
126
+ 'longitude' => @longitude,
127
+ 'created' => @created,
128
+ 'createdUserId' => @created_user_id,
129
+ 'modified' => @modified,
130
+ 'modifiedUserId' => @modified_user_id,
131
+ }
132
+ end
133
+
134
+ ##
135
+ # @return [String] This object converted to a JSON string
136
+ def to_json(*options)
137
+ "[#{as_json(*options).to_json(*options)}]"
138
+ end
139
+ end
140
+ end
@@ -0,0 +1,238 @@
1
+ #
2
+ # Lockstep Software Development Kit for Ruby
3
+ #
4
+ # (c) 2021-2022 Lockstep, Inc.
5
+ #
6
+ # For the full copyright and license information, please view the LICENSE
7
+ # file that was distributed with this source code.
8
+ #
9
+ # @author Ted Spence <tspence@lockstep.io>
10
+ # @author Manish Narayan B S <manish.n@lockstep.io>
11
+ # @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
12
+ # @copyright 2021-2022 Lockstep, Inc.
13
+ # @version 2022.4
14
+ # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
15
+ #
16
+
17
+
18
+ require 'json'
19
+
20
+ module LockstepSdk
21
+
22
+ ##
23
+ # An Invoice represents a bill sent from one company to another. The Lockstep Platform tracks changes to
24
+ # each Invoice so that you can observe the changes over time. You can view the InvoiceHistory list to
25
+ # monitor and observe the changes of this Invoice and track the dates when changes occurred.
26
+ class InvoiceHistoryModel
27
+
28
+ ##
29
+ # Initialize the InvoiceHistoryModel using the provided prototype
30
+ def initialize(params = {})
31
+ @group_key = params.dig(:group_key)
32
+ @invoice_history_id = params.dig(:invoice_history_id)
33
+ @invoice_id = params.dig(:invoice_id)
34
+ @company_id = params.dig(:company_id)
35
+ @customer_id = params.dig(:customer_id)
36
+ @erp_key = params.dig(:erp_key)
37
+ @purchase_order_code = params.dig(:purchase_order_code)
38
+ @reference_code = params.dig(:reference_code)
39
+ @salesperson_code = params.dig(:salesperson_code)
40
+ @salesperson_name = params.dig(:salesperson_name)
41
+ @invoice_type_code = params.dig(:invoice_type_code)
42
+ @invoice_status_code = params.dig(:invoice_status_code)
43
+ @terms_code = params.dig(:terms_code)
44
+ @special_terms = params.dig(:special_terms)
45
+ @currency_code = params.dig(:currency_code)
46
+ @total_amount = params.dig(:total_amount)
47
+ @sales_tax_amount = params.dig(:sales_tax_amount)
48
+ @discount_amount = params.dig(:discount_amount)
49
+ @outstanding_balance_amount = params.dig(:outstanding_balance_amount)
50
+ @invoice_date = params.dig(:invoice_date)
51
+ @discount_date = params.dig(:discount_date)
52
+ @posted_date = params.dig(:posted_date)
53
+ @invoice_closed_date = params.dig(:invoice_closed_date)
54
+ @payment_due_date = params.dig(:payment_due_date)
55
+ @imported_date = params.dig(:imported_date)
56
+ @primary_origin_address_id = params.dig(:primary_origin_address_id)
57
+ @primary_bill_to_address_id = params.dig(:primary_bill_to_address_id)
58
+ @primary_ship_to_address_id = params.dig(:primary_ship_to_address_id)
59
+ @created = params.dig(:created)
60
+ @created_user_id = params.dig(:created_user_id)
61
+ @modified = params.dig(:modified)
62
+ @modified_user_id = params.dig(:modified_user_id)
63
+ end
64
+
65
+ ##
66
+ # @return [Uuid] 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](https://developer.lockstep.io/docs/accounts-and-groupkeys).
67
+ attr_accessor :group_key
68
+
69
+ ##
70
+ # @return [Uuid] The unique ID number of this invoice history entry.
71
+ attr_accessor :invoice_history_id
72
+
73
+ ##
74
+ # @return [Uuid] The unique ID of the Invoice represented by this history entry. This ID was automatically assigned by Lockstep to the Invoice record when it was added to the Lockstep platform. For the ID of this record in its originating financial system, see `ErpKey`.
75
+ attr_accessor :invoice_id
76
+
77
+ ##
78
+ # @return [Uuid] The ID number of the company that created this invoice.
79
+ attr_accessor :company_id
80
+
81
+ ##
82
+ # @return [Uuid] The ID number of the counterparty for the invoice, for example, a customer or vendor.
83
+ attr_accessor :customer_id
84
+
85
+ ##
86
+ # @return [String] The unique ID of this record as it was known in its originating financial system. If this company record was imported from a financial system, it will have the value `ErpKey` set to the original primary key number of the record as it was known in the originating financial system. If this record was not imported, this value will be `null`. For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
87
+ attr_accessor :erp_key
88
+
89
+ ##
90
+ # @return [String] The purchase order code as it exists in the user's ERP or accounting system.
91
+ attr_accessor :purchase_order_code
92
+
93
+ ##
94
+ # @return [String] An additional reference code that is sometimes used to identify this invoice. The meaning of this field is specific to the ERP or accounting system used by the user.
95
+ attr_accessor :reference_code
96
+
97
+ ##
98
+ # @return [String] A code identifying the salesperson responsible for writing this invoice.
99
+ attr_accessor :salesperson_code
100
+
101
+ ##
102
+ # @return [String] A string identifying the salesperson responsible for writing this invoice.
103
+ attr_accessor :salesperson_name
104
+
105
+ ##
106
+ # @return [String] A code identifying the type of this invoice.
107
+ attr_accessor :invoice_type_code
108
+
109
+ ##
110
+ # @return [String] A code identifying the status of this invoice.
111
+ attr_accessor :invoice_status_code
112
+
113
+ ##
114
+ # @return [String] A code identifying the terms given to the purchaser.
115
+ attr_accessor :terms_code
116
+
117
+ ##
118
+ # @return [String] If the customer negotiated any special terms different from the standard terms above, describe them here.
119
+ attr_accessor :special_terms
120
+
121
+ ##
122
+ # @return [String] The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/currencies data set
123
+ attr_accessor :currency_code
124
+
125
+ ##
126
+ # @return [Double] The total value of this invoice, inclusive of all taxes and line items.
127
+ attr_accessor :total_amount
128
+
129
+ ##
130
+ # @return [Double] The total sales (or transactional) tax calculated for this invoice.
131
+ attr_accessor :sales_tax_amount
132
+
133
+ ##
134
+ # @return [Double] The total discounts given by the seller to the buyer on this invoice.
135
+ attr_accessor :discount_amount
136
+
137
+ ##
138
+ # @return [Double] The remaining balance value of this invoice.
139
+ attr_accessor :outstanding_balance_amount
140
+
141
+ ##
142
+ # @return [Date] The reporting date for this invoice.
143
+ attr_accessor :invoice_date
144
+
145
+ ##
146
+ # @return [Date] The date when discounts were adjusted for this invoice.
147
+ attr_accessor :discount_date
148
+
149
+ ##
150
+ # @return [Date] The date when this invoice posted to the company's general ledger.
151
+ attr_accessor :posted_date
152
+
153
+ ##
154
+ # @return [Date] The date when the invoice was closed and finalized after completion of all payments and delivery of all products and services.
155
+ attr_accessor :invoice_closed_date
156
+
157
+ ##
158
+ # @return [Date] The date when the remaining outstanding balance is due.
159
+ attr_accessor :payment_due_date
160
+
161
+ ##
162
+ # @return [Date-time] The date and time when this record was imported from the user's ERP or accounting system.
163
+ attr_accessor :imported_date
164
+
165
+ ##
166
+ # @return [Uuid] The ID number of the invoice's origination address
167
+ attr_accessor :primary_origin_address_id
168
+
169
+ ##
170
+ # @return [Uuid] The ID number of the invoice's bill-to address
171
+ attr_accessor :primary_bill_to_address_id
172
+
173
+ ##
174
+ # @return [Uuid] The ID number of the invoice's ship-to address
175
+ attr_accessor :primary_ship_to_address_id
176
+
177
+ ##
178
+ # @return [Date-time] The date on which this invoice record was created.
179
+ attr_accessor :created
180
+
181
+ ##
182
+ # @return [Uuid] The ID number of the user who created this invoice.
183
+ attr_accessor :created_user_id
184
+
185
+ ##
186
+ # @return [Date-time] The date on which this invoice record was last modified.
187
+ attr_accessor :modified
188
+
189
+ ##
190
+ # @return [Uuid] The ID number of the user who most recently modified this invoice.
191
+ attr_accessor :modified_user_id
192
+
193
+ ##
194
+ # @return [object] This object as a JSON key-value structure
195
+ def as_json(options={})
196
+ {
197
+ 'groupKey' => @group_key,
198
+ 'invoiceHistoryId' => @invoice_history_id,
199
+ 'invoiceId' => @invoice_id,
200
+ 'companyId' => @company_id,
201
+ 'customerId' => @customer_id,
202
+ 'erpKey' => @erp_key,
203
+ 'purchaseOrderCode' => @purchase_order_code,
204
+ 'referenceCode' => @reference_code,
205
+ 'salespersonCode' => @salesperson_code,
206
+ 'salespersonName' => @salesperson_name,
207
+ 'invoiceTypeCode' => @invoice_type_code,
208
+ 'invoiceStatusCode' => @invoice_status_code,
209
+ 'termsCode' => @terms_code,
210
+ 'specialTerms' => @special_terms,
211
+ 'currencyCode' => @currency_code,
212
+ 'totalAmount' => @total_amount,
213
+ 'salesTaxAmount' => @sales_tax_amount,
214
+ 'discountAmount' => @discount_amount,
215
+ 'outstandingBalanceAmount' => @outstanding_balance_amount,
216
+ 'invoiceDate' => @invoice_date,
217
+ 'discountDate' => @discount_date,
218
+ 'postedDate' => @posted_date,
219
+ 'invoiceClosedDate' => @invoice_closed_date,
220
+ 'paymentDueDate' => @payment_due_date,
221
+ 'importedDate' => @imported_date,
222
+ 'primaryOriginAddressId' => @primary_origin_address_id,
223
+ 'primaryBillToAddressId' => @primary_bill_to_address_id,
224
+ 'primaryShipToAddressId' => @primary_ship_to_address_id,
225
+ 'created' => @created,
226
+ 'createdUserId' => @created_user_id,
227
+ 'modified' => @modified,
228
+ 'modifiedUserId' => @modified_user_id,
229
+ }
230
+ end
231
+
232
+ ##
233
+ # @return [String] This object converted to a JSON string
234
+ def to_json(*options)
235
+ "[#{as_json(*options).to_json(*options)}]"
236
+ end
237
+ end
238
+ end