Method: offerclass.patch
อัปเดตประเภทข้อเสนอที่อ้างอิงโดยรหัสชั้นเรียนที่ระบุ วิธีนี้รองรับความหมายของแพตช์
คำขอ HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกชั้นเรียนจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifier โดยที่รหัสแรกจะออกโดย Google และรหัสหลังจะเลือกโดยคุณ ตัวระบุที่ไม่ซ้ำกันควรมีเฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, ".", "_" หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ OfferClass
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ OfferClass
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-07 UTC
[null,null,["อัปเดตล่าสุด 2024-11-07 UTC"],[[["Updates an existing offer class using patch semantics, allowing for partial modifications."],["The offer class is uniquely identified by a resource ID in the format `issuer ID.identifier`."],["The request body should contain the updated offer class details in the OfferClass format."],["Successful responses will return the updated OfferClass object."],["Requires the `wallet_object.issuer` OAuth scope for authorization."]]],["The core content describes how to update an offer class using a PATCH request. The HTTP request uses the URL `PATCH https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}`, where `resourceId` is a unique string identifier. The request body contains an `OfferClass` instance, and a successful response returns an updated `OfferClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `resourceId` parameter is unique across classes and follow the formating of `issuerID.identifier`.\n"]]