From 652ee8fddcb9d6297dca54d4685b5c6b9056d9eb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 Jun 2023 17:17:26 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 1.0, Speakeay CLI 1.40.3 --- RELEASES.md | 10 +- docs/subscription/README.md | 252 +++++++++++++---------- files.gen | 16 +- gen.yaml | 4 +- setup.py | 2 +- src/orb/models/shared/__init__.py | 4 +- src/orb/models/shared/newdiscount.py | 28 --- src/orb/models/shared/newsubscription.py | 224 +------------------- src/orb/models/shared/phaseoverride.py | 20 ++ src/orb/sdk.py | 2 +- 10 files changed, 189 insertions(+), 373 deletions(-) delete mode 100755 src/orb/models/shared/newdiscount.py create mode 100755 src/orb/models/shared/phaseoverride.py diff --git a/RELEASES.md b/RELEASES.md index cb0b3c7..2aa3cc6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -218,4 +218,12 @@ Based on: - OpenAPI Doc 1.0 ./openapi/openapi.yaml - Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy ### Releases -- [PyPI v0.12.1] https://pypi.org/project/orb-billing/0.12.1 - . \ No newline at end of file +- [PyPI v0.12.1] https://pypi.org/project/orb-billing/0.12.1 - . + +## 2023-06-01 17:17:10 +### Changes +Based on: +- OpenAPI Doc 1.0 ./openapi/openapi.yaml +- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy +### Releases +- [PyPI v0.12.2] https://pypi.org/project/orb-billing/0.12.2 - . \ No newline at end of file diff --git a/docs/subscription/README.md b/docs/subscription/README.md index 340a57c..c0e7ddf 100755 --- a/docs/subscription/README.md +++ b/docs/subscription/README.md @@ -440,7 +440,7 @@ req = shared.NewSubscription( minimum_amount='1.23', net_terms=771089, phase_overrides=[ - shared.NewSubscriptionPhaseOverrides( + shared.PhaseOverride( discount=shared.Discount( amount_discount='voluptas', applies_to_price_ids=[ @@ -457,65 +457,62 @@ req = shared.NewSubscription( ], plan_id='ZMwNQefe7J3ecf7W', price_overrides=[ - shared.NewSubscriptionPriceOverrides3( - bulk_config=shared.NewSubscriptionPriceOverrides3BulkConfig( + shared.BulkPriceOverride( + bulk_config=shared.BulkPriceOverrideBulkConfig( tiers=[ - shared.NewSubscriptionPriceOverrides3BulkConfigTiers( + shared.BulkPriceOverrideBulkConfigTiers( maximum_units='aperiam', unit_amount='ea', ), - shared.NewSubscriptionPriceOverrides3BulkConfigTiers( + shared.BulkPriceOverrideBulkConfigTiers( maximum_units='quaerat', unit_amount='consequuntur', ), - shared.NewSubscriptionPriceOverrides3BulkConfigTiers( + shared.BulkPriceOverrideBulkConfigTiers( maximum_units='repellendus', unit_amount='officia', ), - shared.NewSubscriptionPriceOverrides3BulkConfigTiers( + shared.BulkPriceOverrideBulkConfigTiers( maximum_units='maxime', unit_amount='dignissimos', ), ], ), - discount=shared.NewDiscount( - amount_discount='officia', - discount_type=shared.NewDiscountDiscountType.AMOUNT, - percentage_discount='nemo', - usage_discount='quae', - ), - id='5cc413aa-63aa-4e8d-a786-4dbb675fd5e6', + id='af515cc4-13aa-463a-ae8d-67864dbb675f', minimum_amount='1.23', - model_type=shared.NewSubscriptionPriceOverrides3ModelType.BULK, + model_type=shared.BulkPriceOverrideModelType.BULK, ), - shared.NewSubscriptionPriceOverrides1( - discount=shared.NewDiscount( - amount_discount='cum', - discount_type=shared.NewDiscountDiscountType.PERCENTAGE, - percentage_discount='in', - usage_discount='exercitationem', - ), - id='2dbSXs47wDkmtEME', - minimum_amount='1.23', - model_type=shared.NewSubscriptionPriceOverrides1ModelType.TIERED, - tiered_config=shared.NewSubscriptionPriceOverrides1TieredConfig( + shared.BulkBPSPriceOverride( + bulk_bps_config=shared.BulkBPSPriceOverrideBulkBPSConfig( tiers=[ - shared.NewSubscriptionPriceOverrides1TieredConfigTiers( - first_unit='0', - last_unit='10', - unit_amount='2.5', + shared.BulkBPSPriceOverrideBulkBPSConfigTiers( + bps=9249.67, + maximum_amount='aliquid', + per_unit_maximum='aperiam', ), - shared.NewSubscriptionPriceOverrides1TieredConfigTiers( - first_unit='0', - last_unit='10', - unit_amount='2.5', + shared.BulkBPSPriceOverrideBulkBPSConfigTiers( + bps=7386.83, + maximum_amount='consectetur', + per_unit_maximum='in', ), - shared.NewSubscriptionPriceOverrides1TieredConfigTiers( + ], + ), + id='5ed4f6fb-ee41-4f33-b17f-e35b60eb1ea4', + minimum_amount='1.23', + model_type=shared.BulkBPSPriceOverrideModelType.BULK_BPS, + ), + shared.TieredPriceOverride( + id='mqBkze6HoCwL4ytV', + minimum_amount='1.23', + model_type=shared.TieredPriceOverrideModelType.TIERED, + tiered_config=shared.TieredPriceOverrideTieredConfig( + tiers=[ + shared.TieredPriceOverrideTieredConfigTiers( first_unit='0', last_unit='10', unit_amount='2.5', ), - shared.NewSubscriptionPriceOverrides1TieredConfigTiers( + shared.TieredPriceOverrideTieredConfigTiers( first_unit='0', last_unit='10', unit_amount='2.5', @@ -523,51 +520,22 @@ req = shared.NewSubscription( ], ), ), - shared.NewSubscriptionPriceOverrides6( - bulk_bps_config=shared.NewSubscriptionPriceOverrides6BulkBpsConfig( + shared.BulkPriceOverride( + bulk_config=shared.BulkPriceOverrideBulkConfig( tiers=[ - shared.NewSubscriptionPriceOverrides6BulkBpsConfigTiers( - bps=9854.92, - maximum_amount='suscipit', - per_unit_maximum='reiciendis', + shared.BulkPriceOverrideBulkConfigTiers( + maximum_units='minima', + unit_amount='nobis', ), - shared.NewSubscriptionPriceOverrides6BulkBpsConfigTiers( - bps=6971.42, - maximum_amount='saepe', - per_unit_maximum='necessitatibus', + shared.BulkPriceOverrideBulkConfigTiers( + maximum_units='dolorum', + unit_amount='adipisci', ), ], ), - discount=shared.NewDiscount( - amount_discount='dolore', - discount_type=shared.NewDiscountDiscountType.PERCENTAGE, - percentage_discount='asperiores', - usage_discount='adipisci', - ), - id='3317fe35-b60e-4b1e-a426-555ba3c28744', - minimum_amount='1.23', - model_type=shared.NewSubscriptionPriceOverrides6ModelType.BULK_BPS, - ), - shared.NewSubscriptionPriceOverrides7( - discount=shared.NewDiscount( - amount_discount='temporibus', - discount_type=shared.NewDiscountDiscountType.USAGE, - percentage_discount='adipisci', - usage_discount='cum', - ), - id='88f3a8d8-f5c0-4b2f-afb7-b194a276b269', + id='c28744ed-53b8-48f3-a8d8-f5c0b2f2fb7b', minimum_amount='1.23', - model_type=shared.NewSubscriptionPriceOverrides7ModelType.TIERED_BPS, - tiered_bps_config=shared.NewSubscriptionPriceOverrides7TieredBpsConfig( - tiers=[ - shared.NewSubscriptionPriceOverrides7TieredBpsConfigTiers( - bps=3828.08, - maximum_amount='sapiente', - minimum_amount='debitis', - per_unit_maximum='illo', - ), - ], - ), + model_type=shared.BulkPriceOverrideModelType.BULK, ), ], start_date=dateutil.parser.parse('2022-01-01').date(), @@ -596,7 +564,7 @@ s = orb.Orb( ) -res = s.subscription.fetch('reiciendis') +res = s.subscription.fetch('ab') if res.subscription is not None: # handle response @@ -623,8 +591,8 @@ s = orb.Orb( ) req = operations.FetchSubscriptionCostsRequest( - group_by='perferendis', - subscription_id='corrupti', + group_by='iste', + subscription_id='dolore', timeframe_end='2022-03-01T05:00:00Z', timeframe_start=dateutil.parser.isoparse('2022-02-01T05:00:00Z'), view_mode=shared.ViewMode.CUMULATIVE, @@ -653,7 +621,7 @@ s = orb.Orb( ) -res = s.subscription.fetch_schedule('incidunt') +res = s.subscription.fetch_schedule('sed') if res.subscription_schedule is not None: # handle response @@ -798,13 +766,13 @@ s = orb.Orb( ) req = operations.FetchSubscriptionUsageRequest( - billable_metric_id='sed', + billable_metric_id='in', granularity=operations.FetchSubscriptionUsageGranularity.DAY, - group_by='provident', - subscription_id='eius', + group_by='commodi', + subscription_id='quidem', timeframe_end='2022-03-01T05:00:00Z', timeframe_start=dateutil.parser.isoparse('2022-02-01T05:00:00Z'), - view_mode=shared.ViewMode.CUMULATIVE, + view_mode=shared.ViewMode.PERIODIC, ) res = s.subscription.fetch_usage(req) @@ -832,7 +800,7 @@ s = orb.Orb( ) -res = s.subscription.list('ipsum', 'ea') +res = s.subscription.list('voluptas', 'unde') if res.subscriptions is not None: # handle response @@ -874,41 +842,109 @@ s = orb.Orb( ) -res = s.subscription.schedule_plan_change('occaecati', shared.SubscriptionPlanChange( +res = s.subscription.schedule_plan_change('architecto', shared.SubscriptionPlanChange( align_billing_with_plan_change_date=False, change_date=dateutil.parser.isoparse('2017-07-21T17:32:28Z'), change_option=shared.SubscriptionPlanChangeChangeOption.END_OF_SUBSCRIPTION_TERM, - coupon_redemption_code='voluptatibus', + coupon_redemption_code='sapiente', external_plan_id='ZMwNQefe7J3ecf7W', minimum_amount='1.23', plan_id='ZMwNQefe7J3ecf7W', price_overrides=[ - shared.UnitPriceOverride( - id='7f603e8b-445e-480c-a55e-fd20e457e185', + shared.TieredPriceOverride( + id='mqBkze6HoCwL4ytV', + minimum_amount='1.23', + model_type=shared.TieredPriceOverrideModelType.TIERED, + tiered_config=shared.TieredPriceOverrideTieredConfig( + tiers=[ + shared.TieredPriceOverrideTieredConfigTiers( + first_unit='0', + last_unit='10', + unit_amount='2.5', + ), + shared.TieredPriceOverrideTieredConfigTiers( + first_unit='0', + last_unit='10', + unit_amount='2.5', + ), + shared.TieredPriceOverrideTieredConfigTiers( + first_unit='0', + last_unit='10', + unit_amount='2.5', + ), + shared.TieredPriceOverrideTieredConfigTiers( + first_unit='0', + last_unit='10', + unit_amount='2.5', + ), + ], + ), + ), + shared.TieredPriceOverride( + id='mqBkze6HoCwL4ytV', minimum_amount='1.23', - model_type=shared.UnitPriceOverrideModelType.UNIT, - unit_config=shared.UnitPriceOverrideUnitConfig( - unit_amount='praesentium', + model_type=shared.TieredPriceOverrideModelType.TIERED, + tiered_config=shared.TieredPriceOverrideTieredConfig( + tiers=[ + shared.TieredPriceOverrideTieredConfigTiers( + first_unit='0', + last_unit='10', + unit_amount='2.5', + ), + shared.TieredPriceOverrideTieredConfigTiers( + first_unit='0', + last_unit='10', + unit_amount='2.5', + ), + shared.TieredPriceOverrideTieredConfigTiers( + first_unit='0', + last_unit='10', + unit_amount='2.5', + ), + ], ), ), - shared.BulkBPSPriceOverride( - bulk_bps_config=shared.BulkBPSPriceOverrideBulkBPSConfig( + shared.TieredBPSPriceOverride( + id='4294e369-8f44-47f6-83e8-b445e80ca55e', + minimum_amount='1.23', + model_type=shared.TieredBPSPriceOverrideModelType.TIERED_BPS, + tiered_bps_config=shared.TieredBPSPriceOverrideTieredBPSConfig( tiers=[ - shared.BulkBPSPriceOverrideBulkBPSConfigTiers( - bps=6805.15, - maximum_amount='voluptatum', - per_unit_maximum='error', + shared.TieredBPSPriceOverrideTieredBPSConfigTiers( + bps=8623.19, + maximum_amount='magni', + minimum_amount='aperiam', + per_unit_maximum='saepe', ), - shared.BulkBPSPriceOverrideBulkBPSConfigTiers( - bps=9447.08, - maximum_amount='expedita', - per_unit_maximum='debitis', + shared.TieredBPSPriceOverrideTieredBPSConfigTiers( + bps=2536.42, + maximum_amount='veniam', + minimum_amount='in', + per_unit_maximum='officiis', + ), + shared.TieredBPSPriceOverrideTieredBPSConfigTiers( + bps=1046.27, + maximum_amount='laudantium', + minimum_amount='exercitationem', + per_unit_maximum='praesentium', + ), + shared.TieredBPSPriceOverrideTieredBPSConfigTiers( + bps=7400.98, + maximum_amount='laboriosam', + minimum_amount='dolorum', + per_unit_maximum='voluptatum', ), ], ), - id='3a5aa8e4-824d-40ab-8075-088e51862065', + ), + shared.BPSPriceOverride( + bps_config=shared.BPSPriceOverrideBPSConfig( + bps=9447.08, + per_unit_maximum='expedita', + ), + id='e3a5aa8e-4824-4d0a-b407-5088e5186206', minimum_amount='1.23', - model_type=shared.BulkBPSPriceOverrideModelType.BULK_BPS, + model_type=shared.BPSPriceOverrideModelType.BPS, ), ], )) @@ -936,7 +972,7 @@ s = orb.Orb( ) -res = s.subscription.unschedule_cancellation('saepe') +res = s.subscription.unschedule_cancellation('nostrum') if res.subscription is not None: # handle response @@ -959,7 +995,7 @@ s = orb.Orb( ) -res = s.subscription.unschedule_plan_change('error') +res = s.subscription.unschedule_plan_change('saepe') if res.subscription is not None: # handle response @@ -989,11 +1025,11 @@ s = orb.Orb( ) -res = s.subscription.update_fixed_fee_quantity('consequatur', shared.FixedFeeQuantityChange( +res = s.subscription.update_fixed_fee_quantity('error', shared.FixedFeeQuantityChange( change_option=shared.FixedFeeQuantityChangeChangeOption.EFFECTIVE_DATE, effective_date=dateutil.parser.parse('"2022-12-21"').date(), - price_id='incidunt', - quantity=9688.65, + price_id='consequatur', + quantity=2790.68, )) if res.subscription is not None: diff --git a/files.gen b/files.gen index 2b21d0c..8a8a921 100755 --- a/files.gen +++ b/files.gen @@ -108,14 +108,6 @@ src/orb/models/shared/upcominginvoice.py src/orb/models/shared/invoices.py src/orb/models/shared/subscriptioncancellation.py src/orb/models/shared/newsubscription.py -src/orb/models/shared/newdiscount.py -src/orb/models/shared/subscriptioncosts.py -src/orb/models/shared/subscriptioncost.py -src/orb/models/shared/subscriptionschedule.py -src/orb/models/shared/subscriptionscheduleitem.py -src/orb/models/shared/subscriptionusage.py -src/orb/models/shared/subscriptions.py -src/orb/models/shared/subscriptionplanchange.py src/orb/models/shared/tieredpriceoverride.py src/orb/models/shared/unitpriceoverride.py src/orb/models/shared/bulkpriceoverride.py @@ -123,6 +115,14 @@ src/orb/models/shared/packagepriceoverride.py src/orb/models/shared/bpspriceoverride.py src/orb/models/shared/bulkbpspriceoverride.py src/orb/models/shared/tieredbpspriceoverride.py +src/orb/models/shared/phaseoverride.py +src/orb/models/shared/subscriptioncosts.py +src/orb/models/shared/subscriptioncost.py +src/orb/models/shared/subscriptionschedule.py +src/orb/models/shared/subscriptionscheduleitem.py +src/orb/models/shared/subscriptionusage.py +src/orb/models/shared/subscriptions.py +src/orb/models/shared/subscriptionplanchange.py src/orb/models/shared/fixedfeequantitychange.py src/orb/models/shared/security.py src/orb/models/shared/__init__.py diff --git a/gen.yaml b/gen.yaml index fd8bebf..b3a75c1 100644 --- a/gen.yaml +++ b/gen.yaml @@ -1,6 +1,6 @@ configVersion: 1.0.0 management: - docChecksum: 5c629ed0e3f4a98a093802438ea28733 + docChecksum: c5b27a57cc073bbe2ef7d818365ac290 docVersion: "1.0" speakeasyVersion: 1.40.3 generationVersion: 2.34.7 @@ -9,7 +9,7 @@ generation: singleTagPerOp: false telemetryEnabled: false python: - version: 0.12.1 + version: 0.12.2 author: Orb-Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 4 diff --git a/setup.py b/setup.py index 69f3b2c..ea7f115 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="orb-billing", - version="0.12.1", + version="0.12.2", author="Orb-Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/src/orb/models/shared/__init__.py b/src/orb/models/shared/__init__.py index ca74099..39849cd 100755 --- a/src/orb/models/shared/__init__.py +++ b/src/orb/models/shared/__init__.py @@ -31,10 +31,10 @@ from .minimum_amount import * from .newcreditledgerentry import * from .newcustomer import * -from .newdiscount import * from .newsubscription import * from .packagepriceoverride import * from .pagination_metadata import * +from .phaseoverride import * from .plan import * from .plan_phase import * from .price import * @@ -56,4 +56,4 @@ from .validationerrors import * from .viewmode import * -__all__ = ["BPSPriceOverride","BPSPriceOverrideBPSConfig","BPSPriceOverrideModelType","Backfill","BackfillStatus","BillingAddress","BulkBPSPriceOverride","BulkBPSPriceOverrideBulkBPSConfig","BulkBPSPriceOverrideBulkBPSConfigTiers","BulkBPSPriceOverrideModelType","BulkPriceOverride","BulkPriceOverrideBulkConfig","BulkPriceOverrideBulkConfigTiers","BulkPriceOverrideModelType","Coupon","CouponInput","Credit","CreditLedgerEntries","CreditLedgerEntriesPaginationMetadata","CreditLedgerEntry","CreditLedgerEntryCreditBlock","CreditLedgerEntryCustomer","CreditLedgerEntryEntryStatus","CreditLedgerEntryEntryType","CreditNote","CreditNoteCustomer","CreditNoteLineItem","CreditNoteLineItemSubLineItems","CreditNoteLineItemTaxAmounts","CreditNoteReason","CreditNoteType","Credits","Customer","CustomerBalanceTransaction","CustomerBalanceTransactionAction","CustomerBalanceTransactionCreditNote","CustomerBalanceTransactionInvoice","CustomerBalanceTransactionType","CustomerCost","CustomerCostPerPriceCosts","CustomerCostPerPriceCostsPriceGroups","CustomerCosts","CustomerPaymentProvider","CustomerTaxID","Customers","Debug","Discount","DiscountDiscountType","EntryStatus","EntryType","Event","FixedFeeQuantityChange","FixedFeeQuantityChangeChangeOption","IngestionResponse","Invoice","InvoiceAutoCollection","InvoiceCreditNotes","InvoiceCustomer","InvoiceLineItem","InvoiceLineItemSubLineItems","InvoiceLineItemSubLineItemsGrouping","InvoiceLineItemSubLineItemsMatrixConfig","InvoiceLineItemSubLineItemsTierConfig","InvoiceLineItemSubLineItemsType","InvoiceLineItemTaxAmounts","InvoiceStatus","InvoiceSubscription","Invoices","MinimumAmount","NewCreditLedgerEntry","NewCreditLedgerEntryEntryType","NewCreditLedgerEntryInvoiceSettings","NewCustomer","NewCustomerPaymentProvider","NewDiscount","NewDiscountDiscountType","NewSubscription","NewSubscriptionExternalMarketplace","NewSubscriptionPhaseOverrides","NewSubscriptionPriceOverrides1","NewSubscriptionPriceOverrides1ModelType","NewSubscriptionPriceOverrides1TieredConfig","NewSubscriptionPriceOverrides1TieredConfigTiers","NewSubscriptionPriceOverrides2","NewSubscriptionPriceOverrides2ModelType","NewSubscriptionPriceOverrides2UnitConfig","NewSubscriptionPriceOverrides3","NewSubscriptionPriceOverrides3BulkConfig","NewSubscriptionPriceOverrides3BulkConfigTiers","NewSubscriptionPriceOverrides3ModelType","NewSubscriptionPriceOverrides4","NewSubscriptionPriceOverrides4ModelType","NewSubscriptionPriceOverrides4PackageConfig","NewSubscriptionPriceOverrides5","NewSubscriptionPriceOverrides5BpsConfig","NewSubscriptionPriceOverrides5ModelType","NewSubscriptionPriceOverrides6","NewSubscriptionPriceOverrides6BulkBpsConfig","NewSubscriptionPriceOverrides6BulkBpsConfigTiers","NewSubscriptionPriceOverrides6ModelType","NewSubscriptionPriceOverrides7","NewSubscriptionPriceOverrides7ModelType","NewSubscriptionPriceOverrides7TieredBpsConfig","NewSubscriptionPriceOverrides7TieredBpsConfigTiers","PackagePriceOverride","PackagePriceOverrideModelType","PackagePriceOverridePackageConfig","PaginationMetadata","Plan","PlanBasePlan","PlanPhase","PlanPhaseDurationUnit","PlanProduct","PlanTrialConfig","PlanTrialConfigTrialPeriodUnit","Price","PriceBillableMetric","PriceBpsConfig","PriceBulkBpsConfig","PriceBulkBpsConfigTiers","PriceBulkConfig","PriceBulkConfigTiers","PriceCadence","PriceMatrixConfig","PriceMatrixConfigMatrixValues","PriceModelType","PricePackageConfig","PriceTieredBpsConfig","PriceTieredBpsConfigTiers","PriceTieredConfig","PriceTieredConfigTiers","PriceUnitConfig","Security","ShippingAddress","Subscription","SubscriptionCancellation","SubscriptionCancellationCancelOption","SubscriptionCost","SubscriptionCostPerPriceCosts","SubscriptionCostPerPriceCostsPriceGroups","SubscriptionCosts","SubscriptionFixedFeeQuantitySchedule","SubscriptionPlanChange","SubscriptionPlanChangeChangeOption","SubscriptionRedeemedCoupon","SubscriptionSchedule","SubscriptionScheduleItem","SubscriptionScheduleItemPlan","SubscriptionStatus","SubscriptionUsage","SubscriptionUsageData","SubscriptionUsageDataModelType","SubscriptionUsageDataUsage","Subscriptions","TieredBPSPriceOverride","TieredBPSPriceOverrideModelType","TieredBPSPriceOverrideTieredBPSConfig","TieredBPSPriceOverrideTieredBPSConfigTiers","TieredPriceOverride","TieredPriceOverrideModelType","TieredPriceOverrideTieredConfig","TieredPriceOverrideTieredConfigTiers","UnitPriceOverride","UnitPriceOverrideModelType","UnitPriceOverrideUnitConfig","UpcomingInvoice","UpcomingInvoiceCustomer","UpcomingInvoiceLineItems","UpcomingInvoiceLineItemsGrouping","UpcomingInvoiceLineItemsSubLineItems","UpcomingInvoiceLineItemsSubLineItemsMatrixConfig","UpcomingInvoiceLineItemsSubLineItemsTierConfig","UpcomingInvoiceLineItemsSubLineItemsType","UpcomingInvoiceSubscription","ValidationErrors","ViewMode"] +__all__ = ["BPSPriceOverride","BPSPriceOverrideBPSConfig","BPSPriceOverrideModelType","Backfill","BackfillStatus","BillingAddress","BulkBPSPriceOverride","BulkBPSPriceOverrideBulkBPSConfig","BulkBPSPriceOverrideBulkBPSConfigTiers","BulkBPSPriceOverrideModelType","BulkPriceOverride","BulkPriceOverrideBulkConfig","BulkPriceOverrideBulkConfigTiers","BulkPriceOverrideModelType","Coupon","CouponInput","Credit","CreditLedgerEntries","CreditLedgerEntriesPaginationMetadata","CreditLedgerEntry","CreditLedgerEntryCreditBlock","CreditLedgerEntryCustomer","CreditLedgerEntryEntryStatus","CreditLedgerEntryEntryType","CreditNote","CreditNoteCustomer","CreditNoteLineItem","CreditNoteLineItemSubLineItems","CreditNoteLineItemTaxAmounts","CreditNoteReason","CreditNoteType","Credits","Customer","CustomerBalanceTransaction","CustomerBalanceTransactionAction","CustomerBalanceTransactionCreditNote","CustomerBalanceTransactionInvoice","CustomerBalanceTransactionType","CustomerCost","CustomerCostPerPriceCosts","CustomerCostPerPriceCostsPriceGroups","CustomerCosts","CustomerPaymentProvider","CustomerTaxID","Customers","Debug","Discount","DiscountDiscountType","EntryStatus","EntryType","Event","FixedFeeQuantityChange","FixedFeeQuantityChangeChangeOption","IngestionResponse","Invoice","InvoiceAutoCollection","InvoiceCreditNotes","InvoiceCustomer","InvoiceLineItem","InvoiceLineItemSubLineItems","InvoiceLineItemSubLineItemsGrouping","InvoiceLineItemSubLineItemsMatrixConfig","InvoiceLineItemSubLineItemsTierConfig","InvoiceLineItemSubLineItemsType","InvoiceLineItemTaxAmounts","InvoiceStatus","InvoiceSubscription","Invoices","MinimumAmount","NewCreditLedgerEntry","NewCreditLedgerEntryEntryType","NewCreditLedgerEntryInvoiceSettings","NewCustomer","NewCustomerPaymentProvider","NewSubscription","NewSubscriptionExternalMarketplace","PackagePriceOverride","PackagePriceOverrideModelType","PackagePriceOverridePackageConfig","PaginationMetadata","PhaseOverride","Plan","PlanBasePlan","PlanPhase","PlanPhaseDurationUnit","PlanProduct","PlanTrialConfig","PlanTrialConfigTrialPeriodUnit","Price","PriceBillableMetric","PriceBpsConfig","PriceBulkBpsConfig","PriceBulkBpsConfigTiers","PriceBulkConfig","PriceBulkConfigTiers","PriceCadence","PriceMatrixConfig","PriceMatrixConfigMatrixValues","PriceModelType","PricePackageConfig","PriceTieredBpsConfig","PriceTieredBpsConfigTiers","PriceTieredConfig","PriceTieredConfigTiers","PriceUnitConfig","Security","ShippingAddress","Subscription","SubscriptionCancellation","SubscriptionCancellationCancelOption","SubscriptionCost","SubscriptionCostPerPriceCosts","SubscriptionCostPerPriceCostsPriceGroups","SubscriptionCosts","SubscriptionFixedFeeQuantitySchedule","SubscriptionPlanChange","SubscriptionPlanChangeChangeOption","SubscriptionRedeemedCoupon","SubscriptionSchedule","SubscriptionScheduleItem","SubscriptionScheduleItemPlan","SubscriptionStatus","SubscriptionUsage","SubscriptionUsageData","SubscriptionUsageDataModelType","SubscriptionUsageDataUsage","Subscriptions","TieredBPSPriceOverride","TieredBPSPriceOverrideModelType","TieredBPSPriceOverrideTieredBPSConfig","TieredBPSPriceOverrideTieredBPSConfigTiers","TieredPriceOverride","TieredPriceOverrideModelType","TieredPriceOverrideTieredConfig","TieredPriceOverrideTieredConfigTiers","UnitPriceOverride","UnitPriceOverrideModelType","UnitPriceOverrideUnitConfig","UpcomingInvoice","UpcomingInvoiceCustomer","UpcomingInvoiceLineItems","UpcomingInvoiceLineItemsGrouping","UpcomingInvoiceLineItemsSubLineItems","UpcomingInvoiceLineItemsSubLineItemsMatrixConfig","UpcomingInvoiceLineItemsSubLineItemsTierConfig","UpcomingInvoiceLineItemsSubLineItemsType","UpcomingInvoiceSubscription","ValidationErrors","ViewMode"] diff --git a/src/orb/models/shared/newdiscount.py b/src/orb/models/shared/newdiscount.py deleted file mode 100755 index b0e4b00..0000000 --- a/src/orb/models/shared/newdiscount.py +++ /dev/null @@ -1,28 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" - -from __future__ import annotations -import dataclasses -from dataclasses_json import Undefined, dataclass_json -from enum import Enum -from orb import utils -from typing import Optional - -class NewDiscountDiscountType(str, Enum): - PERCENTAGE = 'percentage' - USAGE = 'usage' - AMOUNT = 'amount' - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewDiscount: - r"""The subscription's override discount for this price.""" - - amount_discount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('amount_discount'), 'exclude': lambda f: f is None }}) - r"""Only allowed if discount_type is amount""" - discount_type: Optional[NewDiscountDiscountType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount_type'), 'exclude': lambda f: f is None }}) - percentage_discount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('percentage_discount'), 'exclude': lambda f: f is None }}) - r"""Only allowed if discount_type is percentage""" - usage_discount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('usage_discount'), 'exclude': lambda f: f is None }}) - r"""Only allowed if discount_type is usage""" - \ No newline at end of file diff --git a/src/orb/models/shared/newsubscription.py b/src/orb/models/shared/newsubscription.py index c2ee356..066a585 100755 --- a/src/orb/models/shared/newsubscription.py +++ b/src/orb/models/shared/newsubscription.py @@ -2,8 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import discount as shared_discount -from ..shared import newdiscount as shared_newdiscount +from ..shared import phaseoverride as shared_phaseoverride from dataclasses_json import Undefined, dataclass_json from datetime import date from enum import Enum @@ -18,225 +17,6 @@ class NewSubscriptionExternalMarketplace(str, Enum): AZURE = 'azure' -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPhaseOverrides: - - discount: Optional[shared_discount.Discount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) - minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) - r"""The new minimum amount for the phase. Providing `null` will clear the existing minimum, if it exists.""" - order: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order'), 'exclude': lambda f: f is None }}) - r"""The phase order that is being modified.""" - -class NewSubscriptionPriceOverrides7ModelType(str, Enum): - TIERED_BPS = 'tiered_bps' - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides7TieredBpsConfigTiers: - - bps: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bps') }}) - maximum_amount: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('maximum_amount') }}) - minimum_amount: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount') }}) - per_unit_maximum: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('per_unit_maximum') }}) - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides7TieredBpsConfig: - - tiers: list[NewSubscriptionPriceOverrides7TieredBpsConfigTiers] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('tiers') }}) - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides7: - r"""Tiered BPS price override""" - - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - model_type: NewSubscriptionPriceOverrides7ModelType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('model_type') }}) - tiered_bps_config: NewSubscriptionPriceOverrides7TieredBpsConfig = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('tiered_bps_config') }}) - discount: Optional[shared_newdiscount.NewDiscount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override discount for this price.""" - minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override minimum amount for this price.""" - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides6BulkBpsConfigTiers: - - bps: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bps') }}) - maximum_amount: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('maximum_amount') }}) - per_unit_maximum: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('per_unit_maximum') }}) - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides6BulkBpsConfig: - - tiers: Optional[list[NewSubscriptionPriceOverrides6BulkBpsConfigTiers]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('tiers'), 'exclude': lambda f: f is None }}) - -class NewSubscriptionPriceOverrides6ModelType(str, Enum): - BULK_BPS = 'bulk_bps' - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides6: - r"""Bulk BPS price override""" - - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - model_type: NewSubscriptionPriceOverrides6ModelType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('model_type') }}) - bulk_bps_config: Optional[NewSubscriptionPriceOverrides6BulkBpsConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bulk_bps_config'), 'exclude': lambda f: f is None }}) - discount: Optional[shared_newdiscount.NewDiscount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override discount for this price.""" - minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override minimum amount for this price.""" - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides5BpsConfig: - - bps: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bps') }}) - per_unit_maximum: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('per_unit_maximum') }}) - -class NewSubscriptionPriceOverrides5ModelType(str, Enum): - BPS = 'bps' - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides5: - r"""BPS price override""" - - bps_config: NewSubscriptionPriceOverrides5BpsConfig = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bps_config') }}) - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - model_type: NewSubscriptionPriceOverrides5ModelType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('model_type') }}) - discount: Optional[shared_newdiscount.NewDiscount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override discount for this price.""" - minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override minimum amount for this price.""" - -class NewSubscriptionPriceOverrides4ModelType(str, Enum): - PACKAGE = 'package' - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides4PackageConfig: - - package_amount: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('package_amount') }}) - package_size: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('package_size') }}) - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides4: - r"""Package price override""" - - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - model_type: NewSubscriptionPriceOverrides4ModelType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('model_type') }}) - package_config: NewSubscriptionPriceOverrides4PackageConfig = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('package_config') }}) - discount: Optional[shared_newdiscount.NewDiscount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override discount for this price.""" - minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override minimum amount for this price.""" - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides3BulkConfigTiers: - - maximum_units: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('maximum_units') }}) - unit_amount: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unit_amount') }}) - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides3BulkConfig: - - tiers: list[NewSubscriptionPriceOverrides3BulkConfigTiers] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('tiers') }}) - -class NewSubscriptionPriceOverrides3ModelType(str, Enum): - BULK = 'bulk' - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides3: - r"""Bulk price override""" - - bulk_config: NewSubscriptionPriceOverrides3BulkConfig = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bulk_config') }}) - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - model_type: NewSubscriptionPriceOverrides3ModelType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('model_type') }}) - discount: Optional[shared_newdiscount.NewDiscount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override discount for this price.""" - minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override minimum amount for this price.""" - -class NewSubscriptionPriceOverrides2ModelType(str, Enum): - UNIT = 'unit' - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides2UnitConfig: - - unit_amount: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unit_amount') }}) - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides2: - r"""Unit price override""" - - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - model_type: NewSubscriptionPriceOverrides2ModelType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('model_type') }}) - unit_config: NewSubscriptionPriceOverrides2UnitConfig = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unit_config') }}) - discount: Optional[shared_newdiscount.NewDiscount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override discount for this price.""" - fixed_price_quantity: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fixed_price_quantity'), 'exclude': lambda f: f is None }}) - minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override minimum amount for this price.""" - -class NewSubscriptionPriceOverrides1ModelType(str, Enum): - TIERED = 'tiered' - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides1TieredConfigTiers: - - first_unit: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('first_unit'), 'exclude': lambda f: f is None }}) - last_unit: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('last_unit'), 'exclude': lambda f: f is None }}) - unit_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unit_amount'), 'exclude': lambda f: f is None }}) - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides1TieredConfig: - - tiers: Optional[list[NewSubscriptionPriceOverrides1TieredConfigTiers]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('tiers'), 'exclude': lambda f: f is None }}) - - -@dataclass_json(undefined=Undefined.EXCLUDE) -@dataclasses.dataclass -class NewSubscriptionPriceOverrides1: - r"""Tiered price override""" - - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - r"""price_id""" - model_type: NewSubscriptionPriceOverrides1ModelType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('model_type') }}) - tiered_config: NewSubscriptionPriceOverrides1TieredConfig = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('tiered_config') }}) - discount: Optional[shared_newdiscount.NewDiscount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override discount for this price.""" - minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) - r"""The subscription's override minimum amount for this price.""" - - @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class NewSubscription: @@ -265,7 +45,7 @@ class NewSubscription: r"""The subscription's override minimum amount for the plan.""" net_terms: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('net_terms'), 'exclude': lambda f: f is None }}) r"""The net terms of a subscription determine when a subscription's invoice is due relative to its issue date. Whereas a net terms of 0 signifies \\"due on issue\\", a net terms of 30 can be used to provide the customer one month to pay the invoice. By default, the subscription defaults to the plan's net terms configuration.""" - phase_overrides: Optional[list[NewSubscriptionPhaseOverrides]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phase_overrides'), 'exclude': lambda f: f is None }}) + phase_overrides: Optional[list[shared_phaseoverride.PhaseOverride]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phase_overrides'), 'exclude': lambda f: f is None }}) r"""Optionally provide a list of minimum amount or discount overrides for phases on the plan.""" plan_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('plan_id'), 'exclude': lambda f: f is None }}) r"""The plan that the given customer should be subscribed to. The plan determines the pricing and cadence of the subscription.""" diff --git a/src/orb/models/shared/phaseoverride.py b/src/orb/models/shared/phaseoverride.py new file mode 100755 index 0000000..c3c0d1f --- /dev/null +++ b/src/orb/models/shared/phaseoverride.py @@ -0,0 +1,20 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from ..shared import discount as shared_discount +from dataclasses_json import Undefined, dataclass_json +from orb import utils +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class PhaseOverride: + + discount: Optional[shared_discount.Discount] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('discount'), 'exclude': lambda f: f is None }}) + minimum_amount: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('minimum_amount'), 'exclude': lambda f: f is None }}) + r"""The new minimum amount for the phase. Providing `null` will clear the existing minimum, if it exists.""" + order: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order'), 'exclude': lambda f: f is None }}) + r"""The phase order that is being modified.""" + \ No newline at end of file diff --git a/src/orb/sdk.py b/src/orb/sdk.py index 6e2a9b0..b6a563d 100755 --- a/src/orb/sdk.py +++ b/src/orb/sdk.py @@ -50,7 +50,7 @@ class Orb: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "0.12.1" + _sdk_version: str = "0.12.2" _gen_version: str = "2.34.7" def __init__(self,