-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from getyoti/release/3.2.0
Release 3.2.0
- Loading branch information
Showing
31 changed files
with
592 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ package consts | |
|
||
const ( | ||
SDKIdentifier = "Go" | ||
SDKVersionIdentifier = "3.1.0" | ||
SDKVersionIdentifier = "3.2.0" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
docscan/sandbox/request/check/id_document_comparison_check.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package check | ||
|
||
import ( | ||
"github.com/getyoti/yoti-go-sdk/v3/docscan/sandbox/request/check/report" | ||
"github.com/getyoti/yoti-go-sdk/v3/docscan/sandbox/request/filter" | ||
) | ||
|
||
// IDDocumentComparisonCheck Represents a document authenticity check | ||
type IDDocumentComparisonCheck struct { | ||
*check | ||
SecondaryDocumentFilter *filter.DocumentFilter `json:"secondary_document_filter,omitempty"` | ||
} | ||
|
||
// IDDocumentComparisonCheckBuilder builds a IDDocumentComparisonCheck | ||
type IDDocumentComparisonCheckBuilder struct { | ||
checkBuilder | ||
secondaryDocumentFilter *filter.DocumentFilter | ||
} | ||
|
||
// NewIDDocumentComparisonCheckBuilder creates a new IDDocumentComparisonCheckBuilder | ||
func NewIDDocumentComparisonCheckBuilder() *IDDocumentComparisonCheckBuilder { | ||
return &IDDocumentComparisonCheckBuilder{} | ||
} | ||
|
||
// WithRecommendation sets the recommendation on the check | ||
func (b *IDDocumentComparisonCheckBuilder) WithRecommendation(recommendation *report.Recommendation) *IDDocumentComparisonCheckBuilder { | ||
b.checkBuilder.withRecommendation(recommendation) | ||
return b | ||
} | ||
|
||
// WithBreakdown adds a breakdown item to the check | ||
func (b *IDDocumentComparisonCheckBuilder) WithBreakdown(breakdown *report.Breakdown) *IDDocumentComparisonCheckBuilder { | ||
b.checkBuilder.withBreakdown(breakdown) | ||
return b | ||
} | ||
|
||
// WithSecondaryDocumentFilter adds a secondary document filter to the check | ||
func (b *IDDocumentComparisonCheckBuilder) WithSecondaryDocumentFilter(filter *filter.DocumentFilter) *IDDocumentComparisonCheckBuilder { | ||
b.secondaryDocumentFilter = filter | ||
return b | ||
} | ||
|
||
// Build creates a new IDDocumentComparisonCheck | ||
func (b *IDDocumentComparisonCheckBuilder) Build() (*IDDocumentComparisonCheck, error) { | ||
return &IDDocumentComparisonCheck{ | ||
check: b.checkBuilder.build(), | ||
SecondaryDocumentFilter: b.secondaryDocumentFilter, | ||
}, nil | ||
} |
Oops, something went wrong.