@@ -93,11 +93,8 @@ s = orb.Orb(
9393 ),
9494)
9595
96- req = operations.GetCustomersCustomerIDRequest(
97- customer_id = ' harum' ,
98- )
9996
100- res = s.customer.get(req )
97+ res = s.customer.get(' harum ' )
10198
10299if res.customer is not None :
103100 # handle response
@@ -131,11 +128,8 @@ s = orb.Orb(
131128 ),
132129)
133130
134- req = operations.GetCustomersCustomerIDBalanceTransactionsRequest(
135- customer_id = ' enim' ,
136- )
137131
138- res = s.customer.get_balance(req )
132+ res = s.customer.get_balance(' enim ' )
139133
140134if res.get_customers_customer_id_balance_transactions_200_application_json_object is not None :
141135 # handle response
@@ -159,11 +153,8 @@ s = orb.Orb(
159153 ),
160154)
161155
162- req = operations.GetCustomersExternalCustomerIDExternalCustomerIDRequest(
163- external_customer_id = ' accusamus' ,
164- )
165156
166- res = s.customer.get_by_external_id(req )
157+ res = s.customer.get_by_external_id(' accusamus ' )
167158
168159if res.customer is not None :
169160 # handle response
@@ -342,33 +333,29 @@ s = orb.Orb(
342333 ),
343334)
344335
345- req = operations.PutCustomersCustomerIDRequest(
346- request_body = operations.PutCustomersCustomerIDRequestBody(
347- billing_address = operations.PutCustomersCustomerIDRequestBodyBillingAddress(
348- city = ' Samanthaboro' ,
349- country = ' US' ,
350- line1 = ' praesentium' ,
351- line2 = ' rem' ,
352- postal_code = ' 09509-2306' ,
353- state = ' quibusdam' ,
354- ),
355- email = ' Luther.Rau26@gmail.com' ,
356- name = ' Beth McGlynn Sr.' ,
357- payment_provider = operations.PutCustomersCustomerIDRequestBodyPaymentProviderEnum.LESS_THAN_NIL_GREATER_THAN_ ,
358- payment_provider_id = ' ipsam' ,
359- shipping_address = operations.PutCustomersCustomerIDRequestBodyShippingAddress(
360- city = ' East Marianostead' ,
361- country = ' US' ,
362- line1 = ' tempora' ,
363- line2 = ' facilis' ,
364- postal_code = ' 29427-5358' ,
365- state = ' sint' ,
366- ),
367- ),
368- customer_id = ' officia' ,
369- )
370336
371- res = s.customer.update(req)
337+ res = s.customer.update(' excepturi' , operations.PutCustomersCustomerIDRequestBody(
338+ billing_address = operations.PutCustomersCustomerIDRequestBodyBillingAddress(
339+ city = ' East Orange' ,
340+ country = ' US' ,
341+ line1 = ' praesentium' ,
342+ line2 = ' rem' ,
343+ postal_code = ' 09509-2306' ,
344+ state = ' quibusdam' ,
345+ ),
346+ email = ' Luther.Rau26@gmail.com' ,
347+ name = ' Beth McGlynn Sr.' ,
348+ payment_provider = operations.PutCustomersCustomerIDRequestBodyPaymentProviderEnum.LESS_THAN_NIL_GREATER_THAN_ ,
349+ payment_provider_id = ' ipsam' ,
350+ shipping_address = operations.PutCustomersCustomerIDRequestBodyShippingAddress(
351+ city = ' East Marianostead' ,
352+ country = ' US' ,
353+ line1 = ' tempora' ,
354+ line2 = ' facilis' ,
355+ postal_code = ' 29427-5358' ,
356+ state = ' sint' ,
357+ ),
358+ ))
372359
373360if res.customer is not None :
374361 # handle response
@@ -392,33 +379,29 @@ s = orb.Orb(
392379 ),
393380)
394381
395- req = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequest(
396- request_body = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBody(
397- billing_address = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyBillingAddress(
398- city = ' Fort Veda' ,
399- country = ' US' ,
400- line1 = ' dolorum' ,
401- line2 = ' in' ,
402- postal_code = ' 89612' ,
403- state = ' cumque' ,
404- ),
405- email = ' Hans_Hyatt24@hotmail.com' ,
406- name = ' Jon Tillman' ,
407- payment_provider = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyPaymentProviderEnum.STRIPE_INVOICE ,
408- payment_provider_id = ' nam' ,
409- shipping_address = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyShippingAddress(
410- city = ' Kuvalisstad' ,
411- country = ' US' ,
412- line1 = ' sapiente' ,
413- line2 = ' amet' ,
414- postal_code = ' 34664-0437' ,
415- state = ' id' ,
416- ),
417- ),
418- external_customer_id = ' labore' ,
419- )
420382
421- res = s.customer.update_by_external_id(req)
383+ res = s.customer.update_by_external_id(' officia' , operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBody(
384+ billing_address = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyBillingAddress(
385+ city = ' Fort Veda' ,
386+ country = ' US' ,
387+ line1 = ' dolorum' ,
388+ line2 = ' in' ,
389+ postal_code = ' 89612' ,
390+ state = ' cumque' ,
391+ ),
392+ email = ' Hans_Hyatt24@hotmail.com' ,
393+ name = ' Jon Tillman' ,
394+ payment_provider = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyPaymentProviderEnum.STRIPE_INVOICE ,
395+ payment_provider_id = ' nam' ,
396+ shipping_address = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyShippingAddress(
397+ city = ' Kuvalisstad' ,
398+ country = ' US' ,
399+ line1 = ' sapiente' ,
400+ line2 = ' amet' ,
401+ postal_code = ' 34664-0437' ,
402+ state = ' id' ,
403+ ),
404+ ))
422405
423406if res.customer is not None :
424407 # handle response
@@ -494,34 +477,28 @@ s = orb.Orb(
494477 ),
495478)
496479
497- req = operations.PatchCustomersCustomerIDUsageRequest(
498- request_body = operations.PatchCustomersCustomerIDUsageRequestBody(
499- events = [
500- operations.PatchCustomersCustomerIDUsageRequestBodyEvents(
501- event_name = ' suscipit' ,
502- properties = {
503- " nobis" : ' eum' ,
504- " vero" : ' aspernatur' ,
505- " architecto" : ' magnam' ,
506- },
507- timestamp = ' et' ,
508- ),
509- operations.PatchCustomersCustomerIDUsageRequestBodyEvents(
510- event_name = ' excepturi' ,
511- properties = {
512- " provident" : ' quos' ,
513- " sint" : ' accusantium' ,
514- },
515- timestamp = ' mollitia' ,
516- ),
517- ],
518- ),
519- customer_id = ' reiciendis' ,
520- timeframe_end = dateutil.parser.isoparse(' 2022-05-11T17:46:20Z' ),
521- timeframe_start = dateutil.parser.isoparse(' 2022-05-11T17:46:20Z' ),
522- )
523480
524- res = s.customer.update_usage(req)
481+ res = s.customer.update_usage(' labore' , dateutil.parser.isoparse(' 2022-05-11T17:46:20Z' ), dateutil.parser.isoparse(' 2022-05-11T17:46:20Z' ), operations.PatchCustomersCustomerIDUsageRequestBody(
482+ events = [
483+ operations.PatchCustomersCustomerIDUsageRequestBodyEvents(
484+ event_name = ' suscipit' ,
485+ properties = {
486+ " nobis" : ' eum' ,
487+ " vero" : ' aspernatur' ,
488+ " architecto" : ' magnam' ,
489+ },
490+ timestamp = ' et' ,
491+ ),
492+ operations.PatchCustomersCustomerIDUsageRequestBodyEvents(
493+ event_name = ' excepturi' ,
494+ properties = {
495+ " provident" : ' quos' ,
496+ " sint" : ' accusantium' ,
497+ },
498+ timestamp = ' mollitia' ,
499+ ),
500+ ],
501+ ))
525502
526503if res.patch_customers_customer_id_usage_200_application_json_object is not None :
527504 # handle response
@@ -544,44 +521,38 @@ s = orb.Orb(
544521 ),
545522)
546523
547- req = operations.PatchExternalCustomersCustomerIDUsageRequest(
548- request_body = operations.PatchExternalCustomersCustomerIDUsageRequestBody(
549- events = [
550- operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
551- event_name = ' ad' ,
552- properties = {
553- " dolor" : ' necessitatibus' ,
554- " odit" : ' nemo' ,
555- },
556- timestamp = ' quasi' ,
557- ),
558- operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
559- event_name = ' iure' ,
560- properties = {
561- " debitis" : ' eius' ,
562- " maxime" : ' deleniti' ,
563- " facilis" : ' in' ,
564- " architecto" : ' architecto' ,
565- },
566- timestamp = ' repudiandae' ,
567- ),
568- operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
569- event_name = ' ullam' ,
570- properties = {
571- " nihil" : ' repellat' ,
572- " quibusdam" : ' sed' ,
573- " saepe" : ' pariatur' ,
574- },
575- timestamp = ' accusantium' ,
576- ),
577- ],
578- ),
579- external_customer_id = ' consequuntur' ,
580- timeframe_end = dateutil.parser.isoparse(' 2022-05-11T17:46:20Z' ),
581- timeframe_start = dateutil.parser.isoparse(' 2022-05-11T17:46:20Z' ),
582- )
583524
584- res = s.customer.update_usage_by_external_id(req)
525+ res = s.customer.update_usage_by_external_id(' reiciendis' , dateutil.parser.isoparse(' 2022-05-11T17:46:20Z' ), dateutil.parser.isoparse(' 2022-05-11T17:46:20Z' ), operations.PatchExternalCustomersCustomerIDUsageRequestBody(
526+ events = [
527+ operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
528+ event_name = ' ad' ,
529+ properties = {
530+ " dolor" : ' necessitatibus' ,
531+ " odit" : ' nemo' ,
532+ },
533+ timestamp = ' quasi' ,
534+ ),
535+ operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
536+ event_name = ' iure' ,
537+ properties = {
538+ " debitis" : ' eius' ,
539+ " maxime" : ' deleniti' ,
540+ " facilis" : ' in' ,
541+ " architecto" : ' architecto' ,
542+ },
543+ timestamp = ' repudiandae' ,
544+ ),
545+ operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
546+ event_name = ' ullam' ,
547+ properties = {
548+ " nihil" : ' repellat' ,
549+ " quibusdam" : ' sed' ,
550+ " saepe" : ' pariatur' ,
551+ },
552+ timestamp = ' accusantium' ,
553+ ),
554+ ],
555+ ))
585556
586557if res.patch_external_customers_customer_id_usage_200_application_json_object is not None :
587558 # handle response
0 commit comments