Skip to content

Commit 3467275

Browse files
feat(api): api update
1 parent 0f406cd commit 3467275

14 files changed

Lines changed: 27020 additions & 2349 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-fee4c7438579fd72ae7c08ad11cc502da279ad3cccfe2235b18afcacc91ad0d9.yml
3-
openapi_spec_hash: dc9d553a388715ba22d873aee54a3ed1
4-
config_hash: 38d4539e31b962c34d7ceb224b161855
1+
configured_endpoints: 116
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-84f839bf30c9974915924b75d13e9de6f72952fd64cf7b59ef6146f88be9b985.yml
3+
openapi_spec_hash: 4e1225a45bb47ae6854fcb1e3b710d69
4+
config_hash: c3e48c662ff76bcdb6cd5dc1c139e4c9

aliases.go

Lines changed: 3459 additions & 71 deletions
Large diffs are not rendered by default.

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ Response Types:
456456
- <a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#EvaluatePriceGroup">EvaluatePriceGroup</a>
457457
- <a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluateResponse">PriceEvaluateResponse</a>
458458
- <a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluateMultipleResponse">PriceEvaluateMultipleResponse</a>
459+
- <a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluatePreviewEventsResponse">PriceEvaluatePreviewEventsResponse</a>
459460

460461
Methods:
461462

