lockstep_rails 0.3.64 → 0.3.66

Sign up to get free protection for your applications and to get access to all the features.
@@ -7485,6 +7485,165 @@
7485
7485
  ]
7486
7486
  }
7487
7487
  },
7488
+ "/api/v1/financial-institution-accounts/{id}": {
7489
+ "get": {
7490
+ "tags": [
7491
+ "FinancialInstitutionAccounts"
7492
+ ],
7493
+ "summary": "Retrieve Financial Institution Accounts",
7494
+ "description": "Retrieves the financial institution account specified by this unique identifier.\n\n### Roles\n\nTo call this endpoint, you must have one of these roles:\n\n* Group Owner\n* Group Admin\n* Member\n* Read-Only\n\n\nYou can view your roles with the [Status](https://developer.lockstep.io/reference/get_api-v1-status) API.",
7495
+ "operationId": "v1_FinancialInstitutionAccounts_RetrieveInstitution",
7496
+ "parameters": [
7497
+ {
7498
+ "name": "id",
7499
+ "in": "path",
7500
+ "description": "The unique Lockstep Platform ID number of this institution account; NOT the customer's ERP key",
7501
+ "required": true,
7502
+ "schema": {
7503
+ "type": "string",
7504
+ "format": "uuid"
7505
+ }
7506
+ }
7507
+ ],
7508
+ "responses": {
7509
+ "200": {
7510
+ "description": "Success",
7511
+ "content": {
7512
+ "application/json": {
7513
+ "schema": {
7514
+ "$ref": "#/components/schemas/FinancialInstitutionAccountModel"
7515
+ }
7516
+ },
7517
+ "text/json": {
7518
+ "schema": {
7519
+ "$ref": "#/components/schemas/FinancialInstitutionAccountModel"
7520
+ }
7521
+ }
7522
+ }
7523
+ },
7524
+ "404": {
7525
+ "description": "Not Found",
7526
+ "content": {
7527
+ "application/json": {
7528
+ "schema": {
7529
+ "$ref": "#/components/schemas/ProblemDetails"
7530
+ }
7531
+ },
7532
+ "text/json": {
7533
+ "schema": {
7534
+ "$ref": "#/components/schemas/ProblemDetails"
7535
+ }
7536
+ }
7537
+ }
7538
+ },
7539
+ "401": {
7540
+ "description": "Unauthorized"
7541
+ },
7542
+ "403": {
7543
+ "description": "Forbidden"
7544
+ }
7545
+ },
7546
+ "security": [
7547
+ {
7548
+ "oauth2": [ ]
7549
+ },
7550
+ {
7551
+ "bearer_token": [ ]
7552
+ },
7553
+ {
7554
+ "api_key": [ ]
7555
+ }
7556
+ ]
7557
+ }
7558
+ },
7559
+ "/api/v1/financial-institution-accounts/query": {
7560
+ "get": {
7561
+ "tags": [
7562
+ "FinancialInstitutionAccounts"
7563
+ ],
7564
+ "summary": "Query Financial Institution Accounts",
7565
+ "description": "\n\n### Roles\n\nTo call this endpoint, you must have one of these roles:\n\n* Group Owner\n* Group Admin\n* Member\n* Read-Only\n\n\nYou can view your roles with the [Status](https://developer.lockstep.io/reference/get_api-v1-status) API.",
7566
+ "operationId": "v1_FinancialInstitutionAccounts_QueryInstitutions",
7567
+ "parameters": [
7568
+ {
7569
+ "name": "filter",
7570
+ "in": "query",
7571
+ "description": "The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)",
7572
+ "schema": {
7573
+ "type": "string"
7574
+ }
7575
+ },
7576
+ {
7577
+ "name": "include",
7578
+ "in": "query",
7579
+ "description": "To fetch additional data on this object, specify the list of elements to retrieve.\r\n \r\nNo collections are currently available but may be offered in the future.",
7580
+ "schema": {
7581
+ "type": "string"
7582
+ }
7583
+ },
7584
+ {
7585
+ "name": "order",
7586
+ "in": "query",
7587
+ "description": "The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)",
7588
+ "schema": {
7589
+ "type": "string"
7590
+ }
7591
+ },
7592
+ {
7593
+ "name": "pageSize",
7594
+ "in": "query",
7595
+ "description": "The page size for results (default 250, maximum of 500). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)",
7596
+ "schema": {
7597
+ "type": "integer",
7598
+ "format": "int32"
7599
+ }
7600
+ },
7601
+ {
7602
+ "name": "pageNumber",
7603
+ "in": "query",
7604
+ "description": "The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)",
7605
+ "schema": {
7606
+ "type": "integer",
7607
+ "format": "int32"
7608
+ }
7609
+ }
7610
+ ],
7611
+ "responses": {
7612
+ "200": {
7613
+ "description": "Success",
7614
+ "content": {
7615
+ "application/json": {
7616
+ "schema": {
7617
+ "$ref": "#/components/schemas/FinancialInstitutionAccountModelFetchResult"
7618
+ }
7619
+ },
7620
+ "text/json": {
7621
+ "schema": {
7622
+ "$ref": "#/components/schemas/FinancialInstitutionAccountModelFetchResult"
7623
+ }
7624
+ }
7625
+ }
7626
+ },
7627
+ "401": {
7628
+ "description": "Unauthorized"
7629
+ },
7630
+ "403": {
7631
+ "description": "Forbidden"
7632
+ }
7633
+ },
7634
+ "security": [
7635
+ {
7636
+ "oauth2": [ ]
7637
+ },
7638
+ {
7639
+ "bearer_token": [ ]
7640
+ },
7641
+ {
7642
+ "api_key": [ ]
7643
+ }
7644
+ ]
7645
+ }
7646
+ },
7488
7647
  "/api/v1/FinancialYearSettings/{id}": {
7489
7648
  "get": {
7490
7649
  "tags": [
@@ -9911,7 +10070,7 @@
9911
10070
  "MagicLinks"
9912
10071
  ],
9913
10072
  "summary": "Retrieve Magic Link",
9914
- "description": "Retrieves the Magic Link specified by this unique identifier, optionally including nested data sets.\n\n### Roles\n\nTo call this endpoint, you must have one of these roles:\n\n* Group Owner\n* Group Admin\n* Member\n\n\nYou can view your roles with the [Status](https://developer.lockstep.io/reference/get_api-v1-status) API.",
10073
+ "description": "Retrieves the Magic Link specified by this unique identifier, optionally including nested data sets.\n\n### Roles\n\nTo call this endpoint, you must have one of these roles:\n\n* Group Owner\n* Group Admin\n* Member\n* Read-Only\n\n\nYou can view your roles with the [Status](https://developer.lockstep.io/reference/get_api-v1-status) API.",
9915
10074
  "operationId": "v1_MagicLinks_RetrieveMagicLink",
9916
10075
  "parameters": [
9917
10076
  {
@@ -10059,7 +10218,7 @@
10059
10218
  "MagicLinks"
10060
10219
  ],
10061
10220
  "summary": "Query Magic Links",
10062
- "description": "Queries Magic Links for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.\n\n### Roles\n\nTo call this endpoint, you must have one of these roles:\n\n* Group Owner\n* Group Admin\n* Member\n\n\nYou can view your roles with the [Status](https://developer.lockstep.io/reference/get_api-v1-status) API.",
10221
+ "description": "Queries Magic Links for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.\n\n### Roles\n\nTo call this endpoint, you must have one of these roles:\n\n* Group Owner\n* Group Admin\n* Member\n* Read-Only\n\n\nYou can view your roles with the [Status](https://developer.lockstep.io/reference/get_api-v1-status) API.",
10063
10222
  "operationId": "v1_MagicLinks_QueryMagicLinks",
10064
10223
  "parameters": [
10065
10224
  {
@@ -11665,6 +11824,100 @@
11665
11824
  ]
11666
11825
  }
11667
11826
  },
11827
+ "/api/v1/Payments/erp-write": {
11828
+ "post": {
11829
+ "tags": [
11830
+ "Payments"
11831
+ ],
11832
+ "summary": "Write payments to connected ERP",
11833
+ "description": "Schedule an ERP post request for payments.\r\n\r\nThe payments must be associated with an active app enrollment and have a valid `AppEnrollmentId`.\n\n### Roles\n\nTo call this endpoint, you must have one of these roles:\n\n* Group Owner\n* Group Admin\n\n\nYou can view your roles with the [Status](https://developer.lockstep.io/reference/get_api-v1-status) API.",
11834
+ "operationId": "v1_Payments_ErpWritePayments",
11835
+ "requestBody": {
11836
+ "description": "The payments to submit to the connected ERP",
11837
+ "content": {
11838
+ "application/json": {
11839
+ "schema": {
11840
+ "allOf": [
11841
+ {
11842
+ "$ref": "#/components/schemas/InsertPaymentRequestModelErpWriteSyncSubmitModel"
11843
+ }
11844
+ ],
11845
+ "description": "Lockstep.Shared.Models.Sync.ErpWriteSyncSubmitModel`1 represents a request to write back a collection\r\n of requests to the connected AppEnrollment."
11846
+ }
11847
+ },
11848
+ "text/json": {
11849
+ "schema": {
11850
+ "allOf": [
11851
+ {
11852
+ "$ref": "#/components/schemas/InsertPaymentRequestModelErpWriteSyncSubmitModel"
11853
+ }
11854
+ ],
11855
+ "description": "Lockstep.Shared.Models.Sync.ErpWriteSyncSubmitModel`1 represents a request to write back a collection\r\n of requests to the connected AppEnrollment."
11856
+ }
11857
+ },
11858
+ "application/*+json": {
11859
+ "schema": {
11860
+ "allOf": [
11861
+ {
11862
+ "$ref": "#/components/schemas/InsertPaymentRequestModelErpWriteSyncSubmitModel"
11863
+ }
11864
+ ],
11865
+ "description": "Lockstep.Shared.Models.Sync.ErpWriteSyncSubmitModel`1 represents a request to write back a collection\r\n of requests to the connected AppEnrollment."
11866
+ }
11867
+ }
11868
+ }
11869
+ },
11870
+ "responses": {
11871
+ "200": {
11872
+ "description": "Success",
11873
+ "content": {
11874
+ "application/json": {
11875
+ "schema": {
11876
+ "$ref": "#/components/schemas/PaymentModelErpWriteResult"
11877
+ }
11878
+ },
11879
+ "text/json": {
11880
+ "schema": {
11881
+ "$ref": "#/components/schemas/PaymentModelErpWriteResult"
11882
+ }
11883
+ }
11884
+ }
11885
+ },
11886
+ "400": {
11887
+ "description": "Bad Request",
11888
+ "content": {
11889
+ "application/json": {
11890
+ "schema": {
11891
+ "$ref": "#/components/schemas/ProblemDetails"
11892
+ }
11893
+ },
11894
+ "text/json": {
11895
+ "schema": {
11896
+ "$ref": "#/components/schemas/ProblemDetails"
11897
+ }
11898
+ }
11899
+ }
11900
+ },
11901
+ "401": {
11902
+ "description": "Unauthorized"
11903
+ },
11904
+ "403": {
11905
+ "description": "Forbidden"
11906
+ }
11907
+ },
11908
+ "security": [
11909
+ {
11910
+ "oauth2": [ ]
11911
+ },
11912
+ {
11913
+ "bearer_token": [ ]
11914
+ },
11915
+ {
11916
+ "api_key": [ ]
11917
+ }
11918
+ ]
11919
+ }
11920
+ },
11668
11921
  "/api/v1/payments-acceptance/customers/{companyId}/{customerId}": {
11669
11922
  "get": {
11670
11923
  "tags": [
@@ -20809,6 +21062,13 @@
20809
21062
  "AccountingProfileContactResultModelFetchResult": {
20810
21063
  "type": "object",
20811
21064
  "properties": {
21065
+ "records": {
21066
+ "type": "array",
21067
+ "items": {
21068
+ "$ref": "#/components/schemas/AccountingProfileContactResultModel"
21069
+ },
21070
+ "nullable": true
21071
+ },
20812
21072
  "totalCount": {
20813
21073
  "type": "integer",
20814
21074
  "format": "int32",
@@ -20823,13 +21083,6 @@
20823
21083
  "type": "integer",
20824
21084
  "format": "int32",
20825
21085
  "nullable": true
20826
- },
20827
- "records": {
20828
- "type": "array",
20829
- "items": {
20830
- "$ref": "#/components/schemas/AccountingProfileContactResultModel"
20831
- },
20832
- "nullable": true
20833
21086
  }
20834
21087
  },
20835
21088
  "additionalProperties": false
@@ -22527,6 +22780,13 @@
22527
22780
  "AttachmentLinkModelFetchResult": {
22528
22781
  "type": "object",
22529
22782
  "properties": {
22783
+ "records": {
22784
+ "type": "array",
22785
+ "items": {
22786
+ "$ref": "#/components/schemas/AttachmentLinkModel"
22787
+ },
22788
+ "nullable": true
22789
+ },
22530
22790
  "totalCount": {
22531
22791
  "type": "integer",
22532
22792
  "format": "int32",
@@ -22541,13 +22801,6 @@
22541
22801
  "type": "integer",
22542
22802
  "format": "int32",
22543
22803
  "nullable": true
22544
- },
22545
- "records": {
22546
- "type": "array",
22547
- "items": {
22548
- "$ref": "#/components/schemas/AttachmentLinkModel"
22549
- },
22550
- "nullable": true
22551
22804
  }
22552
22805
  },
22553
22806
  "additionalProperties": false
@@ -23225,21 +23478,21 @@
23225
23478
  "nullable": true
23226
23479
  },
23227
23480
  "address1": {
23228
- "maxLength": 80,
23481
+ "maxLength": 170,
23229
23482
  "minLength": 0,
23230
23483
  "type": "string",
23231
23484
  "description": "Address info",
23232
23485
  "nullable": true
23233
23486
  },
23234
23487
  "address2": {
23235
- "maxLength": 80,
23488
+ "maxLength": 170,
23236
23489
  "minLength": 0,
23237
23490
  "type": "string",
23238
23491
  "description": "Address info",
23239
23492
  "nullable": true
23240
23493
  },
23241
23494
  "address3": {
23242
- "maxLength": 80,
23495
+ "maxLength": 170,
23243
23496
  "minLength": 0,
23244
23497
  "type": "string",
23245
23498
  "description": "Address info",
@@ -24449,13 +24702,6 @@
24449
24702
  "CreditMemoAppliedModelFetchResult": {
24450
24703
  "type": "object",
24451
24704
  "properties": {
24452
- "records": {
24453
- "type": "array",
24454
- "items": {
24455
- "$ref": "#/components/schemas/CreditMemoAppliedModel"
24456
- },
24457
- "nullable": true
24458
- },
24459
24705
  "totalCount": {
24460
24706
  "type": "integer",
24461
24707
  "format": "int32",
@@ -24470,6 +24716,13 @@
24470
24716
  "type": "integer",
24471
24717
  "format": "int32",
24472
24718
  "nullable": true
24719
+ },
24720
+ "records": {
24721
+ "type": "array",
24722
+ "items": {
24723
+ "$ref": "#/components/schemas/CreditMemoAppliedModel"
24724
+ },
24725
+ "nullable": true
24473
24726
  }
24474
24727
  },
24475
24728
  "additionalProperties": false
@@ -24857,13 +25110,6 @@
24857
25110
  "CustomFieldDefinitionModelFetchResult": {
24858
25111
  "type": "object",
24859
25112
  "properties": {
24860
- "records": {
24861
- "type": "array",
24862
- "items": {
24863
- "$ref": "#/components/schemas/CustomFieldDefinitionModel"
24864
- },
24865
- "nullable": true
24866
- },
24867
25113
  "totalCount": {
24868
25114
  "type": "integer",
24869
25115
  "format": "int32",
@@ -24878,6 +25124,13 @@
24878
25124
  "type": "integer",
24879
25125
  "format": "int32",
24880
25126
  "nullable": true
25127
+ },
25128
+ "records": {
25129
+ "type": "array",
25130
+ "items": {
25131
+ "$ref": "#/components/schemas/CustomFieldDefinitionModel"
25132
+ },
25133
+ "nullable": true
24881
25134
  }
24882
25135
  },
24883
25136
  "additionalProperties": false
@@ -25057,13 +25310,6 @@
25057
25310
  "CustomFieldValueModelFetchResult": {
25058
25311
  "type": "object",
25059
25312
  "properties": {
25060
- "records": {
25061
- "type": "array",
25062
- "items": {
25063
- "$ref": "#/components/schemas/CustomFieldValueModel"
25064
- },
25065
- "nullable": true
25066
- },
25067
25313
  "totalCount": {
25068
25314
  "type": "integer",
25069
25315
  "format": "int32",
@@ -25078,6 +25324,13 @@
25078
25324
  "type": "integer",
25079
25325
  "format": "int32",
25080
25326
  "nullable": true
25327
+ },
25328
+ "records": {
25329
+ "type": "array",
25330
+ "items": {
25331
+ "$ref": "#/components/schemas/CustomFieldValueModel"
25332
+ },
25333
+ "nullable": true
25081
25334
  }
25082
25335
  },
25083
25336
  "additionalProperties": false
@@ -26068,7 +26321,7 @@
26068
26321
  },
26069
26322
  "classification": {
26070
26323
  "type": "string",
26071
- "description": "The classification for the Financial Account. Possible values are Asset, Equity,\r\nExpense, Liability or Income."
26324
+ "description": "The classification for the Financial Account. Possible values are Asset, Equity,\r\nExpense, Liability, Income, CreditCard, Checking, or Savings."
26072
26325
  },
26073
26326
  "category": {
26074
26327
  "type": "string",
@@ -26084,6 +26337,126 @@
26084
26337
  "additionalProperties": false,
26085
26338
  "description": "The FinancialAccountSyncModel represents information coming into Lockstep from an external financial system or other\r\nenterprise resource planning system. To import data from an external system, convert your original data into\r\nthe FinancialAccountSyncModel format and call the [Upload Sync File API](https://developer.lockstep.io/reference/post_api-v1-sync-zip).\r\nThis API retrieves all of the data you uploaded in a compressed ZIP file and imports it into the Lockstep\r\nplatform.\r\n \r\nOnce imported, this record will be available in the Lockstep API as a [FinancialAccountModel](https://developer.lockstep.io/docs/financialaccountmodel).\r\n \r\nFor more information on writing your own connector, see [Connector Data](https://developer.lockstep.io/docs/connector-data)."
26086
26339
  },
26340
+ "FinancialInstitutionAccountModel": {
26341
+ "type": "object",
26342
+ "properties": {
26343
+ "financialInstitutionAccountId": {
26344
+ "type": "string",
26345
+ "description": "The unique identifier for the Financial Institution Account.",
26346
+ "format": "uuid",
26347
+ "readOnly": true
26348
+ },
26349
+ "groupKey": {
26350
+ "type": "string",
26351
+ "description": "The GroupKey uniquely identifies a single Lockstep Platform account. All records for this\r\naccount will share the same GroupKey value. GroupKey values cannot be changed once created.\r\n \r\nFor more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).",
26352
+ "format": "uuid",
26353
+ "readOnly": true
26354
+ },
26355
+ "bankAccountId": {
26356
+ "maxLength": 255,
26357
+ "minLength": 0,
26358
+ "type": "string",
26359
+ "description": "An alternate account id for the Financial Institution Account.",
26360
+ "nullable": true
26361
+ },
26362
+ "erpKey": {
26363
+ "maxLength": 255,
26364
+ "minLength": 0,
26365
+ "type": "string",
26366
+ "description": "The External Id for the Financial Institution Account.",
26367
+ "nullable": true
26368
+ },
26369
+ "appEnrollmentId": {
26370
+ "type": "string",
26371
+ "description": "The App Enrollment Id this Financial Institution is associated with.",
26372
+ "format": "uuid",
26373
+ "nullable": true,
26374
+ "readOnly": true
26375
+ },
26376
+ "name": {
26377
+ "maxLength": 100,
26378
+ "minLength": 0,
26379
+ "type": "string",
26380
+ "description": "The name of the Financial Institution Account.",
26381
+ "nullable": true
26382
+ },
26383
+ "status": {
26384
+ "maxLength": 8,
26385
+ "minLength": 0,
26386
+ "type": "string",
26387
+ "description": "The status of the Financial Institution Account. Possible values are active,\r\ninactive, deleted or archived.",
26388
+ "nullable": true
26389
+ },
26390
+ "description": {
26391
+ "maxLength": 500,
26392
+ "minLength": 0,
26393
+ "type": "string",
26394
+ "description": "The description for the Financial Institution Account.",
26395
+ "nullable": true
26396
+ },
26397
+ "accountType": {
26398
+ "maxLength": 10,
26399
+ "minLength": 0,
26400
+ "type": "string",
26401
+ "description": "The classification for the Financial Institution Account. Possible values are Asset, Equity,\r\nExpense, Liability or Income.",
26402
+ "nullable": true
26403
+ },
26404
+ "created": {
26405
+ "type": "string",
26406
+ "description": "The date the Financial Institution Account was created.",
26407
+ "format": "date-time",
26408
+ "readOnly": true
26409
+ },
26410
+ "createdUserId": {
26411
+ "type": "string",
26412
+ "description": "The user that has created the Financial Institution Account.",
26413
+ "format": "uuid",
26414
+ "readOnly": true
26415
+ },
26416
+ "modified": {
26417
+ "type": "string",
26418
+ "description": "The date the Financial Institution Account was modified.",
26419
+ "format": "date-time",
26420
+ "readOnly": true
26421
+ },
26422
+ "modifiedUserId": {
26423
+ "type": "string",
26424
+ "description": "The user that has modified the Financial Institution Account.",
26425
+ "format": "uuid",
26426
+ "readOnly": true
26427
+ }
26428
+ },
26429
+ "additionalProperties": false,
26430
+ "description": "An Financial Institution Account represents an account used for monetary transactions. E.g. - checking, savings, or credit card accounts."
26431
+ },
26432
+ "FinancialInstitutionAccountModelFetchResult": {
26433
+ "type": "object",
26434
+ "properties": {
26435
+ "totalCount": {
26436
+ "type": "integer",
26437
+ "format": "int32",
26438
+ "nullable": true
26439
+ },
26440
+ "pageSize": {
26441
+ "type": "integer",
26442
+ "format": "int32",
26443
+ "nullable": true
26444
+ },
26445
+ "pageNumber": {
26446
+ "type": "integer",
26447
+ "format": "int32",
26448
+ "nullable": true
26449
+ },
26450
+ "records": {
26451
+ "type": "array",
26452
+ "items": {
26453
+ "$ref": "#/components/schemas/FinancialInstitutionAccountModel"
26454
+ },
26455
+ "nullable": true
26456
+ }
26457
+ },
26458
+ "additionalProperties": false
26459
+ },
26087
26460
  "FinancialReportCellModel": {
26088
26461
  "type": "object",
26089
26462
  "properties": {
@@ -26389,6 +26762,205 @@
26389
26762
  "additionalProperties": false,
26390
26763
  "description": "Represents an account for an entire group"
26391
26764
  },
26765
+ "InsertPaymentAppliedRequestModel": {
26766
+ "type": "object",
26767
+ "properties": {
26768
+ "paymentAppliedId": {
26769
+ "type": "string",
26770
+ "description": "The unique ID of this record, automatically assigned by Lockstep when this record is\r\nadded to the Lockstep platform.\r\n \r\nFor the ID of this record in its originating financial system, see `ErpKey`.",
26771
+ "format": "uuid",
26772
+ "nullable": true
26773
+ },
26774
+ "invoiceId": {
26775
+ "type": "string",
26776
+ "description": "The Invoice this payment is applied to.",
26777
+ "format": "uuid",
26778
+ "nullable": true
26779
+ },
26780
+ "paymentId": {
26781
+ "type": "string",
26782
+ "description": "The Payment this application applies from.",
26783
+ "format": "uuid",
26784
+ "nullable": true
26785
+ },
26786
+ "erpKey": {
26787
+ "type": "string",
26788
+ "description": "The unique ID of this record as it was known in its originating financial system.\r\n \r\nIf this company record was imported from a financial system, it will have the value `ErpKey`\r\nset to the original primary key number of the record as it was known in the originating financial\r\nsystem. If this record was not imported, this value will be `null`.\r\n \r\nFor more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).",
26789
+ "nullable": true
26790
+ },
26791
+ "invoiceErpKey": {
26792
+ "type": "string",
26793
+ "description": "The ERP key of the Invoice this payment is applied to.",
26794
+ "nullable": true
26795
+ },
26796
+ "applyToInvoiceDate": {
26797
+ "type": "string",
26798
+ "description": "The date this payment was applied to this invoice.",
26799
+ "format": "date-time"
26800
+ },
26801
+ "paymentAppliedAmount": {
26802
+ "type": "number",
26803
+ "description": "The total amount that was applied to this Invoice from the Payment.",
26804
+ "format": "double"
26805
+ }
26806
+ },
26807
+ "additionalProperties": false,
26808
+ "description": "A request to insert a payment application"
26809
+ },
26810
+ "InsertPaymentRequestModel": {
26811
+ "type": "object",
26812
+ "properties": {
26813
+ "appEnrollmentId": {
26814
+ "type": "string",
26815
+ "description": "The AppEnrollmentId of the application to write this record to.",
26816
+ "format": "uuid",
26817
+ "nullable": true
26818
+ },
26819
+ "paymentId": {
26820
+ "type": "string",
26821
+ "description": "The unique ID of this record, automatically assigned by Lockstep when this record is\r\nadded to the Lockstep platform.\r\n \r\nFor the ID of this record in its originating financial system, see `ErpKey`.",
26822
+ "format": "uuid",
26823
+ "nullable": true
26824
+ },
26825
+ "companyId": {
26826
+ "type": "string",
26827
+ "description": "The ID of the company to which this payment belongs.",
26828
+ "format": "uuid"
26829
+ },
26830
+ "companyErpKey": {
26831
+ "type": "string",
26832
+ "description": "The ERP key for the company to which this payment belongs.",
26833
+ "nullable": true
26834
+ },
26835
+ "companyExternalReference": {
26836
+ "type": "string",
26837
+ "description": "A additional reference that may be used in the ERP",
26838
+ "nullable": true
26839
+ },
26840
+ "erpKey": {
26841
+ "type": "string",
26842
+ "description": "The unique ID of this record as it was known in its originating financial system.\r\n \r\nIf this company record was imported from a financial system, it will have the value `ErpKey`\r\nset to the original primary key number of the record as it was known in the originating financial\r\nsystem. If this record was not imported, this value will be `null`.\r\n \r\nFor more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).",
26843
+ "nullable": true
26844
+ },
26845
+ "paymentType": {
26846
+ "type": "string",
26847
+ "description": "The type of payment, AR Payment or AP Payment.\r\n \r\nRecognized PaymentType values are:\r\n* `AR Payment` - A payment made by a Customer to the Company\r\n* `AP Payment` - A payment made by the Company to a Vendor",
26848
+ "nullable": true
26849
+ },
26850
+ "tenderType": {
26851
+ "type": "string",
26852
+ "description": "Cash, check, credit card, wire transfer.\r\n \r\nRecognized TenderType values are:\r\n* `Cash` - A cash payment or other direct transfer.\r\n* `Check` - A check payment.\r\n* `Credit Card` - A payment made via a credit card.\r\n* `Wire Transfer` - A payment made via wire transfer from another financial institution.\r\n* `Other` - A payment made via another method not listed above.",
26853
+ "nullable": true
26854
+ },
26855
+ "memoText": {
26856
+ "maxLength": 50,
26857
+ "minLength": 0,
26858
+ "type": "string",
26859
+ "description": "Memo or reference text (ex. memo field on a check).",
26860
+ "nullable": true
26861
+ },
26862
+ "paymentDate": {
26863
+ "type": "string",
26864
+ "description": "The date when this payment was received.",
26865
+ "format": "date-time",
26866
+ "nullable": true
26867
+ },
26868
+ "postDate": {
26869
+ "type": "string",
26870
+ "description": "The date when a payment was posted to a ledger.",
26871
+ "format": "date-time",
26872
+ "nullable": true
26873
+ },
26874
+ "paymentAmount": {
26875
+ "type": "number",
26876
+ "description": "Total amount of this payment in it's received currency.",
26877
+ "format": "double"
26878
+ },
26879
+ "unappliedAmount": {
26880
+ "type": "number",
26881
+ "description": "Unapplied balance of this payment in it's received currency. If this amount is nonzero, the field `IsOpen` will be true.",
26882
+ "format": "double"
26883
+ },
26884
+ "currencyCode": {
26885
+ "type": "string",
26886
+ "description": "The ISO 4217 currency code for this payment.\r\n \r\nFor a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies).",
26887
+ "nullable": true
26888
+ },
26889
+ "referenceCode": {
26890
+ "type": "string",
26891
+ "description": "Reference code for the payment for the given Erp system.",
26892
+ "nullable": true
26893
+ },
26894
+ "isVoided": {
26895
+ "type": "boolean",
26896
+ "description": "Is the payment voided?"
26897
+ },
26898
+ "inDispute": {
26899
+ "type": "boolean",
26900
+ "description": "Is the payment in dispute?"
26901
+ },
26902
+ "currencyRate": {
26903
+ "type": "number",
26904
+ "description": "The Currency Rate used to get from the account's base currency to the payment amount.",
26905
+ "format": "double"
26906
+ },
26907
+ "baseCurrencyPaymentAmount": {
26908
+ "type": "number",
26909
+ "description": "Total amount of this payment in the group's base currency.",
26910
+ "format": "double"
26911
+ },
26912
+ "baseCurrencyUnappliedAmount": {
26913
+ "type": "number",
26914
+ "description": "Unapplied balance of this payment in the group's base currency. If this amount is nonzero, the field `IsOpen` will be true.",
26915
+ "format": "double"
26916
+ },
26917
+ "bankAccountId": {
26918
+ "type": "string",
26919
+ "description": "The Bank account id for the company to which this payment belongs.",
26920
+ "nullable": true
26921
+ },
26922
+ "groupKey": {
26923
+ "type": "string",
26924
+ "description": "The GroupKey this request belongs to.",
26925
+ "format": "uuid"
26926
+ },
26927
+ "applications": {
26928
+ "type": "array",
26929
+ "items": {
26930
+ "$ref": "#/components/schemas/InsertPaymentAppliedRequestModel"
26931
+ },
26932
+ "description": "All applications this payment is associated with.\r\nTo retrieve this collection, specify `Applications` in the \"Include\" parameter for your query.",
26933
+ "nullable": true
26934
+ }
26935
+ },
26936
+ "additionalProperties": false,
26937
+ "description": "A request to insert a new Payment"
26938
+ },
26939
+ "InsertPaymentRequestModelErpWriteSyncSubmitModel": {
26940
+ "required": [
26941
+ "appEnrollmentId",
26942
+ "requests"
26943
+ ],
26944
+ "type": "object",
26945
+ "properties": {
26946
+ "appEnrollmentId": {
26947
+ "minLength": 1,
26948
+ "type": "string",
26949
+ "description": "The connected App Enrollment id.",
26950
+ "format": "uuid"
26951
+ },
26952
+ "requests": {
26953
+ "minItems": 1,
26954
+ "type": "array",
26955
+ "items": {
26956
+ "$ref": "#/components/schemas/InsertPaymentRequestModel"
26957
+ },
26958
+ "description": "An array of requests to write back."
26959
+ }
26960
+ },
26961
+ "additionalProperties": false,
26962
+ "description": "Lockstep.Shared.Models.Sync.ErpWriteSyncSubmitModel`1 represents a request to write back a collection\r\n of requests to the connected AppEnrollment."
26963
+ },
26392
26964
  "InstructedAmount": {
26393
26965
  "type": "object",
26394
26966
  "properties": {
@@ -29416,6 +29988,46 @@
29416
29988
  "additionalProperties": false,
29417
29989
  "description": "A Payment represents money sent from one company to another. A single payment may contain payments for\r\none or more invoices; it is also possible for payments to be made in advance of an invoice, for example,\r\nas a deposit. The creator of the Payment is identified by the `CustomerId` field, and the recipient of\r\nthe Payment is identified by the `CompanyId` field. Most Payments are uniquely identified both by a\r\nLockstep Platform ID number and a customer ERP \"key\" that was generated by the system that originated\r\nthe Payment. Payments that have not been fully applied have a nonzero `UnappliedAmount` value, which\r\nrepresents a deposit that has been paid and not yet applied to an Invoice."
29418
29990
  },
29991
+ "PaymentModelErpWriteResult": {
29992
+ "type": "object",
29993
+ "properties": {
29994
+ "appEnrollmentId": {
29995
+ "type": "string",
29996
+ "description": "The id of the connected AppEnrollmentModel",
29997
+ "format": "uuid"
29998
+ },
29999
+ "erpKey": {
30000
+ "type": "string",
30001
+ "description": "The ErpKey for the object written to the Erp if created",
30002
+ "nullable": true
30003
+ },
30004
+ "groupKey": {
30005
+ "type": "string",
30006
+ "description": "The GroupKey uniquely identifies a single Lockstep Platform account. All records for this\r\naccount will share the same GroupKey value. GroupKey values cannot be changed once created.\r\n \r\nFor more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).",
30007
+ "format": "uuid"
30008
+ },
30009
+ "message": {
30010
+ "type": "string",
30011
+ "description": "An optional message to return with the result",
30012
+ "nullable": true
30013
+ },
30014
+ "syncRequestId": {
30015
+ "type": "string",
30016
+ "description": "The id of the SyncRequestModel the requests were added to",
30017
+ "format": "uuid"
30018
+ },
30019
+ "results": {
30020
+ "type": "array",
30021
+ "items": {
30022
+ "$ref": "#/components/schemas/PaymentModel"
30023
+ },
30024
+ "description": "Results from the ERP write operation",
30025
+ "nullable": true
30026
+ }
30027
+ },
30028
+ "additionalProperties": false,
30029
+ "description": "Contains results of a write back request"
30030
+ },
29419
30031
  "PaymentModelFetchResult": {
29420
30032
  "type": "object",
29421
30033
  "properties": {
@@ -30036,6 +30648,13 @@
30036
30648
  "PublicCompanyProfileModelFetchResult": {
30037
30649
  "type": "object",
30038
30650
  "properties": {
30651
+ "records": {
30652
+ "type": "array",
30653
+ "items": {
30654
+ "$ref": "#/components/schemas/PublicCompanyProfileModel"
30655
+ },
30656
+ "nullable": true
30657
+ },
30039
30658
  "totalCount": {
30040
30659
  "type": "integer",
30041
30660
  "format": "int32",
@@ -30050,13 +30669,6 @@
30050
30669
  "type": "integer",
30051
30670
  "format": "int32",
30052
30671
  "nullable": true
30053
- },
30054
- "records": {
30055
- "type": "array",
30056
- "items": {
30057
- "$ref": "#/components/schemas/PublicCompanyProfileModel"
30058
- },
30059
- "nullable": true
30060
30672
  }
30061
30673
  },
30062
30674
  "additionalProperties": false
@@ -31989,6 +32601,13 @@
31989
32601
  "TransactionModelTransactionSummaryTotalModelSummaryFetchResult": {
31990
32602
  "type": "object",
31991
32603
  "properties": {
32604
+ "records": {
32605
+ "type": "array",
32606
+ "items": {
32607
+ "$ref": "#/components/schemas/TransactionModel"
32608
+ },
32609
+ "nullable": true
32610
+ },
31992
32611
  "totalCount": {
31993
32612
  "type": "integer",
31994
32613
  "format": "int32",
@@ -32004,13 +32623,6 @@
32004
32623
  "format": "int32",
32005
32624
  "nullable": true
32006
32625
  },
32007
- "records": {
32008
- "type": "array",
32009
- "items": {
32010
- "$ref": "#/components/schemas/TransactionModel"
32011
- },
32012
- "nullable": true
32013
- },
32014
32626
  "summary": {
32015
32627
  "allOf": [
32016
32628
  {
@@ -32309,13 +32921,6 @@
32309
32921
  "TranscriptionValidationRequestModelFetchResult": {
32310
32922
  "type": "object",
32311
32923
  "properties": {
32312
- "records": {
32313
- "type": "array",
32314
- "items": {
32315
- "$ref": "#/components/schemas/TranscriptionValidationRequestModel"
32316
- },
32317
- "nullable": true
32318
- },
32319
32924
  "totalCount": {
32320
32925
  "type": "integer",
32321
32926
  "format": "int32",
@@ -32330,6 +32935,13 @@
32330
32935
  "type": "integer",
32331
32936
  "format": "int32",
32332
32937
  "nullable": true
32938
+ },
32939
+ "records": {
32940
+ "type": "array",
32941
+ "items": {
32942
+ "$ref": "#/components/schemas/TranscriptionValidationRequestModel"
32943
+ },
32944
+ "nullable": true
32333
32945
  }
32334
32946
  },
32335
32947
  "additionalProperties": false
@@ -32589,6 +33201,11 @@
32589
33201
  "description": "The default currency code used by this user entity. This value can be overridden\r\nfor invoices in a different currency code.\r\n \r\nFor a list of defined currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies) This will be validated by the /api/v1/definitions/currencies data set",
32590
33202
  "nullable": true
32591
33203
  },
33204
+ "locale": {
33205
+ "type": "string",
33206
+ "description": "The IETF language tag for the user's preferred locale.",
33207
+ "nullable": true
33208
+ },
32592
33209
  "notes": {
32593
33210
  "type": "array",
32594
33211
  "items": {
@@ -33384,4 +34001,5 @@
33384
34001
  }
33385
34002
  }
33386
34003
  }
33387
- }
34004
+ }
34005
+