Skip to content

Commit bc6c8f9

Browse files
feat(api): api update
1 parent d7dd0b8 commit bc6c8f9

File tree

310 files changed

+34778
-7148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+34778
-7148
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6b2550b95f82872b3825619c109352352b9c92281c8b2470fce158e971142881.yml
3-
openapi_spec_hash: 379df18de1af6a9d0b50d3653aab4d44
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-9dda3e74d276c581c08bea0cad47ae390143d94640f267d827caf234301f2721.yml
3+
openapi_spec_hash: 60daf7a378cdf7dd1f7338c303e2d661
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

lib/orb.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@
281281
require_relative "orb/models/new_plan_tiered_package_with_minimum_price"
282282
require_relative "orb/models/new_plan_tiered_price"
283283
require_relative "orb/models/new_plan_tiered_with_minimum_price"
284-
require_relative "orb/models/new_plan_tier_with_proration_price"
285284
require_relative "orb/models/new_plan_unit_price"
286285
require_relative "orb/models/new_plan_unit_with_percent_price"
287286
require_relative "orb/models/new_plan_unit_with_proration_price"
@@ -309,7 +308,6 @@
309308
require_relative "orb/models/new_subscription_tiered_package_with_minimum_price"
310309
require_relative "orb/models/new_subscription_tiered_price"
311310
require_relative "orb/models/new_subscription_tiered_with_minimum_price"
312-
require_relative "orb/models/new_subscription_tier_with_proration_price"
313311
require_relative "orb/models/new_subscription_unit_price"
314312
require_relative "orb/models/new_subscription_unit_with_percent_price"
315313
require_relative "orb/models/new_subscription_unit_with_proration_price"
@@ -385,7 +383,6 @@
385383
require_relative "orb/models/tax_amount"
386384
require_relative "orb/models/threshold"
387385
require_relative "orb/models/tier"
388-
require_relative "orb/models/tier_config"
389386
require_relative "orb/models/tiered_config"
390387
require_relative "orb/models/tiered_conversion_rate_config"
391388
require_relative "orb/models/tier_sub_line_item"

lib/orb/models.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,6 @@ module Orb
386386

387387
NewPlanTieredWithMinimumPrice = Orb::Models::NewPlanTieredWithMinimumPrice
388388

389-
NewPlanTierWithProrationPrice = Orb::Models::NewPlanTierWithProrationPrice
390-
391389
NewPlanUnitPrice = Orb::Models::NewPlanUnitPrice
392390

393391
NewPlanUnitWithPercentPrice = Orb::Models::NewPlanUnitWithPercentPrice
@@ -446,8 +444,6 @@ module Orb
446444

447445
NewSubscriptionTieredWithMinimumPrice = Orb::Models::NewSubscriptionTieredWithMinimumPrice
448446

449-
NewSubscriptionTierWithProrationPrice = Orb::Models::NewSubscriptionTierWithProrationPrice
450-
451447
NewSubscriptionUnitPrice = Orb::Models::NewSubscriptionUnitPrice
452448

453449
NewSubscriptionUnitWithPercentPrice = Orb::Models::NewSubscriptionUnitWithPercentPrice
@@ -580,8 +576,6 @@ module Orb
580576

581577
Tier = Orb::Models::Tier
582578

583-
TierConfig = Orb::Models::TierConfig
584-
585579
TieredConfig = Orb::Models::TieredConfig
586580

587581
TieredConversionRateConfig = Orb::Models::TieredConversionRateConfig

lib/orb/models/beta/external_plan_id_create_plan_version_params.rb

Lines changed: 588 additions & 42 deletions
Large diffs are not rendered by default.

lib/orb/models/beta_create_plan_version_params.rb

Lines changed: 584 additions & 42 deletions
Large diffs are not rendered by default.

lib/orb/models/bulk_config.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class BulkConfig < Orb::Internal::Type::BaseModel
1010
required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::BulkTier] }
1111

1212
# @!method initialize(tiers:)
13+
# Configuration for bulk pricing
14+
#
1315
# @param tiers [Array<Orb::Models::BulkTier>] Bulk tiers for rating based on total usage volume
1416
end
1517
end

lib/orb/models/bulk_tier.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class BulkTier < Orb::Internal::Type::BaseModel
1616
optional :maximum_units, Float, nil?: true
1717

1818
# @!method initialize(unit_amount:, maximum_units: nil)
19+
# Configuration for a single bulk pricing tier
20+
#
1921
# @param unit_amount [String] Amount per unit
2022
#
2123
# @param maximum_units [Float, nil] Upper bound for this tier

lib/orb/models/customer_create_params.rb

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel
2828

2929
# @!attribute additional_emails
3030
# Additional email addresses for this customer. If populated, these email
31-
# addresses will be CC'd for customer communications.
31+
# addresses will be CC'd for customer communications. The total number of email
32+
# addresses (including the primary email) cannot exceed 50.
3233
#
3334
# @return [Array<String>, nil]
3435
optional :additional_emails, Orb::Internal::Type::ArrayOf[String], nil?: true
@@ -116,7 +117,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel
116117

117118
# @!attribute tax_configuration
118119
#
119-
# @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil]
120+
# @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::Numeral, nil]
120121
optional :tax_configuration, union: -> { Orb::CustomerCreateParams::TaxConfiguration }, nil?: true
121122

