diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2b2d3e01c0..e6c86cecd6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v595 \ No newline at end of file +v596 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs index cb582faa94..2e7a2f8376 100644 --- a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs +++ b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs @@ -43,6 +43,9 @@ public class Configuration : StripeEntity, IHasId, IHasObject [JsonProperty("livemode")] public bool Livemode { get; set; } + [JsonProperty("offline")] + public ConfigurationOffline Offline { get; set; } + [JsonProperty("tipping")] public ConfigurationTipping Tipping { get; set; } diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationOffline.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationOffline.cs new file mode 100644 index 0000000000..d8643eada5 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationOffline.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; + + public class ConfigurationOffline : StripeEntity + { + /// + /// Determines whether to allow transactions to be collected while reader is offline. + /// Defaults to false. + /// + [JsonProperty("enabled")] + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs index 6ab557c3c4..7a5d3d1d53 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs @@ -11,6 +11,12 @@ public class ConfigurationCreateOptions : BaseOptions [JsonProperty("bbpos_wisepos_e")] public ConfigurationBbposWiseposEOptions BbposWiseposE { get; set; } + /// + /// Configurations for collecting transactions offline. + /// + [JsonProperty("offline")] + public ConfigurationOfflineOptions Offline { get; set; } + /// /// Tipping configurations for readers supporting on-reader tips. /// diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationOfflineOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationOfflineOptions.cs new file mode 100644 index 0000000000..414a8a666b --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationOfflineOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; + + public class ConfigurationOfflineOptions : INestedOptions + { + /// + /// Determines whether to allow transactions to be collected while reader is offline. + /// Defaults to false. + /// + [JsonProperty("enabled")] + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs index 626a262a91..e17f9aa0cd 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs @@ -11,6 +11,12 @@ public class ConfigurationUpdateOptions : BaseOptions [JsonProperty("bbpos_wisepos_e")] public ConfigurationBbposWiseposEOptions BbposWiseposE { get; set; } + /// + /// Configurations for collecting transactions offline. + /// + [JsonProperty("offline")] + public ConfigurationOfflineOptions Offline { get; set; } + /// /// Tipping configurations for readers supporting on-reader tips. ///