|
1 | 1 | // Copyright 2025 Google LLC |
2 | 2 |
|
3 | | -// Copied from Firebase Analytics iOS SDK 12.4.0. |
| 3 | +// Copied from Firebase Analytics iOS SDK 12.6.0. |
4 | 4 |
|
5 | 5 | /// @file FIRParameterNames.h |
6 | 6 | /// |
@@ -248,6 +248,17 @@ static NSString *const kFIRParameterExtendSession NS_SWIFT_NAME(AnalyticsParamet |
248 | 248 | static NSString *const kFIRParameterFlightNumber NS_SWIFT_NAME(AnalyticsParameterFlightNumber) = |
249 | 249 | @"flight_number"; |
250 | 250 |
|
| 251 | +/// Indicates if the user is on a free trial of a subscription. Specify 1 to indicate true and 0 to |
| 252 | +/// indicate false (Int). |
| 253 | +/// <pre> |
| 254 | +/// let params = [ |
| 255 | +/// AnalyticsParameterFreeTrial : 1, |
| 256 | +/// // ... |
| 257 | +/// ] |
| 258 | +/// </pre> |
| 259 | +static NSString *const kFIRParameterFreeTrial NS_SWIFT_NAME(AnalyticsParameterFreeTrial) = |
| 260 | + @"free_trial"; |
| 261 | + |
251 | 262 | /// Group/clan/guild ID (String). |
252 | 263 | /// <pre> |
253 | 264 | /// let params = [ |
@@ -519,6 +530,37 @@ static NSString *const kFIRParameterPaymentType NS_SWIFT_NAME(AnalyticsParameter |
519 | 530 | /// </pre> |
520 | 531 | static NSString *const kFIRParameterPrice NS_SWIFT_NAME(AnalyticsParameterPrice) = @"price"; |
521 | 532 |
|
| 533 | +/// Indicates if an item's price is discounted. Specify 1 to indicate true and 0 to indicate false |
| 534 | +/// (Int). |
| 535 | +/// <pre> |
| 536 | +/// let params = [ |
| 537 | +/// AnalyticsParameterPriceIsDiscounted : 1, |
| 538 | +/// // ... |
| 539 | +/// ] |
| 540 | +/// </pre> |
| 541 | +static NSString *const kFIRParameterPriceIsDiscounted |
| 542 | + NS_SWIFT_NAME(AnalyticsParameterPriceIsDiscounted) = @"price_is_discounted"; |
| 543 | + |
| 544 | +/// The ID of a product (String). |
| 545 | +/// <pre> |
| 546 | +/// let params = [ |
| 547 | +/// AnalyticsParameterProductID : "PROD_12345", |
| 548 | +/// // ... |
| 549 | +/// ] |
| 550 | +/// </pre> |
| 551 | +static NSString *const kFIRParameterProductID NS_SWIFT_NAME(AnalyticsParameterProductID) = |
| 552 | + @"product_id"; |
| 553 | + |
| 554 | +/// The name of a product (String). |
| 555 | +/// <pre> |
| 556 | +/// let params = [ |
| 557 | +/// AnalyticsParameterProductName : "My Awesome Product", |
| 558 | +/// // ... |
| 559 | +/// ] |
| 560 | +/// </pre> |
| 561 | +static NSString *const kFIRParameterProductName NS_SWIFT_NAME(AnalyticsParameterProductName) = |
| 562 | + @"product_name"; |
| 563 | + |
522 | 564 | /// The ID of a product promotion (String). |
523 | 565 | /// <pre> |
524 | 566 | /// let params = [ |
@@ -646,6 +688,17 @@ static NSString *const kFIRParameterSourcePlatform NS_SWIFT_NAME(AnalyticsParame |
646 | 688 | static NSString *const kFIRParameterStartDate NS_SWIFT_NAME(AnalyticsParameterStartDate) = |
647 | 689 | @"start_date"; |
648 | 690 |
|
| 691 | +/// Indicates if the purchase is a subscription. Specify 1 to indicate true and 0 to indicate false |
| 692 | +/// (Int). |
| 693 | +/// <pre> |
| 694 | +/// let params = [ |
| 695 | +/// AnalyticsParameterSubscription : 1, |
| 696 | +/// // ... |
| 697 | +/// ] |
| 698 | +/// </pre> |
| 699 | +static NSString *const kFIRParameterSubscription NS_SWIFT_NAME(AnalyticsParameterSubscription) = |
| 700 | + @"subscription"; |
| 701 | + |
649 | 702 | /// The result of an operation. Specify 1 to indicate success and 0 to indicate failure (Int). |
650 | 703 | /// <pre> |
651 | 704 | /// let params = [ |
|
0 commit comments