@@ -57,12 +57,12 @@ def create(
5757 currency : str ,
5858 invoice_date : Union [str , datetime ],
5959 line_items : Iterable [invoice_create_params .LineItem ],
60- net_terms : int ,
6160 customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
6261 discount : Optional [Discount ] | NotGiven = NOT_GIVEN ,
6362 external_customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
6463 memo : Optional [str ] | NotGiven = NOT_GIVEN ,
6564 metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
65+ net_terms : Optional [int ] | NotGiven = NOT_GIVEN ,
6666 will_auto_issue : bool | NotGiven = NOT_GIVEN ,
6767 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6868 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -82,11 +82,6 @@ def create(
8282 invoice_date: Optional invoice date to set. Must be in the past, if not set, `invoice_date` is
8383 set to the current time in the customer's timezone.
8484
85- net_terms: Determines the difference between the invoice issue date for subscription
86- invoices as the date that they are due. A value of '0' here represents that the
87- invoice is due on issue, whereas a value of 30 represents that the customer has
88- 30 days to pay the invoice.
89-
9085 customer_id: The id of the `Customer` to create this invoice for. One of `customer_id` and
9186 `external_customer_id` are required.
9287
@@ -101,6 +96,11 @@ def create(
10196 by setting the value to `null`, and the entire metadata mapping can be cleared
10297 by setting `metadata` to `null`.
10398
99+ net_terms: Determines the difference between the invoice issue date for subscription
100+ invoices as the date that they are due. A value of '0' here represents that the
101+ invoice is due on issue, whereas a value of 30 represents that the customer has
102+ 30 days to pay the invoice.
103+
104104 will_auto_issue: When true, this invoice will be submitted for issuance upon creation. When
105105 false, the resulting invoice will require manual review to issue. Defaulted to
106106 false.
@@ -122,12 +122,12 @@ def create(
122122 "currency" : currency ,
123123 "invoice_date" : invoice_date ,
124124 "line_items" : line_items ,
125- "net_terms" : net_terms ,
126125 "customer_id" : customer_id ,
127126 "discount" : discount ,
128127 "external_customer_id" : external_customer_id ,
129128 "memo" : memo ,
130129 "metadata" : metadata ,
130+ "net_terms" : net_terms ,
131131 "will_auto_issue" : will_auto_issue ,
132132 },
133133 invoice_create_params .InvoiceCreateParams ,
@@ -597,12 +597,12 @@ async def create(
597597 currency : str ,
598598 invoice_date : Union [str , datetime ],
599599 line_items : Iterable [invoice_create_params .LineItem ],
600- net_terms : int ,
601600 customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
602601 discount : Optional [Discount ] | NotGiven = NOT_GIVEN ,
603602 external_customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
604603 memo : Optional [str ] | NotGiven = NOT_GIVEN ,
605604 metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
605+ net_terms : Optional [int ] | NotGiven = NOT_GIVEN ,
606606 will_auto_issue : bool | NotGiven = NOT_GIVEN ,
607607 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
608608 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -622,11 +622,6 @@ async def create(
622622 invoice_date: Optional invoice date to set. Must be in the past, if not set, `invoice_date` is
623623 set to the current time in the customer's timezone.
624624
625- net_terms: Determines the difference between the invoice issue date for subscription
626- invoices as the date that they are due. A value of '0' here represents that the
627- invoice is due on issue, whereas a value of 30 represents that the customer has
628- 30 days to pay the invoice.
629-
630625 customer_id: The id of the `Customer` to create this invoice for. One of `customer_id` and
631626 `external_customer_id` are required.
632627
@@ -641,6 +636,11 @@ async def create(
641636 by setting the value to `null`, and the entire metadata mapping can be cleared
642637 by setting `metadata` to `null`.
643638
639+ net_terms: Determines the difference between the invoice issue date for subscription
640+ invoices as the date that they are due. A value of '0' here represents that the
641+ invoice is due on issue, whereas a value of 30 represents that the customer has
642+ 30 days to pay the invoice.
643+
644644 will_auto_issue: When true, this invoice will be submitted for issuance upon creation. When
645645 false, the resulting invoice will require manual review to issue. Defaulted to
646646 false.
@@ -662,12 +662,12 @@ async def create(
662662 "currency" : currency ,
663663 "invoice_date" : invoice_date ,
664664 "line_items" : line_items ,
665- "net_terms" : net_terms ,
666665 "customer_id" : customer_id ,
667666 "discount" : discount ,
668667 "external_customer_id" : external_customer_id ,
669668 "memo" : memo ,
670669 "metadata" : metadata ,
670+ "net_terms" : net_terms ,
671671 "will_auto_issue" : will_auto_issue ,
672672 },
673673 invoice_create_params .InvoiceCreateParams ,
0 commit comments