@@ -8,36 +8,36 @@ modified to suit your own requirements.
8
8
9
9
## Example
10
10
11
- ```C#
12
- var client = new ApiClient("test", "username", "password");
13
- var inventory_client = new InventoryClient(client);
14
- Inventory inventory;
15
-
16
- // Create inventory
17
- inventory = new Inventory();
18
- inventory.whse = "00";
19
- inventory.partNo = "TESTPART";
20
- inventory.type = InventoryType.Normal;
21
- inventory.status = InventoryStatus.Active;
22
- inventory.description = "Test Inventory";
23
- inventory = inventory_client.Create(inventory);
24
-
25
- // List inventory matching the query "TEST"
26
- foreach (var i in inventory_client.List(0, 100, "TEST"))
27
- {
28
- // i.id
29
- }
30
-
31
- // Get inventory
32
- inventory = inventory_client.Fetch(inventory.id);
33
-
34
- // Update inventory
35
- inventory.description = "New Description";
36
- inventory_client.Update(inventory.id, inventory);
37
-
38
- // Delete inventory
39
- inventory_client.Delete(inventory.id);
40
- ```
11
+ ``` C#
12
+ var client = new ApiClient (" test" , " username" , " password" );
13
+ var inventory_client = new InventoryClient (client );
14
+ Inventory inventory ;
15
+
16
+ // Create inventory
17
+ inventory = new Inventory ();
18
+ inventory .whse = " 00" ;
19
+ inventory .partNo = " TESTPART" ;
20
+ inventory .type = InventoryType .Normal ;
21
+ inventory .status = InventoryStatus .Active ;
22
+ inventory .description = " Test Inventory" ;
23
+ inventory = inventory_client .Create (inventory );
24
+
25
+ // List inventory matching the query "TEST"
26
+ foreach (var i in inventory_client .List (0 , 100 , " TEST" ))
27
+ {
28
+ // i.id
29
+ }
30
+
31
+ // Get inventory
32
+ inventory = inventory_client .Fetch (inventory .id );
33
+
34
+ // Update inventory
35
+ inventory .description = " New Description" ;
36
+ inventory_client .Update (inventory .id , inventory );
37
+
38
+ // Delete inventory
39
+ inventory_client .Delete (inventory .id );
40
+ ```
41
41
42
42
43
43
## Documentation
0 commit comments