Method: giftcardobject.patch
อัปเดตออบเจ็กต์บัตรของขวัญที่อ้างอิงโดยรหัสออบเจ็กต์ที่ระบุ วิธีนี้รองรับความหมายของแพตช์
คำขอ HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับออบเจ็กต์ รหัสนี้ต้องไม่ซ้ำกันในทุกออบเจ็กต์จากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifier โดยที่รหัสแรกจะออกโดย Google และรหัสหลังจะเลือกโดยคุณ ตัวระบุที่ไม่ซ้ำกันควรมีเฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, ".", "_" หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ GiftCardObject
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ GiftCardObject
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 a gift card object with patch semantics using the provided object ID."],["The request body and successful response both contain a `GiftCardObject`."],["The object ID in the path follows a specific format: `\u003cissuer ID\u003e.\u003cidentifier\u003e`."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This content describes updating a gift card object using a PATCH request. The target URL is `PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`, where `resourceId` is a unique identifier composed of an issuer ID and a chosen identifier. The request body uses the `GiftCardObject` schema, and successful responses also return a `GiftCardObject` instance. The method requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]