18
18
19
19
20
20
class BillingAddress (BaseModel ):
21
- city : Optional [str ]
21
+ city : Optional [str ] = None
22
22
23
- country : Optional [str ]
23
+ country : Optional [str ] = None
24
24
25
- line1 : Optional [str ]
25
+ line1 : Optional [str ] = None
26
26
27
- line2 : Optional [str ]
27
+ line2 : Optional [str ] = None
28
28
29
- postal_code : Optional [str ]
29
+ postal_code : Optional [str ] = None
30
30
31
- state : Optional [str ]
31
+ state : Optional [str ] = None
32
32
33
33
34
34
class ShippingAddress (BaseModel ):
35
- city : Optional [str ]
35
+ city : Optional [str ] = None
36
36
37
- country : Optional [str ]
37
+ country : Optional [str ] = None
38
38
39
- line1 : Optional [str ]
39
+ line1 : Optional [str ] = None
40
40
41
- line2 : Optional [str ]
41
+ line2 : Optional [str ] = None
42
42
43
- postal_code : Optional [str ]
43
+ postal_code : Optional [str ] = None
44
44
45
- state : Optional [str ]
45
+ state : Optional [str ] = None
46
46
47
47
48
48
class TaxID (BaseModel ):
@@ -169,7 +169,7 @@ class TaxID(BaseModel):
169
169
170
170
171
171
class AccountingSyncConfigurationAccountingProvider (BaseModel ):
172
- external_provider_id : Optional [str ]
172
+ external_provider_id : Optional [str ] = None
173
173
174
174
provider_type : Literal ["quickbooks" , "netsuite" ]
175
175
@@ -194,11 +194,11 @@ class Customer(BaseModel):
194
194
balance : str
195
195
"""The customer's current balance in their currency."""
196
196
197
- billing_address : Optional [BillingAddress ]
197
+ billing_address : Optional [BillingAddress ] = None
198
198
199
199
created_at : datetime
200
200
201
- currency : Optional [str ]
201
+ currency : Optional [str ] = None
202
202
203
203
email : str
204
204
"""A valid customer email, to be used for notifications.
@@ -209,7 +209,7 @@ class Customer(BaseModel):
209
209
210
210
email_delivery : bool
211
211
212
- external_customer_id : Optional [str ]
212
+ external_customer_id : Optional [str ] = None
213
213
"""
214
214
An optional user-defined ID for this customer resource, used throughout the
215
215
system as an alias for this Customer. Use this field to identify a customer by
@@ -227,24 +227,24 @@ class Customer(BaseModel):
227
227
name : str
228
228
"""The full name of the customer"""
229
229
230
- payment_provider : Optional [Literal ["quickbooks" , "bill.com" , "stripe_charge" , "stripe_invoice" , "netsuite" ]]
230
+ payment_provider : Optional [Literal ["quickbooks" , "bill.com" , "stripe_charge" , "stripe_invoice" , "netsuite" ]] = None
231
231
"""This is used for creating charges or invoices in an external system via Orb.
232
232
233
233
When not in test mode, the connection must first be configured in the Orb
234
234
webapp.
235
235
"""
236
236
237
- payment_provider_id : Optional [str ]
237
+ payment_provider_id : Optional [str ] = None
238
238
"""The ID of this customer in an external payments solution, such as Stripe.
239
239
240
240
This is used for creating charges or invoices in the external system via Orb.
241
241
"""
242
242
243
- portal_url : Optional [str ]
243
+ portal_url : Optional [str ] = None
244
244
245
- shipping_address : Optional [ShippingAddress ]
245
+ shipping_address : Optional [ShippingAddress ] = None
246
246
247
- tax_id : Optional [TaxID ]
247
+ tax_id : Optional [TaxID ] = None
248
248
"""
249
249
Tax IDs are commonly required to be displayed on customer invoices, which are
250
250
added to the headers of invoices.
0 commit comments