2
2
3
3
from __future__ import annotations
4
4
5
- from typing import List , Union , Iterable , Optional
5
+ from typing import Dict , List , Union , Iterable , Optional
6
6
from datetime import date , datetime
7
7
from typing_extensions import Literal
8
8
@@ -53,6 +53,7 @@ def create(
53
53
customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
54
54
external_customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
55
55
memo : Optional [str ] | NotGiven = NOT_GIVEN ,
56
+ metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
56
57
will_auto_issue : bool | NotGiven = NOT_GIVEN ,
57
58
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
58
59
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -85,6 +86,10 @@ def create(
85
86
86
87
memo: An optional memo to attach to the invoice.
87
88
89
+ metadata: User-specified key/value pairs for the resource. Individual keys can be removed
90
+ by setting the value to `null`, and the entire metadata mapping can be cleared
91
+ by setting `metadata` to `null`.
92
+
88
93
will_auto_issue: When true, this invoice will automatically be issued upon creation. When false,
89
94
the resulting invoice will require manual review to issue. Defaulted to false.
90
95
@@ -109,6 +114,7 @@ def create(
109
114
"customer_id" : customer_id ,
110
115
"external_customer_id" : external_customer_id ,
111
116
"memo" : memo ,
117
+ "metadata" : metadata ,
112
118
"will_auto_issue" : will_auto_issue ,
113
119
},
114
120
invoice_create_params .InvoiceCreateParams ,
@@ -464,6 +470,7 @@ async def create(
464
470
customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
465
471
external_customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
466
472
memo : Optional [str ] | NotGiven = NOT_GIVEN ,
473
+ metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
467
474
will_auto_issue : bool | NotGiven = NOT_GIVEN ,
468
475
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
469
476
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -496,6 +503,10 @@ async def create(
496
503
497
504
memo: An optional memo to attach to the invoice.
498
505
506
+ metadata: User-specified key/value pairs for the resource. Individual keys can be removed
507
+ by setting the value to `null`, and the entire metadata mapping can be cleared
508
+ by setting `metadata` to `null`.
509
+
499
510
will_auto_issue: When true, this invoice will automatically be issued upon creation. When false,
500
511
the resulting invoice will require manual review to issue. Defaulted to false.
501
512
@@ -520,6 +531,7 @@ async def create(
520
531
"customer_id" : customer_id ,
521
532
"external_customer_id" : external_customer_id ,
522
533
"memo" : memo ,
534
+ "metadata" : metadata ,
523
535
"will_auto_issue" : will_auto_issue ,
524
536
},
525
537
invoice_create_params .InvoiceCreateParams ,
0 commit comments