Skip to content

Commit

Permalink
Merge pull request #20 from speakeasy-sdks/speakeasy-sdk-regen-168563…
Browse files Browse the repository at this point in the history
…5195

chore: speakeasy sdk regeneration - Generate
  • Loading branch information
ndimares authored Jun 1, 2023
2 parents 9f361ca + a7e62f5 commit e8ee03f
Show file tree
Hide file tree
Showing 17 changed files with 313 additions and 228 deletions.
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,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.0] https://pypi.org/project/orb-billing/0.12.0 - .
- [PyPI v0.12.0] https://pypi.org/project/orb-billing/0.12.0 - .

## 2023-06-01 15:59:52
### 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.1] https://pypi.org/project/orb-billing/0.12.1 - .
32 changes: 16 additions & 16 deletions docs/subscription/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,9 @@ req = shared.NewSubscription(
),
],
),
discount=shared.CreateDiscount(
discount=shared.NewDiscount(
amount_discount='officia',
discount_type=shared.CreateDiscountDiscountType.AMOUNT,
discount_type=shared.NewDiscountDiscountType.AMOUNT,
percentage_discount='nemo',
usage_discount='quae',
),
Expand All @@ -489,9 +489,9 @@ req = shared.NewSubscription(
model_type=shared.NewSubscriptionPriceOverrides3ModelType.BULK,
),
shared.NewSubscriptionPriceOverrides1(
discount=shared.CreateDiscount(
discount=shared.NewDiscount(
amount_discount='cum',
discount_type=shared.CreateDiscountDiscountType.PERCENTAGE,
discount_type=shared.NewDiscountDiscountType.PERCENTAGE,
percentage_discount='in',
usage_discount='exercitationem',
),
Expand Down Expand Up @@ -538,9 +538,9 @@ req = shared.NewSubscription(
),
],
),
discount=shared.CreateDiscount(
discount=shared.NewDiscount(
amount_discount='dolore',
discount_type=shared.CreateDiscountDiscountType.PERCENTAGE,
discount_type=shared.NewDiscountDiscountType.PERCENTAGE,
percentage_discount='asperiores',
usage_discount='adipisci',
),
Expand All @@ -549,9 +549,9 @@ req = shared.NewSubscription(
model_type=shared.NewSubscriptionPriceOverrides6ModelType.BULK_BPS,
),
shared.NewSubscriptionPriceOverrides7(
discount=shared.CreateDiscount(
discount=shared.NewDiscount(
amount_discount='temporibus',
discount_type=shared.CreateDiscountDiscountType.USAGE,
discount_type=shared.NewDiscountDiscountType.USAGE,
percentage_discount='adipisci',
usage_discount='cum',
),
Expand Down Expand Up @@ -883,23 +883,23 @@ res = s.subscription.schedule_plan_change('occaecati', shared.SubscriptionPlanCh
minimum_amount='1.23',
plan_id='ZMwNQefe7J3ecf7W',
price_overrides=[
shared.SubscriptionPlanChangePriceOverrides2(
shared.UnitPriceOverride(
id='7f603e8b-445e-480c-a55e-fd20e457e185',
minimum_amount='1.23',
model_type=shared.SubscriptionPlanChangePriceOverrides2ModelType.UNIT,
unit_config=shared.SubscriptionPlanChangePriceOverrides2UnitConfig(
model_type=shared.UnitPriceOverrideModelType.UNIT,
unit_config=shared.UnitPriceOverrideUnitConfig(
unit_amount='praesentium',
),
),
shared.SubscriptionPlanChangePriceOverrides6(
bulk_bps_config=shared.SubscriptionPlanChangePriceOverrides6BulkBpsConfig(
shared.BulkBPSPriceOverride(
bulk_bps_config=shared.BulkBPSPriceOverrideBulkBPSConfig(
tiers=[
shared.SubscriptionPlanChangePriceOverrides6BulkBpsConfigTiers(
shared.BulkBPSPriceOverrideBulkBPSConfigTiers(
bps=6805.15,
maximum_amount='voluptatum',
per_unit_maximum='error',
),
shared.SubscriptionPlanChangePriceOverrides6BulkBpsConfigTiers(
shared.BulkBPSPriceOverrideBulkBPSConfigTiers(
bps=9447.08,
maximum_amount='expedita',
per_unit_maximum='debitis',
Expand All @@ -908,7 +908,7 @@ res = s.subscription.schedule_plan_change('occaecati', shared.SubscriptionPlanCh
),
id='3a5aa8e4-824d-40ab-8075-088e51862065',
minimum_amount='1.23',
model_type=shared.SubscriptionPlanChangePriceOverrides6ModelType.BULK_BPS,
model_type=shared.BulkBPSPriceOverrideModelType.BULK_BPS,
),
],
))
Expand Down
9 changes: 8 additions & 1 deletion files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,21 @@ 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/create_discount.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
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/fixedfeequantitychange.py
src/orb/models/shared/security.py
src/orb/models/shared/__init__.py
Expand Down
4 changes: 2 additions & 2 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
configVersion: 1.0.0
management:
docChecksum: 213f8c14795ec708f2538c4040529110
docChecksum: 5c629ed0e3f4a98a093802438ea28733
docVersion: "1.0"
speakeasyVersion: 1.40.3
generationVersion: 2.34.7
Expand All @@ -9,7 +9,7 @@ generation:
singleTagPerOp: false
telemetryEnabled: false
python:
version: 0.12.0
version: 0.12.1
author: Orb-Speakeasy
description: Python Client SDK Generated by Speakeasy
maxMethodParams: 4
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="orb-billing",
version="0.12.0",
version="0.12.1",
author="Orb-Speakeasy",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
11 changes: 9 additions & 2 deletions src/orb/models/shared/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

from .backfill import *
from .billing_address import *
from .bpspriceoverride import *
from .bulkbpspriceoverride import *
from .bulkpriceoverride import *
from .coupon import *
from .create_discount import *
from .credit import *
from .credit_note import *
from .credit_note_line_item import *
Expand All @@ -29,7 +31,9 @@
from .minimum_amount import *
from .newcreditledgerentry import *
from .newcustomer import *
from .newdiscount import *
from .newsubscription import *
from .packagepriceoverride import *
from .pagination_metadata import *
from .plan import *
from .plan_phase import *
Expand All @@ -45,8 +49,11 @@
from .subscriptionschedule import *
from .subscriptionscheduleitem import *
from .subscriptionusage import *
from .tieredbpspriceoverride import *
from .tieredpriceoverride import *
from .unitpriceoverride import *
from .upcominginvoice import *
from .validationerrors import *
from .viewmode import *

__all__ = ["Backfill","BackfillStatus","BillingAddress","Coupon","CouponInput","CreateDiscount","CreateDiscountDiscountType","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","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","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","SubscriptionPlanChangePriceOverrides1","SubscriptionPlanChangePriceOverrides1ModelType","SubscriptionPlanChangePriceOverrides1TieredConfig","SubscriptionPlanChangePriceOverrides1TieredConfigTiers","SubscriptionPlanChangePriceOverrides2","SubscriptionPlanChangePriceOverrides2ModelType","SubscriptionPlanChangePriceOverrides2UnitConfig","SubscriptionPlanChangePriceOverrides3","SubscriptionPlanChangePriceOverrides3BulkConfig","SubscriptionPlanChangePriceOverrides3BulkConfigTiers","SubscriptionPlanChangePriceOverrides3ModelType","SubscriptionPlanChangePriceOverrides4","SubscriptionPlanChangePriceOverrides4ModelType","SubscriptionPlanChangePriceOverrides4PackageConfig","SubscriptionPlanChangePriceOverrides5","SubscriptionPlanChangePriceOverrides5BpsConfig","SubscriptionPlanChangePriceOverrides5ModelType","SubscriptionPlanChangePriceOverrides6","SubscriptionPlanChangePriceOverrides6BulkBpsConfig","SubscriptionPlanChangePriceOverrides6BulkBpsConfigTiers","SubscriptionPlanChangePriceOverrides6ModelType","SubscriptionPlanChangePriceOverrides7","SubscriptionPlanChangePriceOverrides7ModelType","SubscriptionPlanChangePriceOverrides7TieredBpsConfig","SubscriptionPlanChangePriceOverrides7TieredBpsConfigTiers","SubscriptionRedeemedCoupon","SubscriptionSchedule","SubscriptionScheduleItem","SubscriptionScheduleItemPlan","SubscriptionStatus","SubscriptionUsage","SubscriptionUsageData","SubscriptionUsageDataModelType","SubscriptionUsageDataUsage","Subscriptions","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","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"]
32 changes: 32 additions & 0 deletions src/orb/models/shared/bpspriceoverride.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""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


@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class BPSPriceOverrideBPSConfig:

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 BPSPriceOverrideModelType(str, Enum):
BPS = 'bps'


@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class BPSPriceOverride:
r"""BPS price override"""

bps_config: BPSPriceOverrideBPSConfig = 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: BPSPriceOverrideModelType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('model_type') }})
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."""

Loading

0 comments on commit e8ee03f

Please sign in to comment.