Method: giftcardclass.update
Cập nhật lớp thẻ quà tặng được tham chiếu theo mã lớp đã cho.
Yêu cầu HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
resourceId |
string
Giá trị nhận dạng duy nhất của một lớp. Mã này của một nhà phát hành phải là duy nhất trên tất cả các lớp. Giá trị này phải tuân theo định dạng issuer ID.identifier, trong đó mã do Google phát hành và mã sau do bạn chọn. Giá trị nhận dạng duy nhất của bạn chỉ được bao gồm ký tự chữ-số, ".", "_" hoặc "-".
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của GiftCardClass
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của GiftCardClass
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/wallet_object.issuer
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-03-13 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-03-13 UTC."],[[["Updates the gift card class identified by a unique class ID."],["Uses a PUT HTTP request to `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}` to update the class."],["Requires a request body containing an instance of `GiftCardClass` and the class ID as a path parameter."],["On success, returns the updated `GiftCardClass` object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["This describes how to update a gift card class using a PUT request to the specified URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}`. The `resourceId` in the path must be a unique string identifier with the format `\u003cissuer ID\u003e.\u003cidentifier\u003e`. The request body must contain a `GiftCardClass` instance, and upon successful update, the response body will also contain a `GiftCardClass` instance. This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]