Method: offerobject.patch
อัปเดตออบเจ็กต์ข้อเสนอที่อ้างอิงโดยรหัสออบเจ็กต์ที่กำหนด วิธีนี้รองรับความหมายของแพตช์
คำขอ HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับออบเจ็กต์ รหัสนี้ต้องไม่ซ้ำกันในออบเจ็กต์ทั้งหมดจากผู้ให้บริการ ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifier โดยที่รหัสแรกจะออกโดย Google และรหัสหลังจะเลือกโดยคุณ ตัวระบุที่ไม่ซ้ำกันควรมีเฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, ".", "_" หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ OfferObject
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ OfferObject
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 object using patch semantics, allowing for partial modifications."],["The request must target a specific offer object using its unique resource ID in the URL path."],["The request body should contain the desired changes to the offer object, adhering to the OfferObject schema."],["Upon successful execution, the response provides the updated OfferObject."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core action is updating an offer object using a PATCH request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}`. The `resourceId` parameter in the URL identifies the target object. The request body contains an `OfferObject` instance, and a successful response returns another `OfferObject` instance. This method requires OAuth authorization with the scope `https://www.googleapis.com/auth/wallet_object.issuer`. The object ID must be unique and follow the format \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e.\n"]]