-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ public class Grants { | |
private String object; | ||
@JsonProperty("data") | ||
private List<Datum> data; | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/plexpt/chatgpt/entity/billing/SubscriptionData.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,18 @@ | ||
package com.plexpt.chatgpt.entity.billing; | ||
|
||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.math.BigDecimal; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class SubscriptionData { | ||
|
||
/** | ||
* 赠送金额:美元 | ||
*/ | ||
@JsonProperty("hard_limit_usd") | ||
private BigDecimal hardLimitUsd; | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/plexpt/chatgpt/entity/billing/UseageResponse.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,23 @@ | ||
package com.plexpt.chatgpt.entity.billing; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.math.BigDecimal; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* 余额查询接口返回值 | ||
* | ||
* @author plexpt | ||
*/ | ||
@Data | ||
public class UseageResponse { | ||
|
||
/** | ||
* 总使用金额:美元 | ||
*/ | ||
@JsonProperty("total_usage") | ||
private BigDecimal totalUsage; | ||
|
||
} |