Model
|
Data models for Python SAP Incentive Management Client. |
Read the API Documentation
Visit https://{TENANT}.callidusondemand.com/APIDocument
to read the full specification, replacing TENANT with your
tenant-id.
Most of these models are undocumented. For a complete list of attributes, refer to the API documentation. Attribute names are converted to snake_case to follow standard python conventions.
All models support the read methods of Tenant,
refer to the API documentation for a full list of supported methods.
Base
Pydantic models for Python SAP Incentive Management Client. |
Pydantic models for Python SAP Incentive Management Client.
These classes are generally not used directly but can be usefull for type checking and type hints. Used to inherrit function on all other models.
- class sapimclient.model.base._BaseModel[source]
Bases:
BaseModelBaseModel inherited from
pydantic.BaseModel.Contains the primary model_config which is required for Pydantic to convert field names between snake_case and camelCase when sending and recieving json data from/to the SAP Incentive Management tenant.
- classmethod typed_fields(typed: type | tuple[type, ...]) dict[str, FieldInfo][source]
Return model fields of the specified type.
This method can be usefull when converting data types for example.
- Returns:
A dictionary of attributes annotated with the specified type where the keys are attribute names and the values are FieldInfo objects.
- class sapimclient.model.base.Endpoint[source]
Bases:
_BaseModelBase class for resources that can connect with the client.
- Parameters:
attr_endpoint (str) – URI endpoint to connect with tenant. Must follow format
api/v2/nameOfResource. Used by the client to construct the full request url.
- classmethod expands() dict[str, FieldInfo][source]
Return model fields that refer to another model class.
This function is primarily used by the client to add the
expandparameter to the request.- Returns:
A dictionary of attributes that can be expanded where the keys are attribute names and the values are
FieldInfoobjects.
- class sapimclient.model.base.Resource[source]
Bases:
EndpointBase class for a resource.
Every resource has it’s own attribute that uniquely identifies the object on the tenant. Inheritance of this class allows us to refer to the system unique identifier without having to address it directly.
Example
Attributes
seqandcredit_seqare equal:assert Credit.seq == Credit.credit_seq
- Parameters:
attr_seq (str) – Name of attribute that contains the system unique identifier (seq).
- class sapimclient.model.base.AdjustmentContext[source]
Bases:
_BaseModelAdjustment Context for
SalesTransaction.Used only when updating the value of a
SalesTransaction.
- class sapimclient.model.base.Value[source]
Bases:
_BaseModelValue object used by all numeric fields.
- Parameters:
unit_type (ValueUnitType) – Type of amount.
- class sapimclient.model.base.ValueClass[source]
Bases:
_BaseModelValue Class, used only by
UnitType.- Parameters:
display_name (str) – Name of the value class.
- class sapimclient.model.base.ValueUnitType[source]
Bases:
_BaseModelUnit Type of for
Value.
- class sapimclient.model.base.Reference[source]
Bases:
ExpandableExpanded reference to a resource.
- Parameters:
key (str) – System unique identifier for the referred resource.
display_name (str) – Name of the referred resource.
object_type (type[model.Resource]) – Class of the referred resource.
key_string (str) – Seems to always be the same as
key.logical_keys (dict[str, str | int | Value | Any]) – Some key attributes of the referred resource.
- class sapimclient.model.base.Assignment[source]
Bases:
_BaseModelAssignment.
Used by
Pipelineto refer to stage tables and byPlan,TitleandPositionto refer to Variable Assignments.TODO: Is this an expandable reference?
- class sapimclient.model.base.BusinessUnitAssignment[source]
Bases:
_BaseModelBusiness Unit Assignment.
Used by
AuditLogandRuleto refer to Business Units.TODO: Is this an expandable reference?
- class sapimclient.model.base.RuleUsage[source]
Bases:
_BaseModelRule Usage.
Used by
RuleandRule Elementsfor some reason.TODO: Is this an expandable reference?
- class sapimclient.model.base.RuleUsageList[source]
Bases:
_BaseModelList of RuleUsage.
TODO: Is this an expandable reference? TODO: Make this class accessible as iterator of
RuleUsage.
- class sapimclient.model.base.SalesTransactionAssignment[source]
Bases:
Expandable,Generic16MixinExpanded reference to a transaction assignment.
- Parameters:
payee_id (str | None) – Participant ID assigned to the transaction.
position_name (str | None) – Position Name assigned to the transaction.
title_name (str | None) – Title Name assigned to the transaction.
sales_order (str | None) – Order ID of the transaction.
sales_transaction_seq (str) – System unique identifier of the transaction.
set_number (int | None) – Index of the Assignment.
compensation_date (datetime | None) – Compensation Date of the transaction.
processing_unit (str | None) – System unique identifier of the Processing Unit.
ga{1-16} (str | None) – Generic Attributes.
gn{1-6} (Value | None) – Generic Numbers.
gd{1-6} (datetime | None) – Generic Dates.
gb{1-6} (bool | None) – Generic Booleans.
Data Type
Pydantic models for Data Type Resources. |
Pydantic models for Data Type Resources.
- class sapimclient.model.data_type._DataType[source]
Bases:
ResourceBase class for DataType resources.
Rule Elements
Pydantic models for Rule Element Resources. |
Pydantic models for Rule Element Resources.
- class sapimclient.model.rule_element._RuleElement[source]
Bases:
ResourceBase class for Rule Element resources.
TODO: What does
owning_elementrepresent?
- class sapimclient.model.rule_element.Category[source]
Bases:
_RuleElement,Generic16MixinCategory.
- class sapimclient.model.rule_element.FixedValue[source]
Bases:
_RuleElementFixed Value.
- class sapimclient.model.rule_element.CFixedValue[source]
Bases:
FixedValueAlias for
FixedValue.
- class sapimclient.model.rule_element.FixedValueVariable[source]
Bases:
_RuleElementFixed Value Variable.
- class sapimclient.model.rule_element.Formula[source]
Bases:
_RuleElementFormula.
- class sapimclient.model.rule_element.RelationalMDLT[source]
Bases:
_RuleElementRelational MDLT (Lookup Table).
Multi Dimensional Lookup Table.
TODO: Does this endpoint return
default_element? TODO: Aredimensionsandindicesexpandable? TODO: What doesexpression_type_countsrepresent?
- class sapimclient.model.rule_element.LookUpTableVariable[source]
Bases:
_RuleElementLookUp Table Variable.
- class sapimclient.model.rule_element.RateTable[source]
Bases:
_RuleElementRate Table.
TODO: Does this endpoint return
default_element?
- class sapimclient.model.rule_element.RateTableVariable[source]
Bases:
_RuleElementRate Table Variable.
- class sapimclient.model.rule_element.Territory[source]
Bases:
_RuleElementTerritory.
- class sapimclient.model.rule_element.TerritoryVariable[source]
Bases:
_RuleElementTerritory Variable.
- class sapimclient.model.rule_element.Variable[source]
Bases:
_RuleElementVariable.
TODO: What does
default_elementrefer to?
Rule Element Owners
Pydantic models for Rule Element Owner Resources. |
Pydantic models for Rule Element Owner Resources.
- class sapimclient.model.rule_element_owner._RuleElementOwner[source]
Bases:
ResourceBase class for Rule Element Owner resources.
TODO:
variable_assignmentsshould beReference? TODO:business_unitsshould beReference?
- class sapimclient.model.rule_element_owner.Plan[source]
Bases:
_RuleElementOwnerPlan.
- Parameters:
rule_element_owner_seq (str | None) – System Unique Identifier.
name (str) – Name of the plan.
description (str | None) – Description of the plan.
calendar (str | Reference) – Reference to
Calendarassociated with the plan.effective_start_date (datetime) – Effective start date of the plan version.
effective_end_date (datetime) – Effective end date of the plan version.
create_date (datetime | None) – Date when plan was created.
created_by (str | None) – User ID that created the plan.
modified_by (str | None) – User ID that last modified the plan.
business_units (list[str] | None) – Business units associated with the plan.
variable_assignments (list[Assignment] | Assignment | None) – Variable Assignments on the plan level.
model_seq (str | None) – System Unique Identifier for the model.
TODO: Add GenericMixin? TODO: is
variable_assignmentsexpandable?
- class sapimclient.model.rule_element_owner.Position[source]
Bases:
_RuleElementOwner,Generic16MixinPosition.
TODO:
target_compensationisValue? TODO:processing_unitshould beReference?
- class sapimclient.model.rule_element_owner.Title[source]
Bases:
_RuleElementOwner,Generic16MixinTitle.
Resource
Pydantic models for Resources. |
Hint
See Examples
Pydantic models for Resources.
- class sapimclient.model.resource.AppliedDeposit[source]
Bases:
ResourceAppliedDeposit.
Note
Supports only
readoperations.
- class sapimclient.model.resource.AuditLog[source]
Bases:
ResourceAudit Log.
Note
Supports only
readoperations.
- class sapimclient.model.resource.Balance[source]
Bases:
ResourceBalance.
Note
Supports only
readoperations.
- class sapimclient.model.resource.GenericClassifier[source]
Bases:
Resource,Generic16MixinGeneric Classifier.
- class sapimclient.model.resource.GenericClassifierType[source]
Bases:
ResourceGeneric Classifier Type.
- class sapimclient.model.resource.PrimaryMeasurement[source]
Bases:
MeasurementPrimary Measurement.
- class sapimclient.model.resource.SecondaryMeasurement[source]
Bases:
MeasurementSecondary Measurement.
Pipeline
Pydantic models for Pipeline jobs. |
Hint
See example Run Comp & Pay
Pydantic models for Pipeline jobs.
- class sapimclient.model.pipeline._PipelineJob[source]
Bases:
EndpointBase class for a Pipeline Job.
- class sapimclient.model.pipeline.ResetFromValidate[source]
Bases:
_PipelineJobRun a ResetFromValidate pipeline.
- class sapimclient.model.pipeline.Purge[source]
Bases:
_PipelineJobRun a Purge pipeline.
- class sapimclient.model.pipeline.XMLImport[source]
Bases:
_PipelineJobRun an XML Import pipeline.
- class sapimclient.model.pipeline._PipelineRunJob[source]
Bases:
_PipelineJobBase class for a PipelineRun job.
- class sapimclient.model.pipeline.Classify[source]
Bases:
_PipelineRunJobRun a Classify pipeline.
- class sapimclient.model.pipeline.Allocate[source]
Bases:
_PipelineRunJobRun an Allocate pipeline.
- class sapimclient.model.pipeline.Reward[source]
Bases:
_PipelineRunJobRun a Reward pipeline.
- class sapimclient.model.pipeline.Pay[source]
Bases:
_PipelineRunJobRun a Pay pipeline.
- class sapimclient.model.pipeline.Summarize[source]
Bases:
_PipelineRunJobRun a Summarize pipeline.
- class sapimclient.model.pipeline.Compensate[source]
Bases:
_PipelineRunJobRun a Compensate pipeline.
- class sapimclient.model.pipeline.CompensateAndPay[source]
Bases:
_PipelineRunJobRun a CompensateAndPay pipeline.
- class sapimclient.model.pipeline.ResetFromClassify[source]
Bases:
_PipelineRunJobRun a ResetFromClassify pipeline.
- class sapimclient.model.pipeline.ResetFromAllocate[source]
Bases:
_PipelineRunJobRun a ResetFromAllocate pipeline.
- class sapimclient.model.pipeline.ResetFromReward[source]
Bases:
_PipelineRunJobRun a ResetFromReward pipeline.
- class sapimclient.model.pipeline.ResetFromPay[source]
Bases:
_PipelineRunJobRun a ResetFromPay pipeline.
- class sapimclient.model.pipeline.Post[source]
Bases:
_PipelineRunJobRun a Post pipeline.
- class sapimclient.model.pipeline.Finalize[source]
Bases:
_PipelineRunJobRun a Finalize pipeline.
- class sapimclient.model.pipeline.ReportsGeneration[source]
Bases:
_PipelineRunJobRun a ReportsGeneration pipeline.
- class sapimclient.model.pipeline.UndoPost[source]
Bases:
_PipelineRunJobRun a UndoPost pipeline.
- class sapimclient.model.pipeline.UndoFinalize[source]
Bases:
_PipelineRunJobRun a UndoFinalize pipeline.
- class sapimclient.model.pipeline.CleanupDefferedResults[source]
Bases:
_PipelineRunJobRun a CleanupDefferedResults pipeline.
- class sapimclient.model.pipeline.UpdateAnalytics[source]
Bases:
_PipelineRunJobRun a UpdateAnalytics pipeline.
- class sapimclient.model.pipeline._ImportJob[source]
Bases:
_PipelineJobBase class for an Import job.
- class sapimclient.model.pipeline.Validate[source]
Bases:
_ImportJobRun a Validate pipeline.
- class sapimclient.model.pipeline.Transfer[source]
Bases:
_ImportJobRun a Transfer pipeline.
- class sapimclient.model.pipeline.ValidateAndTransfer[source]
Bases:
_ImportJobRun a ValidateAndTransfer pipeline.
- class sapimclient.model.pipeline.ValidateAndTransferIfAllValid[source]
Bases:
_ImportJobRun a ValidateAndTransferIfAllValid pipeline.
- class sapimclient.model.pipeline.TransferIfAllValid[source]
Bases:
_ImportJobRun a TransferIfAllValid pipeline.