You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sideko_stripe/resources/credit_note/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ client = AsyncStripe(
34
34
res =await client.credit_note.list()
35
35
```
36
36
37
-
### preview_1 <aname="preview_1"></a>
37
+
### preview <aname="preview"></a>
38
38
Preview a credit note
39
39
40
40
<p>Get a preview of a credit note without creating it.</p>
@@ -52,7 +52,7 @@ client = Stripe(
52
52
password=getenv("API_PASSWORD"),
53
53
token=getenv("API_TOKEN"),
54
54
)
55
-
res = client.credit_note.preview_1(invoice="string")
55
+
res = client.credit_note.preview(invoice="string")
56
56
```
57
57
58
58
#### Asynchronous Client
@@ -66,10 +66,10 @@ client = AsyncStripe(
66
66
password=getenv("API_PASSWORD"),
67
67
token=getenv("API_TOKEN"),
68
68
)
69
-
res =await client.credit_note.preview_1(invoice="string")
69
+
res =await client.credit_note.preview(invoice="string")
70
70
```
71
71
72
-
### preview <aname="preview"></a>
72
+
### preview_lines <aname="preview_lines"></a>
73
73
Retrieve a credit note preview's line items
74
74
75
75
<p>When retrieving a credit note preview, you’ll get a <strong>lines</strong> property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.</p>
@@ -87,7 +87,7 @@ client = Stripe(
87
87
password=getenv("API_PASSWORD"),
88
88
token=getenv("API_TOKEN"),
89
89
)
90
-
res = client.credit_note.preview(invoice="string")
90
+
res = client.credit_note.preview_lines(invoice="string")
91
91
```
92
92
93
93
#### Asynchronous Client
@@ -101,7 +101,7 @@ client = AsyncStripe(
101
101
password=getenv("API_PASSWORD"),
102
102
token=getenv("API_TOKEN"),
103
103
)
104
-
res =await client.credit_note.preview(invoice="string")
104
+
res =await client.credit_note.preview_lines(invoice="string")
0 commit comments