1 Package hr_ru_contact_api AUTHID CURRENT_USER as
2 /* $Header: peconrui.pkh 120.1 2005/10/02 02:39:32 aroussel $ */
3 /*#
4 * This package contains contact APIs for Russia.
5 * @rep:scope public
6 * @rep:product PER
7 * @rep:displayname HR contact APIs for Russia
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |-----------------------------< create_ru_person >-------------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 -- {Start Of Comments}
15 /*#
16 * This API creates a new contact for Russia.
17 *
18 * This API is effectively an alternative to the API create_person. If
19 * p_validate is set to false, a person of type 'OTHER' is created. No
20 * information is stored in any other tables.
21 *
22 * <p><b>Licensing</b><br>
23 * This API is licensed for use with Human Resources.
24 *
25 * <p><b>Prerequisites</b><br>
26 * The business group for Russian legislation must already exist.
27 *
28 * <p><b>Post Success</b><br>
29 * A contact is successfully inserted in the database.
30 *
31 * <p><b>Post Failure</b><br>
32 * The API does not create the contact and raises an error.
33 *
34 * @param p_validate If true, then validation alone will be performed and the
35 * database will remain unchanged. If false and all validation checks pass,
36 * then the database will be modified.
37 * @param p_start_date The effective start date of the contact.
38 * @param p_business_group_id Contact's business group.
39 * @param p_last_name Contact's last name.
40 * @param p_sex Contact's sex.
41 * @param p_person_type_id Identifies the type of person. If an identification
42 * number is not specified, then the API will use the default 'OTHER' type for
43 * the business group.
44 * @param p_comments Comments for contact record.
45 * @param p_date_employee_data_verified The date on which the person last
46 * verified the data.
47 * @param p_date_of_birth Date of birth.
48 * @param p_email_address E-mail address of the person.
49 * @param p_expense_check_send_to_addres Address to use as the mailing address.
50 * @param p_first_name Person's first name
51 * @param p_known_as Alternative name of the person.
52 * @param p_marital_status Marital status of the person. Valid values are
53 * defined by the 'MAR_STATUS' lookup type.
54 * @param p_middle_names Person's middle name(s).
55 * @param p_nationality Person's nationality. Valid values are defined by the
56 * 'NATIONALITY' lookup type.
57 * @param p_inn National identifier.
58 * @param p_previous_last_name Person's previous last name.
59 * @param p_registered_disabled_flag Indicates whether the person is classified
60 * as disabled. Valid values are defined by the 'REGISTERED_DISABLED' lookup
61 * type.
62 * @param p_title Person's title. Valid values are defined by the 'TITLE'
63 * lookup type.
64 * @param p_vendor_id Unique identifier of supplier.
65 * @param p_work_telephone Work telephone of the person.
66 * @param p_attribute_category This context value determines which flexfield
67 * structure to use with the descriptive flexfield segments.
68 * @param p_attribute1 Descriptive flexfield segment.
69 * @param p_attribute2 Descriptive flexfield segment.
70 * @param p_attribute3 Descriptive flexfield segment.
71 * @param p_attribute4 Descriptive flexfield segment.
72 * @param p_attribute5 Descriptive flexfield segment.
73 * @param p_attribute6 Descriptive flexfield segment.
74 * @param p_attribute7 Descriptive flexfield segment.
75 * @param p_attribute8 Descriptive flexfield segment.
76 * @param p_attribute9 Descriptive flexfield segment.
77 * @param p_attribute10 Descriptive flexfield segment.
78 * @param p_attribute11 Descriptive flexfield segment.
79 * @param p_attribute12 Descriptive flexfield segment.
80 * @param p_attribute13 Descriptive flexfield segment.
81 * @param p_attribute14 Descriptive flexfield segment.
82 * @param p_attribute15 Descriptive flexfield segment.
83 * @param p_attribute16 Descriptive flexfield segment.
84 * @param p_attribute17 Descriptive flexfield segment.
85 * @param p_attribute18 Descriptive flexfield segment.
86 * @param p_attribute19 Descriptive flexfield segment.
87 * @param p_attribute20 Descriptive flexfield segment.
88 * @param p_attribute21 Descriptive flexfield segment.
89 * @param p_attribute22 Descriptive flexfield segment.
90 * @param p_attribute23 Descriptive flexfield segment.
91 * @param p_attribute24 Descriptive flexfield segment.
92 * @param p_attribute25 Descriptive flexfield segment.
93 * @param p_attribute26 Descriptive flexfield segment.
94 * @param p_attribute27 Descriptive flexfield segment.
95 * @param p_attribute28 Descriptive flexfield segment.
96 * @param p_attribute29 Descriptive flexfield segment.
97 * @param p_attribute30 Descriptive flexfield segment.
98 * @param p_place_of_birth Person's place of birth.Valid values are defined by
99 * the 'RU_OKATO' lookup type.
100 * @param p_references References for the person in the case of rehire.
101 * @param p_local_coefficient Valid for persons who live in Last North or
102 * regions that are equated to Last North.
103 * @param p_citizenship Person's citizenship. Valid values exist in the
104 * 'RU_CITIZENSHIP' lookup type.
105 * @param p_military_doc Military documents for the person. Valid values exist
106 * in the 'RU_MILITARY_DOC_TYPE' lookup type.
107 * @param p_reserve_category Reserve category of the person. Valid values exist
108 * in the 'RU_RESERVE_CATEGORY' lookup type.
109 * @param p_military_rank Military rank of the person. Valid values exist in
110 * the 'RU_MILITARY_RANK' lookup type.
111 * @param p_military_profile Military profile of the person. Valid values exist
112 * in the 'RU_MILITARY_PROFILE' lookup type.
113 * @param p_military_reg_code Military registration board code of the person.
114 * @param p_mil_srvc_readiness_category Military readiness service category of
115 * the person. Valid values exist in the 'RU_MILITARY_SERVICE_READINESS' lookup
116 * type.
117 * @param p_military_commissariat Military commissariat of the person.
118 * @param p_quitting_mark Conscription dismissal mark of the person. Valid
119 * values exist in the 'RU_QUITTING_MARK' lookup type.
120 * @param p_military_unit_number Military unit number of the person.
121 * @param p_military_reg_type Military registration type. Valid values exist in
122 * the 'RU_MILITARY_REGISTRATION' lookup type.
123 * @param p_military_reg_details Military Registration Details.
124 * @param p_pension_fund_number Pension Fund Number of the person.
125 * @param p_correspondence_language Preferred language for correspondence.
126 * @param p_honors Honors or degrees awarded.
127 * @param p_benefit_group_id Identifier of the benefit group.
128 * @param p_on_military_service Y/N flag indicating whether the person is
129 * employed in military service.
130 * @param p_student_status Full time/part time status of student. Valid values
131 * are defined by the 'STUDENT_STATUS' lookup type.
132 * @param p_uses_tobacco_flag Tobacco type used by the person. Valid values are
133 * defined by the 'TOBACCO_USER' lookup type.
134 * @param p_coord_ben_no_cvg_flag Coordination of benefits no other coverage
135 * flag.
136 * @param p_genitive_last_name Genitive last name of the person.
137 * @param p_suffix This parameter is currently unsupported.
138 * @param p_town_of_birth Town or city of birth of the person.
139 * @param p_region_of_birth Geographical region of birth of the person.
140 * @param p_country_of_birth Country of birth of the person.
141 * @param p_global_person_id Global identification number for the person.
142 * @param p_person_id If p_validate is false, then this uniquely identifies the
143 * person created. If p_validate is true, then set to null.
144 * @param p_object_version_number If p_validate is false, then set to the
145 * version number of the created person. If p_validate is true, then the value
146 * will be null.
147 * @param p_effective_start_date If p_validate is false, this will be set to
148 * the effective start date of the person. If p_validate is true, this will be
149 * null.
150 * @param p_effective_end_date If p_validate is false, this will be set to the
151 * effective end date of the person. If p_validate is true, this will be null.
152 * @param p_full_name If p_validate is false, this will be set to the complete
153 * full name of the person. If p_validate is true, this will be null.
154 * @param p_comment_id If p_validate is false and comment text was provided,
155 * then will be set to the identifier of the created person record. If
156 * p_validate is true or no comment text was provided, then this will be null.
157 * @param p_name_combination_warning If set to true, then the combination of
158 * last name, first name and date of birth existed prior to calling this API.
159 * @param p_orig_hire_warning Set to true if the person type is not EMP,
160 * EMP_APL, EX_EMP, or EX_EMP_APL and the original_date_of_hire is not null.
161 * @rep:displayname Create Contact for Russia
162 * @rep:category BUSINESS_ENTITY PER_PERSONAL_CONTACT
163 * @rep:lifecycle active
164 * @rep:category MISC_EXTENSIONS HR_DATAPUMP
165 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
166 * @rep:scope public
167 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
168 */
169 --
170 -- {End Of Comments}
171 --
172 procedure create_ru_person
173 (p_validate in boolean default false
174 ,p_start_date in date
175 ,p_business_group_id in number
176 ,p_last_name in varchar2
177 ,p_sex in varchar2
178 ,p_person_type_id in number default null
179 ,p_comments in varchar2 default null
180 ,p_date_employee_data_verified in date default null
181 ,p_date_of_birth in date default null
182 ,p_email_address in varchar2 default null
183 ,p_expense_check_send_to_addres in varchar2 default null
184 ,p_first_name in varchar2
185 ,p_known_as in varchar2 default null
186 ,p_marital_status in varchar2 default null
187 ,p_middle_names in varchar2 default null
188 ,p_nationality in varchar2 default null
189 ,p_inn in varchar2 default null
190 ,p_previous_last_name in varchar2 default null
191 ,p_registered_disabled_flag in varchar2 default null
192 ,p_title in varchar2 default null
193 ,p_vendor_id in number default null
194 ,p_work_telephone in varchar2 default null
195 ,p_attribute_category in varchar2 default null
196 ,p_attribute1 in varchar2 default null
197 ,p_attribute2 in varchar2 default null
198 ,p_attribute3 in varchar2 default null
199 ,p_attribute4 in varchar2 default null
200 ,p_attribute5 in varchar2 default null
201 ,p_attribute6 in varchar2 default null
202 ,p_attribute7 in varchar2 default null
203 ,p_attribute8 in varchar2 default null
204 ,p_attribute9 in varchar2 default null
205 ,p_attribute10 in varchar2 default null
206 ,p_attribute11 in varchar2 default null
207 ,p_attribute12 in varchar2 default null
208 ,p_attribute13 in varchar2 default null
209 ,p_attribute14 in varchar2 default null
210 ,p_attribute15 in varchar2 default null
211 ,p_attribute16 in varchar2 default null
212 ,p_attribute17 in varchar2 default null
213 ,p_attribute18 in varchar2 default null
214 ,p_attribute19 in varchar2 default null
215 ,p_attribute20 in varchar2 default null
216 ,p_attribute21 in varchar2 default null
217 ,p_attribute22 in varchar2 default null
218 ,p_attribute23 in varchar2 default null
219 ,p_attribute24 in varchar2 default null
220 ,p_attribute25 in varchar2 default null
221 ,p_attribute26 in varchar2 default null
222 ,p_attribute27 in varchar2 default null
223 ,p_attribute28 in varchar2 default null
224 ,p_attribute29 in varchar2 default null
225 ,p_attribute30 in varchar2 default null
226 ,p_place_of_birth in varchar2 default null
227 ,p_references in varchar2 default null
228 ,p_local_coefficient in varchar2 default null
229 ,p_citizenship in varchar2 default null
230 ,p_military_doc in varchar2 default null
231 ,p_reserve_category in varchar2 default null
232 ,p_military_rank in varchar2 default null
233 ,p_military_profile in varchar2 default null
234 ,p_military_reg_code in varchar2 default null
235 ,p_mil_srvc_readiness_category in varchar2 default null
236 ,p_military_commissariat in varchar2 default null
237 ,p_quitting_mark in varchar2 default null
238 ,p_military_unit_number in varchar2 default null
239 ,p_military_reg_type in varchar2 default null
240 ,p_military_reg_details in varchar2 default null
241 ,p_pension_fund_number in varchar2 default null
242 ,p_correspondence_language in varchar2 default null
243 ,p_honors in varchar2 default null
244 ,p_benefit_group_id in number default null
245 ,p_on_military_service in varchar2 default null
246 ,p_student_status in varchar2 default null
247 ,p_uses_tobacco_flag in varchar2 default null
248 ,p_coord_ben_no_cvg_flag in varchar2 default null
249 ,p_genitive_last_name in varchar2 default null
250 ,p_suffix in varchar2 default null
251 ,p_town_of_birth in varchar2 default null
252 ,p_region_of_birth in varchar2 default null
253 ,p_country_of_birth in varchar2 default null
254 ,p_global_person_id in varchar2 default null
255 ,p_person_id out nocopy number
256 ,p_object_version_number out nocopy number
257 ,p_effective_start_date out nocopy date
258 ,p_effective_end_date out nocopy date
259 ,p_full_name out nocopy varchar2
260 ,p_comment_id out nocopy number
261 ,p_name_combination_warning out nocopy boolean
262 ,p_orig_hire_warning out nocopy boolean
263 );
264 --
265 end hr_ru_contact_api;