You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.json
+57-29Lines changed: 57 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -19874,21 +19874,27 @@
19874
19874
}
19875
19875
]
19876
19876
},
19877
-
"monthly_credits_remaining": {
19878
-
"title": "double",
19879
-
"description": "The monthy credits remaining in the balance. This gets re-upped every month, but if the credits are not used for a month they do not carry over to the next month. It is a stable amount granted to the customer per month.",
19880
-
"type": "number",
19881
-
"format": "money-usd"
19877
+
"monthly_api_credits_remaining": {
19878
+
"description": "The number of monthly API credits remaining in the balance. This is the number of credits remaining in the balance.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
19879
+
"type": "integer",
19880
+
"format": "uint64",
19881
+
"minimum": 0
19882
19882
},
19883
-
"pre_pay_cash_remaining": {
19883
+
"monthly_api_credits_remaining_monetary_value": {
19884
19884
"title": "double",
19885
-
"description": "The amount of pre-pay cash remaining in the balance. This number goes down as the customer uses their pre-paid credits. The reason we track this amount is if a customer ever wants to withdraw their pre-pay cash, we can use this amount to determine how much to give them. Say a customer has $100 in pre-paid cash, their bill is worth, $50 after subtracting any other credits (like monthly etc.) Their bill is $50, their pre-pay cash remaining will be subtracted by 50 to pay the bill and their `pre_pay_credits_remaining` will be subtracted by 50 to pay the bill. This way if they want to withdraw money after, they can only withdraw $50 since that is the amount of cash they have remaining.",
19885
+
"description": "The monetary value of the monthy API credits remaining in the balance. This gets re-upped every month, but if the credits are not used for a month they do not carry over to the next month.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
19886
19886
"type": "number",
19887
19887
"format": "money-usd"
19888
19888
},
19889
-
"pre_pay_credits_remaining": {
19889
+
"stable_api_credits_remaining": {
19890
+
"description": "The number of stable API credits remaining in the balance. These do not get reset or re-upped every month. This is separate from the monthly credits. Credits will first pull from the monthly credits, then the stable credits. Stable just means that they do not get reset every month. A user will have stable credits if a Zoo employee granted them credits.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
19891
+
"type": "integer",
19892
+
"format": "uint64",
19893
+
"minimum": 0
19894
+
},
19895
+
"stable_api_credits_remaining_monetary_value": {
19890
19896
"title": "double",
19891
-
"description": "The amount of credits remaining in the balance. This is typically the amount of cash * some multiplier they get for pre-paying their account. This number lowers every time a bill is paid with the balance. This number increases every time a customer adds funds to their balance. This may be through a subscription or a one off payment.",
19897
+
"description": "The monetary value of stable API credits remaining in the balance. These do not get reset or re-upped every month. This is separate from the monthly credits. Credits will first pull from the monthly credits, then the stable credits. Stable just means that they do not get reset every month. A user will have stable credits if a Zoo employee granted them credits.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
19892
19898
"type": "number",
19893
19899
"format": "money-usd"
19894
19900
},
@@ -19923,9 +19929,10 @@
19923
19929
"created_at",
19924
19930
"id",
19925
19931
"map_id",
19926
-
"monthly_credits_remaining",
19927
-
"pre_pay_cash_remaining",
19928
-
"pre_pay_credits_remaining",
19932
+
"monthly_api_credits_remaining",
19933
+
"monthly_api_credits_remaining_monetary_value",
19934
+
"stable_api_credits_remaining",
19935
+
"stable_api_credits_remaining_monetary_value",
19929
19936
"total_due",
19930
19937
"updated_at"
19931
19938
]
@@ -23745,6 +23752,19 @@
23745
23752
"minItems": 0,
23746
23753
"maxItems": 15
23747
23754
},
23755
+
"monthly_pay_as_you_go_api_credits": {
23756
+
"description": "The amount of pay-as-you-go API credits the individual or org gets outside the modeling app per month. This re-ups on the 1st of each month. This is equivalent to the monetary value divided by the price of an API credit.",
"description": "The monetary value of pay-as-you-go API credits the individual or org gets outside the modeling app per month. This re-ups on the 1st of each month.",
23765
+
"type": "number",
23766
+
"format": "money-usd"
23767
+
},
23748
23768
"name": {
23749
23769
"description": "The name of the tier.",
23750
23770
"allOf": [
@@ -23753,9 +23773,10 @@
23753
23773
}
23754
23774
]
23755
23775
},
23756
-
"pay_as_you_go_credits": {
23776
+
"pay_as_you_go_api_credit_price": {
23757
23777
"title": "double",
23758
-
"description": "The amount of pay-as-you-go credits the individual or org gets outside the modeling app.",
23778
+
"description": "The price of an API credit (meaning 1 credit = 1 minute of API usage).",
"description": "The data for updating a balance.",
35763
35784
"type": "object",
35764
35785
"properties": {
35765
-
"monthly_credits_remaining": {
35766
-
"nullable": true,
35767
-
"title": "double",
35768
-
"description": "The monthy credits remaining in the balance. This gets re-upped every month, but if the credits are not used for a month they do not carry over to the next month. It is a stable amount granted to the user per month.",
35769
-
"type": "number",
35770
-
"format": "money-usd"
35771
-
},
35772
-
"pre_pay_cash_remaining": {
35786
+
"monthly_api_credits_remaining_monetary_value": {
35773
35787
"nullable": true,
35774
35788
"title": "double",
35775
-
"description": "The amount of pre-pay cash remaining in the balance. This number goes down as the user uses their pre-paid credits. The reason we track this amount is if a user ever wants to withdraw their pre-pay cash, we can use this amount to determine how much to give them. Say a user has $100 in pre-paid cash, their bill is worth, $50 after subtracting any other credits (like monthly etc.) Their bill is $50, their pre-pay cash remaining will be subtracted by 50 to pay the bill and their `pre_pay_credits_remaining` will be subtracted by 50 to pay the bill. This way if they want to withdraw money after, they can only withdraw $50 since that is the amount of cash they have remaining.",
35789
+
"description": "The monetary value of the monthy API credits remaining in the balance. This gets re-upped every month,",
35776
35790
"type": "number",
35777
35791
"format": "money-usd"
35778
35792
},
35779
-
"pre_pay_credits_remaining": {
35793
+
"stable_api_credits_remaining_monetary_value": {
35780
35794
"nullable": true,
35781
35795
"title": "double",
35782
-
"description": "The amount of credits remaining in the balance. This is typically the amount of cash * some multiplier they get for pre-paying their account. This number lowers every time a bill is paid with the balance. This number increases every time a user adds funds to their balance. This may be through a subscription or a one off payment.",
35796
+
"description": "The monetary value of stable API credits remaining in the balance. These do not get reset or re-upped every month. This is separate from the monthly credits. Credits will first pull from the monthly credits, then the stable credits. Stable just means that they do not get reset every month. A user will have stable credits if a Zoo employee granted them credits.",
35783
35797
"type": "number",
35784
35798
"format": "money-usd"
35785
35799
}
@@ -36444,6 +36458,19 @@
36444
36458
"minItems": 0,
36445
36459
"maxItems": 15
36446
36460
},
36461
+
"monthly_pay_as_you_go_api_credits": {
36462
+
"description": "The amount of pay-as-you-go API credits the individual or org gets outside the modeling app per month. This re-ups on the 1st of each month. This is equivalent to the monetary value divided by the price of an API credit.",
"description": "The monetary value of pay-as-you-go API credits the individual or org gets outside the modeling app per month. This re-ups on the 1st of each month.",
36471
+
"type": "number",
36472
+
"format": "money-usd"
36473
+
},
36447
36474
"name": {
36448
36475
"description": "The name of the tier.",
36449
36476
"allOf": [
@@ -36452,9 +36479,10 @@
36452
36479
}
36453
36480
]
36454
36481
},
36455
-
"pay_as_you_go_credits": {
36482
+
"pay_as_you_go_api_credit_price": {
36456
36483
"title": "double",
36457
-
"description": "The amount of pay-as-you-go credits the individual or org gets outside the modeling app.",
36484
+
"description": "The price of an API credit (meaning 1 credit = 1 minute of API usage).",
0 commit comments