@@ -18,12 +18,22 @@ $api->Item->create(array("name" => "Book / English August","description" => "An
18
18
** Response:**
19
19
``` json
20
20
{
21
- "id" : " item_7Oxp4hmm6T4SCn " ,
21
+ "id" : " item_JInaSLODeDUQiQ " ,
22
22
"active" : true ,
23
23
"name" : " Book / English August" ,
24
24
"description" : " An indian story, Booker prize winner." ,
25
25
"amount" : 20000 ,
26
- "currency" : " INR"
26
+ "unit_amount" : 20000 ,
27
+ "currency" : " INR" ,
28
+ "type" : " invoice" ,
29
+ "unit" : null ,
30
+ "tax_inclusive" : false ,
31
+ "hsn_code" : null ,
32
+ "sac_code" : null ,
33
+ "tax_rate" : null ,
34
+ "tax_id" : null ,
35
+ "tax_group_id" : null ,
36
+ "created_at" : 1649843796
27
37
}
28
38
```
29
39
@@ -48,31 +58,43 @@ $api->Item->all($options);
48
58
``` json
49
59
{
50
60
"entity" : " collection" ,
51
- "count" : 3 ,
61
+ "count" : 2 ,
52
62
"items" : [
53
63
{
54
- "id" : " item_7Oy8OMV6BdEAac" ,
55
- "active" : true ,
56
- "name" : " Book / Ignited Minds" ,
57
- "description" : null ,
58
- "amount" : 15000 ,
59
- "currency" : " INR"
60
- },
61
- {
62
- "id" : " item_7Oxp4hmm6T4SCn" ,
64
+ "id" : " item_JInaSLODeDUQiQ" ,
63
65
"active" : true ,
64
66
"name" : " Book / English August" ,
65
67
"description" : " An indian story, Booker prize winner." ,
66
68
"amount" : 20000 ,
67
- "currency" : " INR"
69
+ "unit_amount" : 20000 ,
70
+ "currency" : " INR" ,
71
+ "type" : " invoice" ,
72
+ "unit" : null ,
73
+ "tax_inclusive" : false ,
74
+ "hsn_code" : null ,
75
+ "sac_code" : null ,
76
+ "tax_rate" : null ,
77
+ "tax_id" : null ,
78
+ "tax_group_id" : null ,
79
+ "created_at" : 1649843796
68
80
},
69
81
{
70
- "id" : " item_7OxoGnoxCuUKbo " ,
71
- "active" : true ,
72
- "name" : " Book / English August " ,
73
- "description" : null ,
82
+ "id" : " item_JIPSg5L06yhHie " ,
83
+ "active" : false ,
84
+ "name" : " Book / Ignited Minds - Updated name! " ,
85
+ "description" : " New descirption too. :). " ,
74
86
"amount" : 20000 ,
75
- "currency" : " INR"
87
+ "unit_amount" : 20000 ,
88
+ "currency" : " INR" ,
89
+ "type" : " invoice" ,
90
+ "unit" : null ,
91
+ "tax_inclusive" : false ,
92
+ "hsn_code" : null ,
93
+ "sac_code" : null ,
94
+ "tax_rate" : null ,
95
+ "tax_id" : null ,
96
+ "tax_group_id" : null ,
97
+ "created_at" : 1649758835
76
98
}
77
99
]
78
100
}
@@ -92,12 +114,22 @@ $api->Item->fetch($itemId);
92
114
** Response:**
93
115
``` json
94
116
{
95
- "id" : " item_7Oxp4hmm6T4SCn " ,
117
+ "id" : " item_JInaSLODeDUQiQ " ,
96
118
"active" : true ,
97
119
"name" : " Book / English August" ,
98
120
"description" : " An indian story, Booker prize winner." ,
99
121
"amount" : 20000 ,
100
- "currency" : " INR"
122
+ "unit_amount" : 20000 ,
123
+ "currency" : " INR" ,
124
+ "type" : " invoice" ,
125
+ "unit" : null ,
126
+ "tax_inclusive" : false ,
127
+ "hsn_code" : null ,
128
+ "sac_code" : null ,
129
+ "tax_rate" : null ,
130
+ "tax_id" : null ,
131
+ "tax_group_id" : null ,
132
+ "created_at" : 1649843796
101
133
}
102
134
```
103
135
@@ -123,12 +155,22 @@ $api->Item->fetch($itemId)->edit(array("name" => "Book / Ignited Minds - Updated
123
155
** Response:**
124
156
``` json
125
157
{
126
- "id" : " item_7Oy8OMV6BdEAac " ,
158
+ "id" : " item_JInaSLODeDUQiQ " ,
127
159
"active" : true ,
128
160
"name" : " Book / Ignited Minds - Updated name!" ,
129
- "description" : " New descirption too. :)" ,
130
- "amount" : 15000 ,
131
- "currency" : " INR"
161
+ "description" : " New descirption too. :)." ,
162
+ "amount" : 20000 ,
163
+ "unit_amount" : 20000 ,
164
+ "currency" : " INR" ,
165
+ "type" : " invoice" ,
166
+ "unit" : null ,
167
+ "tax_inclusive" : false ,
168
+ "hsn_code" : null ,
169
+ "sac_code" : null ,
170
+ "tax_rate" : null ,
171
+ "tax_id" : null ,
172
+ "tax_group_id" : null ,
173
+ "created_at" : 1649843796
132
174
}
133
175
```
134
176
-------------------------------------------------------------------------------------------------------
0 commit comments