122123
# @!attribute tax_id
@@ -312,7 +313,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel
312313
#
313314
# @param shipping_address [Orb::Models::AddressInput, nil]
314315
#
315-
# @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil]
316+
# @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::Numeral, nil]
316317
#
317318
# @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
318319
#
@@ -347,8 +348,26 @@ module TaxConfiguration
347348

348349
variant :sphere, -> { Orb::NewSphereConfiguration }
349350

351+
variant :numeral, -> { Orb::CustomerCreateParams::TaxConfiguration::Numeral }
352+
353+
class Numeral < Orb::Internal::Type::BaseModel
354+
# @!attribute tax_exempt
355+
#
356+
# @return [Boolean]
357+
required :tax_exempt, Orb::Internal::Type::Boolean
358+
359+
# @!attribute tax_provider
360+
#
361+
# @return [Symbol, :numeral]
362+
required :tax_provider, const: :numeral
363+
364+
# @!method initialize(tax_exempt:, tax_provider: :numeral)
365+
# @param tax_exempt [Boolean]
366+
# @param tax_provider [Symbol, :numeral]
367+
end
368+
350369
# @!method self.variants
351-
# @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration)]
370+
# @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::Numeral)]
352371
end
353372
end
354373
end

lib/orb/models/customer_update_by_external_id_params.rb

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
1414

1515
# @!attribute additional_emails
1616
# Additional email addresses for this customer. If populated, these email
17-
# addresses will be CC'd for customer communications.
17+
# addresses will be CC'd for customer communications. The total number of email
18+
# addresses (including the primary email) cannot exceed 50.
1819
#
1920
# @return [Array<String>, nil]
2021
optional :additional_emails, Orb::Internal::Type::ArrayOf[String], nil?: true
@@ -122,7 +123,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
122123

123124
# @!attribute tax_configuration
124125
#
125-
# @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil]
126+
# @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral, nil]
126127
optional :tax_configuration,
127128
union: -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration },
128129
nil?: true
@@ -312,7 +313,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
312313
#
313314
# @param shipping_address [Orb::Models::AddressInput, nil]
314315
#
315-
# @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil]
316+
# @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral, nil]
316317
#
317318
# @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
318319
#
@@ -349,8 +350,26 @@ module TaxConfiguration
349350

350351
variant :sphere, -> { Orb::NewSphereConfiguration }
351352

353+
variant :numeral, -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral }
354+
355+
class Numeral < Orb::Internal::Type::BaseModel
356+
# @!attribute tax_exempt
357+
#
358+
# @return [Boolean]
359+
required :tax_exempt, Orb::Internal::Type::Boolean
360+
361+
# @!attribute tax_provider
362+
#
363+
# @return [Symbol, :numeral]
364+
required :tax_provider, const: :numeral
365+
366+
# @!method initialize(tax_exempt:, tax_provider: :numeral)
367+
# @param tax_exempt [Boolean]
368+
# @param tax_provider [Symbol, :numeral]
369+
end
370+
352371
# @!method self.variants
353-
# @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration)]
372+
# @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral)]
354373
end
355374
end
356375
end

lib/orb/models/customer_update_params.rb

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel
1414

1515
# @!attribute additional_emails
1616
# Additional email addresses for this customer. If populated, these email
17-
# addresses will be CC'd for customer communications.
17+
# addresses will be CC'd for customer communications. The total number of email
18+
# addresses (including the primary email) cannot exceed 50.
1819
#
1920
# @return [Array<String>, nil]
2021
optional :additional_emails, Orb::Internal::Type::ArrayOf[String], nil?: true
@@ -120,7 +121,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel
120121

121122
# @!attribute tax_configuration
122123
#
123-
# @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil]
124+
# @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::Numeral, nil]
124125
optional :tax_configuration, union: -> { Orb::CustomerUpdateParams::TaxConfiguration }, nil?: true
125126

126127
# @!attribute tax_id
@@ -308,7 +309,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel
308309
#
309310
# @param shipping_address [Orb::Models::AddressInput, nil]
310311
#
311-
# @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil]
312+
# @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::Numeral, nil]
312313
#
313314
# @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
314315
#
@@ -345,8 +346,26 @@ module TaxConfiguration
345346

346347
variant :sphere, -> { Orb::NewSphereConfiguration }
347348

349+
variant :numeral, -> { Orb::CustomerUpdateParams::TaxConfiguration::Numeral }
350+
351+
class Numeral < Orb::Internal::Type::BaseModel
352+
# @!attribute tax_exempt
353+
#
354+
# @return [Boolean]
355+
required :tax_exempt, Orb::Internal::Type::Boolean
356+
357+
# @!attribute tax_provider
358+
#
359+
# @return [Symbol, :numeral]
360+
required :tax_provider, const: :numeral
361+
362+
# @!method initialize(tax_exempt:, tax_provider: :numeral)
363+
# @param tax_exempt [Boolean]
364+
# @param tax_provider [Symbol, :numeral]
365+
end
366+
348367
# @!method self.variants
349-
# @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration)]
368+
# @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::Numeral)]
350369
end
351370
end
352371
end

0 commit comments

Comments
 (0)