PageRenderTime 50ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 1ms

/webui/google-api/contrib/apiGanService.php

https://bitbucket.org/sailsdigital/piler-remi
PHP | 1529 lines | 1341 code | 31 blank | 157 comment | 12 complexity | 3de36b0573dda977e4d43ed6235161fa MD5 | raw file
Possible License(s): GPL-3.0

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Copyright (c) 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. require_once 'service/apiModel.php';
  18. require_once 'service/apiService.php';
  19. require_once 'service/apiServiceRequest.php';
  20. /**
  21. * The "advertisers" collection of methods.
  22. * Typical usage is:
  23. * <code>
  24. * $ganService = new apiGanService(...);
  25. * $advertisers = $ganService->advertisers;
  26. * </code>
  27. */
  28. class AdvertisersServiceResource extends apiServiceResource {
  29. /**
  30. * Retrieves data about all advertisers that the requesting advertiser/publisher has access to.
  31. * (advertisers.list)
  32. *
  33. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  34. * @param string $roleId The ID of the requesting advertiser or publisher.
  35. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  36. *
  37. * @opt_param string relationshipStatus Filters out all advertisers for which do not have the given relationship status with the requesting publisher.
  38. * @opt_param double minSevenDayEpc Filters out all advertisers that have a seven day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
  39. * @opt_param string advertiserCategory Caret(^) delimted list of advertiser categories. Valid categories are defined here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en=107581. Filters out all advertisers not in one of the given advertiser categories. Optional.
  40. * @opt_param double minNinetyDayEpc Filters out all advertisers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
  41. * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
  42. * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
  43. * @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of advertisers with the lowest ranks and 4 represents the quartile of advertisers with the highest ranks. Filters out all advertisers with a lower rank than the given quartile. For example if a 2 was given only advertisers with a payout rank of 25 or higher would be included. Optional.
  44. * @return Advertisers
  45. */
  46. public function listAdvertisers($role, $roleId, $optParams = array()) {
  47. $params = array('role' => $role, 'roleId' => $roleId);
  48. $params = array_merge($params, $optParams);
  49. $data = $this->__call('list', array($params));
  50. if ($this->useObjects()) {
  51. return new Advertisers($data);
  52. } else {
  53. return $data;
  54. }
  55. }
  56. /**
  57. * Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
  58. * to it. Only publishers can lookup advertisers. Advertisers can request information about
  59. * themselves by omitting the advertiserId query parameter. (advertisers.get)
  60. *
  61. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  62. * @param string $roleId The ID of the requesting advertiser or publisher.
  63. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  64. *
  65. * @opt_param string advertiserId The ID of the advertiser to look up. Optional.
  66. * @return Advertiser
  67. */
  68. public function get($role, $roleId, $optParams = array()) {
  69. $params = array('role' => $role, 'roleId' => $roleId);
  70. $params = array_merge($params, $optParams);
  71. $data = $this->__call('get', array($params));
  72. if ($this->useObjects()) {
  73. return new Advertiser($data);
  74. } else {
  75. return $data;
  76. }
  77. }
  78. }
  79. /**
  80. * The "ccOffers" collection of methods.
  81. * Typical usage is:
  82. * <code>
  83. * $ganService = new apiGanService(...);
  84. * $ccOffers = $ganService->ccOffers;
  85. * </code>
  86. */
  87. class CcOffersServiceResource extends apiServiceResource {
  88. /**
  89. * Retrieves credit card offers for the given publisher. (ccOffers.list)
  90. *
  91. * @param string $publisher The ID of the publisher in question.
  92. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  93. *
  94. * @opt_param string advertiser The advertiser ID of a card issuer whose offers to include. Optional, may be repeated.
  95. * @opt_param string projection The set of fields to return.
  96. * @return CcOffers
  97. */
  98. public function listCcOffers($publisher, $optParams = array()) {
  99. $params = array('publisher' => $publisher);
  100. $params = array_merge($params, $optParams);
  101. $data = $this->__call('list', array($params));
  102. if ($this->useObjects()) {
  103. return new CcOffers($data);
  104. } else {
  105. return $data;
  106. }
  107. }
  108. }
  109. /**
  110. * The "events" collection of methods.
  111. * Typical usage is:
  112. * <code>
  113. * $ganService = new apiGanService(...);
  114. * $events = $ganService->events;
  115. * </code>
  116. */
  117. class EventsServiceResource extends apiServiceResource {
  118. /**
  119. * Retrieves event data for a given advertiser/publisher. (events.list)
  120. *
  121. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  122. * @param string $roleId The ID of the requesting advertiser or publisher.
  123. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  124. *
  125. * @opt_param string orderId Caret(^) delimited list of order IDs. Filters out all events that do not reference one of the given order IDs. Optional.
  126. * @opt_param string sku Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.
  127. * @opt_param string eventDateMax Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.
  128. * @opt_param string type Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.
  129. * @opt_param string linkId Caret(^) delimited list of link IDs. Filters out all events that do not reference one of the given link IDs. Optional.
  130. * @opt_param string status Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.
  131. * @opt_param string eventDateMin Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.
  132. * @opt_param string memberId Caret(^) delimited list of member IDs. Filters out all events that do not reference one of the given member IDs. Optional.
  133. * @opt_param string maxResults Max number of offers to return in this page. Optional. Defaults to 20.
  134. * @opt_param string advertiserId Caret(^) delimited list of advertiser IDs. Filters out all events that do not reference one of the given advertiser IDs. Only used when under publishers role. Optional.
  135. * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
  136. * @opt_param string productCategory Caret(^) delimited list of product categories. Filters out all events that do not reference a product in one of the given product categories. Optional.
  137. * @opt_param string chargeType Filters out all charge events that are not of the given charge type. Valid values: 'other', 'slotting_fee', 'monthly_minimum', 'tier_bonus', 'credit', 'debit'. Optional.
  138. * @opt_param string publisherId Caret(^) delimited list of publisher IDs. Filters out all events that do not reference one of the given publishers IDs. Only used when under advertiser role. Optional.
  139. * @return Events
  140. */
  141. public function listEvents($role, $roleId, $optParams = array()) {
  142. $params = array('role' => $role, 'roleId' => $roleId);
  143. $params = array_merge($params, $optParams);
  144. $data = $this->__call('list', array($params));
  145. if ($this->useObjects()) {
  146. return new Events($data);
  147. } else {
  148. return $data;
  149. }
  150. }
  151. }
  152. /**
  153. * The "publishers" collection of methods.
  154. * Typical usage is:
  155. * <code>
  156. * $ganService = new apiGanService(...);
  157. * $publishers = $ganService->publishers;
  158. * </code>
  159. */
  160. class PublishersServiceResource extends apiServiceResource {
  161. /**
  162. * Retrieves data about all publishers that the requesting advertiser/publisher has access to.
  163. * (publishers.list)
  164. *
  165. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  166. * @param string $roleId The ID of the requesting advertiser or publisher.
  167. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  168. *
  169. * @opt_param string publisherCategory Caret(^) delimted list of publisher categories. Valid categories: (unclassified|community_and_content|shopping_and_promotion|loyalty_and_rewards|network|search_specialist|comparison_shopping|email). Filters out all publishers not in one of the given advertiser categories. Optional.
  170. * @opt_param string relationshipStatus Filters out all publishers for which do not have the given relationship status with the requesting publisher.
  171. * @opt_param double minSevenDayEpc Filters out all publishers that have a seven day EPC average lower than the given value (inclusive). Min value 0.0. Optional.
  172. * @opt_param double minNinetyDayEpc Filters out all publishers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
  173. * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
  174. * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
  175. * @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of publishers with the lowest ranks and 4 represents the quartile of publishers with the highest ranks. Filters out all publishers with a lower rank than the given quartile. For example if a 2 was given only publishers with a payout rank of 25 or higher would be included. Optional.
  176. * @return Publishers
  177. */
  178. public function listPublishers($role, $roleId, $optParams = array()) {
  179. $params = array('role' => $role, 'roleId' => $roleId);
  180. $params = array_merge($params, $optParams);
  181. $data = $this->__call('list', array($params));
  182. if ($this->useObjects()) {
  183. return new Publishers($data);
  184. } else {
  185. return $data;
  186. }
  187. }
  188. /**
  189. * Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
  190. * to it. Only advertisers can look up publishers. Publishers can request information about
  191. * themselves by omitting the publisherId query parameter. (publishers.get)
  192. *
  193. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  194. * @param string $roleId The ID of the requesting advertiser or publisher.
  195. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  196. *
  197. * @opt_param string publisherId The ID of the publisher to look up. Optional.
  198. * @return Publisher
  199. */
  200. public function get($role, $roleId, $optParams = array()) {
  201. $params = array('role' => $role, 'roleId' => $roleId);
  202. $params = array_merge($params, $optParams);
  203. $data = $this->__call('get', array($params));
  204. if ($this->useObjects()) {
  205. return new Publisher($data);
  206. } else {
  207. return $data;
  208. }
  209. }
  210. }
  211. /**
  212. * Service definition for Gan (v1beta1).
  213. *
  214. * <p>
  215. * Lets you have programmatic access to your Google Affiliate Network data
  216. * </p>
  217. *
  218. * <p>
  219. * For more information about this service, see the
  220. * <a href="https://code.google.com/apis/gan/" target="_blank">API Documentation</a>
  221. * </p>
  222. *
  223. * @author Google, Inc.
  224. */
  225. class apiGanService extends apiService {
  226. public $advertisers;
  227. public $ccOffers;
  228. public $events;
  229. public $publishers;
  230. /**
  231. * Constructs the internal representation of the Gan service.
  232. *
  233. * @param apiClient apiClient
  234. */
  235. public function __construct(apiClient $apiClient) {
  236. $this->rpcPath = '/rpc';
  237. $this->restBasePath = '/gan/v1beta1/';
  238. $this->version = 'v1beta1';
  239. $this->serviceName = 'gan';
  240. $apiClient->addService($this->serviceName, $this->version);
  241. $this->advertisers = new AdvertisersServiceResource($this, $this->serviceName, 'advertisers', json_decode('{"methods": {"list": {"parameters": {"relationshipStatus": {"enum": ["approved", "available", "deactivated", "declined", "pending"], "type": "string", "location": "query"}, "minSevenDayEpc": {"format": "double", "type": "number", "location": "query"}, "advertiserCategory": {"type": "string", "location": "query"}, "minNinetyDayEpc": {"format": "double", "type": "number", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "enum": ["advertisers", "publishers"], "location": "path", "type": "string"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "0", "location": "query", "type": "integer"}, "roleId": {"required": true, "type": "string", "location": "path"}, "minPayoutRank": {"format": "int32", "maximum": "4", "minimum": "1", "location": "query", "type": "integer"}}, "id": "gan.advertisers.list", "httpMethod": "GET", "path": "{role}/{roleId}/advertisers", "response": {"$ref": "Advertisers"}}, "get": {"parameters": {"advertiserId": {"type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "role": {"required": true, "enum": ["advertisers", "publishers"], "location": "path", "type": "string"}}, "id": "gan.advertisers.get", "httpMethod": "GET", "path": "{role}/{roleId}/advertiser", "response": {"$ref": "Advertiser"}}}}', true));
  242. $this->ccOffers = new CcOffersServiceResource($this, $this->serviceName, 'ccOffers', json_decode('{"methods": {"list": {"parameters": {"advertiser": {"repeated": true, "type": "string", "location": "query"}, "projection": {"enum": ["full", "summary"], "type": "string", "location": "query"}, "publisher": {"required": true, "type": "string", "location": "path"}}, "id": "gan.ccOffers.list", "httpMethod": "GET", "path": "publishers/{publisher}/ccOffers", "response": {"$ref": "CcOffers"}}}}', true));
  243. $this->events = new EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"list": {"parameters": {"orderId": {"type": "string", "location": "query"}, "sku": {"type": "string", "location": "query"}, "eventDateMax": {"type": "string", "location": "query"}, "linkId": {"type": "string", "location": "query"}, "eventDateMin": {"type": "string", "location": "query"}, "memberId": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "0", "location": "query", "type": "integer"}, "advertiserId": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "publisherId": {"type": "string", "location": "query"}, "status": {"enum": ["active", "canceled"], "type": "string", "location": "query"}, "productCategory": {"type": "string", "location": "query"}, "chargeType": {"enum": ["credit", "debit", "monthly_minimum", "other", "slotting_fee", "tier_bonus"], "type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "role": {"required": true, "enum": ["advertisers", "publishers"], "location": "path", "type": "string"}, "type": {"enum": ["action", "charge", "transaction"], "type": "string", "location": "query"}}, "id": "gan.events.list", "httpMethod": "GET", "path": "{role}/{roleId}/events", "response": {"$ref": "Events"}}}}', true));
  244. $this->publishers = new PublishersServiceResource($this, $this->serviceName, 'publishers', json_decode('{"methods": {"list": {"parameters": {"publisherCategory": {"type": "string", "location": "query"}, "relationshipStatus": {"enum": ["approved", "available", "deactivated", "declined", "pending"], "type": "string", "location": "query"}, "minSevenDayEpc": {"format": "double", "type": "number", "location": "query"}, "minNinetyDayEpc": {"format": "double", "type": "number", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "enum": ["advertisers", "publishers"], "location": "path", "type": "string"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "0", "location": "query", "type": "integer"}, "roleId": {"required": true, "type": "string", "location": "path"}, "minPayoutRank": {"format": "int32", "maximum": "4", "minimum": "1", "location": "query", "type": "integer"}}, "id": "gan.publishers.list", "httpMethod": "GET", "path": "{role}/{roleId}/publishers", "response": {"$ref": "Publishers"}}, "get": {"parameters": {"publisherId": {"type": "string", "location": "query"}, "role": {"required": true, "enum": ["advertisers", "publishers"], "location": "path", "type": "string"}, "roleId": {"required": true, "type": "string", "location": "path"}}, "id": "gan.publishers.get", "httpMethod": "GET", "path": "{role}/{roleId}/publisher", "response": {"$ref": "Publisher"}}}}', true));
  245. }
  246. }
  247. class Advertiser extends apiModel {
  248. public $category;
  249. public $productFeedsEnabled;
  250. public $kind;
  251. public $siteUrl;
  252. public $contactPhone;
  253. public $description;
  254. public $payoutRank;
  255. protected $__epcSevenDayAverageType = 'Money';
  256. protected $__epcSevenDayAverageDataType = '';
  257. public $epcSevenDayAverage;
  258. public $commissionDuration;
  259. public $status;
  260. protected $__epcNinetyDayAverageType = 'Money';
  261. protected $__epcNinetyDayAverageDataType = '';
  262. public $epcNinetyDayAverage;
  263. public $contactEmail;
  264. protected $__itemType = 'Advertiser';
  265. protected $__itemDataType = '';
  266. public $item;
  267. public $joinDate;
  268. public $logoUrl;
  269. public $id;
  270. public $name;
  271. public function setCategory($category) {
  272. $this->category = $category;
  273. }
  274. public function getCategory() {
  275. return $this->category;
  276. }
  277. public function setProductFeedsEnabled($productFeedsEnabled) {
  278. $this->productFeedsEnabled = $productFeedsEnabled;
  279. }
  280. public function getProductFeedsEnabled() {
  281. return $this->productFeedsEnabled;
  282. }
  283. public function setKind($kind) {
  284. $this->kind = $kind;
  285. }
  286. public function getKind() {
  287. return $this->kind;
  288. }
  289. public function setSiteUrl($siteUrl) {
  290. $this->siteUrl = $siteUrl;
  291. }
  292. public function getSiteUrl() {
  293. return $this->siteUrl;
  294. }
  295. public function setContactPhone($contactPhone) {
  296. $this->contactPhone = $contactPhone;
  297. }
  298. public function getContactPhone() {
  299. return $this->contactPhone;
  300. }
  301. public function setDescription($description) {
  302. $this->description = $description;
  303. }
  304. public function getDescription() {
  305. return $this->description;
  306. }
  307. public function setPayoutRank($payoutRank) {
  308. $this->payoutRank = $payoutRank;
  309. }
  310. public function getPayoutRank() {
  311. return $this->payoutRank;
  312. }
  313. public function setEpcSevenDayAverage(Money $epcSevenDayAverage) {
  314. $this->epcSevenDayAverage = $epcSevenDayAverage;
  315. }
  316. public function getEpcSevenDayAverage() {
  317. return $this->epcSevenDayAverage;
  318. }
  319. public function setCommissionDuration($commissionDuration) {
  320. $this->commissionDuration = $commissionDuration;
  321. }
  322. public function getCommissionDuration() {
  323. return $this->commissionDuration;
  324. }
  325. public function setStatus($status) {
  326. $this->status = $status;
  327. }
  328. public function getStatus() {
  329. return $this->status;
  330. }
  331. public function setEpcNinetyDayAverage(Money $epcNinetyDayAverage) {
  332. $this->epcNinetyDayAverage = $epcNinetyDayAverage;
  333. }
  334. public function getEpcNinetyDayAverage() {
  335. return $this->epcNinetyDayAverage;
  336. }
  337. public function setContactEmail($contactEmail) {
  338. $this->contactEmail = $contactEmail;
  339. }
  340. public function getContactEmail() {
  341. return $this->contactEmail;
  342. }
  343. public function setItem(Advertiser $item) {
  344. $this->item = $item;
  345. }
  346. public function getItem() {
  347. return $this->item;
  348. }
  349. public function setJoinDate($joinDate) {
  350. $this->joinDate = $joinDate;
  351. }
  352. public function getJoinDate() {
  353. return $this->joinDate;
  354. }
  355. public function setLogoUrl($logoUrl) {
  356. $this->logoUrl = $logoUrl;
  357. }
  358. public function getLogoUrl() {
  359. return $this->logoUrl;
  360. }
  361. public function setId($id) {
  362. $this->id = $id;
  363. }
  364. public function getId() {
  365. return $this->id;
  366. }
  367. public function setName($name) {
  368. $this->name = $name;
  369. }
  370. public function getName() {
  371. return $this->name;
  372. }
  373. }
  374. class Advertisers extends apiModel {
  375. public $nextPageToken;
  376. protected $__itemsType = 'Advertiser';
  377. protected $__itemsDataType = 'array';
  378. public $items;
  379. public $kind;
  380. public function setNextPageToken($nextPageToken) {
  381. $this->nextPageToken = $nextPageToken;
  382. }
  383. public function getNextPageToken() {
  384. return $this->nextPageToken;
  385. }
  386. public function setItems(/* array(Advertiser) */ $items) {
  387. $this->assertIsArray($items, 'Advertiser', __METHOD__);
  388. $this->items = $items;
  389. }
  390. public function getItems() {
  391. return $this->items;
  392. }
  393. public function setKind($kind) {
  394. $this->kind = $kind;
  395. }
  396. public function getKind() {
  397. return $this->kind;
  398. }
  399. }
  400. class CcOffer extends apiModel {
  401. public $rewardsHaveBlackoutDates;
  402. public $introPurchasePeriodLength;
  403. public $introBalanceTransferRate;
  404. public $cardBenefits;
  405. public $introBalanceTransferAprDisplay;
  406. public $issuer;
  407. public $introBalanceTransferFeeRate;
  408. public $cashAdvanceFeeDisplay;
  409. public $annualFeeDisplay;
  410. public $minimumFinanceCharge;
  411. public $balanceTransferFeeDisplay;
  412. public $landingPageUrl;
  413. public $introPurchaseRate;
  414. public $cashAdvanceAprDisplay;
  415. public $maxCashAdvanceRate;
  416. public $firstYearAnnualFee;
  417. public $introBalanceTransferPeriodUnits;
  418. public $variableRatesUpdateFrequency;
  419. public $overLimitFee;
  420. public $rewardsExpire;
  421. public $additionalCardBenefits;
  422. public $ageMinimum;
  423. public $balanceTransferAprDisplay;
  424. public $introBalanceTransferPeriodLength;
  425. public $network;
  426. public $introPurchaseRateType;
  427. public $introAprDisplay;
  428. public $flightAccidentInsurance;
  429. public $annualRewardMaximum;
  430. public $disclaimer;
  431. public $creditLimitMin;
  432. public $creditLimitMax;
  433. public $gracePeriodDisplay;
  434. public $cashAdvanceFeeAmount;
  435. public $travelInsurance;
  436. public $existingCustomerOnly;
  437. public $initialSetupAndProcessingFee;
  438. public $issuerId;
  439. public $rewardUnit;
  440. public $prohibitedCategories;
  441. protected $__defaultFeesType = 'CcOfferDefaultFees';
  442. protected $__defaultFeesDataType = 'array';
  443. public $defaultFees;
  444. public $introPurchasePeriodUnits;
  445. public $trackingUrl;
  446. public $latePaymentFee;
  447. public $statementCopyFee;
  448. public $variableRatesLastUpdated;
  449. public $minBalanceTransferRate;
  450. public $emergencyInsurance;
  451. public $introPurchasePeriodEndDate;
  452. public $cardName;
  453. public $returnedPaymentFee;
  454. public $cashAdvanceAdditionalDetails;
  455. public $cashAdvanceLimit;
  456. public $balanceTransferFeeRate;
  457. public $balanceTransferRateType;
  458. protected $__rewardsType = 'CcOfferRewards';
  459. protected $__rewardsDataType = 'array';
  460. public $rewards;
  461. public $extendedWarranty;
  462. public $carRentalInsurance;
  463. public $cashAdvanceFeeRate;
  464. public $rewardPartner;
  465. public $foreignCurrencyTransactionFee;
  466. public $kind;
  467. public $introBalanceTransferFeeAmount;
  468. public $creditRatingDisplay;
  469. public $additionalCardHolderFee;
  470. public $purchaseRateType;
  471. public $cashAdvanceRateType;
  472. protected $__bonusRewardsType = 'CcOfferBonusRewards';
  473. protected $__bonusRewardsDataType = 'array';
  474. public $bonusRewards;
  475. public $balanceTransferLimit;
  476. public $luggageInsurance;
  477. public $minCashAdvanceRate;
  478. public $offerId;
  479. public $minPurchaseRate;
  480. public $offersImmediateCashReward;
  481. public $fraudLiability;
  482. public $cardType;
  483. public $approvedCategories;
  484. public $annualFee;
  485. public $maxBalanceTransferRate;
  486. public $maxPurchaseRate;
  487. public $issuerWebsite;
  488. public $introBalanceTransferRateType;
  489. public $aprDisplay;
  490. public $imageUrl;
  491. public $ageMinimumDetails;
  492. public $balanceTransferFeeAmount;
  493. public $introBalanceTransferPeriodEndDate;
  494. public function setRewardsHaveBlackoutDates($rewardsHaveBlackoutDates) {
  495. $this->rewardsHaveBlackoutDates = $rewardsHaveBlackoutDates;
  496. }
  497. public function getRewardsHaveBlackoutDates() {
  498. return $this->rewardsHaveBlackoutDates;
  499. }
  500. public function setIntroPurchasePeriodLength($introPurchasePeriodLength) {
  501. $this->introPurchasePeriodLength = $introPurchasePeriodLength;
  502. }
  503. public function getIntroPurchasePeriodLength() {
  504. return $this->introPurchasePeriodLength;
  505. }
  506. public function setIntroBalanceTransferRate($introBalanceTransferRate) {
  507. $this->introBalanceTransferRate = $introBalanceTransferRate;
  508. }
  509. public function getIntroBalanceTransferRate() {
  510. return $this->introBalanceTransferRate;
  511. }
  512. public function setCardBenefits(/* array(string) */ $cardBenefits) {
  513. $this->assertIsArray($cardBenefits, 'string', __METHOD__);
  514. $this->cardBenefits = $cardBenefits;
  515. }
  516. public function getCardBenefits() {
  517. return $this->cardBenefits;
  518. }
  519. public function setIntroBalanceTransferAprDisplay($introBalanceTransferAprDisplay) {
  520. $this->introBalanceTransferAprDisplay = $introBalanceTransferAprDisplay;
  521. }
  522. public function getIntroBalanceTransferAprDisplay() {
  523. return $this->introBalanceTransferAprDisplay;
  524. }
  525. public function setIssuer($issuer) {
  526. $this->issuer = $issuer;
  527. }
  528. public function getIssuer() {
  529. return $this->issuer;
  530. }
  531. public function setIntroBalanceTransferFeeRate($introBalanceTransferFeeRate) {
  532. $this->introBalanceTransferFeeRate = $introBalanceTransferFeeRate;
  533. }
  534. public function getIntroBalanceTransferFeeRate() {
  535. return $this->introBalanceTransferFeeRate;
  536. }
  537. public function setCashAdvanceFeeDisplay($cashAdvanceFeeDisplay) {
  538. $this->cashAdvanceFeeDisplay = $cashAdvanceFeeDisplay;
  539. }
  540. public function getCashAdvanceFeeDisplay() {
  541. return $this->cashAdvanceFeeDisplay;
  542. }
  543. public function setAnnualFeeDisplay($annualFeeDisplay) {
  544. $this->annualFeeDisplay = $annualFeeDisplay;
  545. }
  546. public function getAnnualFeeDisplay() {
  547. return $this->annualFeeDisplay;
  548. }
  549. public function setMinimumFinanceCharge($minimumFinanceCharge) {
  550. $this->minimumFinanceCharge = $minimumFinanceCharge;
  551. }
  552. public function getMinimumFinanceCharge() {
  553. return $this->minimumFinanceCharge;
  554. }
  555. public function setBalanceTransferFeeDisplay($balanceTransferFeeDisplay) {
  556. $this->balanceTransferFeeDisplay = $balanceTransferFeeDisplay;
  557. }
  558. public function getBalanceTransferFeeDisplay() {
  559. return $this->balanceTransferFeeDisplay;
  560. }
  561. public function setLandingPageUrl($landingPageUrl) {
  562. $this->landingPageUrl = $landingPageUrl;
  563. }
  564. public function getLandingPageUrl() {
  565. return $this->landingPageUrl;
  566. }
  567. public function setIntroPurchaseRate($introPurchaseRate) {
  568. $this->introPurchaseRate = $introPurchaseRate;
  569. }
  570. public function getIntroPurchaseRate() {
  571. return $this->introPurchaseRate;
  572. }
  573. public function setCashAdvanceAprDisplay($cashAdvanceAprDisplay) {
  574. $this->cashAdvanceAprDisplay = $cashAdvanceAprDisplay;
  575. }
  576. public function getCashAdvanceAprDisplay() {
  577. return $this->cashAdvanceAprDisplay;
  578. }
  579. public function setMaxCashAdvanceRate($maxCashAdvanceRate) {
  580. $this->maxCashAdvanceRate = $maxCashAdvanceRate;
  581. }
  582. public function getMaxCashAdvanceRate() {
  583. return $this->maxCashAdvanceRate;
  584. }
  585. public function setFirstYearAnnualFee($firstYearAnnualFee) {
  586. $this->firstYearAnnualFee = $firstYearAnnualFee;
  587. }
  588. public function getFirstYearAnnualFee() {
  589. return $this->firstYearAnnualFee;
  590. }
  591. public function setIntroBalanceTransferPeriodUnits($introBalanceTransferPeriodUnits) {
  592. $this->introBalanceTransferPeriodUnits = $introBalanceTransferPeriodUnits;
  593. }
  594. public function getIntroBalanceTransferPeriodUnits() {
  595. return $this->introBalanceTransferPeriodUnits;
  596. }
  597. public function setVariableRatesUpdateFrequency($variableRatesUpdateFrequency) {
  598. $this->variableRatesUpdateFrequency = $variableRatesUpdateFrequency;
  599. }
  600. public function getVariableRatesUpdateFrequency() {
  601. return $this->variableRatesUpdateFrequency;
  602. }
  603. public function setOverLimitFee($overLimitFee) {
  604. $this->overLimitFee = $overLimitFee;
  605. }
  606. public function getOverLimitFee() {
  607. return $this->overLimitFee;
  608. }
  609. public function setRewardsExpire($rewardsExpire) {
  610. $this->rewardsExpire = $rewardsExpire;
  611. }
  612. public function getRewardsExpire() {
  613. return $this->rewardsExpire;
  614. }
  615. public function setAdditionalCardBenefits(/* array(string) */ $additionalCardBenefits) {
  616. $this->assertIsArray($additionalCardBenefits, 'string', __METHOD__);
  617. $this->additionalCardBenefits = $additionalCardBenefits;
  618. }
  619. public function getAdditionalCardBenefits() {
  620. return $this->additionalCardBenefits;
  621. }
  622. public function setAgeMinimum($ageMinimum) {
  623. $this->ageMinimum = $ageMinimum;
  624. }
  625. public function getAgeMinimum() {
  626. return $this->ageMinimum;
  627. }
  628. public function setBalanceTransferAprDisplay($balanceTransferAprDisplay) {
  629. $this->balanceTransferAprDisplay = $balanceTransferAprDisplay;
  630. }
  631. public function getBalanceTransferAprDisplay() {
  632. return $this->balanceTransferAprDisplay;
  633. }
  634. public function setIntroBalanceTransferPeriodLength($introBalanceTransferPeriodLength) {
  635. $this->introBalanceTransferPeriodLength = $introBalanceTransferPeriodLength;
  636. }
  637. public function getIntroBalanceTransferPeriodLength() {
  638. return $this->introBalanceTransferPeriodLength;
  639. }
  640. public function setNetwork($network) {
  641. $this->network = $network;
  642. }
  643. public function getNetwork() {
  644. return $this->network;
  645. }
  646. public function setIntroPurchaseRateType($introPurchaseRateType) {
  647. $this->introPurchaseRateType = $introPurchaseRateType;
  648. }
  649. public function getIntroPurchaseRateType() {
  650. return $this->introPurchaseRateType;
  651. }
  652. public function setIntroAprDisplay($introAprDisplay) {
  653. $this->introAprDisplay = $introAprDisplay;
  654. }
  655. public function getIntroAprDisplay() {
  656. return $this->introAprDisplay;
  657. }
  658. public function setFlightAccidentInsurance($flightAccidentInsurance) {
  659. $this->flightAccidentInsurance = $flightAccidentInsurance;
  660. }
  661. public function getFlightAccidentInsurance() {
  662. return $this->flightAccidentInsurance;
  663. }
  664. public function setAnnualRewardMaximum($annualRewardMaximum) {
  665. $this->annualRewardMaximum = $annualRewardMaximum;
  666. }
  667. public function getAnnualRewardMaximum() {
  668. return $this->annualRewardMaximum;
  669. }
  670. public function setDisclaimer($disclaimer) {
  671. $this->disclaimer = $disclaimer;
  672. }
  673. public function getDisclaimer() {
  674. return $this->disclaimer;
  675. }
  676. public function setCreditLimitMin($creditLimitMin) {
  677. $this->creditLimitMin = $creditLimitMin;
  678. }
  679. public function getCreditLimitMin() {
  680. return $this->creditLimitMin;
  681. }
  682. public function setCreditLimitMax($creditLimitMax) {
  683. $this->creditLimitMax = $creditLimitMax;
  684. }
  685. public function getCreditLimitMax() {
  686. return $this->creditLimitMax;
  687. }
  688. public function setGracePeriodDisplay($gracePeriodDisplay) {
  689. $this->gracePeriodDisplay = $gracePeriodDisplay;
  690. }
  691. public function getGracePeriodDisplay() {
  692. return $this->gracePeriodDisplay;
  693. }
  694. public function setCashAdvanceFeeAmount($cashAdvanceFeeAmount) {
  695. $this->cashAdvanceFeeAmount = $cashAdvanceFeeAmount;
  696. }
  697. public function getCashAdvanceFeeAmount() {
  698. return $this->cashAdvanceFeeAmount;
  699. }
  700. public function setTravelInsurance($travelInsurance) {
  701. $this->travelInsurance = $travelInsurance;
  702. }
  703. public function getTravelInsurance() {
  704. return $this->travelInsurance;
  705. }
  706. public function setExistingCustomerOnly($existingCustomerOnly) {
  707. $this->existingCustomerOnly = $existingCustomerOnly;
  708. }
  709. public function getExistingCustomerOnly() {
  710. return $this->existingCustomerOnly;
  711. }
  712. public function setInitialSetupAndProcessingFee($initialSetupAndProcessingFee) {
  713. $this->initialSetupAndProcessingFee = $initialSetupAndProcessingFee;
  714. }
  715. public function getInitialSetupAndProcessingFee() {
  716. return $this->initialSetupAndProcessingFee;
  717. }
  718. public function setIssuerId($issuerId) {
  719. $this->issuerId = $issuerId;
  720. }
  721. public function getIssuerId() {
  722. return $this->issuerId;
  723. }
  724. public function setRewardUnit($rewardUnit) {
  725. $this->rewardUnit = $rewardUnit;
  726. }
  727. public function getRewardUnit() {
  728. return $this->rewardUnit;
  729. }
  730. public function setProhibitedCategories(/* array(string) */ $prohibitedCategories) {
  731. $this->assertIsArray($prohibitedCategories, 'string', __METHOD__);
  732. $this->prohibitedCategories = $prohibitedCategories;
  733. }
  734. public function getProhibitedCategories() {
  735. return $this->prohibitedCategories;
  736. }
  737. public function setDefaultFees(/* array(CcOfferDefaultFees) */ $defaultFees) {
  738. $this->assertIsArray($defaultFees, 'CcOfferDefaultFees', __METHOD__);
  739. $this->defaultFees = $defaultFees;
  740. }
  741. public function getDefaultFees() {
  742. return $this->defaultFees;
  743. }
  744. public function setIntroPurchasePeriodUnits($introPurchasePeriodUnits) {
  745. $this->introPurchasePeriodUnits = $introPurchasePeriodUnits;
  746. }
  747. public function getIntroPurchasePeriodUnits() {
  748. return $this->introPurchasePeriodUnits;
  749. }
  750. public function setTrackingUrl($trackingUrl) {
  751. $this->trackingUrl = $trackingUrl;
  752. }
  753. public function getTrackingUrl() {
  754. return $this->trackingUrl;
  755. }
  756. public function setLatePaymentFee($latePaymentFee) {
  757. $this->latePaymentFee = $latePaymentFee;
  758. }
  759. public function getLatePaymentFee() {
  760. return $this->latePaymentFee;
  761. }
  762. public function setStatementCopyFee($statementCopyFee) {
  763. $this->statementCopyFee = $statementCopyFee;
  764. }
  765. public function getStatementCopyFee() {
  766. return $this->statementCopyFee;
  767. }
  768. public function setVariableRatesLastUpdated($variableRatesLastUpdated) {
  769. $this->variableRatesLastUpdated = $variableRatesLastUpdated;
  770. }
  771. public function getVariableRatesLastUpdated() {
  772. return $this->variableRatesLastUpdated;
  773. }
  774. public function setMinBalanceTransferRate($minBalanceTransferRate) {
  775. $this->minBalanceTransferRate = $minBalanceTransferRate;
  776. }
  777. public function getMinBalanceTransferRate() {
  778. return $this->minBalanceTransferRate;
  779. }
  780. public function setEmergencyInsurance($emergencyInsurance) {
  781. $this->emergencyInsurance = $emergencyInsurance;
  782. }
  783. public function getEmergencyInsurance() {
  784. return $this->emergencyInsurance;
  785. }
  786. public function setIntroPurchasePeriodEndDate($introPurchasePeriodEndDate) {
  787. $this->introPurchasePeriodEndDate = $introPurchasePeriodEndDate;
  788. }
  789. public function getIntroPurchasePeriodEndDate() {
  790. return $this->introPurchasePeriodEndDate;
  791. }
  792. public function setCardName($cardName) {
  793. $this->cardName = $cardName;
  794. }
  795. public function getCardName() {
  796. return $this->cardName;
  797. }
  798. public function setReturnedPaymentFee($returnedPaymentFee) {
  799. $this->returnedPaymentFee = $returnedPaymentFee;
  800. }
  801. public function getReturnedPaymentFee() {
  802. return $this->returnedPaymentFee;
  803. }
  804. public function setCashAdvanceAdditionalDetails($cashAdvanceAdditionalDetails) {
  805. $this->cashAdvanceAdditionalDetails = $cashAdvanceAdditionalDetails;
  806. }
  807. public function getCashAdvanceAdditionalDetails() {
  808. return $this->cashAdvanceAdditionalDetails;
  809. }
  810. public function setCashAdvanceLimit($cashAdvanceLimit) {
  811. $this->cashAdvanceLimit = $cashAdvanceLimit;
  812. }
  813. public function getCashAdvanceLimit() {
  814. return $this->cashAdvanceLimit;
  815. }
  816. public function setBalanceTransferFeeRate($balanceTransferFeeRate) {
  817. $this->balanceTransferFeeRate = $balanceTransferFeeRate;
  818. }
  819. public function getBalanceTransferFeeRate() {
  820. return $this->balanceTransferFeeRate;
  821. }
  822. public function setBalanceTransferRateType($balanceTransferRateType) {
  823. $this->balanceTransferRateType = $balanceTransferRateType;
  824. }
  825. public function getBalanceTransferRateType() {
  826. return $this->balanceTransferRateType;
  827. }
  828. public function setRewards(/* array(CcOfferRewards) */ $rewards) {
  829. $this->assertIsArray($rewards, 'CcOfferRewards', __METHOD__);
  830. $this->rewards = $rewards;
  831. }
  832. public function getRewards() {
  833. return $this->rewards;
  834. }
  835. public function setExtendedWarranty($extendedWarranty) {
  836. $this->extendedWarranty = $extendedWarranty;
  837. }
  838. public function getExtendedWarranty() {
  839. return $this->extendedWarranty;
  840. }
  841. public function setCarRentalInsurance($carRentalInsurance) {
  842. $this->carRentalInsurance = $carRentalInsurance;
  843. }
  844. public function getCarRentalInsurance() {
  845. return $this->carRentalInsurance;
  846. }
  847. public function setCashAdvanceFeeRate($cashAdvanceFeeRate) {
  848. $this->cashAdvanceFeeRate = $cashAdvanceFeeRate;
  849. }
  850. public function getCashAdvanceFeeRate() {
  851. return $this->cashAdvanceFeeRate;
  852. }
  853. public function setRewardPartner($rewardPartner) {
  854. $this->rewardPartner = $rewardPartner;
  855. }
  856. public function getRewardPartner() {
  857. return $this->rewardPartner;
  858. }
  859. public function setForeignCurrencyTransactionFee($foreignCurrencyTransactionFee) {
  860. $this->foreignCurrencyTransactionFee = $foreignCurrencyTransactionFee;
  861. }
  862. public function getForeignCurrencyTransactionFee() {
  863. return $this->foreignCurrencyTransactionFee;
  864. }
  865. public function setKind($kind) {
  866. $this->kind = $kind;
  867. }
  868. public function getKind() {
  869. return $this->kind;
  870. }
  871. public function setIntroBalanceTransferFeeAmount($introBalanceTransferFeeAmount) {
  872. $this->introBalanceTransferFeeAmount = $introBalanceTransferFeeAmount;
  873. }
  874. public function getIntroBalanceTransferFeeAmount() {
  875. return $this->introBalanceTransferFeeAmount;
  876. }
  877. public function setCreditRatingDisplay($creditRatingDisplay) {
  878. $this->creditRatingDisplay = $creditRatingDisplay;
  879. }
  880. public function getCreditRatingDisplay() {
  881. return $this->creditRatingDisplay;
  882. }
  883. public function setAdditionalCardHolderFee($additionalCardHolderFee) {
  884. $this->additionalCardHolderFee = $additionalCardHolderFee;
  885. }
  886. public function getAdditionalCardHolderFee() {
  887. return $this->additionalCardHolderFee;
  888. }
  889. public function setPurchaseRateType($purchaseRateType) {
  890. $this->purchaseRateType = $purchaseRateType;
  891. }
  892. public function getPurchaseRateType() {
  893. return $this->purchaseRateType;
  894. }
  895. public function setCashAdvanceRateType($cashAdvanceRateType) {
  896. $this->cashAdvanceRateType = $cashAdvanceRateType;
  897. }
  898. public function getCashAdvanceRateType() {
  899. return $this->cashAdvanceRateType;
  900. }
  901. public function setBonusRewards(/* array(CcOfferBonusRewards) */ $bonusRewards) {
  902. $this->assertIsArray($bonusRewards, 'CcOfferBonusRewards', __METHOD__);
  903. $this->bonusRewards = $bonusRewards;
  904. }
  905. public function getBonusRewards() {
  906. return $this->bonusRewards;
  907. }
  908. public function setBalanceTransferLimit($balanceTransferLimit) {
  909. $this->balanceTransferLimit = $balanceTransferLimit;
  910. }
  911. public function getBalanceTransferLimit() {
  912. return $this->balanceTransferLimit;
  913. }
  914. public function setLuggageInsurance($luggageInsurance) {
  915. $this->luggageInsurance = $luggageInsurance;
  916. }
  917. public function getLuggageInsurance() {
  918. return $this->luggageInsurance;
  919. }
  920. public function setMinCashAdvanceRate($minCashAdvanceRate) {
  921. $this->minCashAdvanceRate = $minCashAdvanceRate;
  922. }
  923. public function getMinCashAdvanceRate() {
  924. return $this->minCashAdvanceRate;
  925. }
  926. public function setOfferId($offerId) {
  927. $this->offerId = $offerId;
  928. }
  929. public function getOfferId() {
  930. return $this->offerId;
  931. }
  932. public function setMinPurchaseRate($minPurchaseRate) {
  933. $this->minPurchaseRate = $minPurchaseRate;
  934. }
  935. public function getMinPurchaseRate() {
  936. return $this->minPurchaseRate;
  937. }
  938. public function setOffersImmediateCashReward($offersImmediateCashReward) {
  939. $this->offersImmediateCashReward = $offersImmediateCashReward;
  940. }
  941. public function getOffersImmediateCashReward() {
  942. return $this->offersImmediateCashReward;
  943. }
  944. public function setFraudLiability($fraudLiability) {
  945. $this->fraudLiability = $fraudLiability;
  946. }
  947. public function getFraudLiability() {
  948. return $this->fraudLiability;
  949. }
  950. public function setCardType($cardType) {
  951. $this->cardType = $cardType;
  952. }
  953. public function getCardType() {
  954. return $this->cardType;
  955. }
  956. public function setApprovedCategories(/* array(string) */ $approvedCategories) {
  957. $this->assertIsArray($approvedCategories, 'string', __METHOD__);
  958. $this->approvedCategories = $approvedCategories;
  959. }
  960. public function getApprovedCategories() {
  961. return $this->approvedCategories;
  962. }
  963. public function setAnnualFee($annualFee) {
  964. $this->annualFee = $annualFee;
  965. }
  966. public function getAnnualFee() {
  967. return $this->annualFee;
  968. }
  969. public function setMaxBalanceTransferRate($maxBalanceTransferRate) {
  970. $this->maxBalanceTransferRate = $maxBalanceTransferRate;
  971. }
  972. public function getMaxBalanceTransferRate() {
  973. return $this->maxBalanceTransferRate;
  974. }
  975. public function setMaxPurchaseRate($maxPurchaseRate) {
  976. $this->maxPurchaseRate = $maxPurchaseRate;
  977. }
  978. public function getMaxPurchaseRate() {
  979. return $this->maxPurchaseRate;
  980. }
  981. public function setIssuerWebsite($issuerWebsite) {
  982. $this->issuerWebsite = $issuerWebsite;
  983. }
  984. public function getIssuerWebsite() {
  985. return $this->issuerWebsite;
  986. }
  987. public function setIntroBalanceTransferRateType($introBalanceTransferRateType) {
  988. $this->introBalanceTransferRateType = $introBalanceTransferRateType;
  989. }
  990. public function getIntroBalanceTransferRateType() {
  991. return $this->introBalanceTransferRateType;
  992. }
  993. public function setAprDisplay($aprDisplay) {
  994. $this->aprDisplay = $aprDisplay;
  995. }
  996. public function getAprDisplay() {
  997. return $this->aprDisplay;
  998. }
  999. public function setImageUrl($imageUrl) {
  1000. $this->imageUrl = $imageUrl;
  1001. }
  1002. public function getImageUrl() {
  1003. return $this->imageUrl;
  1004. }
  1005. public function setAgeMinimumDetails($ageMinimumDetails) {
  1006. $this->ageMinimumDetails = $ageMinimumDetails;
  1007. }
  1008. public function getAgeMinimumDetails() {
  1009. return $this->ageMinimumDetails;
  1010. }
  1011. public function setBalanceTransferFeeAmount($balanceTransferFeeAmount) {
  1012. $this->balanceTransferFeeAmount = $balanceTransferFeeAmount;
  1013. }
  1014. public function getBalanceTransferFeeAmount() {
  1015. return $this->balanceTransferFeeAmount;
  1016. }
  1017. public function setIntroBalanceTransferPeriodEndDate($introBalanceTransferPeriodEndDate) {
  1018. $this->introBalanceTransferPeriodEndDate = $introBalanceTransferPeriodEndDate;
  1019. }
  1020. public function getIntroBalanceTransferPeriodEndDate() {
  1021. return $this->introBalanceTransferPeriodEndDate;
  1022. }
  1023. }
  1024. class CcOfferBonusRewards extends apiModel {
  1025. public $amount;
  1026. public $details;
  1027. public function setAmount($amount) {
  1028. $this->amount = $amount;
  1029. }
  1030. public function getAmount() {
  1031. return $this->amount;
  1032. }
  1033. public function setDetails($details) {
  1034. $this->details = $details;
  1035. }
  1036. public function getDetails() {
  1037. return $this->details;
  1038. }
  1039. }
  1040. class CcOfferDefaultFees extends apiModel {
  1041. public $category;
  1042. public $maxRate;
  1043. public $minRate;
  1044. public $rateType;
  1045. public function setCategory($category) {
  1046. $this->category = $category;
  1047. }
  1048. public function getCategory() {
  1049. return $this->category;
  1050. }
  1051. public function setMaxRate($maxRate) {
  1052. $this->maxRate = $maxRate;
  1053. }
  1054. public function getMaxRate() {
  1055. return $this->maxRate;
  1056. }
  1057. public function setMinRate($minRate) {
  1058. $this->minRate = $minRate;
  1059. }
  1060. public function getMinRate() {
  1061. return $this->minRate;
  1062. }
  1063. public function setRateType($rateType) {
  1064. $this->rateType = $rateType;
  1065. }
  1066. public function getRateType() {
  1067. return $this->rateType;
  1068. }
  1069. }
  1070. class CcOfferRewards extends apiModel {
  1071. public $category;
  1072. public $minRewardTier;
  1073. public $maxRewardTier;
  1074. public $expirationMonths;
  1075. public $amount;
  1076. public $additionalDetails;
  1077. public function setCategory($category) {
  1078. $this->category = $category;
  1079. }
  1080. public function getCategory() {
  1081. return $this->category;
  1082. }
  1083. public function setMinRewardTier($minRewardTier) {
  1084. $this->minRewardTier = $minRewardTier;
  1085. }
  1086. public function getMinRewardTier() {
  1087. return $this->minRewardTier;
  1088. }
  1089. public function setMaxRewardTier($maxRewardTier) {
  1090. $this->maxRewardTier = $maxRewardTier;
  1091. }
  1092. public function getMaxRewardTier() {
  1093. return $this->maxRewardTier;
  1094. }
  1095. public function setExpirationMonths($expirationMonths) {
  1096. $this->expirationMonths = $expirationMonths;
  1097. }
  1098. public function getExpirationMonths() {
  1099. return $this->expirationMonths;
  1100. }
  1101. public function setAmount($amount) {
  1102. $this->amount = $amount;
  1103. }
  1104. public function getAmount() {
  1105. return $this->amount;
  1106. }
  1107. public function setAdditionalDetails($additionalDetails) {
  1108. $this->additionalDetails = $additionalDetails;
  1109. }
  1110. public function getAdditionalDetails() {
  1111. return $this->additionalDetails;
  1112. }
  1113. }
  1114. class CcOffers extends apiModel {
  1115. protected $__itemsType = 'CcOffer';
  1116. protected $__itemsDataType = 'array';
  1117. public $items;
  1118. public $kind;
  1119. public function setItems(/* array(CcOffer) */ $items) {
  1120. $this->assertIsArray($items, 'CcOffer', __METHOD__);
  1121. $this->items = $items;
  1122. }
  1123. public function getItems() {
  1124. return $this->items;
  1125. }
  1126. public function setKind($kind) {
  1127. $this->kind = $kind;
  1128. }
  1129. public function getKind() {
  1130. return $this->kind;
  1131. }
  1132. }
  1133. class Event extends apiModel {
  1134. protected $__networkFeeType = 'Money';
  1135. protected $__networkFeeDataType = '';
  1136. public $networkFee;
  1137. public $advertiserName;
  1138. public $kind;
  1139. public $modifyDate;
  1140. public $type;
  1141. public $orderId;
  1142. public $publisherName;
  1143. public $memberId;
  1144. public $advertiserId;
  1145. public $status;
  1146. public $chargeId;
  1147. protected $__productsType = 'EventProducts';
  1148. protected $__productsDataType = 'array';
  1149. public $products;
  1150. protected $__earningsType = 'Money';
  1151. protected $__earningsDataType = '';
  1152. public $earnings;
  1153. public $chargeType;
  1154. protected $__publisherFeeType = 'Money';
  1155. protected $__publisherFeeDataType = '';
  1156. public $publisherFee;
  1157. protected $__commissionableSalesType = 'Money';
  1158. protected $__commissionableSalesDataType = '';
  1159. public $commissionableSales;
  1160. public $publisherId;
  1161. public $eventDate;
  1162. public function setNetworkFee(Money $networkFee) {
  1163. $this->networkFee = $networkFee;
  1164. }
  1165. public function getNetworkFee() {
  1166. return $this->networkFee;
  1167. }
  1168. public function setAdvertiserName($advertiserName) {
  1169. $this->advertiserName = $advertiserName;
  1170. }
  1171. public function getAdvertiserName() {
  1172. return $this->advertiserName;
  1173. }
  1174. public function setKind($kind) {
  1175. $this->kind = $kind;
  1176. }
  1177. public function getKind() {
  1178. return $this->kind;
  1179. }
  1180. public function setModifyDate($modifyDate) {
  1181. $this->modifyDate = $modifyDate;
  1182. }
  1183. public function getModifyDate() {
  1184. return $this->modifyDate;
  1185. }
  1186. public function setType($type) {
  1187. $this->type = $type;
  1188. }
  1189. public function getType() {
  1190. return $this->type;
  1191. }
  1192. public function setOrderId($orderId) {
  1193. $this->orderId = $orderId;
  1194. }
  1195. public function getOrderId() {
  1196. return $this->orderId;
  1197. }
  1198. public function setPublisherName($publisherName) {
  1199. $this->publisherName = $publisherName;
  1200. }
  1201. public function getPublisherName() {
  1202. return $this->publisherName;
  1203. }
  1204. public function setMemberId($memberId) {
  1205. $this->memberId = $memberId;
  1206. }
  1207. public function getMemberId() {
  1208. return $this->memberId;
  1209. }
  1210. public function setAdvertiserId($advertiserId) {
  1211. $this->advertiserId = $advertiserId;
  1212. }
  1213. public function getAdvertiserId() {
  1214. return $this->advertiserId;
  1215. }
  1216. public function setStatus($status) {
  1217. $this->status = $status;
  1218. }
  1219. public function getStatus() {
  1220. return $this->status;
  1221. }
  1222. public function setChargeId($chargeId) {
  1223. $this->chargeId = $chargeId;
  1224. }
  1225. public function getChargeId() {
  1226. return $this->chargeId;
  1227. }
  1228. public function setProducts(/* array(EventProducts) */ $products) {
  1229. $this->assertIsArray($products, 'EventProducts', __METHOD__);
  1230. $this->products = $products;
  1231. }
  1232. public function getProducts() {
  1233. return $this->products;
  1234. }
  1235. public function setEarnings(Money $earnings) {
  1236. $this->earnings = $earnings;
  1237. }
  1238. public function getEarnings() {
  1239. return $this->earnings;
  1240. }
  1241. public function setChargeType($chargeType) {
  1242. $this->chargeType = $chargeType;
  1243. }
  1244. public function getChargeType() {
  1245. return $this->chargeType;
  1246. }
  1247. public function setPublisherFee(Money $publisherFee) {
  1248. $this->publisherFee = $publisherFee;
  1249. }
  1250. public function getPublisherFee() {
  1251. return $this->publisherFee;
  1252. }
  1253. public function setCommissionableSales(Money $commissionableSales) {
  1254. $this->commissionableSales = $commissionableSales;
  1255. }
  1256. public function getCommissionableSales() {
  1257. return $this->commissionableSales;
  1258. }
  1259. public function setPublisherId($publisherId) {
  1260. $this->publisherId = $publisherId;
  1261. }
  1262. public function getPublisherId() {
  1263. return $this->publisherId;
  1264. }
  1265. public function setEventDate($eventDate) {
  1266. $this->eventDate = $eventDate;
  1267. }
  1268. public function getEventDate() {
  1269. return $this->eventDate;
  1270. }
  1271. }
  1272. class EventProducts extends apiModel {
  1273. protected $__networkFeeType = 'Money';
  1274. protected $__networkFeeDataType =

Large files files are truncated, but you can click here to view the full file