lockstep_rails 0.3.73 → 0.3.74

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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/lockstep/invoice.rb +1 -1
  3. data/app/platform_api/schema/company_magic_link_summary.rb +2 -2
  4. data/app/platform_api/schema/credit_memo_applied.rb +4 -0
  5. data/app/platform_api/schema/credit_memo_applied_sync.rb +10 -0
  6. data/app/platform_api/schema/e_invoice_attachment.rb +26 -0
  7. data/app/platform_api/schema/error.rb +33 -0
  8. data/app/platform_api/schema/financial_account.rb +4 -0
  9. data/app/platform_api/schema/financial_account_sync.rb +4 -0
  10. data/app/platform_api/schema/inbound_company_sync.rb +151 -0
  11. data/app/platform_api/schema/inbound_invoice_sync.rb +147 -0
  12. data/app/platform_api/schema/inbound_payment_application.rb +50 -0
  13. data/app/platform_api/schema/inbound_payment_sync.rb +109 -0
  14. data/app/platform_api/schema/inbound_sync_invoice_lines.rb +67 -0
  15. data/app/platform_api/schema/inbound_sync_primary_contact.rb +123 -0
  16. data/app/platform_api/schema/inbound_sync_report_data.rb +25 -0
  17. data/app/platform_api/schema/inbound_sync_report_data_json_api_data.rb +13 -0
  18. data/app/platform_api/schema/inbound_sync_report_summary.rb +25 -0
  19. data/app/platform_api/schema/invoice.rb +4 -0
  20. data/app/platform_api/schema/invoice_line.rb +4 -0
  21. data/app/platform_api/schema/invoice_workflow_status_history.rb +4 -0
  22. data/app/platform_api/schema/journal_entry_line.rb +7 -0
  23. data/app/platform_api/schema/journal_entry_line_sync.rb +7 -0
  24. data/app/platform_api/schema/json_api_resource_head.rb +18 -0
  25. data/app/platform_api/schema/manifest_response.rb +19 -0
  26. data/app/platform_api/schema/meta.rb +18 -0
  27. data/app/platform_api/schema/payment.rb +4 -0
  28. data/app/platform_api/schema/payment_applied.rb +4 -0
  29. data/app/platform_api/schema/relationship.rb +19 -0
  30. data/app/platform_api/schema/relationship_detail.rb +11 -0
  31. data/app/platform_api/schema/source.rb +14 -0
  32. data/app/platform_api/schema/sync_payload.rb +13 -0
  33. data/app/platform_api/schema/sync_request.rb +3 -0
  34. data/app/platform_api/schema/workflow_status.rb +3 -0
  35. data/app/platform_api/swagger.json +9730 -12095
  36. data/lib/lockstep_rails/version.rb +1 -1
  37. metadata +20 -2
