Method: giftcardclass.patch
อัปเดตประเภทบัตรของขวัญที่อ้างอิงโดยรหัสชั้นเรียนที่ระบุ วิธีนี้รองรับความหมายของแพตช์
คำขอ HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกคลาสจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifier โดยที่รหัสแรกจะออกโดย Google และรหัสหลังจะเลือกโดยคุณ ตัวระบุที่ไม่ซ้ำกันควรประกอบด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, '.', '_' หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ GiftCardClass
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ GiftCardClass
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-04 UTC
[null,null,["อัปเดตล่าสุด 2024-11-04 UTC"],[[["Updates the gift card class identified by the provided class ID, using patch semantics for partial updates."],["The request should be a `PATCH` request to the specified URL, including the class ID as a path parameter."],["The request body must contain a `GiftCardClass` object representing the updates to be applied."],["A successful response will return the updated `GiftCardClass` object."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope."]]],["The core action is updating a gift card class using a `PATCH` request to the specified URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}`. The `resourceId` path parameter uniquely identifies the class. The request body includes a `GiftCardClass` instance, while a successful response also returns a `GiftCardClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `resourceId` must be unique and follow a defined format.\n"]]