API UpdateCustomerSettings: Porovnání verzí
Z Podpora.nextis.cz
(Založena nová stránka s textem „==== Description ==== Method allows You to update customer settings in system. ==== Exact name ==== <code>API_UpdateCustomerSettings</code> ==== Type ===…“) |
|||
(Není zobrazena jedna mezilehlá verze od stejného uživatele.) | |||
Řádka 16: | Řádka 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 | ||
Řádka 38: | Řádka 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, 09: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.