-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated entitlements fields * Update plugin/src/plugin/Mapper.ts Co-authored-by: Kamo Spertsyan <spertsiankamo@gmail.com> * Update plugin/src/plugin/Mapper.ts Co-authored-by: Kamo Spertsyan <spertsiankamo@gmail.com> * Updated imports * Update plugin/src/plugin/Qonversion.ts Co-authored-by: Kamo Spertsyan <spertsiankamo@gmail.com> * Updated imports --------- Co-authored-by: Surik <action@github.com> Co-authored-by: Kamo Spertsyan <spertsiankamo@gmail.com>
- Loading branch information
1 parent
b94bf27
commit 4f690db
Showing
8 changed files
with
253 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { | ||
TransactionEnvironment, | ||
TransactionOwnershipType, | ||
TransactionType | ||
} from "./enums"; | ||
|
||
export class Transaction { | ||
originalTransactionId: string; | ||
transactionId: string; | ||
transactionDate: Date; | ||
environment: TransactionEnvironment; | ||
ownershipType: TransactionOwnershipType; | ||
type: TransactionType; | ||
expirationDate?: Date; | ||
transactionRevocationDate?: Date; | ||
offerCode?: string; | ||
|
||
constructor( | ||
originalTransactionId: string, | ||
transactionId: string, | ||
transactionTimestamp: number, | ||
environment: TransactionEnvironment, | ||
ownershipType: TransactionOwnershipType, | ||
type: TransactionType, | ||
expirationTimestamp: number | undefined, | ||
transactionRevocationTimestamp: number | undefined, | ||
offerCode: string | undefined, | ||
) { | ||
this.originalTransactionId = originalTransactionId; | ||
this.transactionId = transactionId; | ||
this.transactionDate = new Date(transactionTimestamp); | ||
this.environment = environment; | ||
this.ownershipType = ownershipType; | ||
this.type = type; | ||
this.expirationDate = expirationTimestamp ? new Date(expirationTimestamp) : undefined; | ||
this.transactionRevocationDate = transactionRevocationTimestamp ? new Date(transactionRevocationTimestamp) : undefined; | ||
this.offerCode = offerCode; | ||
} | ||
} |
Oops, something went wrong.