API UpdateCustomerSettings: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to update customer settings in system. ==== Exact name ==== <code>API_UpdateCustomerSettings</code> ==== Type ===…“ |
Bez shrnutí editace |
||
| (Není zobrazena jedna mezilehlá verze od stejného uživatele.) | |||
| Řádek 16: | Řádek 16: | ||
!Relation | !Relation | ||
|- | |- | ||
|@ | |@IDPartner | ||
|int | |int | ||
| | | | ||
| | |ID of customer from customer list (see relation) | ||
| | |API_GetCustomers.ID | ||
|- | |||
|@EnableChildRegistration | |||
|bit | |||
| | |||
|Enable child registration | |||
| | |||
|- | |||
|@Blocked | |||
|bit | |||
| | |||
|Blocked | |||
| | |||
|} | |} | ||
==== Return ==== | |||
0 : OK | |||
100 : Item could not be updated | |||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
DECLARE @return_value int | |||
DECLARE @IDPartner int | DECLARE @IDPartner int | ||
DECLARE @EnableChildRegistration bit | DECLARE @EnableChildRegistration bit | ||
| Řádek 38: | Řádek 53: | ||
WHERE id = 3 | WHERE id = 3 | ||
EXECUTE [API_UpdateCustomerSettings] | EXECUTE @return_value = [API_UpdateCustomerSettings] | ||
@IDPartner, | @IDPartner, | ||
@EnableChildRegistration, | @EnableChildRegistration, | ||
Aktuální verze z 22. 9. 2017, 08:25
Description
Method allows You to update customer settings in system.
Exact name
API_UpdateCustomerSettings
Type
Standard executable stored procedure.
Specification
| Parameter | Data type | Value range | Description | Relation |
|---|---|---|---|---|
| @IDPartner | int | ID of customer from customer list (see relation) | API_GetCustomers.ID | |
| @EnableChildRegistration | bit | Enable child registration | ||
| @Blocked | bit | Blocked |
Return
0 : OK 100 : Item could not be updated
Example
DECLARE @return_value int
DECLARE @IDPartner int
DECLARE @EnableChildRegistration bit
DECLARE @Blocked bit
SELECT @IDPartner= [IDPartner],
@EnableChildRegistration= [EnableChildRegistration],
@Blocked= 1
FROM [API_GetCustomerSettings]
WHERE id = 3
EXECUTE @return_value = [API_UpdateCustomerSettings]
@IDPartner,
@EnableChildRegistration,
@Blocked
Notices
None.