togai_client 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/docs/AccountsApi.md +1 -1
  4. data/docs/AssociatePricePlanRequest.md +4 -4
  5. data/docs/Bundle.md +22 -0
  6. data/docs/CreatePricePlanRequest.md +2 -4
  7. data/docs/EventPipelineInfoPricePlansInner.md +2 -0
  8. data/docs/EventSchemaListData.md +2 -2
  9. data/docs/EventSchemaListDataAllOf.md +2 -2
  10. data/docs/GetEventResponse.md +1 -1
  11. data/docs/PlanOverride.md +2 -2
  12. data/docs/PricePlan.md +0 -2
  13. data/docs/PricePlanDetails.md +20 -0
  14. data/docs/PricePlanDetailsOverride.md +20 -0
  15. data/docs/PricePlanListData.md +2 -4
  16. data/docs/PricePlanPaginatedResponse.md +1 -1
  17. data/docs/PricePlansApi.md +1 -1
  18. data/docs/PriceType.md +15 -0
  19. data/docs/{PricingCycle.md → PricingCycleConfig.md} +3 -3
  20. data/docs/{PricingCycleStartOffset.md → PricingCycleConfigStartOffset.md} +2 -2
  21. data/docs/PricingModel.md +15 -0
  22. data/docs/PricingSchedule.md +2 -2
  23. data/docs/RateCard.md +6 -6
  24. data/docs/RateCardBundleAggregation.md +15 -0
  25. data/docs/RateCardType.md +15 -0
  26. data/docs/RateConfigBundle.md +20 -0
  27. data/docs/RateConfigUsage.md +20 -0
  28. data/docs/SlabBundle.md +24 -0
  29. data/docs/{UsageStrategy.md → SlabUsage.md} +6 -2
  30. data/docs/UpdatePricePlanRequest.md +2 -4
  31. data/examples/example.rb +222 -0
  32. data/lib/togai_client/models/associate_price_plan_request.rb +17 -7
  33. data/lib/togai_client/models/{bundle_strategy.rb → bundle.rb} +34 -85
  34. data/lib/togai_client/models/create_customer_request.rb +0 -9
  35. data/lib/togai_client/models/create_customer_response.rb +0 -9
  36. data/lib/togai_client/models/create_price_plan_request.rb +10 -24
  37. data/lib/togai_client/models/customer.rb +0 -9
  38. data/lib/togai_client/models/event_pipeline_info_price_plans_inner.rb +15 -1
  39. data/lib/togai_client/models/event_schema_list_data.rb +7 -9
  40. data/lib/togai_client/models/event_schema_list_data_all_of.rb +7 -9
  41. data/lib/togai_client/models/get_event_response.rb +5 -0
  42. data/lib/togai_client/models/ingestion_status.rb +2 -2
  43. data/lib/togai_client/models/plan_override.rb +7 -7
  44. data/lib/togai_client/models/price_plan.rb +1 -15
  45. data/lib/togai_client/models/price_plan_details.rb +259 -0
  46. data/lib/togai_client/models/price_plan_details_override.rb +245 -0
  47. data/lib/togai_client/models/price_plan_list_data.rb +10 -25
  48. data/lib/togai_client/models/price_plan_paginated_response.rb +5 -0
  49. data/lib/togai_client/models/price_type.rb +38 -0
  50. data/lib/togai_client/models/{pricing_cycle.rb → pricing_cycle_config.rb} +4 -4
  51. data/lib/togai_client/models/{pricing_cycle_start_offset.rb → pricing_cycle_config_start_offset.rb} +3 -3
  52. data/lib/togai_client/models/pricing_model.rb +37 -0
  53. data/lib/togai_client/models/pricing_schedule.rb +7 -7
  54. data/lib/togai_client/models/rate_card.rb +32 -59
  55. data/lib/togai_client/models/rate_card_bundle_aggregation.rb +39 -0
  56. data/lib/togai_client/models/rate_card_type.rb +37 -0
  57. data/lib/togai_client/models/{bundle_strategy_usage_meters_value.rb → rate_config_bundle.rb} +28 -13
  58. data/lib/togai_client/models/{rate_card_usage_value.rb → rate_config_usage.rb} +15 -98
  59. data/lib/togai_client/models/signup_request.rb +0 -11
  60. data/lib/togai_client/models/slab_bundle.rb +264 -0
  61. data/lib/togai_client/models/{usage_strategy.rb → slab_usage.rb} +30 -5
  62. data/lib/togai_client/models/update_customer_request.rb +0 -9
  63. data/lib/togai_client/models/update_price_plan_request.rb +7 -16
  64. data/lib/togai_client/models/user_details.rb +0 -11
  65. data/lib/togai_client/version.rb +1 -1
  66. data/lib/togai_client.rb +13 -7
  67. metadata +36 -23
  68. data/docs/BundleStrategy.md +0 -24
  69. data/docs/BundleStrategyUsageMetersValue.md +0 -18
  70. data/docs/RateCardBundle.md +0 -22
  71. data/docs/RateCardUsageValue.md +0 -24
  72. data/lib/togai_client/models/rate_card_bundle.rb +0 -328
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc81928b391a9b5458ef738ee7fa9b1cc3611cd115ad953569d1b5048fc8feca
4
- data.tar.gz: 5f58d3db47d442406b093dd252c44d29bcfaa22f1728bdcafcc60527e2d713b3
3
+ metadata.gz: 4adb52539f4b4197180b8ececdeb49fa6bd6bfaec72b910b062cf6f22702d28e
4
+ data.tar.gz: eb618bf3364167735e9f3f63290caaf30462689dca028940ca82b491b3bd5bb2
5
5
  SHA512:
