diff --git a/CHANGELOG.md b/CHANGELOG.md index 30a4721a..f37fb76a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release (Unreleased) +* `github.com/patrickcping/pingone-go-sdk-v2/verify` : [v0.7.0](./verify/CHANGELOG.md) + * **Enhancement** Added `Retry` field to the `LivenessConfiguration` model. [#369](https://github.com/patrickcping/pingone-go-sdk-v2/pull/369) + * **Enhancement** Added `FailExpiredId`, `Provider` and `Retry` fields to the `GovernmentIdConfiguration` object. [#369](https://github.com/patrickcping/pingone-go-sdk-v2/pull/369) + # Release (2024-07-04) * `github.com/patrickcping/pingone-go-sdk-v2` : v0.12.2 diff --git a/verify/.openapi-generator/FILES b/verify/.openapi-generator/FILES index 947129d5..52cc4228 100644 --- a/verify/.openapi-generator/FILES +++ b/verify/.openapi-generator/FILES @@ -7,11 +7,14 @@ configuration.go docs/EntityArray.md docs/EntityArrayEmbedded.md docs/EnumInspectionType.md +docs/EnumProviderAuto.md +docs/EnumProviderManual.md docs/EnumThreshold.md docs/EnumTimeUnit.md docs/EnumVerify.md docs/FacialComparisonConfiguration.md docs/GovernmentIdConfiguration.md +docs/GovernmentIdConfigurationProvider.md docs/LinksHATEOASValue.md docs/LivenessConfiguration.md docs/OTPDeviceConfiguration.md @@ -22,6 +25,7 @@ docs/OTPDeviceConfigurationOtpDeliveriesCooldown.md docs/OTPDeviceConfigurationOtpLifeTime.md docs/OTPDeviceConfigurationOtpNotification.md docs/ObjectEnvironment.md +docs/ObjectRetry.md docs/P1Error.md docs/P1ErrorDetailsInner.md docs/P1ErrorDetailsInnerInnerError.md @@ -46,14 +50,18 @@ go.sum model_entity_array.go model_entity_array__embedded.go model_enum_inspection_type.go +model_enum_provider_auto.go +model_enum_provider_manual.go model_enum_threshold.go model_enum_time_unit.go model_enum_verify.go model_facial_comparison_configuration.go model_government_id_configuration.go +model_government_id_configuration_provider.go model_links_hateoas_value.go model_liveness_configuration.go model_object_environment.go +model_object_retry.go model_otp_device_configuration.go model_otp_device_configuration_otp.go model_otp_device_configuration_otp_attempts.go diff --git a/verify/.version b/verify/.version index 09a3acfa..bcaffe19 100644 --- a/verify/.version +++ b/verify/.version @@ -1 +1 @@ -0.6.0 \ No newline at end of file +0.7.0 \ No newline at end of file diff --git a/verify/CHANGELOG.md b/verify/CHANGELOG.md index a0432784..851f39c0 100644 --- a/verify/CHANGELOG.md +++ b/verify/CHANGELOG.md @@ -1,3 +1,8 @@ +# v0.7.0 (Unreleased) + +* **Enhancement** Added `Retry` field to the `LivenessConfiguration` model. [#369](https://github.com/patrickcping/pingone-go-sdk-v2/pull/369) +* **Enhancement** Added `FailExpiredId`, `Provider` and `Retry` fields to the `GovernmentIdConfiguration` object. [#369](https://github.com/patrickcping/pingone-go-sdk-v2/pull/369) + # v0.6.0 (2024-07-04) * **Breaking change** `Links` objects changed from `LinksHATEOAS` object to `map[string]LinksHATEOASValue` type. [#366](https://github.com/patrickcping/pingone-go-sdk-v2/pull/366) diff --git a/verify/README.md b/verify/README.md index 1059c222..cfeb0d42 100644 --- a/verify/README.md +++ b/verify/README.md @@ -6,7 +6,7 @@ The PingOne Platform API covering the PingOne Verify service This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 2023-07-20 -- Package version: 0.6.0 +- Package version: 0.7.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation @@ -99,11 +99,14 @@ Class | Method | HTTP request | Description - [EntityArray](docs/EntityArray.md) - [EntityArrayEmbedded](docs/EntityArrayEmbedded.md) - [EnumInspectionType](docs/EnumInspectionType.md) + - [EnumProviderAuto](docs/EnumProviderAuto.md) + - [EnumProviderManual](docs/EnumProviderManual.md) - [EnumThreshold](docs/EnumThreshold.md) - [EnumTimeUnit](docs/EnumTimeUnit.md) - [EnumVerify](docs/EnumVerify.md) - [FacialComparisonConfiguration](docs/FacialComparisonConfiguration.md) - [GovernmentIdConfiguration](docs/GovernmentIdConfiguration.md) + - [GovernmentIdConfigurationProvider](docs/GovernmentIdConfigurationProvider.md) - [LinksHATEOASValue](docs/LinksHATEOASValue.md) - [LivenessConfiguration](docs/LivenessConfiguration.md) - [OTPDeviceConfiguration](docs/OTPDeviceConfiguration.md) @@ -114,6 +117,7 @@ Class | Method | HTTP request | Description - [OTPDeviceConfigurationOtpLifeTime](docs/OTPDeviceConfigurationOtpLifeTime.md) - [OTPDeviceConfigurationOtpNotification](docs/OTPDeviceConfigurationOtpNotification.md) - [ObjectEnvironment](docs/ObjectEnvironment.md) + - [ObjectRetry](docs/ObjectRetry.md) - [P1Error](docs/P1Error.md) - [P1ErrorDetailsInner](docs/P1ErrorDetailsInner.md) - [P1ErrorDetailsInnerInnerError](docs/P1ErrorDetailsInnerInnerError.md) diff --git a/verify/api/openapi.yaml b/verify/api/openapi.yaml index 7d8eb130..f5da53be 100644 --- a/verify/api/openapi.yaml +++ b/verify/api/openapi.yaml @@ -1255,7 +1255,7 @@ components: type: object EntityArray: example: - size: 7.061401241503109 + size: 9.301444243932576 _links: key: href: https://openapi-generator.tech @@ -1301,6 +1301,8 @@ components: liveness: verify: null threshold: null + retry: + attempts: 0 description: description createdAt: 2000-01-23T04:56:07.000+00:00 environment: @@ -1317,11 +1319,11 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null name: name facialComparison: @@ -1339,24 +1341,30 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null transaction: dataCollectionOnly: true timeout: - duration: 5 + duration: 2 timeUnit: null dataCollection: timeout: - duration: 2 + duration: 7 timeUnit: null governmentId: + provider: + auto: null + manual: null inspectionType: null verify: null + failExpiredId: true + retry: + attempts: 0 updatedAt: 2000-01-23T04:56:07.000+00:00 - voice: verify: null @@ -1379,6 +1387,8 @@ components: liveness: verify: null threshold: null + retry: + attempts: 0 description: description createdAt: 2000-01-23T04:56:07.000+00:00 environment: @@ -1395,11 +1405,11 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null name: name facialComparison: @@ -1417,24 +1427,30 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null transaction: dataCollectionOnly: true timeout: - duration: 5 + duration: 2 timeUnit: null dataCollection: timeout: - duration: 2 + duration: 7 timeUnit: null governmentId: + provider: + auto: null + manual: null inspectionType: null verify: null + failExpiredId: true + retry: + attempts: 0 updatedAt: 2000-01-23T04:56:07.000+00:00 voicePhrases: - createdAt: 2000-01-23T04:56:07.000+00:00 @@ -1468,6 +1484,19 @@ components: - MANUAL - STEP_UP type: string + EnumProviderAuto: + description: A string that defines the automatic verification subprocessor; + can be `MITEK` or `VERIFF`. + enum: + - MITEK + - VERIFF + type: string + EnumProviderManual: + description: A string that defines the automatic verification subprocessor; + can be `MITEK`. + enum: + - MITEK + type: string EnumTimeUnit: description: A string that defines the time unit of a specified duration in `SECONDS` or `MINUTES`. @@ -1506,11 +1535,24 @@ components: type: object GovernmentIdConfiguration: example: + provider: + auto: null + manual: null inspectionType: null verify: null + failExpiredId: true + retry: + attempts: 0 properties: + failExpiredId: + description: Indicates whether verification should fail if the ID is expired. + type: boolean inspectionType: $ref: '#/components/schemas/EnumInspectionType' + provider: + $ref: '#/components/schemas/GovernmentIdConfiguration_provider' + retry: + $ref: '#/components/schemas/ObjectRetry' verify: $ref: '#/components/schemas/EnumVerify' required: @@ -1520,11 +1562,15 @@ components: example: verify: null threshold: null + retry: + attempts: 0 properties: - verify: - $ref: '#/components/schemas/EnumVerify' + retry: + $ref: '#/components/schemas/ObjectRetry' threshold: $ref: '#/components/schemas/EnumThreshold' + verify: + $ref: '#/components/schemas/EnumVerify' required: - threshold - verify @@ -1540,6 +1586,14 @@ components: type: string readOnly: true type: object + ObjectRetry: + example: + attempts: 0 + properties: + attempts: + description: The number of retries permitted. + type: integer + type: object OTPDeviceConfiguration: example: createMfaDevice: true @@ -1552,11 +1606,11 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null properties: verify: @@ -1599,11 +1653,11 @@ components: example: dataCollectionOnly: true timeout: - duration: 5 + duration: 2 timeUnit: null dataCollection: timeout: - duration: 2 + duration: 7 timeUnit: null properties: timeout: @@ -1779,6 +1833,8 @@ components: liveness: verify: null threshold: null + retry: + attempts: 0 description: description createdAt: 2000-01-23T04:56:07.000+00:00 environment: @@ -1795,11 +1851,11 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null name: name facialComparison: @@ -1817,24 +1873,30 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null transaction: dataCollectionOnly: true timeout: - duration: 5 + duration: 2 timeUnit: null dataCollection: timeout: - duration: 2 + duration: 7 timeUnit: null governmentId: + provider: + auto: null + manual: null inspectionType: null verify: null + failExpiredId: true + retry: + attempts: 0 updatedAt: 2000-01-23T04:56:07.000+00:00 properties: _links: @@ -1936,6 +1998,8 @@ components: liveness: verify: null threshold: null + retry: + attempts: 0 description: description createdAt: 2000-01-23T04:56:07.000+00:00 environment: @@ -1952,11 +2016,11 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null name: name facialComparison: @@ -1974,24 +2038,30 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null transaction: dataCollectionOnly: true timeout: - duration: 5 + duration: 2 timeUnit: null dataCollection: timeout: - duration: 2 + duration: 7 timeUnit: null governmentId: + provider: + auto: null + manual: null inspectionType: null verify: null + failExpiredId: true + retry: + attempts: 0 updatedAt: 2000-01-23T04:56:07.000+00:00 - voice: verify: null @@ -2014,6 +2084,8 @@ components: liveness: verify: null threshold: null + retry: + attempts: 0 description: description createdAt: 2000-01-23T04:56:07.000+00:00 environment: @@ -2030,11 +2102,11 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null name: name facialComparison: @@ -2052,24 +2124,30 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null transaction: dataCollectionOnly: true timeout: - duration: 5 + duration: 2 timeUnit: null dataCollection: timeout: - duration: 2 + duration: 7 timeUnit: null governmentId: + provider: + auto: null + manual: null inspectionType: null verify: null + failExpiredId: true + retry: + attempts: 0 updatedAt: 2000-01-23T04:56:07.000+00:00 voicePhrases: - createdAt: 2000-01-23T04:56:07.000+00:00 @@ -2098,10 +2176,20 @@ components: $ref: '#/components/schemas/VoicePhraseContents' type: array type: object + GovernmentIdConfiguration_provider: + example: + auto: null + manual: null + properties: + auto: + $ref: '#/components/schemas/EnumProviderAuto' + manual: + $ref: '#/components/schemas/EnumProviderManual' + type: object OTPDeviceConfiguration_otp_attempts: description: OTP attempts configuration. example: - count: 0 + count: 6 properties: count: description: Count of OTP failures. @@ -2112,7 +2200,7 @@ components: OTPDeviceConfiguration_otp_deliveries_cooldown: description: Cooldown (waiting period between OTP attempts) configuration. example: - duration: 1 + duration: 5 timeUnit: null properties: duration: @@ -2127,9 +2215,9 @@ components: OTPDeviceConfiguration_otp_deliveries: description: OTP delivery configuration. example: - count: 6 + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null properties: count: @@ -2178,11 +2266,11 @@ components: duration: 5 timeUnit: null attempts: - count: 0 - deliveries: count: 6 + deliveries: + count: 1 cooldown: - duration: 1 + duration: 5 timeUnit: null properties: attempts: @@ -2247,7 +2335,7 @@ components: type: object TransactionConfiguration_timeout: example: - duration: 5 + duration: 2 timeUnit: null properties: duration: @@ -2262,7 +2350,7 @@ components: type: object TransactionConfiguration_dataCollection_timeout: example: - duration: 2 + duration: 7 timeUnit: null properties: duration: @@ -2278,7 +2366,7 @@ components: TransactionConfiguration_dataCollection: example: timeout: - duration: 2 + duration: 7 timeUnit: null properties: timeout: diff --git a/verify/configuration.go b/verify/configuration.go index 3a7c03b1..44c617f9 100644 --- a/verify/configuration.go +++ b/verify/configuration.go @@ -91,7 +91,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "pingtools PingOne-GOLANG-SDK-verify/0.6.0", + UserAgent: "pingtools PingOne-GOLANG-SDK-verify/0.7.0", Debug: false, DefaultServerIndex: 0, Servers: ServerConfigurations{ diff --git a/verify/docs/EnumProviderAuto.md b/verify/docs/EnumProviderAuto.md new file mode 100644 index 00000000..d197eb66 --- /dev/null +++ b/verify/docs/EnumProviderAuto.md @@ -0,0 +1,13 @@ +# EnumProviderAuto + +## Enum + + +* `MITEK` (value: `"MITEK"`) + +* `VERIFF` (value: `"VERIFF"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/EnumProviderManual.md b/verify/docs/EnumProviderManual.md new file mode 100644 index 00000000..8bb47cdb --- /dev/null +++ b/verify/docs/EnumProviderManual.md @@ -0,0 +1,11 @@ +# EnumProviderManual + +## Enum + + +* `MITEK` (value: `"MITEK"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/GovernmentIdConfiguration.md b/verify/docs/GovernmentIdConfiguration.md index 13d6f1f3..8bc8715e 100644 --- a/verify/docs/GovernmentIdConfiguration.md +++ b/verify/docs/GovernmentIdConfiguration.md @@ -4,7 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**FailExpiredId** | Pointer to **bool** | Indicates whether verification should fail if the ID is expired. | [optional] **InspectionType** | Pointer to [**EnumInspectionType**](EnumInspectionType.md) | | [optional] +**Provider** | Pointer to [**GovernmentIdConfigurationProvider**](GovernmentIdConfigurationProvider.md) | | [optional] +**Retry** | Pointer to [**ObjectRetry**](ObjectRetry.md) | | [optional] **Verify** | [**EnumVerify**](EnumVerify.md) | | ## Methods @@ -26,6 +29,31 @@ NewGovernmentIdConfigurationWithDefaults instantiates a new GovernmentIdConfigur This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetFailExpiredId + +`func (o *GovernmentIdConfiguration) GetFailExpiredId() bool` + +GetFailExpiredId returns the FailExpiredId field if non-nil, zero value otherwise. + +### GetFailExpiredIdOk + +`func (o *GovernmentIdConfiguration) GetFailExpiredIdOk() (*bool, bool)` + +GetFailExpiredIdOk returns a tuple with the FailExpiredId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailExpiredId + +`func (o *GovernmentIdConfiguration) SetFailExpiredId(v bool)` + +SetFailExpiredId sets FailExpiredId field to given value. + +### HasFailExpiredId + +`func (o *GovernmentIdConfiguration) HasFailExpiredId() bool` + +HasFailExpiredId returns a boolean if a field has been set. + ### GetInspectionType `func (o *GovernmentIdConfiguration) GetInspectionType() EnumInspectionType` @@ -51,6 +79,56 @@ SetInspectionType sets InspectionType field to given value. HasInspectionType returns a boolean if a field has been set. +### GetProvider + +`func (o *GovernmentIdConfiguration) GetProvider() GovernmentIdConfigurationProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *GovernmentIdConfiguration) GetProviderOk() (*GovernmentIdConfigurationProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *GovernmentIdConfiguration) SetProvider(v GovernmentIdConfigurationProvider)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *GovernmentIdConfiguration) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### GetRetry + +`func (o *GovernmentIdConfiguration) GetRetry() ObjectRetry` + +GetRetry returns the Retry field if non-nil, zero value otherwise. + +### GetRetryOk + +`func (o *GovernmentIdConfiguration) GetRetryOk() (*ObjectRetry, bool)` + +GetRetryOk returns a tuple with the Retry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetry + +`func (o *GovernmentIdConfiguration) SetRetry(v ObjectRetry)` + +SetRetry sets Retry field to given value. + +### HasRetry + +`func (o *GovernmentIdConfiguration) HasRetry() bool` + +HasRetry returns a boolean if a field has been set. + ### GetVerify `func (o *GovernmentIdConfiguration) GetVerify() EnumVerify` diff --git a/verify/docs/GovernmentIdConfigurationProvider.md b/verify/docs/GovernmentIdConfigurationProvider.md new file mode 100644 index 00000000..c82ad726 --- /dev/null +++ b/verify/docs/GovernmentIdConfigurationProvider.md @@ -0,0 +1,82 @@ +# GovernmentIdConfigurationProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Auto** | Pointer to [**EnumProviderAuto**](EnumProviderAuto.md) | | [optional] +**Manual** | Pointer to [**EnumProviderManual**](EnumProviderManual.md) | | [optional] + +## Methods + +### NewGovernmentIdConfigurationProvider + +`func NewGovernmentIdConfigurationProvider() *GovernmentIdConfigurationProvider` + +NewGovernmentIdConfigurationProvider instantiates a new GovernmentIdConfigurationProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGovernmentIdConfigurationProviderWithDefaults + +`func NewGovernmentIdConfigurationProviderWithDefaults() *GovernmentIdConfigurationProvider` + +NewGovernmentIdConfigurationProviderWithDefaults instantiates a new GovernmentIdConfigurationProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuto + +`func (o *GovernmentIdConfigurationProvider) GetAuto() EnumProviderAuto` + +GetAuto returns the Auto field if non-nil, zero value otherwise. + +### GetAutoOk + +`func (o *GovernmentIdConfigurationProvider) GetAutoOk() (*EnumProviderAuto, bool)` + +GetAutoOk returns a tuple with the Auto field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuto + +`func (o *GovernmentIdConfigurationProvider) SetAuto(v EnumProviderAuto)` + +SetAuto sets Auto field to given value. + +### HasAuto + +`func (o *GovernmentIdConfigurationProvider) HasAuto() bool` + +HasAuto returns a boolean if a field has been set. + +### GetManual + +`func (o *GovernmentIdConfigurationProvider) GetManual() EnumProviderManual` + +GetManual returns the Manual field if non-nil, zero value otherwise. + +### GetManualOk + +`func (o *GovernmentIdConfigurationProvider) GetManualOk() (*EnumProviderManual, bool)` + +GetManualOk returns a tuple with the Manual field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManual + +`func (o *GovernmentIdConfigurationProvider) SetManual(v EnumProviderManual)` + +SetManual sets Manual field to given value. + +### HasManual + +`func (o *GovernmentIdConfigurationProvider) HasManual() bool` + +HasManual returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/LivenessConfiguration.md b/verify/docs/LivenessConfiguration.md index 27e30a8a..1c9892c3 100644 --- a/verify/docs/LivenessConfiguration.md +++ b/verify/docs/LivenessConfiguration.md @@ -4,14 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Verify** | [**EnumVerify**](EnumVerify.md) | | +**Retry** | Pointer to [**ObjectRetry**](ObjectRetry.md) | | [optional] **Threshold** | [**EnumThreshold**](EnumThreshold.md) | | +**Verify** | [**EnumVerify**](EnumVerify.md) | | ## Methods ### NewLivenessConfiguration -`func NewLivenessConfiguration(verify EnumVerify, threshold EnumThreshold, ) *LivenessConfiguration` +`func NewLivenessConfiguration(threshold EnumThreshold, verify EnumVerify, ) *LivenessConfiguration` NewLivenessConfiguration instantiates a new LivenessConfiguration object This constructor will assign default values to properties that have it defined, @@ -26,25 +27,30 @@ NewLivenessConfigurationWithDefaults instantiates a new LivenessConfiguration ob This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetVerify +### GetRetry -`func (o *LivenessConfiguration) GetVerify() EnumVerify` +`func (o *LivenessConfiguration) GetRetry() ObjectRetry` -GetVerify returns the Verify field if non-nil, zero value otherwise. +GetRetry returns the Retry field if non-nil, zero value otherwise. -### GetVerifyOk +### GetRetryOk -`func (o *LivenessConfiguration) GetVerifyOk() (*EnumVerify, bool)` +`func (o *LivenessConfiguration) GetRetryOk() (*ObjectRetry, bool)` -GetVerifyOk returns a tuple with the Verify field if it's non-nil, zero value otherwise +GetRetryOk returns a tuple with the Retry field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetVerify +### SetRetry -`func (o *LivenessConfiguration) SetVerify(v EnumVerify)` +`func (o *LivenessConfiguration) SetRetry(v ObjectRetry)` -SetVerify sets Verify field to given value. +SetRetry sets Retry field to given value. + +### HasRetry + +`func (o *LivenessConfiguration) HasRetry() bool` +HasRetry returns a boolean if a field has been set. ### GetThreshold @@ -66,6 +72,26 @@ and a boolean to check if the value has been set. SetThreshold sets Threshold field to given value. +### GetVerify + +`func (o *LivenessConfiguration) GetVerify() EnumVerify` + +GetVerify returns the Verify field if non-nil, zero value otherwise. + +### GetVerifyOk + +`func (o *LivenessConfiguration) GetVerifyOk() (*EnumVerify, bool)` + +GetVerifyOk returns a tuple with the Verify field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerify + +`func (o *LivenessConfiguration) SetVerify(v EnumVerify)` + +SetVerify sets Verify field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/verify/docs/ObjectRetry.md b/verify/docs/ObjectRetry.md new file mode 100644 index 00000000..17a08535 --- /dev/null +++ b/verify/docs/ObjectRetry.md @@ -0,0 +1,56 @@ +# ObjectRetry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attempts** | Pointer to **int32** | The number of retries permitted. | [optional] + +## Methods + +### NewObjectRetry + +`func NewObjectRetry() *ObjectRetry` + +NewObjectRetry instantiates a new ObjectRetry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewObjectRetryWithDefaults + +`func NewObjectRetryWithDefaults() *ObjectRetry` + +NewObjectRetryWithDefaults instantiates a new ObjectRetry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAttempts + +`func (o *ObjectRetry) GetAttempts() int32` + +GetAttempts returns the Attempts field if non-nil, zero value otherwise. + +### GetAttemptsOk + +`func (o *ObjectRetry) GetAttemptsOk() (*int32, bool)` + +GetAttemptsOk returns a tuple with the Attempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttempts + +`func (o *ObjectRetry) SetAttempts(v int32)` + +SetAttempts sets Attempts field to given value. + +### HasAttempts + +`func (o *ObjectRetry) HasAttempts() bool` + +HasAttempts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/generate/pingone-verify.yml b/verify/generate/pingone-verify.yml index 317465d6..033be368 100644 --- a/verify/generate/pingone-verify.yml +++ b/verify/generate/pingone-verify.yml @@ -75,6 +75,14 @@ components: type: string enum: [AUTOMATIC, MANUAL, STEP_UP] description: A string that defines the mechanism used to authenticate a `governmentId` document. Options are `AUTOMATIC`, `MANUAL`, or `STEP_UP`. + EnumProviderAuto: + type: string + enum: [MITEK, VERIFF] + description: A string that defines the automatic verification subprocessor; can be `MITEK` or `VERIFF`. + EnumProviderManual: + type: string + enum: [MITEK] + description: A string that defines the automatic verification subprocessor; can be `MITEK`. EnumTimeUnit: type: string enum: [SECONDS, MINUTES] @@ -102,9 +110,21 @@ components: GovernmentIdConfiguration: type: object properties: + failExpiredId: + type: boolean + description: Indicates whether verification should fail if the ID is expired. inspectionType: $ref: '#/components/schemas/EnumInspectionType' description: Determines whether document authentication is automated, manual, or a combination of both where manual authentication is performed if automated inspection fails. Can be AUTOMATIC, MANUAL, or STEP_UP. + provider: + type: object + properties: + auto: + $ref: '#/components/schemas/EnumProviderAuto' + manual: + $ref: '#/components/schemas/EnumProviderManual' + retry: + $ref: '#/components/schemas/ObjectRetry' verify: $ref: '#/components/schemas/EnumVerify' description: Controls if Government ID verification is REQUIRED, OPTIONAL, or DISABLED. @@ -113,12 +133,14 @@ components: LivenessConfiguration: type: object properties: - verify: - $ref: '#/components/schemas/EnumVerify' - description: Controls if liveness check is REQUIRED, OPTIONAL, or DISABLED. + retry: + $ref: '#/components/schemas/ObjectRetry' threshold: $ref: '#/components/schemas/EnumThreshold' description: Threshold for successful facial comparison; can be LOW, MEDIUM, or HIGH (for which PingOne Verify uses industry and vendor recommended definitions). + verify: + $ref: '#/components/schemas/EnumVerify' + description: Controls if liveness check is REQUIRED, OPTIONAL, or DISABLED. required: - threshold - verify @@ -130,6 +152,12 @@ components: type: string readOnly: true description: A string that specifies the environment associated with the object. + ObjectRetry: + type: object + properties: + attempts: + type: integer + description: The number of retries permitted. OTPDeviceConfiguration: type: object properties: diff --git a/verify/model_enum_provider_auto.go b/verify/model_enum_provider_auto.go new file mode 100644 index 00000000..52b8f734 --- /dev/null +++ b/verify/model_enum_provider_auto.go @@ -0,0 +1,112 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" + "fmt" +) + +// EnumProviderAuto A string that defines the automatic verification subprocessor; can be `MITEK` or `VERIFF`. +type EnumProviderAuto string + +// List of EnumProviderAuto +const ( + ENUMPROVIDERAUTO_MITEK EnumProviderAuto = "MITEK" + ENUMPROVIDERAUTO_VERIFF EnumProviderAuto = "VERIFF" +) + +// All allowed values of EnumProviderAuto enum +var AllowedEnumProviderAutoEnumValues = []EnumProviderAuto{ + "MITEK", + "VERIFF", +} + +func (v *EnumProviderAuto) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EnumProviderAuto(value) + for _, existing := range AllowedEnumProviderAutoEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = EnumProviderAuto(fmt.Sprintf("%s", "UNKNOWN")) + return nil +} + +// NewEnumProviderAutoFromValue returns a pointer to a valid EnumProviderAuto +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEnumProviderAutoFromValue(v string) (*EnumProviderAuto, error) { + ev := EnumProviderAuto(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EnumProviderAuto: valid values are %v", v, AllowedEnumProviderAutoEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EnumProviderAuto) IsValid() bool { + for _, existing := range AllowedEnumProviderAutoEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EnumProviderAuto value +func (v EnumProviderAuto) Ptr() *EnumProviderAuto { + return &v +} + +type NullableEnumProviderAuto struct { + value *EnumProviderAuto + isSet bool +} + +func (v NullableEnumProviderAuto) Get() *EnumProviderAuto { + return v.value +} + +func (v *NullableEnumProviderAuto) Set(val *EnumProviderAuto) { + v.value = val + v.isSet = true +} + +func (v NullableEnumProviderAuto) IsSet() bool { + return v.isSet +} + +func (v *NullableEnumProviderAuto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnumProviderAuto(val *EnumProviderAuto) *NullableEnumProviderAuto { + return &NullableEnumProviderAuto{value: val, isSet: true} +} + +func (v NullableEnumProviderAuto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnumProviderAuto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/verify/model_enum_provider_manual.go b/verify/model_enum_provider_manual.go new file mode 100644 index 00000000..15340ec9 --- /dev/null +++ b/verify/model_enum_provider_manual.go @@ -0,0 +1,110 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" + "fmt" +) + +// EnumProviderManual A string that defines the automatic verification subprocessor; can be `MITEK`. +type EnumProviderManual string + +// List of EnumProviderManual +const ( + ENUMPROVIDERMANUAL_MITEK EnumProviderManual = "MITEK" +) + +// All allowed values of EnumProviderManual enum +var AllowedEnumProviderManualEnumValues = []EnumProviderManual{ + "MITEK", +} + +func (v *EnumProviderManual) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EnumProviderManual(value) + for _, existing := range AllowedEnumProviderManualEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = EnumProviderManual(fmt.Sprintf("%s", "UNKNOWN")) + return nil +} + +// NewEnumProviderManualFromValue returns a pointer to a valid EnumProviderManual +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEnumProviderManualFromValue(v string) (*EnumProviderManual, error) { + ev := EnumProviderManual(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EnumProviderManual: valid values are %v", v, AllowedEnumProviderManualEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EnumProviderManual) IsValid() bool { + for _, existing := range AllowedEnumProviderManualEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EnumProviderManual value +func (v EnumProviderManual) Ptr() *EnumProviderManual { + return &v +} + +type NullableEnumProviderManual struct { + value *EnumProviderManual + isSet bool +} + +func (v NullableEnumProviderManual) Get() *EnumProviderManual { + return v.value +} + +func (v *NullableEnumProviderManual) Set(val *EnumProviderManual) { + v.value = val + v.isSet = true +} + +func (v NullableEnumProviderManual) IsSet() bool { + return v.isSet +} + +func (v *NullableEnumProviderManual) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnumProviderManual(val *EnumProviderManual) *NullableEnumProviderManual { + return &NullableEnumProviderManual{value: val, isSet: true} +} + +func (v NullableEnumProviderManual) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnumProviderManual) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/verify/model_government_id_configuration.go b/verify/model_government_id_configuration.go index aa1f749e..f96f21a8 100644 --- a/verify/model_government_id_configuration.go +++ b/verify/model_government_id_configuration.go @@ -19,7 +19,11 @@ var _ MappedNullable = &GovernmentIdConfiguration{} // GovernmentIdConfiguration struct for GovernmentIdConfiguration type GovernmentIdConfiguration struct { + // Indicates whether verification should fail if the ID is expired. + FailExpiredId *bool `json:"failExpiredId,omitempty"` InspectionType *EnumInspectionType `json:"inspectionType,omitempty"` + Provider *GovernmentIdConfigurationProvider `json:"provider,omitempty"` + Retry *ObjectRetry `json:"retry,omitempty"` Verify EnumVerify `json:"verify"` } @@ -41,6 +45,38 @@ func NewGovernmentIdConfigurationWithDefaults() *GovernmentIdConfiguration { return &this } +// GetFailExpiredId returns the FailExpiredId field value if set, zero value otherwise. +func (o *GovernmentIdConfiguration) GetFailExpiredId() bool { + if o == nil || IsNil(o.FailExpiredId) { + var ret bool + return ret + } + return *o.FailExpiredId +} + +// GetFailExpiredIdOk returns a tuple with the FailExpiredId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GovernmentIdConfiguration) GetFailExpiredIdOk() (*bool, bool) { + if o == nil || IsNil(o.FailExpiredId) { + return nil, false + } + return o.FailExpiredId, true +} + +// HasFailExpiredId returns a boolean if a field has been set. +func (o *GovernmentIdConfiguration) HasFailExpiredId() bool { + if o != nil && !IsNil(o.FailExpiredId) { + return true + } + + return false +} + +// SetFailExpiredId gets a reference to the given bool and assigns it to the FailExpiredId field. +func (o *GovernmentIdConfiguration) SetFailExpiredId(v bool) { + o.FailExpiredId = &v +} + // GetInspectionType returns the InspectionType field value if set, zero value otherwise. func (o *GovernmentIdConfiguration) GetInspectionType() EnumInspectionType { if o == nil || IsNil(o.InspectionType) { @@ -73,6 +109,70 @@ func (o *GovernmentIdConfiguration) SetInspectionType(v EnumInspectionType) { o.InspectionType = &v } +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *GovernmentIdConfiguration) GetProvider() GovernmentIdConfigurationProvider { + if o == nil || IsNil(o.Provider) { + var ret GovernmentIdConfigurationProvider + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GovernmentIdConfiguration) GetProviderOk() (*GovernmentIdConfigurationProvider, bool) { + if o == nil || IsNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *GovernmentIdConfiguration) HasProvider() bool { + if o != nil && !IsNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given GovernmentIdConfigurationProvider and assigns it to the Provider field. +func (o *GovernmentIdConfiguration) SetProvider(v GovernmentIdConfigurationProvider) { + o.Provider = &v +} + +// GetRetry returns the Retry field value if set, zero value otherwise. +func (o *GovernmentIdConfiguration) GetRetry() ObjectRetry { + if o == nil || IsNil(o.Retry) { + var ret ObjectRetry + return ret + } + return *o.Retry +} + +// GetRetryOk returns a tuple with the Retry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GovernmentIdConfiguration) GetRetryOk() (*ObjectRetry, bool) { + if o == nil || IsNil(o.Retry) { + return nil, false + } + return o.Retry, true +} + +// HasRetry returns a boolean if a field has been set. +func (o *GovernmentIdConfiguration) HasRetry() bool { + if o != nil && !IsNil(o.Retry) { + return true + } + + return false +} + +// SetRetry gets a reference to the given ObjectRetry and assigns it to the Retry field. +func (o *GovernmentIdConfiguration) SetRetry(v ObjectRetry) { + o.Retry = &v +} + // GetVerify returns the Verify field value func (o *GovernmentIdConfiguration) GetVerify() EnumVerify { if o == nil { @@ -107,9 +207,18 @@ func (o GovernmentIdConfiguration) MarshalJSON() ([]byte, error) { func (o GovernmentIdConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.FailExpiredId) { + toSerialize["failExpiredId"] = o.FailExpiredId + } if !IsNil(o.InspectionType) { toSerialize["inspectionType"] = o.InspectionType } + if !IsNil(o.Provider) { + toSerialize["provider"] = o.Provider + } + if !IsNil(o.Retry) { + toSerialize["retry"] = o.Retry + } toSerialize["verify"] = o.Verify return toSerialize, nil } diff --git a/verify/model_government_id_configuration_provider.go b/verify/model_government_id_configuration_provider.go new file mode 100644 index 00000000..903342ea --- /dev/null +++ b/verify/model_government_id_configuration_provider.go @@ -0,0 +1,162 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" +) + +// checks if the GovernmentIdConfigurationProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GovernmentIdConfigurationProvider{} + +// GovernmentIdConfigurationProvider struct for GovernmentIdConfigurationProvider +type GovernmentIdConfigurationProvider struct { + Auto *EnumProviderAuto `json:"auto,omitempty"` + Manual *EnumProviderManual `json:"manual,omitempty"` +} + +// NewGovernmentIdConfigurationProvider instantiates a new GovernmentIdConfigurationProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGovernmentIdConfigurationProvider() *GovernmentIdConfigurationProvider { + this := GovernmentIdConfigurationProvider{} + return &this +} + +// NewGovernmentIdConfigurationProviderWithDefaults instantiates a new GovernmentIdConfigurationProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGovernmentIdConfigurationProviderWithDefaults() *GovernmentIdConfigurationProvider { + this := GovernmentIdConfigurationProvider{} + return &this +} + +// GetAuto returns the Auto field value if set, zero value otherwise. +func (o *GovernmentIdConfigurationProvider) GetAuto() EnumProviderAuto { + if o == nil || IsNil(o.Auto) { + var ret EnumProviderAuto + return ret + } + return *o.Auto +} + +// GetAutoOk returns a tuple with the Auto field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GovernmentIdConfigurationProvider) GetAutoOk() (*EnumProviderAuto, bool) { + if o == nil || IsNil(o.Auto) { + return nil, false + } + return o.Auto, true +} + +// HasAuto returns a boolean if a field has been set. +func (o *GovernmentIdConfigurationProvider) HasAuto() bool { + if o != nil && !IsNil(o.Auto) { + return true + } + + return false +} + +// SetAuto gets a reference to the given EnumProviderAuto and assigns it to the Auto field. +func (o *GovernmentIdConfigurationProvider) SetAuto(v EnumProviderAuto) { + o.Auto = &v +} + +// GetManual returns the Manual field value if set, zero value otherwise. +func (o *GovernmentIdConfigurationProvider) GetManual() EnumProviderManual { + if o == nil || IsNil(o.Manual) { + var ret EnumProviderManual + return ret + } + return *o.Manual +} + +// GetManualOk returns a tuple with the Manual field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GovernmentIdConfigurationProvider) GetManualOk() (*EnumProviderManual, bool) { + if o == nil || IsNil(o.Manual) { + return nil, false + } + return o.Manual, true +} + +// HasManual returns a boolean if a field has been set. +func (o *GovernmentIdConfigurationProvider) HasManual() bool { + if o != nil && !IsNil(o.Manual) { + return true + } + + return false +} + +// SetManual gets a reference to the given EnumProviderManual and assigns it to the Manual field. +func (o *GovernmentIdConfigurationProvider) SetManual(v EnumProviderManual) { + o.Manual = &v +} + +func (o GovernmentIdConfigurationProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GovernmentIdConfigurationProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Auto) { + toSerialize["auto"] = o.Auto + } + if !IsNil(o.Manual) { + toSerialize["manual"] = o.Manual + } + return toSerialize, nil +} + +type NullableGovernmentIdConfigurationProvider struct { + value *GovernmentIdConfigurationProvider + isSet bool +} + +func (v NullableGovernmentIdConfigurationProvider) Get() *GovernmentIdConfigurationProvider { + return v.value +} + +func (v *NullableGovernmentIdConfigurationProvider) Set(val *GovernmentIdConfigurationProvider) { + v.value = val + v.isSet = true +} + +func (v NullableGovernmentIdConfigurationProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableGovernmentIdConfigurationProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGovernmentIdConfigurationProvider(val *GovernmentIdConfigurationProvider) *NullableGovernmentIdConfigurationProvider { + return &NullableGovernmentIdConfigurationProvider{value: val, isSet: true} +} + +func (v NullableGovernmentIdConfigurationProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGovernmentIdConfigurationProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/model_liveness_configuration.go b/verify/model_liveness_configuration.go index 2f7331d3..a47e4820 100644 --- a/verify/model_liveness_configuration.go +++ b/verify/model_liveness_configuration.go @@ -19,18 +19,19 @@ var _ MappedNullable = &LivenessConfiguration{} // LivenessConfiguration struct for LivenessConfiguration type LivenessConfiguration struct { - Verify EnumVerify `json:"verify"` + Retry *ObjectRetry `json:"retry,omitempty"` Threshold EnumThreshold `json:"threshold"` + Verify EnumVerify `json:"verify"` } // NewLivenessConfiguration instantiates a new LivenessConfiguration object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLivenessConfiguration(verify EnumVerify, threshold EnumThreshold) *LivenessConfiguration { +func NewLivenessConfiguration(threshold EnumThreshold, verify EnumVerify) *LivenessConfiguration { this := LivenessConfiguration{} - this.Verify = verify this.Threshold = threshold + this.Verify = verify return &this } @@ -42,28 +43,36 @@ func NewLivenessConfigurationWithDefaults() *LivenessConfiguration { return &this } -// GetVerify returns the Verify field value -func (o *LivenessConfiguration) GetVerify() EnumVerify { - if o == nil { - var ret EnumVerify +// GetRetry returns the Retry field value if set, zero value otherwise. +func (o *LivenessConfiguration) GetRetry() ObjectRetry { + if o == nil || IsNil(o.Retry) { + var ret ObjectRetry return ret } - - return o.Verify + return *o.Retry } -// GetVerifyOk returns a tuple with the Verify field value +// GetRetryOk returns a tuple with the Retry field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LivenessConfiguration) GetVerifyOk() (*EnumVerify, bool) { - if o == nil { +func (o *LivenessConfiguration) GetRetryOk() (*ObjectRetry, bool) { + if o == nil || IsNil(o.Retry) { return nil, false } - return &o.Verify, true + return o.Retry, true } -// SetVerify sets field value -func (o *LivenessConfiguration) SetVerify(v EnumVerify) { - o.Verify = v +// HasRetry returns a boolean if a field has been set. +func (o *LivenessConfiguration) HasRetry() bool { + if o != nil && !IsNil(o.Retry) { + return true + } + + return false +} + +// SetRetry gets a reference to the given ObjectRetry and assigns it to the Retry field. +func (o *LivenessConfiguration) SetRetry(v ObjectRetry) { + o.Retry = &v } // GetThreshold returns the Threshold field value @@ -90,6 +99,30 @@ func (o *LivenessConfiguration) SetThreshold(v EnumThreshold) { o.Threshold = v } +// GetVerify returns the Verify field value +func (o *LivenessConfiguration) GetVerify() EnumVerify { + if o == nil { + var ret EnumVerify + return ret + } + + return o.Verify +} + +// GetVerifyOk returns a tuple with the Verify field value +// and a boolean to check if the value has been set. +func (o *LivenessConfiguration) GetVerifyOk() (*EnumVerify, bool) { + if o == nil { + return nil, false + } + return &o.Verify, true +} + +// SetVerify sets field value +func (o *LivenessConfiguration) SetVerify(v EnumVerify) { + o.Verify = v +} + func (o LivenessConfiguration) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -100,8 +133,11 @@ func (o LivenessConfiguration) MarshalJSON() ([]byte, error) { func (o LivenessConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["verify"] = o.Verify + if !IsNil(o.Retry) { + toSerialize["retry"] = o.Retry + } toSerialize["threshold"] = o.Threshold + toSerialize["verify"] = o.Verify return toSerialize, nil } diff --git a/verify/model_object_retry.go b/verify/model_object_retry.go new file mode 100644 index 00000000..71af98dd --- /dev/null +++ b/verify/model_object_retry.go @@ -0,0 +1,127 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" +) + +// checks if the ObjectRetry type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ObjectRetry{} + +// ObjectRetry struct for ObjectRetry +type ObjectRetry struct { + // The number of retries permitted. + Attempts *int32 `json:"attempts,omitempty"` +} + +// NewObjectRetry instantiates a new ObjectRetry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewObjectRetry() *ObjectRetry { + this := ObjectRetry{} + return &this +} + +// NewObjectRetryWithDefaults instantiates a new ObjectRetry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewObjectRetryWithDefaults() *ObjectRetry { + this := ObjectRetry{} + return &this +} + +// GetAttempts returns the Attempts field value if set, zero value otherwise. +func (o *ObjectRetry) GetAttempts() int32 { + if o == nil || IsNil(o.Attempts) { + var ret int32 + return ret + } + return *o.Attempts +} + +// GetAttemptsOk returns a tuple with the Attempts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectRetry) GetAttemptsOk() (*int32, bool) { + if o == nil || IsNil(o.Attempts) { + return nil, false + } + return o.Attempts, true +} + +// HasAttempts returns a boolean if a field has been set. +func (o *ObjectRetry) HasAttempts() bool { + if o != nil && !IsNil(o.Attempts) { + return true + } + + return false +} + +// SetAttempts gets a reference to the given int32 and assigns it to the Attempts field. +func (o *ObjectRetry) SetAttempts(v int32) { + o.Attempts = &v +} + +func (o ObjectRetry) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ObjectRetry) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Attempts) { + toSerialize["attempts"] = o.Attempts + } + return toSerialize, nil +} + +type NullableObjectRetry struct { + value *ObjectRetry + isSet bool +} + +func (v NullableObjectRetry) Get() *ObjectRetry { + return v.value +} + +func (v *NullableObjectRetry) Set(val *ObjectRetry) { + v.value = val + v.isSet = true +} + +func (v NullableObjectRetry) IsSet() bool { + return v.isSet +} + +func (v *NullableObjectRetry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObjectRetry(val *ObjectRetry) *NullableObjectRetry { + return &NullableObjectRetry{value: val, isSet: true} +} + +func (v NullableObjectRetry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObjectRetry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +