Skip to content

Commit 27d4e04

Browse files
committed
DEL: Remove bill_id from client libraries
1 parent bcb1480 commit 27d4e04

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.42.0 - TBD
4+
5+
### Breaking changes
6+
- Removed `bill_id` field from `BatchJob` struct
7+
38
## 0.41.0 - 2025-08-12
49

510
### Enhancements

include/databento/batch.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ namespace databento {
1212
struct BatchJob {
1313
std::string id;
1414
std::string user_id;
15-
std::string bill_id;
1615
// Cost in US dollars
1716
double cost_usd;
1817
std::string dataset;

src/batch.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ std::ostream& operator<<(std::ostream& stream, const BatchJob& batch_job) {
1919
.Build()
2020
.AddField("id", batch_job.id)
2121
.AddField("user_id", batch_job.user_id)
22-
.AddField("bill_id", batch_job.bill_id)
2322
.AddField("cost_usd", batch_job.cost_usd)
2423
.AddField("dataset", batch_job.dataset)
2524
.AddField("symbols", static_cast<std::ostringstream&>(symbol_helper.Finish()))

src/historical.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ databento::BatchJob Parse(const std::string& endpoint, const nlohmann::json& jso
7272
databento::BatchJob res;
7373
res.id = CheckedAt(endpoint, json, "id");
7474
res.user_id = ParseAt<std::string>(endpoint, json, "user_id");
75-
res.bill_id = ParseAt<std::string>(endpoint, json, "bill_id");
7675
res.cost_usd = ParseAt<double>(endpoint, json, "cost_usd");
7776
res.dataset = ParseAt<std::string>(endpoint, json, "dataset");
7877
res.symbols = ParseAt<std::vector<std::string>>(endpoint, json, "symbols");

tests/src/batch_tests.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace databento::tests {
88
TEST(BatchTests, TestBatchJobToString) {
99
const BatchJob target{"aNiD",
1010
"USER",
11-
"57db",
1211
12.39,
1312
dataset::kXnasItch,
1413
{"CL.FUT"},
@@ -41,7 +40,6 @@ TEST(BatchTests, TestBatchJobToString) {
4140
ASSERT_EQ(res, R"(BatchJob {
4241
id = "aNiD",
4342
user_id = "USER",
44-
bill_id = "57db",
4543
cost_usd = 12.39,
4644
dataset = "XNAS.ITCH",
4745
symbols = { "CL.FUT" },

tests/src/historical_tests.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class HistoricalTests : public ::testing::Test {
6363
TEST_F(HistoricalTests, TestBatchSubmitJob) {
6464
const nlohmann::json kResp{
6565
{"actual_size", 2022690},
66-
{"bill_id", "73186317471eb623d161a1"},
6766
{"billed_size", 5156064},
6867
{"compression", nullptr},
6968
{"cost_usd", 0.119089},
@@ -125,7 +124,6 @@ TEST_F(HistoricalTests, TestBatchSubmitJob) {
125124

126125
TEST_F(HistoricalTests, TestBatchListJobs) {
127126
const nlohmann::json kResp{{{"actual_size", 2022690},
128-
{"bill_id", "a670"},
129127
{"billed_size", 5156064},
130128
{"compression", "zstd"},
131129
{"cost_usd", 0.119089},
@@ -158,7 +156,6 @@ TEST_F(HistoricalTests, TestBatchListJobs) {
158156
{"ts_received", "2022-10-31 15:26:58.112496+00:00"},
159157
{"user_id", "A_USER"}},
160158
{{"actual_size", 2022690},
161-
{"bill_id", "a1b7"},
162159
{"billed_size", 5156064},
163160
{"compression", "zstd"},
164161
{"cost_usd", 0.119089},

0 commit comments

Comments
 (0)