@@ -0,0 +1,123 @@
1
+ class Schema::InboundSyncPrimaryContact < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The unique identifier of this object in the Sage Network platform.
9
+ # @type: string
10
+ # @format: uuid
11
+ field :network_id
12
+
13
+ # This is the primary key of the Contact record. For this field, you should use whatever the contact's unique
14
+ # identifying number is in the originating system. Search for a unique, non-changing number within the
15
+ # originating financial system for this record.
16
+ #
17
+ # Example: If you store your contact records in a database, whatever the primary key for the contact table is
18
+ # in the database should be the "ErpKey".
19
+ #
20
+ # As some ERP systems don't maintain a unique key for Contacts, we also support syncing Contacts with ERP keys
21
+ # of the form {prefix}|{index}, for example ContactPrefix|1, ContactPrefix|2 and so on.
22
+ #
23
+ # For this reason, please ensure that your Contact ERP keys don't otherwise contain the '|' symbol or that it
24
+ # is replaced by an alternate symbol if they do.
25
+ #
26
+ # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
27
+ # @type: string
28
+ field :erp_key
29
+
30
+ # The original primary key or unique ID of the company to which this contact belongs. This value should
31
+ # match the [Company ErpKey](https://developer.lockstep.io/docs/importing-companies#erpkey) field on the
32
+ # [CompanySyncModel](https://developer.lockstep.io/docs/importing-companies).
33
+ # @type: string
34
+ field :company_erp_key
35
+
36
+ # The name of the contact.
37
+ # @type: string
38
+ field :contact_name
39
+
40
+ # A friendly human-readable code that describes this Contact.
41
+ # @type: string
42
+ field :contact_code
43
+
44
+ # The title of the contact.
45
+ # @type: string
46
+ field :title
47
+
48
+ # The role code for the contact.
49
+ # @type: string
50
+ field :role_code
51
+
52
+ # The email address of the contact.
53
+ # @type: string
54
+ field :email_address
55
+
56
+ # The phone number of the contact.
57
+ # @type: string
58
+ field :phone
59
+
60
+ # The fax number of the contact.
61
+ # @type: string
62
+ field :fax
63
+
64
+ # The mailing address information for this contact.
65
+ # @type: string
66
+ field :address1
67
+
68
+ # The mailing address information for this contact.
69
+ # @type: string
70
+ field :address2
71
+
72
+ # The mailing address information for this contact.
73
+ # @type: string
74
+ field :address3
75
+
76
+ # The mailing address information for this contact.
77
+ # @type: string
78
+ field :city
79
+
80
+ # The mailing address information for this contact.
81
+ # @type: string
82
+ field :state_region
83
+
84
+ # The mailing address information for this contact.
85
+ # @type: string
86
+ field :postal_code
87
+
88
+ # The mailing address information for this contact.
89
+ # @type: string
90
+ field :country_code
91
+
92
+ # True if this contact is considered "active".
93
+ # @type: boolean
94
+ field :is_active
95
+
96
+ # A webpage URL for more information about this contact.
97
+ # @type: string
98
+ field :webpage_url
99
+
100
+ # If available, the URL of a photograph that shows this contact.
101
+ # @type: string
102
+ field :picture_url
103
+
104
+ # If known, the date when this record was created according to the originating financial system
105
+ # in which this record is maintained. If the originating financial system does not maintain a
106
+ # created-date, leave this field null.
107
+ # @type: string
108
+ # @format: date-time
109
+ field :created, Types::Params::DateTime
110
+
111
+ # If known, the date when this record was most recently modified according to the originating
112
+ # financial system in which this record is maintained. If the originating financial system does
113
+ # not maintain a most-recently-modified-date, leave this field null.
114
+ # @type: string
115
+ # @format: date-time
116
+ field :modified, Types::Params::DateTime
117
+
118
+ # Enum defining which action to take for a model during the sync process.
119
+ field :on_match_action
120
+
121
+
122
+
123
+ end
@@ -0,0 +1,25 @@
1
+ class Schema::InboundSyncReportData < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Unique Id of this resource in system.
9
+ # @type: string
10
+ field :id
11
+
12
+ # A known resource type.
13
+ # @type: string
14
+ field :type
15
+
16
+ # Attributes of the resource to explain the object.
17
+ field :attributes
18
+
19
+ # Relationships of the resource.
20
+ field :relationships
21
+
22
+
23
+ has_many :errors, {:class_name=>"Schema::Error", :included=>true}
24
+
25
+ end
@@ -0,0 +1,13 @@
1
+ class Schema::InboundSyncReportDataJsonApiData < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Json API data.
9
+ field :data
10
+
11
+
12
+
13
+ end
@@ -0,0 +1,25 @@
1
+ class Schema::InboundSyncReportSummary < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Total Created entities
9
+ # @type: integer
10
+ # @format: int32
11
+ field :total_created
12
+
13
+ # Total Updated entities
14
+ # @type: integer
15
+ # @format: int32
16
+ field :total_update
17
+
18
+ # Total Deleted entities
19
+ # @type: integer
20
+ # @format: int32
21
+ field :total_deleted
22
+
23
+
24
+
25
+ end
@@ -262,6 +262,10 @@ end
262
262
  # @type: boolean
263
263
  field :is_e_invoice
264
264
 
265
+ # Additional attributes that may be required by the source system.
266
+ # @type: object
267
+ field :erp_system_attributes
268
+
265
269
  belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
266
270
  belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
267
271
  belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
@@ -144,6 +144,10 @@ end
144
144
  # @format: date-time
145
145
  field :source_modified_date, Types::Params::DateTime
146
146
 
147
+ # Additional attributes that may be required by the source system.
148
+ # @type: object
149
+ field :erp_system_attributes
150
+
147
151
  belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
148
152
  belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
149
153
 
@@ -21,6 +21,10 @@ end
21
21
  # @format: uuid
22
22
  field :workflow_status_id
23
23
 
