Skip to content

Commit

Permalink
Merge pull request #2402 from stripe/latest-codegen
Browse files Browse the repository at this point in the history
API Updates
  • Loading branch information
yejia-stripe authored Dec 9, 2021
2 parents 80044c1 + 061ae4a commit 747c681
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
namespace Stripe.BillingPortal
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;

/// <summary>
/// A portal configuration describes the functionality and behavior of a portal session.
/// </summary>
public class Configuration : StripeEntity<Configuration>, IHasId, IHasObject
public class Configuration : StripeEntity<Configuration>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
Expand Down Expand Up @@ -71,6 +72,14 @@ public class Configuration : StripeEntity<Configuration>, IHasId, IHasObject
[JsonProperty("livemode")]
public bool Livemode { get; set; }

/// <summary>
/// Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can
/// attach to an object. This can be useful for storing additional information about the
/// object in a structured format.
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// Time at which the object was last updated. Measured in seconds since the Unix epoch.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// File generated from our OpenAPI spec
namespace Stripe.BillingPortal
{
using System.Collections.Generic;
using Newtonsoft.Json;

public class ConfigurationCreateOptions : BaseOptions
public class ConfigurationCreateOptions : BaseOptions, IHasMetadata
{
/// <summary>
/// The business information shown to customers in the portal.
Expand All @@ -25,5 +26,14 @@ public class ConfigurationCreateOptions : BaseOptions
/// </summary>
[JsonProperty("features")]
public ConfigurationFeaturesOptions Features { get; set; }

/// <summary>
/// Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can
/// attach to an object. This can be useful for storing additional information about the
/// object in a structured format. Individual keys can be unset by posting an empty value to
/// them. All keys can be unset by posting an empty value to <c>metadata</c>.
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// File generated from our OpenAPI spec
namespace Stripe.BillingPortal
{
using System.Collections.Generic;
using Newtonsoft.Json;

public class ConfigurationUpdateOptions : BaseOptions
public class ConfigurationUpdateOptions : BaseOptions, IHasMetadata
{
/// <summary>
/// Whether the configuration is active and can be used to create portal sessions.
Expand Down Expand Up @@ -31,5 +32,14 @@ public class ConfigurationUpdateOptions : BaseOptions
/// </summary>
[JsonProperty("features")]
public ConfigurationFeaturesOptions Features { get; set; }

/// <summary>
/// Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can
/// attach to an object. This can be useful for storing additional information about the
/// object in a structured format. Individual keys can be unset by posting an empty value to
/// them. All keys can be unset by posting an empty value to <c>metadata</c>.
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }
}
}

0 comments on commit 747c681

Please sign in to comment.