@@ -464,6 +465,7 @@ Methods:
464465
- <code title="get /prices">client.Prices.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceListParams">PriceListParams</a>) (<a href="https://pkg.go.dev/github.com/orbcorp/orb-go/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go/packages/pagination#Page">Page</a>[<a href="https://pkg.go.dev/github.com/orbcorp/orb-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go/shared#Price">Price</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
465466
- <code title="post /prices/{price_id}/evaluate">client.Prices.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceService.Evaluate">Evaluate</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, priceID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluateParams">PriceEvaluateParams</a>) (<a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluateResponse">PriceEvaluateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
466467
- <code title="post /prices/evaluate">client.Prices.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceService.EvaluateMultiple">EvaluateMultiple</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluateMultipleParams">PriceEvaluateMultipleParams</a>) (<a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluateMultipleResponse">PriceEvaluateMultipleResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
468+
- <code title="post /prices/evaluate_preview_events">client.Prices.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceService.EvaluatePreviewEvents">EvaluatePreviewEvents</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluatePreviewEventsParams">PriceEvaluatePreviewEventsParams</a>) (<a href="https://pkg.go.dev/github.com/orbcorp/orb-go">orb</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceEvaluatePreviewEventsResponse">PriceEvaluatePreviewEventsResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
467469
- <code title="get /prices/{price_id}">client.Prices.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go#PriceService.Fetch">Fetch</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, priceID <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/github.com/orbcorp/orb-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/orbcorp/orb-go/shared#Price">Price</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
468470

469471
## ExternalPriceID

beta.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ type BetaNewPlanVersionParamsAddPricesPrice struct {
477477
BulkWithProrationConfig param.Field[interface{}] `json:"bulk_with_proration_config"`
478478
// The per unit conversion rate of the price currency to the invoicing currency.
479479
ConversionRate param.Field[float64] `json:"conversion_rate"`
480+
ConversionRateConfig param.Field[interface{}] `json:"conversion_rate_config"`
480481
CumulativeGroupedBulkConfig param.Field[interface{}] `json:"cumulative_grouped_bulk_config"`
481482
// An ISO 4217 currency string, or custom pricing unit identifier, in which this
482483
// price is billed.
@@ -785,6 +786,7 @@ type BetaNewPlanVersionParamsReplacePricesPrice struct {
785786
BulkWithProrationConfig param.Field[interface{}] `json:"bulk_with_proration_config"`
786787
// The per unit conversion rate of the price currency to the invoicing currency.
787788
ConversionRate param.Field[float64] `json:"conversion_rate"`
789+
ConversionRateConfig param.Field[interface{}] `json:"conversion_rate_config"`
788790
CumulativeGroupedBulkConfig param.Field[interface{}] `json:"cumulative_grouped_bulk_config"`
789791
// An ISO 4217 currency string, or custom pricing unit identifier, in which this
790792
// price is billed.

beta_test.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ func TestBetaNewPlanVersionWithOptionalParams(t *testing.T) {
7676
DurationUnit: orb.F(shared.NewBillingCycleConfigurationDurationUnitDay),
7777
}),
7878
ConversionRate: orb.F(0.000000),
79-
Currency: orb.F("currency"),
79+
ConversionRateConfig: orb.F[shared.NewPlanUnitPriceConversionRateConfigUnionParam](shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigParam{
80+
ConversionRateType: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigConversionRateTypeUnit),
81+
UnitConfig: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigUnitConfigParam{
82+
UnitAmount: orb.F("unit_amount"),
83+
}),
84+
}),
85+
Currency: orb.F("currency"),
8086
DimensionalPriceConfiguration: orb.F(shared.NewDimensionalPriceConfigurationParam{
8187
DimensionValues: orb.F([]string{"string"}),
8288
DimensionalPriceGroupID: orb.F("dimensional_price_group_id"),
@@ -149,7 +155,13 @@ func TestBetaNewPlanVersionWithOptionalParams(t *testing.T) {
149155
DurationUnit: orb.F(shared.NewBillingCycleConfigurationDurationUnitDay),
150156
}),
151157
ConversionRate: orb.F(0.000000),
152-
Currency: orb.F("currency"),
158+
ConversionRateConfig: orb.F[shared.NewPlanUnitPriceConversionRateConfigUnionParam](shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigParam{
159+
ConversionRateType: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigConversionRateTypeUnit),
160+
UnitConfig: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigUnitConfigParam{
161+
UnitAmount: orb.F("unit_amount"),
162+
}),
163+
}),
164+
Currency: orb.F("currency"),
153165
DimensionalPriceConfiguration: orb.F(shared.NewDimensionalPriceConfigurationParam{
154166
DimensionValues: orb.F([]string{"string"}),
155167
DimensionalPriceGroupID: orb.F("dimensional_price_group_id"),

betaexternalplanid.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ type BetaExternalPlanIDNewPlanVersionParamsAddPricesPrice struct {
248248
BulkWithProrationConfig param.Field[interface{}] `json:"bulk_with_proration_config"`
249249
// The per unit conversion rate of the price currency to the invoicing currency.
250250
ConversionRate param.Field[float64] `json:"conversion_rate"`
251+
ConversionRateConfig param.Field[interface{}] `json:"conversion_rate_config"`
251252
CumulativeGroupedBulkConfig param.Field[interface{}] `json:"cumulative_grouped_bulk_config"`
252253
// An ISO 4217 currency string, or custom pricing unit identifier, in which this
253254
// price is billed.
@@ -556,6 +557,7 @@ type BetaExternalPlanIDNewPlanVersionParamsReplacePricesPrice struct {
556557
BulkWithProrationConfig param.Field[interface{}] `json:"bulk_with_proration_config"`
557558
// The per unit conversion rate of the price currency to the invoicing currency.
558559
ConversionRate param.Field[float64] `json:"conversion_rate"`
560+
ConversionRateConfig param.Field[interface{}] `json:"conversion_rate_config"`
559561
CumulativeGroupedBulkConfig param.Field[interface{}] `json:"cumulative_grouped_bulk_config"`
560562
// An ISO 4217 currency string, or custom pricing unit identifier, in which this
561563
// price is billed.

betaexternalplanid_test.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ func TestBetaExternalPlanIDNewPlanVersionWithOptionalParams(t *testing.T) {
7676
DurationUnit: orb.F(shared.NewBillingCycleConfigurationDurationUnitDay),
7777
}),
7878
ConversionRate: orb.F(0.000000),
79-
Currency: orb.F("currency"),
79+
ConversionRateConfig: orb.F[shared.NewPlanUnitPriceConversionRateConfigUnionParam](shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigParam{
80+
ConversionRateType: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigConversionRateTypeUnit),
81+
UnitConfig: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigUnitConfigParam{
82+
UnitAmount: orb.F("unit_amount"),
83+
}),
84+
}),
85+
Currency: orb.F("currency"),
8086
DimensionalPriceConfiguration: orb.F(shared.NewDimensionalPriceConfigurationParam{
8187
DimensionValues: orb.F([]string{"string"}),
8288
DimensionalPriceGroupID: orb.F("dimensional_price_group_id"),
@@ -149,7 +155,13 @@ func TestBetaExternalPlanIDNewPlanVersionWithOptionalParams(t *testing.T) {
149155
DurationUnit: orb.F(shared.NewBillingCycleConfigurationDurationUnitDay),
150156
}),
151157
ConversionRate: orb.F(0.000000),
152-
Currency: orb.F("currency"),
158+
ConversionRateConfig: orb.F[shared.NewPlanUnitPriceConversionRateConfigUnionParam](shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigParam{
159+
ConversionRateType: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigConversionRateTypeUnit),
160+
UnitConfig: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigUnitConfigParam{
161+
UnitAmount: orb.F("unit_amount"),
162+
}),
163+
}),
164+
Currency: orb.F("currency"),
153165
DimensionalPriceConfiguration: orb.F(shared.NewDimensionalPriceConfigurationParam{
154166
DimensionValues: orb.F([]string{"string"}),
155167
DimensionalPriceGroupID: orb.F("dimensional_price_group_id"),

plan.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ type PlanNewParamsPrice struct {
577577
BulkWithProrationConfig param.Field[interface{}] `json:"bulk_with_proration_config"`
578578
// The per unit conversion rate of the price currency to the invoicing currency.
579579
ConversionRate param.Field[float64] `json:"conversion_rate"`
580+
ConversionRateConfig param.Field[interface{}] `json:"conversion_rate_config"`
580581
CumulativeGroupedBulkConfig param.Field[interface{}] `json:"cumulative_grouped_bulk_config"`
581582
// An ISO 4217 currency string, or custom pricing unit identifier, in which this
582583
// price is billed.

plan_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ func TestPlanNewWithOptionalParams(t *testing.T) {
4545
DurationUnit: orb.F(shared.NewBillingCycleConfigurationDurationUnitDay),
4646
}),
4747
ConversionRate: orb.F(0.000000),
48-
Currency: orb.F("currency"),
48+
ConversionRateConfig: orb.F[shared.NewPlanUnitPriceConversionRateConfigUnionParam](shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigParam{
49+
ConversionRateType: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigConversionRateTypeUnit),
50+
UnitConfig: orb.F(shared.NewPlanUnitPriceConversionRateConfigUnitConversionRateConfigUnitConfigParam{
51+
UnitAmount: orb.F("unit_amount"),
52+
}),
53+
}),
54+
Currency: orb.F("currency"),
4955
DimensionalPriceConfiguration: orb.F(shared.NewDimensionalPriceConfigurationParam{
5056
DimensionValues: orb.F([]string{"string"}),
5157
DimensionalPriceGroupID: orb.F("dimensional_price_group_id"),

0 commit comments

Comments
 (0)