|
| 1 | +<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */ |
| 2 | + |
| 3 | +namespace WeChatPay\OpenAPI\V3\MerchantService\ComplaintsV2\_complaint_id_; |
| 4 | + |
| 5 | +use Psr\Http\Message\ResponseInterface; |
| 6 | +use GuzzleHttp\Promise\PromiseInterface; |
| 7 | + |
| 8 | +/** |
| 9 | + */ |
| 10 | +interface ResponseImmediateService |
| 11 | +{ |
| 12 | + /** |
| 13 | + * 回复需要即时服务的投诉单(同步模式) |
| 14 | + * @param array<string,mixed> $options |
| 15 | + * @link https://wechatpay.im/openapi/v3/merchant-service/complaints-v2/%7Bcomplaint_id%7D/response-immediate-service |
| 16 | + */ |
| 17 | + public function post(array $options = [ |
| 18 | + 'complaint_id' => '200201820200101080076610000', |
| 19 | + 'json' => [ |
| 20 | + 'complainted_mchid' => '1900012181', |
| 21 | + 'message' => [ |
| 22 | + 'blocks' => [[ |
| 23 | + 'type' => 'TEXT', |
| 24 | + 'text' => [ |
| 25 | + 'text' => 'example_text', |
| 26 | + 'color' => 'DEFAULT', |
| 27 | + 'is_bold' => true, |
| 28 | + ], |
| 29 | + 'image' => [ |
| 30 | + 'media_id' => 'example_media_id', |
| 31 | + 'image_style_type' => 'IMAGE_STYLE_TYPE_NARROW', |
| 32 | + ], |
| 33 | + 'link' => [ |
| 34 | + 'text' => 'example_text', |
| 35 | + 'action' => [ |
| 36 | + 'action_type' => 'ACTION_TYPE_SEND_MESSAGE', |
| 37 | + 'jump_url' => 'example_jump_url', |
| 38 | + 'mini_program_jump_info' => [ |
| 39 | + 'appid' => 'example_appid', |
| 40 | + 'path' => 'example_path', |
| 41 | + 'text' => 'example_text', |
| 42 | + ], |
| 43 | + 'message_info' => [ |
| 44 | + 'content' => 'example_content', |
| 45 | + 'custom_data' => 'example_custom_data', |
| 46 | + ], |
| 47 | + 'action_id' => 'example_action_id', |
| 48 | + ], |
| 49 | + 'invalid_info' => [ |
| 50 | + 'expired_time' => '2015-05-20T13:29:35+08:00', |
| 51 | + 'multi_clickable' => true, |
| 52 | + ], |
| 53 | + ], |
| 54 | + 'faq_list' => [ |
| 55 | + 'faqs' => [[ |
| 56 | + 'faq_id' => 'example_faq_id', |
| 57 | + 'faq_title' => 'example_faq_title', |
| 58 | + 'action' => [ |
| 59 | + 'action_type' => 'ACTION_TYPE_SEND_MESSAGE', |
| 60 | + 'jump_url' => 'example_jump_url', |
| 61 | + 'mini_program_jump_info' => [ |
| 62 | + 'appid' => 'example_appid', |
| 63 | + 'path' => 'example_path', |
| 64 | + 'text' => 'example_text', |
| 65 | + ], |
| 66 | + 'message_info' => [ |
| 67 | + 'content' => 'example_content', |
| 68 | + 'custom_data' => 'example_custom_data', |
| 69 | + ], |
| 70 | + 'action_id' => 'example_action_id', |
| 71 | + ], |
| 72 | + ],], |
| 73 | + ], |
| 74 | + 'button' => [ |
| 75 | + 'text' => 'example_text', |
| 76 | + 'action' => [ |
| 77 | + 'action_type' => 'ACTION_TYPE_SEND_MESSAGE', |
| 78 | + 'jump_url' => 'example_jump_url', |
| 79 | + 'mini_program_jump_info' => [ |
| 80 | + 'appid' => 'example_appid', |
| 81 | + 'path' => 'example_path', |
| 82 | + 'text' => 'example_text', |
| 83 | + ], |
| 84 | + 'message_info' => [ |
| 85 | + 'content' => 'example_content', |
| 86 | + 'custom_data' => 'example_custom_data', |
| 87 | + ], |
| 88 | + 'action_id' => 'example_action_id', |
| 89 | + ], |
| 90 | + 'invalid_info' => [ |
| 91 | + 'expired_time' => '2015-05-20T13:29:35+08:00', |
| 92 | + 'multi_clickable' => true, |
| 93 | + ], |
| 94 | + ], |
| 95 | + 'button_group' => [ |
| 96 | + 'buttons' => [[ |
| 97 | + 'text' => 'example_text', |
| 98 | + 'action' => [ |
| 99 | + 'action_type' => 'ACTION_TYPE_SEND_MESSAGE', |
| 100 | + 'jump_url' => 'example_jump_url', |
| 101 | + 'mini_program_jump_info' => [ |
| 102 | + 'appid' => 'example_appid', |
| 103 | + 'path' => 'example_path', |
| 104 | + 'text' => 'example_text', |
| 105 | + ], |
| 106 | + 'message_info' => [ |
| 107 | + 'content' => 'example_content', |
| 108 | + 'custom_data' => 'example_custom_data', |
| 109 | + ], |
| 110 | + 'action_id' => 'example_action_id', |
| 111 | + ], |
| 112 | + 'invalid_info' => [ |
| 113 | + 'expired_time' => '2015-05-20T13:29:35+08:00', |
| 114 | + 'multi_clickable' => true, |
| 115 | + ], |
| 116 | + ],], |
| 117 | + 'button_layout' => 'LAYOUT_HORIZONTAL', |
| 118 | + 'invalid_info' => [ |
| 119 | + 'expired_time' => '2015-05-20T13:29:35+08:00', |
| 120 | + 'multi_clickable' => true, |
| 121 | + ], |
| 122 | + ], |
| 123 | + ],], |
| 124 | + 'sender_identity' => 'UNKNOWN', |
| 125 | + 'custom_data' => 'example_custom_data', |
| 126 | + ], |
| 127 | + 'idempotent_id' => '550e8400-e29b-41d4-a716-446655440000', |
| 128 | + ], |
| 129 | + ]): ResponseInterface; |
| 130 | + |
| 131 | + /** |
| 132 | + * 回复需要即时服务的投诉单(异步模式) |
| 133 | + * @param array<string,mixed> $options |
| 134 | + * @link https://wechatpay.im/openapi/v3/merchant-service/complaints-v2/%7Bcomplaint_id%7D/response-immediate-service |
| 135 | + */ |
| 136 | + public function postAsync(array $options = [ |
| 137 | + 'complaint_id' => '200201820200101080076610000', |
| 138 | + 'json' => [ |
| 139 | + 'complainted_mchid' => '1900012181', |
| 140 | + 'message' => [ |
| 141 | + 'blocks' => [[ |
| 142 | + 'type' => 'TEXT', |
| 143 | + 'text' => [ |
| 144 | + 'text' => 'example_text', |
| 145 | + 'color' => 'DEFAULT', |
| 146 | + 'is_bold' => true, |
| 147 | + ], |
| 148 | + 'image' => [ |
| 149 | + 'media_id' => 'example_media_id', |
| 150 | + 'image_style_type' => 'IMAGE_STYLE_TYPE_NARROW', |
| 151 | + ], |
| 152 | + 'link' => [ |
| 153 | + 'text' => 'example_text', |
| 154 | + 'action' => [ |
| 155 | + 'action_type' => 'ACTION_TYPE_SEND_MESSAGE', |
| 156 | + 'jump_url' => 'example_jump_url', |
| 157 | + 'mini_program_jump_info' => [ |
| 158 | + 'appid' => 'example_appid', |
| 159 | + 'path' => 'example_path', |
| 160 | + 'text' => 'example_text', |
| 161 | + ], |
| 162 | + 'message_info' => [ |
| 163 | + 'content' => 'example_content', |
| 164 | + 'custom_data' => 'example_custom_data', |
| 165 | + ], |
| 166 | + 'action_id' => 'example_action_id', |
| 167 | + ], |
| 168 | + 'invalid_info' => [ |
| 169 | + 'expired_time' => '2015-05-20T13:29:35+08:00', |
| 170 | + 'multi_clickable' => true, |
| 171 | + ], |
| 172 | + ], |
| 173 | + 'faq_list' => [ |
| 174 | + 'faqs' => [[ |
| 175 | + 'faq_id' => 'example_faq_id', |
| 176 | + 'faq_title' => 'example_faq_title', |
| 177 | + 'action' => [ |
| 178 | + 'action_type' => 'ACTION_TYPE_SEND_MESSAGE', |
| 179 | + 'jump_url' => 'example_jump_url', |
| 180 | + 'mini_program_jump_info' => [ |
| 181 | + 'appid' => 'example_appid', |
| 182 | + 'path' => 'example_path', |
| 183 | + 'text' => 'example_text', |
| 184 | + ], |
| 185 | + 'message_info' => [ |
| 186 | + 'content' => 'example_content', |
| 187 | + 'custom_data' => 'example_custom_data', |
| 188 | + ], |
| 189 | + 'action_id' => 'example_action_id', |
| 190 | + ], |
| 191 | + ],], |
| 192 | + ], |
| 193 | + 'button' => [ |
| 194 | + 'text' => 'example_text', |
| 195 | + 'action' => [ |
| 196 | + 'action_type' => 'ACTION_TYPE_SEND_MESSAGE', |
| 197 | + 'jump_url' => 'example_jump_url', |
| 198 | + 'mini_program_jump_info' => [ |
| 199 | + 'appid' => 'example_appid', |
| 200 | + 'path' => 'example_path', |
| 201 | + 'text' => 'example_text', |
| 202 | + ], |
| 203 | + 'message_info' => [ |
| 204 | + 'content' => 'example_content', |
| 205 | + 'custom_data' => 'example_custom_data', |
| 206 | + ], |
| 207 | + 'action_id' => 'example_action_id', |
| 208 | + ], |
| 209 | + 'invalid_info' => [ |
| 210 | + 'expired_time' => '2015-05-20T13:29:35+08:00', |
| 211 | + 'multi_clickable' => true, |
| 212 | + ], |
| 213 | + ], |
| 214 | + 'button_group' => [ |
| 215 | + 'buttons' => [[ |
| 216 | + 'text' => 'example_text', |
| 217 | + 'action' => [ |
| 218 | + 'action_type' => 'ACTION_TYPE_SEND_MESSAGE', |
| 219 | + 'jump_url' => 'example_jump_url', |
| 220 | + 'mini_program_jump_info' => [ |
| 221 | + 'appid' => 'example_appid', |
| 222 | + 'path' => 'example_path', |
| 223 | + 'text' => 'example_text', |
| 224 | + ], |
| 225 | + 'message_info' => [ |
| 226 | + 'content' => 'example_content', |
| 227 | + 'custom_data' => 'example_custom_data', |
| 228 | + ], |
| 229 | + 'action_id' => 'example_action_id', |
| 230 | + ], |
| 231 | + 'invalid_info' => [ |
| 232 | + 'expired_time' => '2015-05-20T13:29:35+08:00', |
| 233 | + 'multi_clickable' => true, |
| 234 | + ], |
| 235 | + ],], |
| 236 | + 'button_layout' => 'LAYOUT_HORIZONTAL', |
| 237 | + 'invalid_info' => [ |
| 238 | + 'expired_time' => '2015-05-20T13:29:35+08:00', |
| 239 | + 'multi_clickable' => true, |
| 240 | + ], |
| 241 | + ], |
| 242 | + ],], |
| 243 | + 'sender_identity' => 'UNKNOWN', |
| 244 | + 'custom_data' => 'example_custom_data', |
| 245 | + ], |
| 246 | + 'idempotent_id' => '550e8400-e29b-41d4-a716-446655440000', |
| 247 | + ], |
| 248 | + ]): PromiseInterface; |
| 249 | +} |
0 commit comments