ApplyInvoiceRequest.cc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. #include <alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h>
  17. using AlibabaCloud::BssOpenApi::Model::ApplyInvoiceRequest;
  18. ApplyInvoiceRequest::ApplyInvoiceRequest() :
  19. RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice")
  20. {}
  21. ApplyInvoiceRequest::~ApplyInvoiceRequest()
  22. {}
  23. int ApplyInvoiceRequest::getInvoicingType()const
  24. {
  25. return invoicingType_;
  26. }
  27. void ApplyInvoiceRequest::setInvoicingType(int invoicingType)
  28. {
  29. invoicingType_ = invoicingType;
  30. setCoreParameter("InvoicingType", std::to_string(invoicingType));
  31. }
  32. int ApplyInvoiceRequest::getProcessWay()const
  33. {
  34. return processWay_;
  35. }
  36. void ApplyInvoiceRequest::setProcessWay(int processWay)
  37. {
  38. processWay_ = processWay;
  39. setCoreParameter("ProcessWay", std::to_string(processWay));
  40. }
  41. long ApplyInvoiceRequest::getCallerBid()const
  42. {
  43. return callerBid_;
  44. }
  45. void ApplyInvoiceRequest::setCallerBid(long callerBid)
  46. {
  47. callerBid_ = callerBid;
  48. setCoreParameter("CallerBid", std::to_string(callerBid));
  49. }
  50. long ApplyInvoiceRequest::getOwnerId()const
  51. {
  52. return ownerId_;
  53. }
  54. void ApplyInvoiceRequest::setOwnerId(long ownerId)
  55. {
  56. ownerId_ = ownerId;
  57. setCoreParameter("OwnerId", std::to_string(ownerId));
  58. }
  59. long ApplyInvoiceRequest::getInvoiceAmount()const
  60. {
  61. return invoiceAmount_;
  62. }
  63. void ApplyInvoiceRequest::setInvoiceAmount(long invoiceAmount)
  64. {
  65. invoiceAmount_ = invoiceAmount;
  66. setCoreParameter("InvoiceAmount", std::to_string(invoiceAmount));
  67. }
  68. long ApplyInvoiceRequest::getAddressId()const
  69. {
  70. return addressId_;
  71. }
  72. void ApplyInvoiceRequest::setAddressId(long addressId)
  73. {
  74. addressId_ = addressId;
  75. setCoreParameter("AddressId", std::to_string(addressId));
  76. }
  77. std::string ApplyInvoiceRequest::getApplyUserNick()const
  78. {
  79. return applyUserNick_;
  80. }
  81. void ApplyInvoiceRequest::setApplyUserNick(const std::string& applyUserNick)
  82. {
  83. applyUserNick_ = applyUserNick;
  84. setCoreParameter("ApplyUserNick", applyUserNick);
  85. }
  86. bool ApplyInvoiceRequest::getInvoiceByAmount()const
  87. {
  88. return invoiceByAmount_;
  89. }
  90. void ApplyInvoiceRequest::setInvoiceByAmount(bool invoiceByAmount)
  91. {
  92. invoiceByAmount_ = invoiceByAmount;
  93. setCoreParameter("InvoiceByAmount", invoiceByAmount ? "true" : "false");
  94. }
  95. long ApplyInvoiceRequest::getCustomerId()const
  96. {
  97. return customerId_;
  98. }
  99. void ApplyInvoiceRequest::setCustomerId(long customerId)
  100. {
  101. customerId_ = customerId;
  102. setCoreParameter("CustomerId", std::to_string(customerId));
  103. }
  104. std::vector<long> ApplyInvoiceRequest::getSelectedIds()const
  105. {
  106. return selectedIds_;
  107. }
  108. void ApplyInvoiceRequest::setSelectedIds(const std::vector<long>& selectedIds)
  109. {
  110. selectedIds_ = selectedIds;
  111. for(int i = 0; i!= selectedIds.size(); i++)
  112. setCoreParameter("SelectedIds."+ std::to_string(i), std::to_string(selectedIds.at(i)));
  113. }
  114. long ApplyInvoiceRequest::getCallerUid()const
  115. {
  116. return callerUid_;
  117. }
  118. void ApplyInvoiceRequest::setCallerUid(long callerUid)
  119. {
  120. callerUid_ = callerUid;
  121. setCoreParameter("CallerUid", std::to_string(callerUid));
  122. }