|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace AlibabaCloud\MarketplaceIntl\V20221230; |
| 4 | + |
| 5 | +use AlibabaCloud\Client\Resolver\ApiResolver; |
| 6 | + |
| 7 | +/** |
| 8 | + * @method DescribePushMeteringData describePushMeteringData(array $options = []) |
| 9 | + * @method DescribeSellerInstances describeSellerInstances(array $options = []) |
| 10 | + * @method NoticeInstanceUser noticeInstanceUser(array $options = []) |
| 11 | + * @method PushMeteringData pushMeteringData(array $options = []) |
| 12 | + */ |
| 13 | +class MarketplaceIntlApiResolver extends ApiResolver |
| 14 | +{ |
| 15 | +} |
| 16 | + |
| 17 | +class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
| 18 | +{ |
| 19 | + /** @var string */ |
| 20 | + public $product = 'marketplaceIntl'; |
| 21 | + |
| 22 | + /** @var string */ |
| 23 | + public $version = '2022-12-30'; |
| 24 | + |
| 25 | + /** @var string */ |
| 26 | + public $method = 'POST'; |
| 27 | + |
| 28 | + /** @var string */ |
| 29 | + protected $scheme = 'https'; |
| 30 | +} |
| 31 | + |
| 32 | +/** |
| 33 | + * @method string getPushOrderBizId() |
| 34 | + * @method $this withPushOrderBizId($value) |
| 35 | + */ |
| 36 | +class DescribePushMeteringData extends Rpc |
| 37 | +{ |
| 38 | +} |
| 39 | + |
| 40 | +/** |
| 41 | + * @method string getInstanceStatus() |
| 42 | + * @method $this withInstanceStatus($value) |
| 43 | + * @method string getUserId() |
| 44 | + * @method $this withUserId($value) |
| 45 | + * @method string getInstanceId() |
| 46 | + * @method $this withInstanceId($value) |
| 47 | + * @method string getPageSize() |
| 48 | + * @method $this withPageSize($value) |
| 49 | + * @method string getPageIndex() |
| 50 | + * @method $this withPageIndex($value) |
| 51 | + */ |
| 52 | +class DescribeSellerInstances extends Rpc |
| 53 | +{ |
| 54 | +} |
| 55 | + |
| 56 | +/** |
| 57 | + * @method string getNoticeParam() |
| 58 | + * @method string getInstanceId() |
| 59 | + * @method string getNoticeType() |
| 60 | + */ |
| 61 | +class NoticeInstanceUser extends Rpc |
| 62 | +{ |
| 63 | + |
| 64 | + /** |
| 65 | + * @param string $value |
| 66 | + * |
| 67 | + * @return $this |
| 68 | + */ |
| 69 | + public function withNoticeParam($value) |
| 70 | + { |
| 71 | + $this->data['NoticeParam'] = $value; |
| 72 | + $this->options['form_params']['NoticeParam'] = $value; |
| 73 | + |
| 74 | + return $this; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * @param string $value |
| 79 | + * |
| 80 | + * @return $this |
| 81 | + */ |
| 82 | + public function withInstanceId($value) |
| 83 | + { |
| 84 | + $this->data['InstanceId'] = $value; |
| 85 | + $this->options['form_params']['InstanceId'] = $value; |
| 86 | + |
| 87 | + return $this; |
| 88 | + } |
| 89 | + |
| 90 | + /** |
| 91 | + * @param string $value |
| 92 | + * |
| 93 | + * @return $this |
| 94 | + */ |
| 95 | + public function withNoticeType($value) |
| 96 | + { |
| 97 | + $this->data['NoticeType'] = $value; |
| 98 | + $this->options['form_params']['NoticeType'] = $value; |
| 99 | + |
| 100 | + return $this; |
| 101 | + } |
| 102 | +} |
| 103 | + |
| 104 | +/** |
| 105 | + * @method array getMeteringData() |
| 106 | + * @method string getGmtCreate() |
| 107 | + */ |
| 108 | +class PushMeteringData extends Rpc |
| 109 | +{ |
| 110 | + |
| 111 | + /** @var string */ |
| 112 | + public $scheme = 'http'; |
| 113 | + |
| 114 | + /** |
| 115 | + * @param array $meteringData |
| 116 | + * |
| 117 | + * @return $this |
| 118 | + */ |
| 119 | + public function withMeteringData(array $meteringData) |
| 120 | + { |
| 121 | + $this->data['MeteringData'] = $meteringData; |
| 122 | + foreach ($meteringData as $depth1 => $depth1Value) { |
| 123 | + if(isset($depth1Value['MeteringAssist'])){ |
| 124 | + $this->options['form_params']['MeteringData.' . ($depth1 + 1) . '.MeteringAssist'] = $depth1Value['MeteringAssist']; |
| 125 | + } |
| 126 | + if(isset($depth1Value['PushOrderBizId'])){ |
| 127 | + $this->options['form_params']['MeteringData.' . ($depth1 + 1) . '.PushOrderBizId'] = $depth1Value['PushOrderBizId']; |
| 128 | + } |
| 129 | + if(isset($depth1Value['InstanceId'])){ |
| 130 | + $this->options['form_params']['MeteringData.' . ($depth1 + 1) . '.InstanceId'] = $depth1Value['InstanceId']; |
| 131 | + } |
| 132 | + if(isset($depth1Value['EndTime'])){ |
| 133 | + $this->options['form_params']['MeteringData.' . ($depth1 + 1) . '.EndTime'] = $depth1Value['EndTime']; |
| 134 | + } |
| 135 | + if(isset($depth1Value['StartTime'])){ |
| 136 | + $this->options['form_params']['MeteringData.' . ($depth1 + 1) . '.StartTime'] = $depth1Value['StartTime']; |
| 137 | + } |
| 138 | + if(isset($depth1Value['MeteringEntity'])){ |
| 139 | + $this->options['form_params']['MeteringData.' . ($depth1 + 1) . '.MeteringEntity'] = $depth1Value['MeteringEntity']; |
| 140 | + } |
| 141 | + } |
| 142 | + |
| 143 | + return $this; |
| 144 | + } |
| 145 | + |
| 146 | + /** |
| 147 | + * @param string $value |
| 148 | + * |
| 149 | + * @return $this |
| 150 | + */ |
| 151 | + public function withGmtCreate($value) |
| 152 | + { |
| 153 | + $this->data['GmtCreate'] = $value; |
| 154 | + $this->options['form_params']['GmtCreate'] = $value; |
| 155 | + |
| 156 | + return $this; |
| 157 | + } |
| 158 | +} |
0 commit comments