Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ipc 440 import document not uploading multipage and or more than one document #743

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ fileprivate extension PaymentReviewViewController {
let flowLayout = UICollectionViewFlowLayout()
flowLayout.minimumInteritemSpacing = Constants.collectionViewPadding
flowLayout.minimumLineSpacing = Constants.collectionViewPadding
flowLayout.scrollDirection = .horizontal // Enable horizontal scrolling

let collection = UICollectionView(frame: CGRect.zero, collectionViewLayout: flowLayout)
collection.backgroundColor = model.configuration.backgroundColor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ extension Document: Decodable {
- parameter id: The document's unique identifier.
- parameter name: The document's file name.
- parameter links: Links to related resources, such as extractions, document, processed, layout or pages.
- parameter pageCount: The document's number of pages.
- parameter sourceClassification: The document's source classification. We recommend to use `scanned` or `composite`.
- parameter expirationDate: The document's expiration date.

Expand All @@ -256,14 +257,15 @@ extension Document: Decodable {
id: String,
name: String,
links: Links,
pageCount: Int,
sourceClassification: SourceClassification,
expirationDate: Date?) {
self.init(compositeDocuments: [],
creationDate: creationDate,
id: id,
name: name,
origin: .upload,
pageCount: 1,
pageCount: pageCount,
pages: [],
links: links,
partialDocuments: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ extension Document {
- parameter id: The document's unique identifier.
- parameter name: The document's file name.
- parameter links: Links to related resources, such as extractions, document, processed, layout or pages.
- parameter pageCount: The document's number of pages.
- parameter sourceClassification: The document's source classification. We recommend to use `scanned` or `composite`.
- parameter expirationDate: The document's expiration date.

Expand All @@ -54,14 +55,15 @@ extension Document {
id: String,
name: String,
links: Links,
pageCount: Int,
sourceClassification: SourceClassification,
expirationDate: Date?) {
self.init(compositeDocuments: [],
creationDate: creationDate,
id: id,
name: name,
origin: .upload,
pageCount: 1,
pageCount: pageCount,
pages: [],
links: links,
partialDocuments: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ extension Document {
id: id,
name: name,
links: GiniHealthAPILibrary.Document.Links(giniAPIDocumentURL: links.extractions),
pageCount: pageCount,
sourceClassification: GiniHealthAPILibrary.Document.SourceClassification(rawValue: sourceClassification.rawValue) ?? .scanned,
expirationDate: expirationDate)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class HealthNetworkingService: GiniCaptureNetworkService {
id: doc.id,
name: doc.name,
links: links,
sourceClassification: sourceClassification,
pageCount: doc.pageCount,
sourceClassification: sourceClassification,
expirationDate: nil)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ extension Document {
id: id,
name: name,
links: GiniHealthAPILibrary.Document.Links(giniAPIDocumentURL: links.extractions),
pageCount: pageCount,
sourceClassification: GiniHealthAPILibrary.Document.SourceClassification(rawValue: sourceClassification.rawValue) ?? .scanned,
expirationDate: expirationDate)
}
Expand Down
Loading