Skip to content

Commit

Permalink
add a comment for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-c4t committed Oct 10, 2024
1 parent 4971984 commit 4dbd259
Show file tree
Hide file tree
Showing 29 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions proto/cmp/services/accommodation/v1/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ message AccommodationProductInfoRequest {
cmp.types.v1.RequestHeader header = 1;

// Only respond with the products that are modified after this timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;

// Languages
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/accommodation/v1/list.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ message AccommodationProductListRequest {
cmp.types.v1.RequestHeader header = 1;

// Only respond with the products that are modified after this timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;
}

Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/accommodation/v1/property_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import "google/protobuf/timestamp.proto";
message Property {
// Ex: "2023-08-28T12:03:50", specifying when the static data of a product was
// last updated
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_modified = 1;

// Supplier product Code
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/accommodation/v2/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ message AccommodationProductInfoRequest {
cmp.types.v1.RequestHeader header = 1;

// Only respond with the products that are modified after this timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;

// Languages
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/accommodation/v2/list.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ message AccommodationProductListRequest {
cmp.types.v1.RequestHeader header = 1;

// Only respond with the products that are modified after this timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;
}

Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/accommodation/v2/property_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import "google/protobuf/timestamp.proto";
message Property {
// Ex: "2023-08-28T12:03:50", specifying when the static data of a product was
// last updated
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_modified = 1;

// Supplier product Code
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/activity/v1/activity_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ message Activity {

// Ex: "2023-08-28T12:03:50", specifying when the static data of a product was
// last updated
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_modified = 2;

// An identifier for external sessions, aiding in tracking and continuity across
Expand Down Expand Up @@ -90,6 +91,7 @@ message PickupDropoffEvent {
string other_info = 4;

// Datetime of the pickup dropoff event as Unix timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp date_time = 5;

// Longitude and Latitude of the location
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/activity/v1/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ message ActivityProductInfoRequest {

// Only respond with the products that are new, modified or deactivated after this
// timestamp.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;

// Languages to be included in the response for descriptions. Null means all
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/activity/v1/list.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ message ActivityProductListRequest {
cmp.types.v1.RequestHeader header = 1;

// Only respond with the products that are modified after this timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;
}

Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/activity/v2/activity_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ message Activity {

// Ex: "2023-08-28T12:03:50", specifying when the static data of a product was
// last updated
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_modified = 2;

// An identifier for external sessions, aiding in tracking and continuity across
Expand Down Expand Up @@ -90,6 +91,7 @@ message PickupDropoffEvent {
string other_info = 4;

// Datetime of the pickup dropoff event as Unix timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp date_time = 5;

// Longitude and Latitude of the location
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/activity/v2/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ message ActivityProductInfoRequest {

// Only respond with the products that are new, modified or deactivated after this
// timestamp.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;

// Languages to be included in the response for descriptions. Null means all
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/activity/v2/list.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ message ActivityProductListRequest {
cmp.types.v1.RequestHeader header = 1;

// Only respond with the products that are modified after this timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;
}

Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/book/v1/mint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ message MintResponse {
string provider_booking_reference = 4;

// Timestamp of the booking in the inventory system of the supplier.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp provider_booking_timestamp = 5;

// Price of the `BookingToken`. This field is meant to be populated by the
Expand All @@ -73,6 +74,7 @@ message MintResponse {

// On chain booking token should be only buyable until this timestamp and should
// expire after that.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp buyable_until = 9;

// Transaction ID of the buy operation. This field is populated by the distributor
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/book/v2/mint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ message MintResponse {
string provider_booking_reference = 4;

// Timestamp of the booking in the inventory system of the supplier.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp provider_booking_timestamp = 5;

// Price of the `BookingToken`. This field is meant to be populated by the
Expand All @@ -78,6 +79,7 @@ message MintResponse {

// On chain booking token should be only buyable until this timestamp and should
// expire after that.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp buyable_until = 10;

// Transaction ID of the buy operation. This field is populated by the distributor
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/info/v1/entry_requirements.proto
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ message CountryEntryRequirementItem {
cmp.services.info.v1.ItemStatus status = 3;

// Significant update date
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_significant_update = 4;
}

Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/info/v2/entry_requirements.proto
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ message CountryEntryRequirementItem {
cmp.services.info.v2.ItemStatus status = 3;

// Significant update date
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_significant_update = 4;
}

Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/insurance/v1/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ message InsuranceProductInfoRequest {

// Only respond with the products that are new, modified or deactivated after this
// timestamp.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;

// Languages to be included in the response for descriptions. Null means all
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/insurance/v1/insurance_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ message Policy {

// Ex: "2023-08-28T12:03:50", specifying when the static data of a product was
// last updated
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_modified = 3;
}

Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/insurance/v1/list.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ message InsuranceProductListRequest {
cmp.types.v1.RequestHeader header = 1;

// Only respond with the products that are modified after this timestamp
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp modified_after = 2;
}

Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/services/ping/v1/ping.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ message PingRequest {
string ping_message = 2;

// DateTime of the ping request
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp timestamp = 3;
}

Expand All @@ -28,6 +29,7 @@ message PingResponse {
string ping_message = 2;

// DateTime of the ping response
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp timestamp = 3;
}

Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/transport/v1/trip_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ message Trip {
// Represents a departure or arrival event
message TransitEvent {
// Date time of the event
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp date_time = 1;

// Event location
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/services/transport/v2/trip_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ message Trip {
// Represents a departure or arrival event
message TransitEvent {
// Date time of the event
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp date_time = 1;

// Event location
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/types/v1/cancel_policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ message CancelPolicy {

// The "free cancellation upto" identifier specifies the exact DateTime upto when
// this booking can be cancelled free of charge.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp free_cancellation_upto = 2;

// Full cancellation policies can be complex and extensive. Inclusion in search
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/types/v1/change_policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ message ChangePolicy {

// The "free change upto" identifier specifies the exact DateTime upto when
// this search result can be changed free of charge.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp free_change_upto = 2;

// Full change policies can be complex and extensive. Inclusion in search
Expand Down
2 changes: 2 additions & 0 deletions proto/cmp/types/v1/datetime_range.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import "google/protobuf/timestamp.proto";
//
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1/datetime_range.proto.dot.svg)
message DateTimeRange {
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp start_datetime = 1;
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp end_datetime = 2;
}
1 change: 1 addition & 0 deletions proto/cmp/types/v1/file.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ message File {
string url = 2;

// Last modification time
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_modified = 3;
}

Expand Down
1 change: 1 addition & 0 deletions proto/cmp/types/v2/cancel_policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ message CancelPolicy {

// The "free cancellation upto" identifier specifies the exact DateTime upto when
// this booking can be cancelled free of charge.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp free_cancellation_upto = 2;

// Full cancellation policies can be complex and extensive. Inclusion in search
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/types/v2/change_policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ message ChangePolicy {

// The "free change upto" identifier specifies the exact DateTime upto when
// this search result can be changed free of charge.
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp free_change_upto = 2;

// Full change policies can be complex and extensive. Inclusion in search
Expand Down
1 change: 1 addition & 0 deletions proto/cmp/types/v2/file.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ message File {
string url = 2;

// Last modification time
// For any on-chain transactions, if applicable, nanoseconds will be ignored
google.protobuf.Timestamp last_modified = 3;
}

Expand Down

0 comments on commit 4dbd259

Please sign in to comment.