QueryBillResult.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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_QUERYBILLRESULT_H_
  17. #define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLRESULT_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 QueryBillResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct Item
  35. {
  36. float afterTaxAmount;
  37. std::string productName;
  38. float deductedByCashCoupons;
  39. std::string paymentTime;
  40. float tax;
  41. std::string paymentCurrency;
  42. float paymentAmount;
  43. float deductedByPrepaidCard;
  44. float invoiceDiscount;
  45. std::string usageEndTime;
  46. std::string item;
  47. std::string subscriptionType;
  48. float pretaxGrossAmount;
  49. std::string currency;
  50. std::string usageStartTime;
  51. std::string status;
  52. std::string paymentTransactionID;
  53. float deductedByCoupons;
  54. std::string productDetail;
  55. std::string productCode;
  56. std::string productType;
  57. float outstandingAmount;
  58. std::string ownerID;
  59. float pretaxAmount;
  60. std::string recordID;
  61. float pretaxAmountLocal;
  62. };
  63. std::string billingCycle;
  64. int totalCount;
  65. std::string accountID;
  66. int pageNum;
  67. int pageSize;
  68. std::vector<Item> items;
  69. std::string accountName;
  70. };
  71. QueryBillResult();
  72. explicit QueryBillResult(const std::string &payload);
  73. ~QueryBillResult();
  74. std::string getMessage()const;
  75. Data getData()const;
  76. std::string getCode()const;
  77. bool getSuccess()const;
  78. protected:
  79. void parse(const std::string &payload);
  80. private:
  81. std::string message_;
  82. Data data_;
  83. std::string code_;
  84. bool success_;
  85. };
  86. }
  87. }
  88. }
  89. #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLRESULT_H_