-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Razorpay multiple #248
Closed
Closed
Razorpay multiple #248
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
89 changes: 89 additions & 0 deletions
89
platform/src/main/java/com/flickmatch/platform/dynamodb/model/MonthlyPass.java
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,89 @@ | ||
package com.flickmatch.platform.dynamodb.model; | ||
|
||
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAutoGeneratedKey; | ||
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey; | ||
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable; | ||
import lombok.ToString; | ||
|
||
@DynamoDBTable(tableName = "MonthlyPass") | ||
@ToString | ||
public class MonthlyPass { | ||
private String passId; | ||
private Integer price; | ||
private String location; | ||
private PassType passType; | ||
private Integer durationInDays; | ||
private Integer numberOfGames; | ||
private String validityPeriod; | ||
|
||
public enum PassType { | ||
DAY_PASS, | ||
GAME_PASS; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="passId") | ||
@DynamoDBAutoGeneratedKey() | ||
public String getPassId() { | ||
return passId; | ||
} | ||
|
||
public void setPassId(String passId) { | ||
this.passId = passId; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="price") | ||
public Integer getPrice() { | ||
return price; | ||
} | ||
|
||
public void setPrice(Integer price) { | ||
this.price = price; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="location") | ||
public String getLocation() { | ||
return location; | ||
} | ||
|
||
public void setLocation(String location) { | ||
this.location = location; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="passType") | ||
public PassType getPassType() { | ||
return passType; | ||
} | ||
|
||
public void setPassType(PassType passType) { | ||
this.passType = passType; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="durationInDays") | ||
public Integer getDurationInDays() { | ||
return durationInDays; | ||
} | ||
|
||
public void setDurationInDays(Integer durationInDays) { | ||
this.durationInDays = durationInDays; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="numberOfGames") | ||
public Integer getNumberOfGames() { | ||
return numberOfGames; | ||
} | ||
|
||
public void setNumberOfGames(Integer numberOfGames) { | ||
this.numberOfGames = numberOfGames; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="validityPeriod") | ||
public String getValidityPeriod() { | ||
return validityPeriod; | ||
} | ||
|
||
public void setValidityPeriod(String validityPeriod) { | ||
this.validityPeriod = validityPeriod; | ||
} | ||
|
||
|
||
} |
93 changes: 93 additions & 0 deletions
93
platform/src/main/java/com/flickmatch/platform/dynamodb/model/Subscription.java
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,93 @@ | ||
package com.flickmatch.platform.dynamodb.model; | ||
|
||
import com.amazonaws.services.dynamodbv2.datamodeling.*; | ||
import lombok.ToString; | ||
|
||
import java.time.LocalDate; | ||
|
||
@DynamoDBTable(tableName = "Subscription") | ||
@ToString | ||
public class Subscription { | ||
private String subscriptionId; | ||
private String userId; | ||
private String passId; | ||
private LocalDate startDate; | ||
private LocalDate endDate; | ||
private Integer gamesUsed; | ||
private String status; | ||
private String passType; | ||
|
||
@DynamoDBAttribute(attributeName = "passType") | ||
public String getPassType() { | ||
return passType; | ||
} | ||
|
||
public void setPassType(String passType) { | ||
this.passType = passType; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="subscriptionId") | ||
@DynamoDBAutoGeneratedKey | ||
public String getSubscriptionId() { | ||
return subscriptionId; | ||
} | ||
|
||
public void setSubscriptionId(String subscriptionId) { | ||
this.subscriptionId = subscriptionId; | ||
} | ||
|
||
@DynamoDBIndexHashKey(attributeName="userId", globalSecondaryIndexName="UserIdIndex") | ||
public String getUserId() { | ||
return userId; | ||
} | ||
|
||
public void setUserId(String userId) { | ||
this.userId = userId; | ||
} | ||
|
||
@DynamoDBIndexHashKey(attributeName="passId", globalSecondaryIndexName="PassIdIndex") | ||
public String getPassId() { | ||
return passId; | ||
} | ||
|
||
public void setPassId(String passId) { | ||
this.passId = passId; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="startDate") | ||
public LocalDate getStartDate() { | ||
return startDate; | ||
} | ||
|
||
public void setStartDate(LocalDate startDate) { | ||
this.startDate = startDate; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="endDate") | ||
public LocalDate getEndDate() { | ||
return endDate; | ||
} | ||
|
||
public void setEndDate(LocalDate endDate) { | ||
this.endDate = endDate; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="gamesUsed") | ||
public Integer getGamesUsed() { | ||
return gamesUsed; | ||
} | ||
|
||
public void setGamesUsed(Integer gamesUsed) { | ||
this.gamesUsed = gamesUsed; | ||
} | ||
|
||
@DynamoDBHashKey(attributeName="status") | ||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Log Injection High