InvoiceProcessorConfig¶
- class oci.ai_document.models.InvoiceProcessorConfig(**kwargs)¶
Bases:
ProcessorConfigThe configuration of an invoice processor.
Attributes:
A constant which can be used with the processor_type property of a ProcessorConfig.
A constant which can be used with the processor_type property of a ProcessorConfig.
Gets the model_id of this InvoiceProcessorConfig.
[Required] Gets the normalization_fields of this InvoiceProcessorConfig.
[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_typeattribute of this class isINVOICEand 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
- 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