6
- metadata.gz: 4cf26ad623a6ba7cdf900d7fb1ada53bad57f596d7fb0badde3d18cf77b4e78ce9e3fd281ff3db56c4deb0b3fdbb6b4a8c0c833cfa88bc1db18a9a018e422ccf
7
- data.tar.gz: 904b2e68a0013bda153bc5af881f391e996d94afc7c6322715e8eac65ad24b285c0e496f1d3c61da70aff64a385b92c5b66ce350d1baa3880e21bec0cd1f059a
6
+ metadata.gz: c6a7d72bc74183f8d76eb5d734daee92379f8f3d758415eecc13fd8e3c33d9d62556d6a5fc6afc8f455888d49588ddb6f5ee365549194f33a0c1481afc9fd399
7
+ data.tar.gz: ade5c238dde2e4452ff53188e2aafb822cfec38709191d3b2cdf6520e18b7d38f83a60e679b758a86eeb8734914acaac65f76b4e15075d73479bb70f55b33f19
data/README.md CHANGED
@@ -8,7 +8,7 @@ This is an official Ruby client library for using [Togai APIs](https://docs.toga
8
8
 
9
9
 
10
10
  - API version: 1.0
11
- - Package version: 1.0.0
11
+ - Package version: 1.0.1
12
12
 
13
13
  ## Installation
14
14
 
data/docs/AccountsApi.md CHANGED
@@ -109,7 +109,7 @@ end
109
109
  api_instance = TogaiClient::AccountsApi.new
110
110
  customer_id = 'customer_id_example' # String |
111
111
  account_id = 'account_id_example' # String |
112
- associate_price_plan_request = TogaiClient::AssociatePricePlanRequest.new({price_plan_name: 'price_plan_name_example'}) # AssociatePricePlanRequest | Payload to associate a price plan to an account
112
+ associate_price_plan_request = TogaiClient::AssociatePricePlanRequest.new({price_plan_name: 'price_plan_name_example', effective_from: Date.today, effective_until: Date.today}) # AssociatePricePlanRequest | Payload to associate a price plan to an account
113
113
 
114
114
  begin
115
115
  # Associate a plan to an account
@@ -5,9 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **price_plan_name** | **String** | Name of the price plan | |
8
- | **effective_from** | **Date** | Date of effectiveness of the association. - Expected only if the account already has a price plan associated with it. | [optional] |
9
- | **effective_until** | **Date** | Date until which the association must be effective. - Expected only if effectiveFrom is present. | [optional] |
10
- | **rate_card_override** | [**RateCard**](RateCard.md) | | [optional] |
8
+ | **effective_from** | **Date** | Date of effectiveness of the association. - Expected only if the account already has a price plan associated with it. | |
9
+ | **effective_until** | **Date** | Date until which the association must be effective. - Expected only if effectiveFrom is present. | |
10
+ | **price_plan_details_override** | [**PricePlanDetailsOverride**](PricePlanDetailsOverride.md) | | [optional] |
11
11
 
12
12
  ## Example
13
13
 
@@ -18,7 +18,7 @@ instance = TogaiClient::AssociatePricePlanRequest.new(
18
18
  price_plan_name: null,
19
19
  effective_from: null,
20
20
  effective_until: null,
21
- rate_card_override: null
21
+ price_plan_details_override: null
22
22
  )
23
23
  ```
24
24
 
data/docs/Bundle.md ADDED
@@ -0,0 +1,22 @@
1
+ # TogaiClient::Bundle
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **display_name** | **String** | | |
8
+ | **order** | **Integer** | | |
9
+ | **rate_configs** | [**Array<RateConfigBundle>**](RateConfigBundle.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::Bundle.new(
17
+ display_name: null,
18
+ order: null,
19
+ rate_configs: null
20
+ )
21
+ ```
22
+
@@ -6,8 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | Name of the price plan | |
8
8
  | **description** | **String** | Description of price plan | [optional] |
9
- | **pricing_cycle** | [**PricingCycle**](PricingCycle.md) | | |
10
- | **rate_card** | [**RateCard**](RateCard.md) | | |
9
+ | **price_plan_details** | [**PricePlanDetails**](PricePlanDetails.md) | | |
11
10
 
12
11
  ## Example
13
12
 
@@ -17,8 +16,7 @@ require 'togai_client'
17
16
  instance = TogaiClient::CreatePricePlanRequest.new(
18
17
  name: null,
19
18
  description: null,
20
- pricing_cycle: null,
21
- rate_card: null
19
+ price_plan_details: null
22
20
  )
23
21
  ```
24
22
 
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | | |
8
8
  | **id** | **String** | | |
9
+ | **schedule_id** | **String** | | |
9
10
  | **cycle_start** | **Date** | | |
10
11
  | **cycle_end** | **Date** | | |
11
12
  | **usage_meters** | **Array<String>** | | [optional] |
@@ -18,6 +19,7 @@ require 'togai_client'
18
19
  instance = TogaiClient::EventPipelineInfoPricePlansInner.new(
19
20
  name: null,
20
21
  id: null,
22
+ schedule_id: null,
21
23
  cycle_start: null,
22
24
  cycle_end: null,
23
25
  usage_meters: null
@@ -12,7 +12,7 @@
12
12
  | **dimensions** | [**Array<DimensionsSchema>**](DimensionsSchema.md) | | [optional] |
13
13
  | **created_at** | **Time** | | [optional] |
14
14
  | **updated_at** | **Time** | | [optional] |
15
- | **associated_usage_meters** | **Array<String>** | | [optional] |
15
+ | **usage_meters_count** | **Integer** | | [optional] |
16
16
 
17
17
  ## Example
18
18
 
@@ -28,7 +28,7 @@ instance = TogaiClient::EventSchemaListData.new(
28
28
  dimensions: null,
29
29
  created_at: null,
30
30
  updated_at: null,
31
- associated_usage_meters: null
31
+ usage_meters_count: null
32
32
  )
33
33
  ```
34
34
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **associated_usage_meters** | **Array<String>** | | [optional] |
7
+ | **usage_meters_count** | **Integer** | | [optional] |
8
8
 
9
9
  ## Example
10
10
 
@@ -12,7 +12,7 @@
12
12
  require 'togai_client'
13
13
 
14
14
  instance = TogaiClient::EventSchemaListDataAllOf.new(
15
- associated_usage_meters: null
15
+ usage_meters_count: null
16
16
  )
17
17
  ```
18
18
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **events** | [**Array<EventWithStatusAndEventPipelineInfo>**](EventWithStatusAndEventPipelineInfo.md) | | [optional] |
7
+ | **events** | [**Array<EventWithStatusAndEventPipelineInfo>**](EventWithStatusAndEventPipelineInfo.md) | | |
8
8
 
9
9
  ## Example
10
10
 
data/docs/PlanOverride.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **price_plan_name** | **String** | | |
8
- | **override** | [**RateCard**](RateCard.md) | | [optional] |
8
+ | **price_plan_details_override** | [**PricePlanDetailsOverride**](PricePlanDetailsOverride.md) | | [optional] |
9
9
  | **start_date** | **Time** | | |
10
10
  | **end_date** | **Time** | | |
11
11
 
@@ -16,7 +16,7 @@ require 'togai_client'
16
16
 
17
17
  instance = TogaiClient::PlanOverride.new(
18
18
  price_plan_name: null,
19
- override: null,
19
+ price_plan_details_override: null,
20
20
  start_date: null,
21
21
  end_date: null
22
22
  )
data/docs/PricePlan.md CHANGED
@@ -7,7 +7,6 @@
7
7
  | **name** | **String** | Name of the price plan | |
8
8
  | **description** | **String** | Description of price plan | [optional] |
9
9
  | **status** | **String** | Status of Price plan | |
10
- | **pricing_cycle** | [**PricingCycle**](PricingCycle.md) | | |
11
10
  | **pricing_schedule** | [**Array<PricingSchedule>**](PricingSchedule.md) | | |
12
11
 
13
12
  ## Example
@@ -19,7 +18,6 @@ instance = TogaiClient::PricePlan.new(
19
18
  name: null,
20
19
  description: null,
21
20
  status: null,
22
- pricing_cycle: null,
23
21
  pricing_schedule: null
24
22
  )
25
23
  ```
@@ -0,0 +1,20 @@
1
+ # TogaiClient::PricePlanDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pricing_cycle_config** | [**PricingCycleConfig**](PricingCycleConfig.md) | | |
8
+ | **rate_cards** | [**Array<RateCard>**](RateCard.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'togai_client'
14
+
15
+ instance = TogaiClient::PricePlanDetails.new(
16
+ pricing_cycle_config: null,
17
+ rate_cards: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # TogaiClient::PricePlanDetailsOverride
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pricing_cycle_config** | [**PricingCycleConfig**](PricingCycleConfig.md) | | [optional] |
8
+ | **rate_cards** | [**Array<RateCard>**](RateCard.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'togai_client'
14
+
15
+ instance = TogaiClient::PricePlanDetailsOverride.new(
16
+ pricing_cycle_config: null,
17
+ rate_cards: null
18
+ )
19
+ ```
20
+
@@ -7,9 +7,8 @@
7
7
  | **name** | **String** | Name of the price plan | |
8
8
  | **description** | **String** | Description of price plan | [optional] |
9
9
  | **status** | **String** | Status of Price plan | |
10
- | **pricing_cycle** | [**PricingCycle**](PricingCycle.md) | | |
11
10
  | **usage_meters** | **Array<String>** | Usage meters name linked to the price plan | |
12
- | **pricing_type** | **String** | Pricing type of the price plan | |
11
+ | **price_plan_details** | [**PricePlanDetails**](PricePlanDetails.md) | | |
13
12
  | **created_at** | **Time** | | |
14
13
  | **updated_at** | **Time** | | |
15
14
 
@@ -22,9 +21,8 @@ instance = TogaiClient::PricePlanListData.new(
22
21
  name: null,
23
22
  description: null,
24
23
  status: null,
25
- pricing_cycle: null,
26
24
  usage_meters: null,
27
- pricing_type: null,
25
+ price_plan_details: null,
28
26
  created_at: null,
29
27
  updated_at: null
30
28
  )
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **data** | [**Array<PricePlanListData>**](PricePlanListData.md) | | [optional] |
7
+ | **data** | [**Array<PricePlanListData>**](PricePlanListData.md) | | |
8
8
  | **next_token** | **String** | | [optional] |
9
9
  | **context** | [**PaginationOptions**](PaginationOptions.md) | | [optional] |
10
10
 
@@ -100,7 +100,7 @@ TogaiClient.configure do |config|
100
100
  end
101
101
 
102
102
  api_instance = TogaiClient::PricePlansApi.new
103
- create_price_plan_request = TogaiClient::CreatePricePlanRequest.new({name: 'name_example', pricing_cycle: TogaiClient::PricingCycle.new({interval: 'MONTHLY', start_type: 'STATIC', start_offset: TogaiClient::PricingCycleStartOffset.new({day_offset: 'day_offset_example', month_offset: 'month_offset_example'}), grace_period: 3}), rate_card: TogaiClient::RateCard.new({type: 'USAGE'})}) # CreatePricePlanRequest | Payload to create price plan
103
+ create_price_plan_request = TogaiClient::CreatePricePlanRequest.new({name: 'name_example', price_plan_details: TogaiClient::PricePlanDetails.new({pricing_cycle_config: TogaiClient::PricingCycleConfig.new({interval: 'MONTHLY', start_type: 'STATIC', start_offset: TogaiClient::PricingCycleConfigStartOffset.new({day_offset: 'day_offset_example', month_offset: 'month_offset_example'}), grace_period: 3}), rate_cards: [TogaiClient::RateCard.new({display_name: 'display_name_example', pricing_model: TogaiClient::PricingModel::TIERED, rate_config: TogaiClient::RateConfigUsage.new({usage_meter_name: 'usage_meter_name_example', slabs: [TogaiClient::SlabUsage.new({rate: 3.56, start_after: 3.56, price_type: TogaiClient::PriceType::FLAT, order: 37})]})})]})}) # CreatePricePlanRequest | Payload to create price plan
104
104
 
105
105
  begin
106
106
  # Create a price plan
data/docs/PriceType.md ADDED
@@ -0,0 +1,15 @@
1
+ # TogaiClient::PriceType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'togai_client'
12
+
13
+ instance = TogaiClient::PriceType.new()
14
+ ```
15
+
@@ -1,4 +1,4 @@
1
- # TogaiClient::PricingCycle
1
+ # TogaiClient::PricingCycleConfig
2
2
 
3
3
  ## Properties
4
4
 
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **interval** | **String** | | |
8
8
  | **start_type** | **String** | | |
9
- | **start_offset** | [**PricingCycleStartOffset**](PricingCycleStartOffset.md) | | |
9
+ | **start_offset** | [**PricingCycleConfigStartOffset**](PricingCycleConfigStartOffset.md) | | |
10
10
  | **grace_period** | **Integer** | | |
11
11
 
12
12
  ## Example
@@ -14,7 +14,7 @@
14
14
  ```ruby
15
15
  require 'togai_client'
16
16
 
17
- instance = TogaiClient::PricingCycle.new(
17
+ instance = TogaiClient::PricingCycleConfig.new(
18
18
  interval: null,
19
19
  start_type: null,
20
20
  start_offset: null,
@@ -1,4 +1,4 @@
1
- # TogaiClient::PricingCycleStartOffset
1
+ # TogaiClient::PricingCycleConfigStartOffset
2
2
 
3
3
  ## Properties
4
4
 
@@ -12,7 +12,7 @@
12
12
  ```ruby
13
13
  require 'togai_client'
14
14
 
15
- instance = TogaiClient::PricingCycleStartOffset.new(
15
+ instance = TogaiClient::PricingCycleConfigStartOffset.new(
16
16
  day_offset: null,
17
17
  month_offset: null
18
18
  )
@@ -0,0 +1,15 @@
1
+ # TogaiClient::PricingModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'togai_client'
12
+
13
+ instance = TogaiClient::PricingModel.new()
14
+ ```
15
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **rate_payload** | [**RateCard**](RateCard.md) | | [optional] |
7
+ | **price_plan_details** | [**PricePlanDetails**](PricePlanDetails.md) | | [optional] |
8
8
  | **start_date** | **Time** | | |
9
9
  | **end_date** | **Time** | | |
10
10
 
@@ -14,7 +14,7 @@
14
14
  require 'togai_client'
15
15
 
16
16
  instance = TogaiClient::PricingSchedule.new(
17
- rate_payload: null,
17
+ price_plan_details: null,
18
18
  start_date: null,
19
19
  end_date: null
20
20
  )
data/docs/RateCard.md CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **type** | **String** | | |
8
- | **usage_config** | [**Hash<String, RateCardUsageValue>**](RateCardUsageValue.md) | | [optional] |
9
- | **bundle_config** | [**RateCardBundle**](RateCardBundle.md) | | [optional] |
7
+ | **display_name** | **String** | | |
8
+ | **pricing_model** | [**PricingModel**](PricingModel.md) | | |
9
+ | **rate_config** | [**RateConfigUsage**](RateConfigUsage.md) | | |
10
10
 
11
11
  ## Example
12
12
 
@@ -14,9 +14,9 @@
14
14
  require 'togai_client'
15
15
 
16
16
  instance = TogaiClient::RateCard.new(
17
- type: null,
18
- usage_config: null,
19
- bundle_config: null
17
+ display_name: null,
18
+ pricing_model: null,
19
+ rate_config: null
20
20
  )
21
21
  ```
22
22
 
@@ -0,0 +1,15 @@
1
+ # TogaiClient::RateCardBundleAggregation
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'togai_client'
12
+
13
+ instance = TogaiClient::RateCardBundleAggregation.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # TogaiClient::RateCardType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'togai_client'
12
+
13
+ instance = TogaiClient::RateCardType.new()
14
+ ```
15
+
@@ -0,0 +1,20 @@
1
+ # TogaiClient::RateConfigBundle
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **usage_meter_name** | **String** | | |
8
+ | **slab** | [**SlabBundle**](SlabBundle.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'togai_client'
14
+
15
+ instance = TogaiClient::RateConfigBundle.new(
16
+ usage_meter_name: null,
17
+ slab: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # TogaiClient::RateConfigUsage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **usage_meter_name** | **String** | | |
8
+ | **slabs** | [**Array<SlabUsage>**](SlabUsage.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'togai_client'
14
+
15
+ instance = TogaiClient::RateConfigUsage.new(
16
+ usage_meter_name: null,
17
+ slabs: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # TogaiClient::SlabBundle
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **rate** | **Float** | | |
8
+ | **start_after** | **Float** | | |
9
+ | **price_type** | [**PriceType**](PriceType.md) | | |
10
+ | **config** | **Hash<String, String>** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'togai_client'
16
+
17
+ instance = TogaiClient::SlabBundle.new(
18
+ rate: null,
19
+ start_after: null,
20
+ price_type: null,
21
+ config: null
22
+ )
23
+ ```
24
+
@@ -1,4 +1,4 @@
1
- # TogaiClient::UsageStrategy
1
+ # TogaiClient::SlabUsage
2
2
 
3
3
  ## Properties
4
4
 
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **rate** | **Float** | | |
8
8
  | **start_after** | **Float** | | |
9
+ | **price_type** | [**PriceType**](PriceType.md) | | |
10
+ | **config** | **Hash<String, String>** | | [optional] |
9
11
  | **order** | **Integer** | | |
10
12
 
11
13
  ## Example
@@ -13,9 +15,11 @@
13
15
  ```ruby
14
16
  require 'togai_client'
15
17
 
16
- instance = TogaiClient::UsageStrategy.new(
18
+ instance = TogaiClient::SlabUsage.new(
17
19
  rate: null,
18
20
  start_after: null,
21
+ price_type: null,
22
+ config: null,
19
23
  order: null
20
24
  )
21
25
  ```
@@ -5,8 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **description** | **String** | Description of price plan | [optional] |
8
- | **pricing_cycle** | [**PricingCycle**](PricingCycle.md) | | [optional] |
9
- | **rate_card** | [**RateCard**](RateCard.md) | | [optional] |
8
+ | **price_plan_details** | [**PricePlanDetailsOverride**](PricePlanDetailsOverride.md) | | [optional] |
10
9
 
11
10
  ## Example
12
11
 
@@ -15,8 +14,7 @@ require 'togai_client'
15
14
 
16
15
  instance = TogaiClient::UpdatePricePlanRequest.new(
17
16
  description: null,
18
- pricing_cycle: null,
19
- rate_card: null
17
+ price_plan_details: null
20
18
  )
21
19
  ```
22
20