Skip to content

Commit

Permalink
Merge pull request #434 from qonversion/transactionTypeFix
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
suriksarkisyan authored Jan 9, 2024
2 parents 1e8d391 + 982e012 commit 1a5b183
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Qonversion/Public/QONTransaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ typedef NS_ENUM(NSInteger, QONTransactionType) {
QONTransactionTypeUnknown = 0,
QONTransactionTypeSubscriptionStarted = 1,
QONTransactionTypeSubscriptionRenewed = 2,
QONTransactionTypeTrialStrated = 3,
QONTransactionTypeTrialStarted = 3,
QONTransactionTypeIntroStarted = 4,
QONTransactionTypeIntroRenewed = 5,
QONTransactionTypeNonConsumablePurchase = 6
Expand Down
2 changes: 1 addition & 1 deletion Sources/Qonversion/Public/QONTransaction.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ - (NSString *)prettyType {
case QONTransactionTypeSubscriptionRenewed:
result = @"subscription renewed"; break;

case QONTransactionTypeTrialStrated:
case QONTransactionTypeTrialStarted:
result = @"trial started"; break;

case QONTransactionTypeIntroStarted:
Expand Down
2 changes: 1 addition & 1 deletion Sources/Qonversion/Qonversion/Mappers/QNMapper/QNMapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ + (QONTransaction *)mapEntitlementTransaction:(NSDictionary *)rawTransaction {

NSDictionary *transactionTypes = @{@"subscription_started": @(QONTransactionTypeSubscriptionStarted),
@"subscription_renewed": @(QONTransactionTypeSubscriptionRenewed),
@"trial_started": @(QONTransactionTypeTrialStrated),
@"trial_started": @(QONTransactionTypeTrialStarted),
@"intro_started": @(QONTransactionTypeIntroStarted),
@"intro_renewed": @(QONTransactionTypeIntroRenewed),
@"nonconsumable_purchase": @(QONTransactionTypeNonConsumablePurchase)};
Expand Down

0 comments on commit 1a5b183

Please sign in to comment.