InvoiceProcessorConfig

class oci.ai_document.models.InvoiceProcessorConfig(**kwargs)

Bases: ProcessorConfig

The configuration of an invoice processor.

Attributes:

PROCESSOR_TYPE_GENERAL

A constant which can be used with the processor_type property of a ProcessorConfig.

PROCESSOR_TYPE_INVOICE

A constant which can be used with the processor_type property of a ProcessorConfig.

model_id

Gets the model_id of this InvoiceProcessorConfig.

normalization_fields

[Required] Gets the normalization_fields of this InvoiceProcessorConfig.

processor_type

[Required] Gets the processor_type of this ProcessorConfig.

Methods:

__init__(**kwargs)

Initializes a new InvoiceProcessorConfig object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

PROCESSOR_TYPE_GENERAL = 'GENERAL'

A constant which can be used with the processor_type property of a ProcessorConfig. This constant has a value of “GENERAL”

PROCESSOR_TYPE_INVOICE = 'INVOICE'

A constant which can be used with the processor_type property of a ProcessorConfig. This constant has a value of “INVOICE”

__init__(**kwargs)

Initializes a new InvoiceProcessorConfig object with values from keyword arguments. The default value of the processor_type attribute of this class is INVOICE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • processor_type (str) – The value to assign to the processor_type property of this InvoiceProcessorConfig. Allowed values for this property are: “GENERAL”, “INVOICE”

  • model_id (str) – The value to assign to the model_id property of this InvoiceProcessorConfig.

  • normalization_fields (oci.ai_document.models.NormalizationFields) – The value to assign to the normalization_fields property of this InvoiceProcessorConfig.

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property model_id

Gets the model_id of this InvoiceProcessorConfig. Unique identifier custom model OCID that should be used for inference.

Returns

The model_id of this InvoiceProcessorConfig.

Return type

str

property normalization_fields

[Required] Gets the normalization_fields of this InvoiceProcessorConfig.

Returns

The normalization_fields of this InvoiceProcessorConfig.

Return type

oci.ai_document.models.NormalizationFields

property processor_type

[Required] Gets the processor_type of this ProcessorConfig. The type of the processor.

Allowed values for this property are: “GENERAL”, “INVOICE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The processor_type of this ProcessorConfig.

Return type

str