From 83ef105c930570077baf24c801da6ffa2415708a Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 11 Sep 2025 07:58:44 +0000 Subject: [PATCH 1/2] Generate stackitmarketplace --- .../model_catalog_product_pricing_option.go | 49 ++++++++++++++++++- .../model_subscription_product.go | 47 +++++++++++++++++- 2 files changed, 93 insertions(+), 3 deletions(-) diff --git a/services/stackitmarketplace/model_catalog_product_pricing_option.go b/services/stackitmarketplace/model_catalog_product_pricing_option.go index afb60adb9..e25ff7e81 100644 --- a/services/stackitmarketplace/model_catalog_product_pricing_option.go +++ b/services/stackitmarketplace/model_catalog_product_pricing_option.go @@ -99,6 +99,27 @@ func setCatalogProductPricingOptionGetNoticePeriodAttributeType(arg *CatalogProd *arg = &val } +/* + types and functions for planId +*/ + +// isNotNullableString +type CatalogProductPricingOptionGetPlanIdAttributeType = *string + +func getCatalogProductPricingOptionGetPlanIdAttributeTypeOk(arg CatalogProductPricingOptionGetPlanIdAttributeType) (ret CatalogProductPricingOptionGetPlanIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCatalogProductPricingOptionGetPlanIdAttributeType(arg *CatalogProductPricingOptionGetPlanIdAttributeType, val CatalogProductPricingOptionGetPlanIdRetType) { + *arg = &val +} + +type CatalogProductPricingOptionGetPlanIdArgType = string +type CatalogProductPricingOptionGetPlanIdRetType = string + /* types and functions for priceType */ @@ -256,7 +277,10 @@ type CatalogProductPricingOption struct { // REQUIRED Name CatalogProductPricingOptionGetNameAttributeType `json:"name" required:"true"` NoticePeriod CatalogProductPricingOptionGetNoticePeriodAttributeType `json:"noticePeriod,omitempty"` - PriceType CatalogProductPricingOptionGetPriceTypeAttributeType `json:"priceType,omitempty"` + // The user-readable plan ID of a pricing option. + // REQUIRED + PlanId CatalogProductPricingOptionGetPlanIdAttributeType `json:"planId" required:"true"` + PriceType CatalogProductPricingOptionGetPriceTypeAttributeType `json:"priceType,omitempty"` // Additional price type information. PricingPlan CatalogProductPricingOptionGetPricingPlanAttributeType `json:"pricingPlan,omitempty"` // The price of the product (per unit). @@ -279,11 +303,12 @@ type _CatalogProductPricingOption CatalogProductPricingOption // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCatalogProductPricingOption(description CatalogProductPricingOptionGetDescriptionArgType, highlights CatalogProductPricingOptionGetHighlightsArgType, name CatalogProductPricingOptionGetNameArgType, sku CatalogProductPricingOptionGetSkuArgType, skuInfo CatalogProductPricingOptionGetSkuInfoArgType, skuInfoDetails CatalogProductPricingOptionGetSkuInfoDetailsArgType) *CatalogProductPricingOption { +func NewCatalogProductPricingOption(description CatalogProductPricingOptionGetDescriptionArgType, highlights CatalogProductPricingOptionGetHighlightsArgType, name CatalogProductPricingOptionGetNameArgType, planId CatalogProductPricingOptionGetPlanIdArgType, sku CatalogProductPricingOptionGetSkuArgType, skuInfo CatalogProductPricingOptionGetSkuInfoArgType, skuInfoDetails CatalogProductPricingOptionGetSkuInfoDetailsArgType) *CatalogProductPricingOption { this := CatalogProductPricingOption{} setCatalogProductPricingOptionGetDescriptionAttributeType(&this.Description, description) setCatalogProductPricingOptionGetHighlightsAttributeType(&this.Highlights, highlights) setCatalogProductPricingOptionGetNameAttributeType(&this.Name, name) + setCatalogProductPricingOptionGetPlanIdAttributeType(&this.PlanId, planId) setCatalogProductPricingOptionGetSkuAttributeType(&this.Sku, sku) setCatalogProductPricingOptionGetSkuInfoAttributeType(&this.SkuInfo, skuInfo) setCatalogProductPricingOptionGetSkuInfoDetailsAttributeType(&this.SkuInfoDetails, skuInfoDetails) @@ -372,6 +397,23 @@ func (o *CatalogProductPricingOption) SetNoticePeriod(v CatalogProductPricingOpt setCatalogProductPricingOptionGetNoticePeriodAttributeType(&o.NoticePeriod, v) } +// GetPlanId returns the PlanId field value +func (o *CatalogProductPricingOption) GetPlanId() (ret CatalogProductPricingOptionGetPlanIdRetType) { + ret, _ = o.GetPlanIdOk() + return ret +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *CatalogProductPricingOption) GetPlanIdOk() (ret CatalogProductPricingOptionGetPlanIdRetType, ok bool) { + return getCatalogProductPricingOptionGetPlanIdAttributeTypeOk(o.PlanId) +} + +// SetPlanId sets field value +func (o *CatalogProductPricingOption) SetPlanId(v CatalogProductPricingOptionGetPlanIdRetType) { + setCatalogProductPricingOptionGetPlanIdAttributeType(&o.PlanId, v) +} + // GetPriceType returns the PriceType field value if set, zero value otherwise. func (o *CatalogProductPricingOption) GetPriceType() (res CatalogProductPricingOptionGetPriceTypeRetType) { res, _ = o.GetPriceTypeOk() @@ -529,6 +571,9 @@ func (o CatalogProductPricingOption) ToMap() (map[string]interface{}, error) { if val, ok := getCatalogProductPricingOptionGetNoticePeriodAttributeTypeOk(o.NoticePeriod); ok { toSerialize["NoticePeriod"] = val } + if val, ok := getCatalogProductPricingOptionGetPlanIdAttributeTypeOk(o.PlanId); ok { + toSerialize["PlanId"] = val + } if val, ok := getCatalogProductPricingOptionGetPriceTypeAttributeTypeOk(o.PriceType); ok { toSerialize["PriceType"] = val } diff --git a/services/stackitmarketplace/model_subscription_product.go b/services/stackitmarketplace/model_subscription_product.go index f8335875d..09983caf2 100644 --- a/services/stackitmarketplace/model_subscription_product.go +++ b/services/stackitmarketplace/model_subscription_product.go @@ -77,6 +77,27 @@ func setSubscriptionProductGetLifecycleStateAttributeType(arg *SubscriptionProdu *arg = &val } +/* + types and functions for planId +*/ + +// isNotNullableString +type SubscriptionProductGetPlanIdAttributeType = *string + +func getSubscriptionProductGetPlanIdAttributeTypeOk(arg SubscriptionProductGetPlanIdAttributeType) (ret SubscriptionProductGetPlanIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSubscriptionProductGetPlanIdAttributeType(arg *SubscriptionProductGetPlanIdAttributeType, val SubscriptionProductGetPlanIdRetType) { + *arg = &val +} + +type SubscriptionProductGetPlanIdArgType = string +type SubscriptionProductGetPlanIdRetType = string + /* types and functions for priceType */ @@ -251,6 +272,9 @@ type SubscriptionProduct struct { DeliveryMethod SubscriptionProductGetDeliveryMethodAttributeType `json:"deliveryMethod" required:"true"` // REQUIRED LifecycleState SubscriptionProductGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` + // The user-readable plan ID of a pricing option. + // REQUIRED + PlanId SubscriptionProductGetPlanIdAttributeType `json:"planId" required:"true"` // REQUIRED PriceType SubscriptionProductGetPriceTypeAttributeType `json:"priceType" required:"true"` // Additional price type information. @@ -280,10 +304,11 @@ type _SubscriptionProduct SubscriptionProduct // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSubscriptionProduct(deliveryMethod SubscriptionProductGetDeliveryMethodArgType, lifecycleState SubscriptionProductGetLifecycleStateArgType, priceType SubscriptionProductGetPriceTypeArgType, pricingPlan SubscriptionProductGetPricingPlanArgType, productId SubscriptionProductGetProductIdArgType, productName SubscriptionProductGetProductNameArgType, vendorName SubscriptionProductGetVendorNameArgType, vendorWebsiteUrl SubscriptionProductGetVendorWebsiteUrlArgType) *SubscriptionProduct { +func NewSubscriptionProduct(deliveryMethod SubscriptionProductGetDeliveryMethodArgType, lifecycleState SubscriptionProductGetLifecycleStateArgType, planId SubscriptionProductGetPlanIdArgType, priceType SubscriptionProductGetPriceTypeArgType, pricingPlan SubscriptionProductGetPricingPlanArgType, productId SubscriptionProductGetProductIdArgType, productName SubscriptionProductGetProductNameArgType, vendorName SubscriptionProductGetVendorNameArgType, vendorWebsiteUrl SubscriptionProductGetVendorWebsiteUrlArgType) *SubscriptionProduct { this := SubscriptionProduct{} setSubscriptionProductGetDeliveryMethodAttributeType(&this.DeliveryMethod, deliveryMethod) setSubscriptionProductGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState) + setSubscriptionProductGetPlanIdAttributeType(&this.PlanId, planId) setSubscriptionProductGetPriceTypeAttributeType(&this.PriceType, priceType) setSubscriptionProductGetPricingPlanAttributeType(&this.PricingPlan, pricingPlan) setSubscriptionProductGetProductIdAttributeType(&this.ProductId, productId) @@ -358,6 +383,23 @@ func (o *SubscriptionProduct) SetLifecycleState(v SubscriptionProductGetLifecycl setSubscriptionProductGetLifecycleStateAttributeType(&o.LifecycleState, v) } +// GetPlanId returns the PlanId field value +func (o *SubscriptionProduct) GetPlanId() (ret SubscriptionProductGetPlanIdRetType) { + ret, _ = o.GetPlanIdOk() + return ret +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *SubscriptionProduct) GetPlanIdOk() (ret SubscriptionProductGetPlanIdRetType, ok bool) { + return getSubscriptionProductGetPlanIdAttributeTypeOk(o.PlanId) +} + +// SetPlanId sets field value +func (o *SubscriptionProduct) SetPlanId(v SubscriptionProductGetPlanIdRetType) { + setSubscriptionProductGetPlanIdAttributeType(&o.PlanId, v) +} + // GetPriceType returns the PriceType field value func (o *SubscriptionProduct) GetPriceType() (ret SubscriptionProductGetPriceTypeRetType) { ret, _ = o.GetPriceTypeOk() @@ -517,6 +559,9 @@ func (o SubscriptionProduct) ToMap() (map[string]interface{}, error) { if val, ok := getSubscriptionProductGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok { toSerialize["LifecycleState"] = val } + if val, ok := getSubscriptionProductGetPlanIdAttributeTypeOk(o.PlanId); ok { + toSerialize["PlanId"] = val + } if val, ok := getSubscriptionProductGetPriceTypeAttributeTypeOk(o.PriceType); ok { toSerialize["PriceType"] = val } From 7a38d1029f0266d925ebe600403397335a9aa62e Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Fri, 12 Sep 2025 07:50:15 +0200 Subject: [PATCH 2/2] Add changelog Signed-off-by: Alexander Dahmen --- CHANGELOG.md | 3 +++ services/stackitmarketplace/CHANGELOG.md | 3 +++ services/stackitmarketplace/VERSION | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc35a0306..ecf773226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ ## Release (2025-MM-DD) - `iaas`: [v0.30.0](services/iaas/CHANGELOG.md#v0300) - **Feature:** Add waiter to wait until the preconditions for network area deletion are met: `ReadyForNetworkAreaDeletionWaitHandler` +- `stackitmarketplace`: [v1.10.0](services/stackitmarketplace/CHANGELOG.md#v1100) + - **Feature:** Added `PlanId` to `CatalogProductPricingOption`and `SubscriptionProduct` + ## Release (2025-09-11) diff --git a/services/stackitmarketplace/CHANGELOG.md b/services/stackitmarketplace/CHANGELOG.md index 57b1112f0..2cb02bc49 100644 --- a/services/stackitmarketplace/CHANGELOG.md +++ b/services/stackitmarketplace/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.10.0 +- **Feature:** Added `PlanId` to `CatalogProductPricingOption`and `SubscriptionProduct` + ## v1.9.0 - **Feature:** Added `RequestPrivatePlan` to `InquiriesCreateInquiryPayload` diff --git a/services/stackitmarketplace/VERSION b/services/stackitmarketplace/VERSION index e2f650c40..e1e35526c 100644 --- a/services/stackitmarketplace/VERSION +++ b/services/stackitmarketplace/VERSION @@ -1 +1 @@ -v1.9.0 \ No newline at end of file +v1.10.0 \ No newline at end of file