24
+ # The workflow status name associated with the invoice workflow status history.
25
+ # @type: string
26
+ field :workflow_status_name
27
+
24
28
  # The GroupKey uniquely identifies a single Accounting Data Services Platform account. All records for this
25
29
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
26
30
  #
@@ -97,6 +97,13 @@ end
97
97
  # @type: object
98
98
  field :dimensions
99
99
 
100
+ # The source object ERP key for this journal entry line.
101
+ # @type: string
102
+ field :source_object_erp_key
103
+
104
+ # The ID of the SourceObjectType for this journal entry line.
105
+ field :source_object_type
106
+
100
107
  # The date that the journal entry line was created.
101
108
  # @type: string
102
109
  # @format: date-time
@@ -77,6 +77,13 @@ end
77
77
  # @type: object
78
78
  field :dimensions
79
79
 
80
+ # The source object ERP key for this journal entry line.
81
+ # @type: string
82
+ field :source_object_erp_key
83
+
84
+ # The ID of the SourceObjectType for this journal entry line.
85
+ field :source_object_type
86
+
80
87
  # If known, the date when this record was created according to the originating financial system
81
88
  # in which this record is maintained. If the originating financial system does not maintain a
82
89
  # created-date, leave this field null.
@@ -0,0 +1,18 @@
1
+ class Schema::JsonApiResourceHead < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Unique Id of this resource in system.
9
+ # @type: string
10
+ field :id
11
+
12
+ # A known resource type.
13
+ # @type: string
14
+ field :type
15
+
16
+
17
+
18
+ end
@@ -0,0 +1,19 @@
1
+ class Schema::ManifestResponse < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The status shows the response of return from requested data
9
+ # @type: integer
10
+ # @format: int32
11
+ field :status
12
+
13
+ # Message containing information about the sync request results.
14
+ # @type: string
15
+ field :message
16
+
17
+
18
+
19
+ end
@@ -0,0 +1,18 @@
1
+ class Schema::Meta < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Type of entity
9
+ # @type: string
10
+ field :type
11
+
12
+ # UniqueID for entity
13
+ # @type: string
14
+ field :id
15
+
16
+
17
+
18
+ end
@@ -169,6 +169,10 @@ end
169
169
  # @format: date-time
170
170
  field :source_modified_date, Types::Params::DateTime
171
171
 
172
+ # Additional attributes that may be required by the source system.
173
+ # @type: object
174
+ field :erp_system_attributes
175
+
172
176
  belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
173
177
  belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
174
178
  belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
@@ -102,6 +102,10 @@ end
102
102
  # The invoice associated with this applied payment.
103
103
  field :invoice
104
104
 
105
+ # Additional attributes that may be required by the source system.
106
+ # @type: object
107
+ field :erp_system_attributes
108
+
105
109
  belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
106
110
  belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
107
111
 
@@ -0,0 +1,19 @@
1
+ class Schema::Relationship < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # All created entities
9
+ field :created
10
+
11
+ # All updated entities
12
+ field :updated
13
+
14
+ # All deleted entities
15
+ field :deleted
16
+
17
+
18
+
19
+ end
@@ -0,0 +1,11 @@
1
+ class Schema::RelationshipDetail < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+
9
+ has_many :data, {:class_name=>"Schema::JsonApiResourceHead", :included=>true}
10
+
11
+ end
@@ -0,0 +1,14 @@
1
+ class Schema::Source < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Source of error's Pointer
9
+ # @type: string
10
+ field :pointer
11
+
12
+
13
+
14
+ end
@@ -0,0 +1,13 @@
1
+ class Schema::SyncPayload < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+
9
+ has_many :payments, {:class_name=>"Schema::InboundPaymentSync", :included=>true}
10
+ has_many :invoices, {:class_name=>"Schema::InboundInvoiceSync", :included=>true}
11
+ has_many :companies, {:class_name=>"Schema::InboundCompanySync", :included=>true}
12
+
13
+ end
@@ -84,6 +84,9 @@ end
84
84
  # @type: object
85
85
  field :details
86
86
 
87
+ # Inbound sync payload
88
+ field :payload
89
+
87
90
  belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
88
91
 
89
92
 
@@ -40,6 +40,9 @@ end
40
40
  # @type: boolean
41
41
  field :promote_to_erp
42
42
 
43
+ # Possible sources for a Workflow Status.
44
+ field :status_source
45
+
43
46
  # The date that the workflow status was created.
44
47
  # @type: string
45
48
  # @format: date-time