সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই পদ্ধতিটি প্রদত্ত বুকিং আইডির উপর ভিত্তি করে ব্যবহারকারীর জন্য একটি বুকিং স্ট্যাটাস প্রদান করে।
অনুরোধ
GetBooking StatusRequest
রিটার্ন মান
GetBookingStatusResponse
// Request to get booking status and prepayment status for a Booking.
message GetBookingStatusRequest {
// ID of the existing booking (required)
string booking_id = 1;
}
// Response for the GetBookingStatus RPC with booking status and prepayment
// status.
message GetBookingStatusResponse {
// ID of the booking (required)
string booking_id = 1;
// Status of the booking (required)
BookingStatus booking_status = 2;
// Prepayment status of the booking (required)
PrepaymentStatus prepayment_status = 3;
}
// Prepayment status of a booking.
// Updating payment status will trigger an update on the payment status of the
// associated booking (if applicable).
// Currently, the only supported transition is from PREPAYMENT_PROVIDED to
// PREPAYMENT_REFUNDED, which will initiate a non-reversible refund on the
// associated payment transaction.
enum PrepaymentStatus {
// Not specified, defaults to PREPAYMENT_NOT_PROVIDED.
PREPAYMENT_STATUS_UNSPECIFIED = 0;
// The fee for the booking has been paid in advance.
PREPAYMENT_PROVIDED = 1;
// The fee for the booking has not been paid in advance.
PREPAYMENT_NOT_PROVIDED = 2;
// The fee was previously PREPAYMENT_PROVIDED but has now been refunded.
PREPAYMENT_REFUNDED = 3;
// The fee was previously PREPAYMENT_PROVIDED but now has been credited
// (user given a UserPaymentOption as a voucher for the booking).
// If this is set, the response should also include the updated
// UserPaymentOption.
PREPAYMENT_CREDITED = 4;
}
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-01-05 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This method retrieves the status of a booking using a provided booking ID."],["The request requires a `booking_id` and returns a `booking_status` and a `prepayment_status`."],["`booking_status` details can be found in the provided link."],["`prepayment_status` indicates whether the booking has been prepaid, not prepaid, refunded, or credited."],["The `prepayment_status` can transition from `PREPAYMENT_PROVIDED` to `PREPAYMENT_REFUNDED`, initiating a non-reversible refund."]]],["The `GetBookingStatusRequest` uses a `booking_id` to retrieve a `GetBookingStatusResponse`. The response includes the `booking_id`, `BookingStatus`, and `PrepaymentStatus`. `PrepaymentStatus` options are `PREPAYMENT_PROVIDED`, `PREPAYMENT_NOT_PROVIDED`, `PREPAYMENT_REFUNDED`, or `PREPAYMENT_CREDITED`. Updating prepayment status from `PREPAYMENT_PROVIDED` to `PREPAYMENT_REFUNDED` triggers a refund. `PREPAYMENT_CREDITED` requires an updated UserPaymentOption in the response.\n"]]