Skip to content

Commit 3cd60d3

Browse files
Add lookup_key to price creation request
1 parent 62b374a commit 3cd60d3

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

lib/messages.g.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/messages/requests/create_price.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ class CreatePriceRequest {
1616
/// Whether the price can be used for new purchases. Defaults to true.
1717
final bool? active;
1818

19+
/// A lookup key used to retrieve prices dynamically from a static string.
20+
/// This may be up to 200 characters.
21+
final String? lookupKey;
22+
1923
/// Set of key-value pairs that you can attach to an object.
2024
final Map<String, dynamic>? metadata;
2125

@@ -33,6 +37,7 @@ class CreatePriceRequest {
3337
this.product,
3438
this.unitAmount,
3539
this.active,
40+
this.lookupKey,
3641
this.metadata,
3742
this.nickname,
3843
this.recurring,
@@ -111,6 +116,7 @@ class Recurring {
111116

112117
factory Recurring.fromJson(Map<String, dynamic> json) =>
113118
_$RecurringFromJson(json);
119+
114120
Map<String, dynamic> toJson() => _$RecurringToJson(this);
115121
}
116122

@@ -166,5 +172,6 @@ class PriceParameters {
166172

167173
factory PriceParameters.fromJson(Map<String, dynamic> json) =>
168174
_$PriceParametersFromJson(json);
175+
169176
Map<String, dynamic> toJson() => _$PriceParametersToJson(this);
170177
}

0 commit comments

Comments
 (0)