QuerySplitItemBillResult.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLRESULT_H_
  17. #define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/bssopenapi/BssOpenApiExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace BssOpenApi
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySplitItemBillResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct Item
  35. {
  36. std::string instanceSpec;
  37. std::string productName;
  38. std::string instanceID;
  39. float deductedByCashCoupons;
  40. std::string listPriceUnit;
  41. std::string billingDate;
  42. std::string listPrice;
  43. float paymentAmount;
  44. float deductedByPrepaidCard;
  45. float invoiceDiscount;
  46. std::string splitItemName;
  47. std::string subscriptionType;
  48. std::string item;
  49. float pretaxGrossAmount;
  50. std::string instanceConfig;
  51. std::string currency;
  52. std::string commodityCode;
  53. std::string costUnit;
  54. std::string resourceGroup;
  55. std::string billingType;
  56. std::string usage;
  57. float deductedByCoupons;
  58. std::string productDetail;
  59. std::string productCode;
  60. std::string zone;
  61. std::string productType;
  62. float outstandingAmount;
  63. std::string billingItem;
  64. std::string nickName;
  65. std::string intranetIP;
  66. std::string pipCode;
  67. std::string servicePeriod;
  68. std::string splitItemID;
  69. std::string deductedByResourcePackage;
  70. std::string usageUnit;
  71. std::string ownerID;
  72. float pretaxAmount;
  73. std::string internetIP;
  74. std::string region;
  75. std::string tag;
  76. };
  77. std::string billingCycle;
  78. int totalCount;
  79. std::string accountID;
  80. int pageNum;
  81. int pageSize;
  82. std::vector<Item> items;
  83. std::string accountName;
  84. };
  85. QuerySplitItemBillResult();
  86. explicit QuerySplitItemBillResult(const std::string &payload);
  87. ~QuerySplitItemBillResult();
  88. std::string getMessage()const;
  89. Data getData()const;
  90. std::string getCode()const;
  91. bool getSuccess()const;
  92. protected:
  93. void parse(const std::string &payload);
  94. private:
  95. std::string message_;
  96. Data data_;
  97. std::string code_;
  98. bool success_;
  99. };
  100. }
  101. }
  102. }
  103. #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLRESULT_H_