Skip to content

Commit

Permalink
Portal Configuration - is_default (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasaron authored Oct 31, 2023
1 parent 0b6d997 commit c03f26b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/resources/stripe_portal_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,5 @@ Attributes exported by this resource include:
* `business_profile` - Map(String). The business information shown to customers in the portal.
* `default_return_url` - String. The default URL to redirect customers to when they click on the portal’s link.
* `features` - Map(String). Information about the features available in the portal.
* `is_default`: Bool. Whether the configuration is the default.
* `metadata` - Map(String). Set of key-value pairs that you can attach to an object.
8 changes: 8 additions & 0 deletions stripe/resource_stripe_portal_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ func resourceStripePortalConfiguration() *schema.Resource {
},
},
},
"is_default": {
Type: schema.TypeBool,
Computed: true,
Description: "Whether the configuration is the default. " +
"If true, this configuration can be managed in the Dashboard and portal sessions will use " +
"this configuration unless it is overriden when creating the session.",
},
"metadata": {
Type: schema.TypeMap,
Optional: true,
Expand Down Expand Up @@ -388,6 +395,7 @@ func resourceStripePortalConfigurationRead(_ context.Context, d *schema.Resource
}
return nil
}()),
d.Set("is_default", portal.IsDefault),
d.Set("metadata", portal.Metadata),
)
}
Expand Down

0 comments on commit c03f26b

Please sign in to comment.