Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-48084a007f009b4358484f09a3a7b74a990c402669f9d15adfbb60e4f835f951.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a2c1aa029d1e72a5fc7d3c6cd431479888ebd9a379683a2c8630da48437baa4f.yml
6 changes: 5 additions & 1 deletion src/orb/types/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,11 @@ class LineItem(BaseModel):
"""

adjustments: List[LineItemAdjustment]
"""All adjustments (ie. maximums, minimums, discounts) applied to the line item."""
"""
All adjustments applied to the line item in the order they were applied based on
invoice calculations (ie. usage discounts -> amount discounts -> percentage
discounts -> minimums -> maximums).
"""

amount: str
"""
Expand Down
6 changes: 5 additions & 1 deletion src/orb/types/invoice_fetch_upcoming_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,11 @@ class LineItem(BaseModel):
"""

adjustments: List[LineItemAdjustment]
"""All adjustments (ie. maximums, minimums, discounts) applied to the line item."""
"""
All adjustments applied to the line item in the order they were applied based on
invoice calculations (ie. usage discounts -> amount discounts -> percentage
discounts -> minimums -> maximums).
"""

amount: str
"""
Expand Down
6 changes: 5 additions & 1 deletion src/orb/types/invoice_line_item_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,11 @@ class InvoiceLineItemCreateResponse(BaseModel):
"""

adjustments: List[Adjustment]
"""All adjustments (ie. maximums, minimums, discounts) applied to the line item."""
"""
All adjustments applied to the line item in the order they were applied based on
invoice calculations (ie. usage discounts -> amount discounts -> percentage
discounts -> minimums -> maximums).
"""

amount: str
"""
Expand Down
11 changes: 7 additions & 4 deletions src/orb/types/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class Subscription(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class Subscription(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class Subscription(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class Subscription(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
11 changes: 7 additions & 4 deletions src/orb/types/subscription_cancel_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class SubscriptionCancelResponse(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class SubscriptionCancelResponse(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class SubscriptionCancelResponse(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class SubscriptionCancelResponse(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
11 changes: 7 additions & 4 deletions src/orb/types/subscription_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class SubscriptionCreateResponse(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class SubscriptionCreateResponse(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class SubscriptionCreateResponse(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class SubscriptionCreateResponse(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
11 changes: 7 additions & 4 deletions src/orb/types/subscription_price_intervals_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class SubscriptionPriceIntervalsResponse(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class SubscriptionPriceIntervalsResponse(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class SubscriptionPriceIntervalsResponse(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class SubscriptionPriceIntervalsResponse(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
11 changes: 7 additions & 4 deletions src/orb/types/subscription_schedule_plan_change_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class SubscriptionSchedulePlanChangeResponse(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class SubscriptionSchedulePlanChangeResponse(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class SubscriptionSchedulePlanChangeResponse(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class SubscriptionSchedulePlanChangeResponse(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
11 changes: 7 additions & 4 deletions src/orb/types/subscription_trigger_phase_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class SubscriptionTriggerPhaseResponse(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class SubscriptionTriggerPhaseResponse(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class SubscriptionTriggerPhaseResponse(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class SubscriptionTriggerPhaseResponse(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
11 changes: 7 additions & 4 deletions src/orb/types/subscription_unschedule_cancellation_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class SubscriptionUnscheduleCancellationResponse(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class SubscriptionUnscheduleCancellationResponse(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class SubscriptionUnscheduleCancellationResponse(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class SubscriptionUnscheduleCancellationResponse(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ class SubscriptionUnschedulePendingPlanChangesResponse(BaseModel):
"""

adjustment_intervals: List[AdjustmentInterval]
"""The adjustment intervals for this subscription."""
"""
The adjustment intervals for this subscription sorted by the start_date of the
adjustment interval.
"""

auto_collection: Optional[bool] = None
"""
Expand Down Expand Up @@ -503,7 +506,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse(BaseModel):
"""

discount_intervals: List[DiscountInterval]
"""The discount intervals for this subscription."""
"""The discount intervals for this subscription sorted by the start_date."""

end_date: Optional[datetime] = None
"""The date Orb stops billing for this subscription."""
Expand All @@ -513,7 +516,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse(BaseModel):
invoicing_threshold: Optional[str] = None

maximum_intervals: List[MaximumInterval]
"""The maximum intervals for this subscription."""
"""The maximum intervals for this subscription sorted by the start_date."""

metadata: Dict[str, str]
"""User specified key-value pairs for the resource.
Expand All @@ -524,7 +527,7 @@ class SubscriptionUnschedulePendingPlanChangesResponse(BaseModel):
"""

minimum_intervals: List[MinimumInterval]
"""The minimum intervals for this subscription."""
"""The minimum intervals for this subscription sorted by the start_date."""

net_terms: int
"""
Expand Down
Loading