togai_client 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (686) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -4
  3. data/docs/Account.md +26 -2
  4. data/docs/AccountAlias.md +28 -0
  5. data/docs/AccountAliases.md +1 -3
  6. data/docs/AccountAliasesPaginatedResponse.md +20 -0
  7. data/docs/AccountSchedule.md +38 -0
  8. data/docs/AccountsApi.md +840 -124
  9. data/docs/AccountsBillingInformation.md +20 -0
  10. data/docs/ActivatePricePlanRequest.md +18 -0
  11. data/docs/AddAccountAliasesRequest.md +3 -1
  12. data/docs/AddOn.md +30 -0
  13. data/docs/AddOnPaginatedResponse.md +22 -0
  14. data/docs/AddOnType.md +15 -0
  15. data/docs/AddOnsApi.md +365 -0
  16. data/docs/Address.md +30 -0
  17. data/docs/Alert.md +40 -0
  18. data/docs/AlertStatus.md +15 -0
  19. data/docs/AlertTemplate.md +38 -0
  20. data/docs/AlertTemplatesPaginatedResponse.md +20 -0
  21. data/docs/AlertsApi.md +566 -0
  22. data/docs/AlertsPaginatedResponse.md +20 -0
  23. data/docs/AliasPaginatedResponse.md +20 -0
  24. data/docs/AliasesApi.md +291 -0
  25. data/docs/AssociationConfig.md +24 -0
  26. data/docs/Attribute.md +22 -0
  27. data/docs/AuthenticationApi.md +74 -0
  28. data/docs/BillingConfig.md +20 -0
  29. data/docs/BillingEntitlementRateCard.md +34 -0
  30. data/docs/BillingEntitlementRevenueSummary.md +18 -0
  31. data/docs/BulkRateCardOperationsRequest.md +18 -0
  32. data/docs/BulkRateCardOperationsResponse.md +18 -0
  33. data/docs/CalculateRevenueRequest.md +30 -0
  34. data/docs/CalculateRevenueResponse.md +24 -0
  35. data/docs/CalculateRevenueResponseV2.md +22 -0
  36. data/docs/Computation.md +5 -3
  37. data/docs/CreateAccountAliasRequest.md +22 -0
  38. data/docs/CreateAccountRequest.md +27 -5
  39. data/docs/CreateAccountRequestWithoutCustomerId.md +42 -0
  40. data/docs/CreateAddOnRequest.md +22 -0
  41. data/docs/CreateAlertRequest.md +32 -0
  42. data/docs/CreateAliasRequest.md +18 -0
  43. data/docs/CreateBulkAliasRequest.md +18 -0
  44. data/docs/CreateCreditRequest.md +18 -0
  45. data/docs/CreateCreditResponse.md +18 -0
  46. data/docs/CreateCustomInvoiceRequest.md +36 -0
  47. data/docs/CreateCustomerContactRequest.md +30 -0
  48. data/docs/CreateCustomerContactResponse.md +34 -0
  49. data/docs/CreateCustomerRequest.md +9 -7
  50. data/docs/CreateCustomerResponse.md +8 -2
  51. data/docs/CreateEntitySetting.md +26 -0
  52. data/docs/CreateEventSchemaRequest.md +7 -1
  53. data/docs/CreateFeatureRequest.md +22 -0
  54. data/docs/CreateInvoiceGroupRequest.md +28 -0
  55. data/docs/CreatePaymentRequest.md +30 -0
  56. data/docs/CreatePricePlanDetails.md +38 -0
  57. data/docs/CreatePricePlanDetailsOverride.md +34 -0
  58. data/docs/CreatePricePlanMigrationRequest.md +32 -0
  59. data/docs/CreatePricePlanRequest.md +6 -2
  60. data/docs/CreatePricePlanV2Request.md +30 -0
  61. data/docs/CreatePricingRule.md +28 -0
  62. data/docs/CreateProposalRequest.md +40 -0
  63. data/docs/CreatePurchaseRequest.md +38 -0
  64. data/docs/CreateUsageMeterRequest.md +12 -6
  65. data/docs/Credit.md +50 -0
  66. data/docs/CreditBalanceResponse.md +28 -0
  67. data/docs/CreditDetailsResponse.md +52 -0
  68. data/docs/CreditGrantRateCard.md +34 -0
  69. data/docs/CreditGrantRevenueSummary.md +18 -0
  70. data/docs/CreditGrantType.md +15 -0
  71. data/docs/CreditRateDetails.md +20 -0
  72. data/docs/CreditRequest.md +34 -0
  73. data/docs/CreditTransaction.md +30 -0
  74. data/docs/CreditsApi.md +369 -0
  75. data/docs/CurrencyConfig.md +22 -0
  76. data/docs/CurrencyRateValue.md +20 -0
  77. data/docs/CurrencySlabRateDetail.md +24 -0
  78. data/docs/CustomInvoiceLineItem.md +28 -0
  79. data/docs/Customer.md +6 -2
  80. data/docs/CustomerPortalApi.md +77 -0
  81. data/docs/CustomersApi.md +85 -13
  82. data/docs/Dependency.md +22 -0
  83. data/docs/EditAccountScheduleRequest.md +18 -0
  84. data/docs/EditPricingScheduleRequest.md +18 -0
  85. data/docs/EnrichedField.md +22 -0
  86. data/docs/EnrichmentDependency.md +24 -0
  87. data/docs/Enrichments.md +20 -0
  88. data/docs/EntitlementOverageConfig.md +22 -0
  89. data/docs/EntitlementOverageConfigLookupCycle.md +20 -0
  90. data/docs/EntitlementOverageEntry.md +20 -0
  91. data/docs/EntitlementOverageRateCard.md +32 -0
  92. data/docs/EntitlementOverageRevenueSummary.md +18 -0
  93. data/docs/EntitlementsApi.md +599 -0
  94. data/docs/Event.md +11 -11
  95. data/docs/EventCorrectionInfo.md +32 -0
  96. data/docs/EventCorrectionRequest.md +18 -0
  97. data/docs/EventIngestionApi.md +16 -15
  98. data/docs/EventManagementApi.md +95 -21
  99. data/docs/EventPipelineInfo.md +15 -3
  100. data/docs/EventPipelineInfoAccount.md +3 -1
  101. data/docs/EventPipelineInfoEnrichments.md +22 -0
  102. data/docs/EventPipelineInfoFeatureDetails.md +24 -0
  103. data/docs/EventPipelineInfoPricePlans.md +28 -0
  104. data/docs/EventPipelineInfoRevenueDetails.md +22 -0
  105. data/docs/EventPipelineInfoUsageMeters.md +26 -0
  106. data/docs/EventSchema.md +11 -1
  107. data/docs/EventSchemaListData.md +11 -1
  108. data/docs/EventSchemasApi.md +82 -84
  109. data/docs/EventSchemasForFeature.md +20 -0
  110. data/docs/EventSource.md +20 -0
  111. data/docs/EventWithStatus.md +9 -1
  112. data/docs/EventWithStatusAndEventPipelineInfo.md +9 -1
  113. data/docs/EventsCorrectionResponse.md +18 -0
  114. data/docs/ExpiryType.md +15 -0
  115. data/docs/ExternalPaymentReference.md +26 -0
  116. data/docs/Feature.md +30 -0
  117. data/docs/FeatureApi.md +293 -0
  118. data/docs/FeatureConfig.md +22 -0
  119. data/docs/FeatureCreditEntry.md +32 -0
  120. data/docs/FeatureDetails.md +20 -0
  121. data/docs/FeatureListResponse.md +30 -0
  122. data/docs/FeaturePaginatedListData.md +22 -0
  123. data/docs/Field.md +26 -0
  124. data/docs/FileDownloadUrlResponse.md +18 -0
  125. data/docs/FileStorageApi.md +151 -0
  126. data/docs/FinalizeAccountSchedules.md +20 -0
  127. data/docs/FinalizePricePlanRequest.md +20 -0
  128. data/docs/FixedFeeRateCard.md +34 -0
  129. data/docs/FixedFeeRevenueSummary.md +18 -0
  130. data/docs/FixedFeeType.md +15 -0
  131. data/docs/GetCustomerPortalDelegateTokenRequest.md +24 -0
  132. data/docs/GetEntitlementValuesResponse.md +18 -0
  133. data/docs/GetEntitlementValuesResponseDataInner.md +20 -0
  134. data/docs/GetFeatureCreditEntriesPaginatedResponse.md +20 -0
  135. data/docs/GetFeatureCreditsResponse.md +28 -0
  136. data/docs/GetJobResponse.md +36 -0
  137. data/docs/GetLicenseUpdatesResponse.md +20 -0
  138. data/docs/GetMetricsRequest.md +4 -4
  139. data/docs/GetProposalResponse.md +62 -0
  140. data/docs/GetPurchaseResponse.md +62 -0
  141. data/docs/GrantDetails.md +24 -0
  142. data/docs/Incident.md +36 -0
  143. data/docs/IncidentsPaginatedResponse.md +20 -0
  144. data/docs/IngestEventRequest.md +1 -1
  145. data/docs/IngestEventResponse.md +12 -2
  146. data/docs/Invoice.md +68 -0
  147. data/docs/InvoiceDetails.md +28 -0
  148. data/docs/InvoiceDetailsAccount.md +24 -0
  149. data/docs/InvoiceDetailsCustomer.md +24 -0
  150. data/docs/InvoiceDetailsInvoiceGroup.md +28 -0
  151. data/docs/InvoiceDetailsOrganization.md +24 -0
  152. data/docs/InvoiceGroupAccountsPaginatedResponse.md +40 -0
  153. data/docs/InvoiceGroupDetails.md +30 -0
  154. data/docs/InvoiceGroupPaginatedResponse.md +20 -0
  155. data/docs/InvoiceGroups.md +36 -0
  156. data/docs/InvoiceGroupsApi.md +358 -0
  157. data/docs/InvoiceInfoInner.md +20 -0
  158. data/docs/InvoiceLineItem.md +34 -0
  159. data/docs/InvoiceSummary.md +58 -0
  160. data/docs/InvoiceTiming.md +15 -0
  161. data/docs/InvoicesApi.md +751 -0
  162. data/docs/InvoicesClass.md +15 -0
  163. data/docs/InvoicesStatus.md +15 -0
  164. data/docs/InvoicesType.md +15 -0
  165. data/docs/JobEntriesPaginatedResponse.md +22 -0
  166. data/docs/JobEntriesResponse.md +26 -0
  167. data/docs/JobsApi.md +361 -0
  168. data/docs/JobsPaginatedResponse.md +22 -0
  169. data/docs/JobsWithoutStatusInfoResponse.md +24 -0
  170. data/docs/LicenseEntriesConfig.md +24 -0
  171. data/docs/LicenseEntriesConfigLookupCycle.md +20 -0
  172. data/docs/LicenseEntriesConfigLookupRange.md +22 -0
  173. data/docs/LicenseEntry.md +22 -0
  174. data/docs/LicenseEntryDetailsUpdateRequest.md +22 -0
  175. data/docs/LicenseRateCard.md +40 -0
  176. data/docs/LicenseRateCardConfig.md +20 -0
  177. data/docs/LicenseUpdate.md +26 -0
  178. data/docs/LicenseUpdateRequest.md +30 -0
  179. data/docs/LicenseUpdateResponse.md +28 -0
  180. data/docs/LicensesApi.md +300 -0
  181. data/docs/ListCreditsResponse.md +20 -0
  182. data/docs/ListInvoicesResponse.md +20 -0
  183. data/docs/ListPaymentResponse.md +20 -0
  184. data/docs/ManageMiscellaneousChargesRequest.md +18 -0
  185. data/docs/MaxQuantityBreachAction.md +15 -0
  186. data/docs/MetricQuery.md +7 -5
  187. data/docs/MetricQueryFilterEntry.md +1 -1
  188. data/docs/MetricQueryResponse.md +1 -1
  189. data/docs/MetricsApi.md +7 -7
  190. data/docs/MigrationMode.md +15 -0
  191. data/docs/MinimumCommitment.md +20 -0
  192. data/docs/MiscellaneousCharge.md +26 -0
  193. data/docs/MiscellaneousChargesResponse.md +18 -0
  194. data/docs/ModelAlias.md +20 -0
  195. data/docs/NamedLicenseEntriesConfig.md +24 -0
  196. data/docs/NamedLicenseEntriesConfigLookupCycle.md +20 -0
  197. data/docs/NamedLicenseEntriesConfigLookupRange.md +22 -0
  198. data/docs/NamedLicenseEntry.md +24 -0
  199. data/docs/NamedLicenseUpdate.md +32 -0
  200. data/docs/NamedLicenseUpdatesPaginatedResponse.md +20 -0
  201. data/docs/Payment.md +38 -0
  202. data/docs/PaymentLineItemRecord.md +24 -0
  203. data/docs/PaymentsApi.md +227 -0
  204. data/docs/PlanOverride.md +6 -0
  205. data/docs/PreAction.md +20 -0
  206. data/docs/PriceExperimentationApi.md +147 -0
  207. data/docs/PricePlan.md +4 -0
  208. data/docs/PricePlanDetails.md +25 -3
  209. data/docs/PricePlanDetailsConfig.md +28 -0
  210. data/docs/PricePlanDetailsOverride.md +16 -2
  211. data/docs/PricePlanInfo.md +20 -0
  212. data/docs/PricePlanListData.md +10 -2
  213. data/docs/PricePlanMigrationConfig.md +30 -0
  214. data/docs/PricePlanType.md +15 -0
  215. data/docs/PricePlanV2.md +42 -0
  216. data/docs/PricePlanV2Api.md +953 -0
  217. data/docs/PricePlanV2PaginatedResponse.md +20 -0
  218. data/docs/PricePlansApi.md +202 -52
  219. data/docs/PricingCycleConfig.md +6 -6
  220. data/docs/PricingCycleConfigStartOffset.md +1 -1
  221. data/docs/PricingCycleInterval.md +15 -0
  222. data/docs/PricingRule.md +32 -0
  223. data/docs/PricingRuleAction.md +26 -0
  224. data/docs/PricingRuleChangesLog.md +30 -0
  225. data/docs/PricingRuleInfo.md +24 -0
  226. data/docs/PricingRuleTiming.md +15 -0
  227. data/docs/PricingRulesApi.md +83 -0
  228. data/docs/PricingRulesLog.md +28 -0
  229. data/docs/PricingRulesLogsPaginatedResponse.md +18 -0
  230. data/docs/PricingRulesPaginatedResponse.md +18 -0
  231. data/docs/PricingRulesValues.md +20 -0
  232. data/docs/PricingSchedule.md +9 -1
  233. data/docs/PricingSchedulePaginatedResponse.md +22 -0
  234. data/docs/PricingScheduleWithPricePlanId.md +36 -0
  235. data/docs/Proposal.md +62 -0
  236. data/docs/ProposalsListResponse.md +40 -0
  237. data/docs/ProposalsPaginatedResponse.md +22 -0
  238. data/docs/ProratedRefundMode.md +15 -0
  239. data/docs/ProrationConfig.md +22 -0
  240. data/docs/ProrationConfigCustomConfig.md +22 -0
  241. data/docs/ProrationConfigLookupCycleConfig.md +22 -0
  242. data/docs/Purchase.md +58 -0
  243. data/docs/PurchaseFeatureDetails.md +30 -0
  244. data/docs/PurchaseListResponse.md +46 -0
  245. data/docs/PurchasePaginatedListData.md +22 -0
  246. data/docs/PurchasePlanOverride.md +22 -0
  247. data/docs/PurchaseStatus.md +15 -0
  248. data/docs/PurchaseType.md +15 -0
  249. data/docs/QueryColumn.md +26 -0
  250. data/docs/QueryFilter.md +22 -0
  251. data/docs/QueryFunction.md +20 -0
  252. data/docs/QueryInput.md +28 -0
  253. data/docs/QueryInputSortInner.md +20 -0
  254. data/docs/RateCard.md +23 -5
  255. data/docs/RateCardData.md +28 -0
  256. data/docs/RateCardDetails.md +30 -0
  257. data/docs/RateCardOperation.md +22 -0
  258. data/docs/RateCardPaginatedResponse.md +20 -0
  259. data/docs/RatePlan.md +20 -0
  260. data/docs/RateValue.md +22 -0
  261. data/docs/RecurrenceConfig.md +20 -0
  262. data/docs/RemoveAccountAliasRequest.md +20 -0
  263. data/docs/RemoveAccountAliasesRequest.md +4 -2
  264. data/docs/Report.md +38 -0
  265. data/docs/ReportStatus.md +15 -0
  266. data/docs/ReportType.md +15 -0
  267. data/docs/ReportsApi.md +83 -0
  268. data/docs/ReportsPaginatedResponse.md +20 -0
  269. data/docs/RevenueInfo.md +42 -0
  270. data/docs/RevenueInfoV2.md +32 -0
  271. data/docs/RevenueSummaryWithMetadata.md +24 -0
  272. data/docs/ScheduleInfo.md +22 -0
  273. data/docs/SchedulesApi.md +667 -0
  274. data/docs/SchedulesPaginatedResponse.md +22 -0
  275. data/docs/Setting.md +30 -0
  276. data/docs/SettingDataType.md +15 -0
  277. data/docs/SettingPaginatedResponse.md +22 -0
  278. data/docs/SettingsApi.md +301 -0
  279. data/docs/Slab.md +24 -0
  280. data/docs/SlabDetail.md +26 -0
  281. data/docs/SlabRate.md +22 -0
  282. data/docs/SlabRevenue.md +22 -0
  283. data/docs/SlabRevenueMetadata.md +22 -0
  284. data/docs/SlabRevenueSummary.md +24 -0
  285. data/docs/SlabRevenueWithMetadata.md +24 -0
  286. data/docs/TokenResponse.md +18 -0
  287. data/docs/TopupWalletRequest.md +18 -0
  288. data/docs/UpdateAccountRequest.md +18 -2
  289. data/docs/UpdateAccountScheduleV2Request.md +26 -0
  290. data/docs/UpdateAddOnRequest.md +20 -0
  291. data/docs/UpdateAlertRequest.md +26 -0
  292. data/docs/UpdateCustomerRequest.md +5 -5
  293. data/docs/UpdateEventSchemaRequest.md +9 -3
  294. data/docs/UpdateFeatureCreditsRequest.md +20 -0
  295. data/docs/UpdateFeatureRequest.md +22 -0
  296. data/docs/UpdateIncidentStatusRequest.md +18 -0
  297. data/docs/UpdateInvoiceGroupAccounts.md +18 -0
  298. data/docs/UpdateInvoiceRequest.md +26 -0
  299. data/docs/UpdatePricePlanRequest.md +8 -2
  300. data/docs/UpdatePricePlanV2Request.md +22 -0
  301. data/docs/UpdatePricingRulesRequest.md +18 -0
  302. data/docs/UpdatePricingScheduleRequest.md +30 -0
  303. data/docs/UpdatePricingScheduleRequestWithActions.md +32 -0
  304. data/docs/UpdatePricingScheduleResponse.md +22 -0
  305. data/docs/UpdateProposalStatus.md +18 -0
  306. data/docs/UpdateSettingRequest.md +22 -0
  307. data/docs/UpdateUsageMeterRequest.md +13 -5
  308. data/docs/UpdateWalletRequest.md +20 -0
  309. data/docs/UsageConfig.md +24 -0
  310. data/docs/UsageConfigLookupCycle.md +20 -0
  311. data/docs/UsageConfigLookupRange.md +22 -0
  312. data/docs/UsageCycleInterval.md +15 -0
  313. data/docs/UsageLookupRange.md +20 -0
  314. data/docs/UsageMeter.md +12 -2
  315. data/docs/UsageMeterAggregation.md +15 -0
  316. data/docs/UsageMeterFilterEntry.md +20 -0
  317. data/docs/UsageMetersApi.md +64 -74
  318. data/docs/UsageRateCard.md +28 -0
  319. data/docs/ValidateEntitlementValueRequest.md +18 -0
  320. data/docs/ValidatedEntityError.md +24 -0
  321. data/docs/ValidatedEntityErrorsPaginatedResponse.md +20 -0
  322. data/docs/VersionsToMigrate.md +15 -0
  323. data/docs/WalletApi.md +301 -0
  324. data/docs/WalletBalanceResponse.md +40 -0
  325. data/docs/WalletEntriesPaginatedResponse.md +20 -0
  326. data/docs/WalletEntry.md +34 -0
  327. data/docs/WalletStatus.md +15 -0
  328. data/docs/WalletTopupDetails.md +20 -0
  329. data/lib/togai_client/api/accounts_api.rb +881 -220
  330. data/lib/togai_client/api/add_ons_api.rb +372 -0
  331. data/lib/togai_client/api/alerts_api.rb +527 -0
  332. data/lib/togai_client/api/aliases_api.rb +279 -0
  333. data/lib/togai_client/api/authentication_api.rb +79 -0
  334. data/lib/togai_client/api/credits_api.rb +351 -0
  335. data/lib/togai_client/api/customer_portal_api.rb +90 -0
  336. data/lib/togai_client/api/customers_api.rb +96 -18
  337. data/lib/togai_client/api/entitlements_api.rb +655 -0
  338. data/lib/togai_client/api/event_ingestion_api.rb +15 -15
  339. data/lib/togai_client/api/event_management_api.rb +97 -21
  340. data/lib/togai_client/api/event_schemas_api.rb +104 -107
  341. data/lib/togai_client/api/feature_api.rb +298 -0
  342. data/lib/togai_client/api/file_storage_api.rb +151 -0
  343. data/lib/togai_client/api/invoice_groups_api.rb +370 -0
  344. data/lib/togai_client/api/invoices_api.rb +705 -0
  345. data/lib/togai_client/api/jobs_api.rb +337 -0
  346. data/lib/togai_client/api/licenses_api.rb +282 -0
  347. data/lib/togai_client/api/metrics_api.rb +6 -6
  348. data/lib/togai_client/api/payments_api.rb +215 -0
  349. data/lib/togai_client/api/price_experimentation_api.rb +158 -0
  350. data/lib/togai_client/api/price_plan_v2_api.rb +960 -0
  351. data/lib/togai_client/api/price_plans_api.rb +214 -62
  352. data/lib/togai_client/api/pricing_rules_api.rb +106 -0
  353. data/lib/togai_client/api/reports_api.rb +92 -0
  354. data/lib/togai_client/api/schedules_api.rb +685 -0
  355. data/lib/togai_client/api/settings_api.rb +302 -0
  356. data/lib/togai_client/api/usage_meters_api.rb +97 -153
  357. data/lib/togai_client/api/wallet_api.rb +310 -0
  358. data/lib/togai_client/api_client.rb +25 -23
  359. data/lib/togai_client/api_error.rb +2 -1
  360. data/lib/togai_client/configuration.rb +51 -18
  361. data/lib/togai_client/models/account.rb +260 -28
  362. data/lib/togai_client/models/account_alias.rb +329 -0
  363. data/lib/togai_client/models/account_aliases.rb +23 -67
  364. data/lib/togai_client/models/account_aliases_paginated_response.rb +233 -0
  365. data/lib/togai_client/models/account_paginated_response.rb +14 -19
  366. data/lib/togai_client/models/account_schedule.rb +375 -0
  367. data/lib/togai_client/models/accounts_billing_information.rb +228 -0
  368. data/lib/togai_client/models/activate_price_plan_request.rb +235 -0
  369. data/lib/togai_client/models/add_account_aliases_request.rb +64 -25
  370. data/lib/togai_client/models/add_on.rb +395 -0
  371. data/lib/togai_client/models/add_on_paginated_response.rb +241 -0
  372. data/lib/togai_client/models/add_on_type.rb +42 -0
  373. data/lib/togai_client/models/address.rb +276 -0
  374. data/lib/togai_client/models/alert.rb +391 -0
  375. data/lib/togai_client/models/alert_status.rb +40 -0
  376. data/lib/togai_client/models/alert_template.rb +343 -0
  377. data/lib/togai_client/models/alert_templates_paginated_response.rb +232 -0
  378. data/lib/togai_client/models/alerts_paginated_response.rb +232 -0
  379. data/lib/togai_client/models/alias_paginated_response.rb +226 -0
  380. data/lib/togai_client/models/association_config.rb +244 -0
  381. data/lib/togai_client/models/attribute.rb +327 -0
  382. data/lib/togai_client/models/base_success_response.rb +16 -19
  383. data/lib/togai_client/models/billing_config.rb +225 -0
  384. data/lib/togai_client/models/billing_entitlement_rate_card.rb +370 -0
  385. data/lib/togai_client/models/billing_entitlement_revenue_summary.rb +221 -0
  386. data/lib/togai_client/models/bulk_rate_card_operations_request.rb +224 -0
  387. data/lib/togai_client/models/bulk_rate_card_operations_response.rb +224 -0
  388. data/lib/togai_client/models/calculate_revenue_request.rb +297 -0
  389. data/lib/togai_client/models/calculate_revenue_response.rb +264 -0
  390. data/lib/togai_client/models/calculate_revenue_response_v2.rb +248 -0
  391. data/lib/togai_client/models/computation.rb +49 -27
  392. data/lib/togai_client/models/create_account_alias_request.rb +270 -0
  393. data/lib/togai_client/models/create_account_request.rb +306 -27
  394. data/lib/togai_client/models/create_account_request_without_customer_id.rb +551 -0
  395. data/lib/togai_client/models/create_add_on_request.rb +309 -0
  396. data/lib/togai_client/models/create_alert_request.rb +327 -0
  397. data/lib/togai_client/models/create_alias_request.rb +241 -0
  398. data/lib/togai_client/models/create_bulk_alias_request.rb +252 -0
  399. data/lib/togai_client/models/create_credit_request.rb +224 -0
  400. data/lib/togai_client/models/create_credit_response.rb +223 -0
  401. data/lib/togai_client/models/create_custom_invoice_request.rb +411 -0
  402. data/lib/togai_client/models/create_customer_contact_request.rb +402 -0
  403. data/lib/togai_client/models/create_customer_contact_response.rb +435 -0
  404. data/lib/togai_client/models/create_customer_request.rb +69 -47
  405. data/lib/togai_client/models/create_customer_response.rb +81 -40
  406. data/lib/togai_client/models/create_entity_setting.rb +308 -0
  407. data/lib/togai_client/models/create_event_schema_request.rb +70 -24
  408. data/lib/togai_client/models/create_feature_request.rb +309 -0
  409. data/lib/togai_client/models/create_invoice_group_request.rb +344 -0
  410. data/lib/togai_client/models/create_payment_request.rb +394 -0
  411. data/lib/togai_client/models/create_price_plan_details.rb +339 -0
  412. data/lib/togai_client/models/create_price_plan_details_override.rb +319 -0
  413. data/lib/togai_client/models/create_price_plan_migration_request.rb +385 -0
  414. data/lib/togai_client/models/create_price_plan_request.rb +69 -24
  415. data/lib/togai_client/models/create_price_plan_v2_request.rb +367 -0
  416. data/lib/togai_client/models/create_pricing_rule.rb +313 -0
  417. data/lib/togai_client/models/create_proposal_request.rb +371 -0
  418. data/lib/togai_client/models/create_purchase_request.rb +330 -0
  419. data/lib/togai_client/models/create_usage_meter_request.rb +85 -42
  420. data/lib/togai_client/models/credit.rb +490 -0
  421. data/lib/togai_client/models/credit_balance_response.rb +302 -0
  422. data/lib/togai_client/models/credit_details_response.rb +508 -0
  423. data/lib/togai_client/models/credit_grant_rate_card.rb +332 -0
  424. data/lib/togai_client/models/credit_grant_revenue_summary.rb +221 -0
  425. data/lib/togai_client/models/credit_grant_type.rb +40 -0
  426. data/lib/togai_client/models/credit_rate_details.rb +262 -0
  427. data/lib/togai_client/models/credit_request.rb +330 -0
  428. data/lib/togai_client/models/credit_transaction.rb +357 -0
  429. data/lib/togai_client/models/currency_config.rb +296 -0
  430. data/lib/togai_client/models/currency_rate_value.rb +237 -0
  431. data/lib/togai_client/models/currency_slab_rate_detail.rb +287 -0
  432. data/lib/togai_client/models/custom_invoice_line_item.rb +260 -0
  433. data/lib/togai_client/models/customer.rb +68 -26
  434. data/lib/togai_client/models/customer_paginated_response.rb +14 -19
  435. data/lib/togai_client/models/dependency.rb +287 -0
  436. data/lib/togai_client/models/dimensions_schema.rb +16 -19
  437. data/lib/togai_client/models/edit_account_schedule_request.rb +252 -0
  438. data/lib/togai_client/models/edit_pricing_schedule_request.rb +252 -0
  439. data/lib/togai_client/models/enriched_field.rb +288 -0
  440. data/lib/togai_client/models/enrichment_dependency.rb +297 -0
  441. data/lib/togai_client/models/enrichments.rb +234 -0
  442. data/lib/togai_client/models/entitlement_overage_config.rb +278 -0
  443. data/lib/togai_client/models/entitlement_overage_config_lookup_cycle.rb +258 -0
  444. data/lib/togai_client/models/entitlement_overage_entry.rb +256 -0
  445. data/lib/togai_client/models/entitlement_overage_rate_card.rb +324 -0
  446. data/lib/togai_client/models/entitlement_overage_revenue_summary.rb +221 -0
  447. data/lib/togai_client/models/error_response.rb +16 -19
  448. data/lib/togai_client/models/event.rb +104 -84
  449. data/lib/togai_client/models/event_attribute_schema.rb +22 -21
  450. data/lib/togai_client/models/event_correction_info.rb +384 -0
  451. data/lib/togai_client/models/event_correction_request.rb +215 -0
  452. data/lib/togai_client/models/event_pipeline_info.rb +76 -25
  453. data/lib/togai_client/models/event_pipeline_info_account.rb +31 -23
  454. data/lib/togai_client/models/event_pipeline_info_customer.rb +18 -19
  455. data/lib/togai_client/models/event_pipeline_info_enrichments.rb +238 -0
  456. data/lib/togai_client/models/event_pipeline_info_event_schema.rb +18 -19
  457. data/lib/togai_client/models/event_pipeline_info_feature_details.rb +255 -0
  458. data/lib/togai_client/models/event_pipeline_info_price_plans.rb +306 -0
  459. data/lib/togai_client/models/event_pipeline_info_revenue_details.rb +253 -0
  460. data/lib/togai_client/models/event_pipeline_info_usage_meters.rb +312 -0
  461. data/lib/togai_client/models/event_schema.rb +89 -29
  462. data/lib/togai_client/models/event_schema_list_data.rb +90 -31
  463. data/lib/togai_client/models/event_schema_list_paginated_response.rb +14 -19
  464. data/lib/togai_client/models/event_schema_versions_response.rb +16 -19
  465. data/lib/togai_client/models/event_schemas_for_feature.rb +259 -0
  466. data/lib/togai_client/models/event_source.rb +278 -0
  467. data/lib/togai_client/models/event_with_status.rb +94 -23
  468. data/lib/togai_client/models/event_with_status_and_event_pipeline_info.rb +100 -23
  469. data/lib/togai_client/models/events_correction_response.rb +252 -0
  470. data/lib/togai_client/models/expiry_type.rb +41 -0
  471. data/lib/togai_client/models/external_payment_reference.rb +309 -0
  472. data/lib/togai_client/models/feature.rb +365 -0
  473. data/lib/togai_client/models/feature_config.rb +266 -0
  474. data/lib/togai_client/models/feature_credit_entry.rb +387 -0
  475. data/lib/togai_client/models/feature_details.rb +238 -0
  476. data/lib/togai_client/models/feature_list_response.rb +343 -0
  477. data/lib/togai_client/models/feature_paginated_list_data.rb +234 -0
  478. data/lib/togai_client/models/field.rb +331 -0
  479. data/lib/togai_client/models/file_download_url_response.rb +221 -0
  480. data/lib/togai_client/models/finalize_account_schedules.rb +228 -0
  481. data/lib/togai_client/models/finalize_price_plan_request.rb +246 -0
  482. data/lib/togai_client/models/fixed_fee_rate_card.rb +354 -0
  483. data/lib/togai_client/models/fixed_fee_revenue_summary.rb +221 -0
  484. data/lib/togai_client/models/fixed_fee_type.rb +40 -0
  485. data/lib/togai_client/models/get_customer_portal_delegate_token_request.rb +255 -0
  486. data/lib/togai_client/models/get_entitlement_values_response.rb +223 -0
  487. data/lib/togai_client/models/get_entitlement_values_response_data_inner.rb +239 -0
  488. data/lib/togai_client/models/get_event_response.rb +16 -19
  489. data/lib/togai_client/models/get_events_response.rb +21 -20
  490. data/lib/togai_client/models/get_feature_credit_entries_paginated_response.rb +225 -0
  491. data/lib/togai_client/models/get_feature_credits_response.rb +333 -0
  492. data/lib/togai_client/models/get_job_response.rb +399 -0
  493. data/lib/togai_client/models/get_license_updates_response.rb +252 -0
  494. data/lib/togai_client/models/get_metrics_request.rb +22 -19
  495. data/lib/togai_client/models/get_metrics_response.rb +16 -19
  496. data/lib/togai_client/models/get_proposal_response.rb +536 -0
  497. data/lib/togai_client/models/get_purchase_response.rb +519 -0
  498. data/lib/togai_client/models/grant_details.rb +299 -0
  499. data/lib/togai_client/models/incident.rb +347 -0
  500. data/lib/togai_client/models/incidents_paginated_response.rb +232 -0
  501. data/lib/togai_client/models/ingest_batch_event_request.rb +21 -24
  502. data/lib/togai_client/models/ingest_event_request.rb +21 -19
  503. data/lib/togai_client/models/ingest_event_response.rb +76 -42
  504. data/lib/togai_client/models/ingestion_status.rb +23 -22
  505. data/lib/togai_client/models/invoice.rb +571 -0
  506. data/lib/togai_client/models/invoice_details.rb +259 -0
  507. data/lib/togai_client/models/invoice_details_account.rb +269 -0
  508. data/lib/togai_client/models/invoice_details_customer.rb +255 -0
  509. data/lib/togai_client/models/invoice_details_invoice_group.rb +294 -0
  510. data/lib/togai_client/models/invoice_details_organization.rb +264 -0
  511. data/lib/togai_client/models/invoice_group_accounts_paginated_response.rb +430 -0
  512. data/lib/togai_client/models/invoice_group_details.rb +330 -0
  513. data/lib/togai_client/models/invoice_group_paginated_response.rb +225 -0
  514. data/lib/togai_client/models/invoice_groups.rb +403 -0
  515. data/lib/togai_client/models/invoice_info_inner.rb +239 -0
  516. data/lib/togai_client/models/invoice_line_item.rb +381 -0
  517. data/lib/togai_client/models/invoice_summary.rb +520 -0
  518. data/lib/togai_client/models/invoice_timing.rb +41 -0
  519. data/lib/togai_client/models/invoices_class.rb +41 -0
  520. data/lib/togai_client/models/invoices_status.rb +47 -0
  521. data/lib/togai_client/models/invoices_type.rb +44 -0
  522. data/lib/togai_client/models/job_entries_paginated_response.rb +234 -0
  523. data/lib/togai_client/models/job_entries_response.rb +314 -0
  524. data/lib/togai_client/models/jobs_paginated_response.rb +234 -0
  525. data/lib/togai_client/models/jobs_without_status_info_response.rb +269 -0
  526. data/lib/togai_client/models/license_entries_config.rb +287 -0
  527. data/lib/togai_client/models/license_entries_config_lookup_cycle.rb +251 -0
  528. data/lib/togai_client/models/license_entries_config_lookup_range.rb +273 -0
  529. data/lib/togai_client/models/license_entry.rb +272 -0
  530. data/lib/togai_client/models/license_entry_details_update_request.rb +277 -0
  531. data/lib/togai_client/models/license_rate_card.rb +388 -0
  532. data/lib/togai_client/models/license_rate_card_config.rb +246 -0
  533. data/lib/togai_client/models/license_update.rb +320 -0
  534. data/lib/togai_client/models/license_update_request.rb +377 -0
  535. data/lib/togai_client/models/license_update_response.rb +342 -0
  536. data/lib/togai_client/models/list_credits_response.rb +280 -0
  537. data/lib/togai_client/models/list_invoices_response.rb +280 -0
  538. data/lib/togai_client/models/list_payment_response.rb +280 -0
  539. data/lib/togai_client/models/manage_miscellaneous_charges_request.rb +224 -0
  540. data/lib/togai_client/models/max_quantity_breach_action.rb +39 -0
  541. data/lib/togai_client/models/metric_data_points.rb +28 -29
  542. data/lib/togai_client/models/metric_data_points_grouped_by.rb +18 -19
  543. data/lib/togai_client/models/metric_name.rb +11 -4
  544. data/lib/togai_client/models/metric_query.rb +45 -24
  545. data/lib/togai_client/models/metric_query_filter_entry.rb +19 -20
  546. data/lib/togai_client/models/metric_query_response.rb +42 -19
  547. data/lib/togai_client/models/migration_mode.rb +44 -0
  548. data/lib/togai_client/models/minimum_commitment.rb +258 -0
  549. data/lib/togai_client/models/miscellaneous_charge.rb +265 -0
  550. data/lib/togai_client/models/miscellaneous_charges_response.rb +224 -0
  551. data/lib/togai_client/models/model_alias.rb +238 -0
  552. data/lib/togai_client/models/named_license_entries_config.rb +287 -0
  553. data/lib/togai_client/models/named_license_entries_config_lookup_cycle.rb +251 -0
  554. data/lib/togai_client/models/named_license_entries_config_lookup_range.rb +273 -0
  555. data/lib/togai_client/models/named_license_entry.rb +281 -0
  556. data/lib/togai_client/models/named_license_update.rb +396 -0
  557. data/lib/togai_client/models/named_license_updates_paginated_response.rb +252 -0
  558. data/lib/togai_client/models/pagination_options.rb +14 -19
  559. data/lib/togai_client/models/payment.rb +380 -0
  560. data/lib/togai_client/models/payment_line_item_record.rb +290 -0
  561. data/lib/togai_client/models/plan_override.rb +64 -20
  562. data/lib/togai_client/models/pre_action.rb +269 -0
  563. data/lib/togai_client/models/price_plan.rb +59 -21
  564. data/lib/togai_client/models/price_plan_details.rb +182 -45
  565. data/lib/togai_client/models/price_plan_details_config.rb +344 -0
  566. data/lib/togai_client/models/price_plan_details_override.rb +135 -35
  567. data/lib/togai_client/models/price_plan_info.rb +230 -0
  568. data/lib/togai_client/models/price_plan_list_data.rb +116 -25
  569. data/lib/togai_client/models/price_plan_migration_config.rb +368 -0
  570. data/lib/togai_client/models/price_plan_paginated_response.rb +16 -19
  571. data/lib/togai_client/models/price_plan_type.rb +40 -0
  572. data/lib/togai_client/models/price_plan_v2.rb +519 -0
  573. data/lib/togai_client/models/price_plan_v2_paginated_response.rb +233 -0
  574. data/lib/togai_client/models/price_type.rb +7 -4
  575. data/lib/togai_client/models/pricing_cycle_config.rb +34 -67
  576. data/lib/togai_client/models/pricing_cycle_config_start_offset.rb +20 -21
  577. data/lib/togai_client/models/pricing_cycle_interval.rb +43 -0
  578. data/lib/togai_client/models/pricing_model.rb +7 -4
  579. data/lib/togai_client/models/pricing_rule.rb +382 -0
  580. data/lib/togai_client/models/pricing_rule_action.rb +293 -0
  581. data/lib/togai_client/models/pricing_rule_changes_log.rb +290 -0
  582. data/lib/togai_client/models/pricing_rule_info.rb +249 -0
  583. data/lib/togai_client/models/pricing_rule_timing.rb +40 -0
  584. data/lib/togai_client/models/pricing_rules_log.rb +318 -0
  585. data/lib/togai_client/models/pricing_rules_logs_paginated_response.rb +224 -0
  586. data/lib/togai_client/models/pricing_rules_paginated_response.rb +223 -0
  587. data/lib/togai_client/models/pricing_rules_values.rb +223 -0
  588. data/lib/togai_client/models/pricing_schedule.rb +100 -23
  589. data/lib/togai_client/models/pricing_schedule_paginated_response.rb +234 -0
  590. data/lib/togai_client/models/pricing_schedule_with_price_plan_id.rb +365 -0
  591. data/lib/togai_client/models/proposal.rb +536 -0
  592. data/lib/togai_client/models/proposals_list_response.rb +390 -0
  593. data/lib/togai_client/models/proposals_paginated_response.rb +234 -0
  594. data/lib/togai_client/models/prorated_refund_mode.rb +42 -0
  595. data/lib/togai_client/models/proration_config.rb +275 -0
  596. data/lib/togai_client/models/proration_config_custom_config.rb +254 -0
  597. data/lib/togai_client/models/proration_config_lookup_cycle_config.rb +261 -0
  598. data/lib/togai_client/models/purchase.rb +493 -0
  599. data/lib/togai_client/models/purchase_feature_details.rb +317 -0
  600. data/lib/togai_client/models/purchase_list_response.rb +393 -0
  601. data/lib/togai_client/models/purchase_paginated_list_data.rb +234 -0
  602. data/lib/togai_client/models/purchase_plan_override.rb +296 -0
  603. data/lib/togai_client/models/purchase_status.rb +46 -0
  604. data/lib/togai_client/models/purchase_type.rb +42 -0
  605. data/lib/togai_client/models/query_column.rb +259 -0
  606. data/lib/togai_client/models/query_filter.rb +255 -0
  607. data/lib/togai_client/models/query_function.rb +239 -0
  608. data/lib/togai_client/models/query_input.rb +295 -0
  609. data/lib/togai_client/models/query_input_sort_inner.rb +237 -0
  610. data/lib/togai_client/models/rate_card.rb +342 -38
  611. data/lib/togai_client/models/rate_card_data.rb +370 -0
  612. data/lib/togai_client/models/rate_card_details.rb +269 -0
  613. data/lib/togai_client/models/rate_card_operation.rb +302 -0
  614. data/lib/togai_client/models/rate_card_paginated_response.rb +233 -0
  615. data/lib/togai_client/models/rate_card_type.rb +13 -5
  616. data/lib/togai_client/models/rate_plan.rb +282 -0
  617. data/lib/togai_client/models/rate_value.rb +270 -0
  618. data/lib/togai_client/models/recurrence_config.rb +225 -0
  619. data/lib/togai_client/models/remove_account_alias_request.rb +232 -0
  620. data/lib/togai_client/models/remove_account_aliases_request.rb +30 -49
  621. data/lib/togai_client/models/report.rb +362 -0
  622. data/lib/togai_client/models/report_status.rb +43 -0
  623. data/lib/togai_client/models/report_type.rb +41 -0
  624. data/lib/togai_client/models/reports_paginated_response.rb +226 -0
  625. data/lib/togai_client/models/revenue_info.rb +335 -0
  626. data/lib/togai_client/models/revenue_info_v2.rb +297 -0
  627. data/lib/togai_client/models/revenue_summary_with_metadata.rb +255 -0
  628. data/lib/togai_client/models/schedule_info.rb +250 -0
  629. data/lib/togai_client/models/schedules_paginated_response.rb +241 -0
  630. data/lib/togai_client/models/setting.rb +340 -0
  631. data/lib/togai_client/models/setting_data_type.rb +42 -0
  632. data/lib/togai_client/models/setting_paginated_response.rb +234 -0
  633. data/lib/togai_client/models/slab.rb +315 -0
  634. data/lib/togai_client/models/slab_detail.rb +298 -0
  635. data/lib/togai_client/models/slab_rate.rb +249 -0
  636. data/lib/togai_client/models/slab_revenue.rb +281 -0
  637. data/lib/togai_client/models/slab_revenue_metadata.rb +232 -0
  638. data/lib/togai_client/models/slab_revenue_summary.rb +262 -0
  639. data/lib/togai_client/models/slab_revenue_with_metadata.rb +299 -0
  640. data/lib/togai_client/models/token_response.rb +221 -0
  641. data/lib/togai_client/models/topup_wallet_request.rb +222 -0
  642. data/lib/togai_client/models/update_account_request.rb +196 -26
  643. data/lib/togai_client/models/update_account_schedule_v2_request.rb +303 -0
  644. data/lib/togai_client/models/update_add_on_request.rb +264 -0
  645. data/lib/togai_client/models/update_alert_request.rb +274 -0
  646. data/lib/togai_client/models/update_customer_request.rb +36 -49
  647. data/lib/togai_client/models/update_event_schema_request.rb +68 -38
  648. data/lib/togai_client/models/update_feature_credits_request.rb +225 -0
  649. data/lib/togai_client/models/update_feature_request.rb +295 -0
  650. data/lib/togai_client/models/update_incident_status_request.rb +256 -0
  651. data/lib/togai_client/models/update_invoice_group_accounts.rb +252 -0
  652. data/lib/togai_client/models/update_invoice_request.rb +317 -0
  653. data/lib/togai_client/models/update_price_plan_request.rb +81 -25
  654. data/lib/togai_client/models/update_price_plan_v2_request.rb +266 -0
  655. data/lib/togai_client/models/update_pricing_rules_request.rb +216 -0
  656. data/lib/togai_client/models/update_pricing_schedule_request.rb +323 -0
  657. data/lib/togai_client/models/update_pricing_schedule_request_with_actions.rb +343 -0
  658. data/lib/togai_client/models/update_pricing_schedule_response.rb +276 -0
  659. data/lib/togai_client/models/update_proposal_status.rb +256 -0
  660. data/lib/togai_client/models/update_setting_request.rb +255 -0
  661. data/lib/togai_client/models/update_usage_meter_request.rb +105 -50
  662. data/lib/togai_client/models/update_wallet_request.rb +246 -0
  663. data/lib/togai_client/models/usage_config.rb +287 -0
  664. data/lib/togai_client/models/usage_config_lookup_cycle.rb +250 -0
  665. data/lib/togai_client/models/usage_config_lookup_range.rb +273 -0
  666. data/lib/togai_client/models/usage_cycle_interval.rb +43 -0
  667. data/lib/togai_client/models/usage_lookup_range.rb +238 -0
  668. data/lib/togai_client/models/usage_meter.rb +156 -39
  669. data/lib/togai_client/models/usage_meter_aggregation.rb +40 -0
  670. data/lib/togai_client/models/usage_meter_filter_entry.rb +238 -0
  671. data/lib/togai_client/models/usage_meter_paginated_response.rb +14 -19
  672. data/lib/togai_client/models/usage_rate_card.rb +285 -0
  673. data/lib/togai_client/models/validate_entitlement_value_request.rb +222 -0
  674. data/lib/togai_client/models/validated_entity_error.rb +273 -0
  675. data/lib/togai_client/models/validated_entity_errors_paginated_response.rb +232 -0
  676. data/lib/togai_client/models/versions_to_migrate.rb +40 -0
  677. data/lib/togai_client/models/wallet_balance_response.rb +388 -0
  678. data/lib/togai_client/models/wallet_entries_paginated_response.rb +280 -0
  679. data/lib/togai_client/models/wallet_entry.rb +421 -0
  680. data/lib/togai_client/models/wallet_status.rb +40 -0
  681. data/lib/togai_client/models/wallet_topup_details.rb +233 -0
  682. data/lib/togai_client/version.rb +2 -2
  683. data/lib/togai_client.rb +279 -21
  684. data/spec/spec_helper.rb +1 -1
  685. data/togai_client.gemspec +4 -3
  686. metadata +561 -5
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: engg@togai.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.1.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -20,36 +20,26 @@ module TogaiClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Add Aliases to account
23
- # Add Aliases to an account by id
24
- # @param customer_id [String]
25
- # @param account_id [String]
23
+ # Add aliases to an account using customer_id and account_id.
24
+ # @param account_id [String] account_id corresponding to an account
26
25
  # @param add_account_aliases_request [AddAccountAliasesRequest] Payload to add aliases to account
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @return [Account]
29
- def add_aliases(customer_id, account_id, add_account_aliases_request, opts = {})
30
- data, _status_code, _headers = add_aliases_with_http_info(customer_id, account_id, add_account_aliases_request, opts)
28
+ def add_aliases(account_id, add_account_aliases_request, opts = {})
29
+ data, _status_code, _headers = add_aliases_with_http_info(account_id, add_account_aliases_request, opts)
31
30
  data
32
31
  end
33
32
 
34
33
  # Add Aliases to account
35
- # Add Aliases to an account by id
36
- # @param customer_id [String]
37
- # @param account_id [String]
34
+ # Add aliases to an account using customer_id and account_id.
35
+ # @param account_id [String] account_id corresponding to an account
38
36
  # @param add_account_aliases_request [AddAccountAliasesRequest] Payload to add aliases to account
39
37
  # @param [Hash] opts the optional parameters
40
38
  # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
41
- def add_aliases_with_http_info(customer_id, account_id, add_account_aliases_request, opts = {})
39
+ def add_aliases_with_http_info(account_id, add_account_aliases_request, opts = {})
42
40
  if @api_client.config.debugging
43
41
  @api_client.config.logger.debug 'Calling API: AccountsApi.add_aliases ...'
44
42
  end
45
- # verify the required parameter 'customer_id' is set
46
- if @api_client.config.client_side_validation && customer_id.nil?
47
- fail ArgumentError, "Missing the required parameter 'customer_id' when calling AccountsApi.add_aliases"
48
- end
49
- if @api_client.config.client_side_validation && customer_id.to_s.length > 50
50
- fail ArgumentError, 'invalid value for "customer_id" when calling AccountsApi.add_aliases, the character length must be smaller than or equal to 50.'
51
- end
52
-
53
43
  # verify the required parameter 'account_id' is set
54
44
  if @api_client.config.client_side_validation && account_id.nil?
55
45
  fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.add_aliases"
@@ -63,7 +53,7 @@ module TogaiClient
63
53
  fail ArgumentError, "Missing the required parameter 'add_account_aliases_request' when calling AccountsApi.add_aliases"
64
54
  end
65
55
  # resource path
66
- local_var_path = '/customers/{customer_id}/accounts/{account_id}/add_aliases'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
56
+ local_var_path = '/accounts/{account_id}/add_aliases'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
67
57
 
68
58
  # query parameters
69
59
  query_params = opts[:query_params] || {}
@@ -71,7 +61,7 @@ module TogaiClient
71
61
  # header parameters
72
62
  header_params = opts[:header_params] || {}
73
63
  # HTTP header 'Accept' (if needed)
74
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
75
65
  # HTTP header 'Content-Type'
76
66
  content_type = @api_client.select_header_content_type(['application/json'])
77
67
  if !content_type.nil?
@@ -107,51 +97,31 @@ module TogaiClient
107
97
  return data, status_code, headers
108
98
  end
109
99
 
110
- # Associate a plan to an account
111
- # Associate a plan to an account
112
- # @param customer_id [String]
113
- # @param account_id [String]
114
- # @param associate_price_plan_request [AssociatePricePlanRequest] Payload to associate a price plan to an account
100
+ # Create an account
101
+ # This API let’s you to create an account for a customer using customer_id.
102
+ # @param create_account_request [CreateAccountRequest] Payload to create account
115
103
  # @param [Hash] opts the optional parameters
116
- # @return [AssociatePricePlanResponse]
117
- def associate_price_plan(customer_id, account_id, associate_price_plan_request, opts = {})
118
- data, _status_code, _headers = associate_price_plan_with_http_info(customer_id, account_id, associate_price_plan_request, opts)
104
+ # @return [Account]
105
+ def create_account(create_account_request, opts = {})
106
+ data, _status_code, _headers = create_account_with_http_info(create_account_request, opts)
119
107
  data
120
108
  end
121
109
 
122
- # Associate a plan to an account
123
- # Associate a plan to an account
124
- # @param customer_id [String]
125
- # @param account_id [String]
126
- # @param associate_price_plan_request [AssociatePricePlanRequest] Payload to associate a price plan to an account
110
+ # Create an account
111
+ # This API let’s you to create an account for a customer using customer_id.
112
+ # @param create_account_request [CreateAccountRequest] Payload to create account
127
113
  # @param [Hash] opts the optional parameters
128
- # @return [Array<(AssociatePricePlanResponse, Integer, Hash)>] AssociatePricePlanResponse data, response status code and response headers
129
- def associate_price_plan_with_http_info(customer_id, account_id, associate_price_plan_request, opts = {})
114
+ # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
115
+ def create_account_with_http_info(create_account_request, opts = {})
130
116
  if @api_client.config.debugging
131
- @api_client.config.logger.debug 'Calling API: AccountsApi.associate_price_plan ...'
132
- end
133
- # verify the required parameter 'customer_id' is set
134
- if @api_client.config.client_side_validation && customer_id.nil?
135
- fail ArgumentError, "Missing the required parameter 'customer_id' when calling AccountsApi.associate_price_plan"
136
- end
137
- if @api_client.config.client_side_validation && customer_id.to_s.length > 50
138
- fail ArgumentError, 'invalid value for "customer_id" when calling AccountsApi.associate_price_plan, the character length must be smaller than or equal to 50.'
139
- end
140
-
141
- # verify the required parameter 'account_id' is set
142
- if @api_client.config.client_side_validation && account_id.nil?
143
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.associate_price_plan"
144
- end
145
- if @api_client.config.client_side_validation && account_id.to_s.length > 50
146
- fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.associate_price_plan, the character length must be smaller than or equal to 50.'
117
+ @api_client.config.logger.debug 'Calling API: AccountsApi.create_account ...'
147
118
  end
148
-
149
- # verify the required parameter 'associate_price_plan_request' is set
150
- if @api_client.config.client_side_validation && associate_price_plan_request.nil?
151
- fail ArgumentError, "Missing the required parameter 'associate_price_plan_request' when calling AccountsApi.associate_price_plan"
119
+ # verify the required parameter 'create_account_request' is set
120
+ if @api_client.config.client_side_validation && create_account_request.nil?
121
+ fail ArgumentError, "Missing the required parameter 'create_account_request' when calling AccountsApi.create_account"
152
122
  end
153
123
  # resource path
154
- local_var_path = '/customers/{customer_id}/accounts/{account_id}/price_plans'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
124
+ local_var_path = '/accounts'
155
125
 
156
126
  # query parameters
157
127
  query_params = opts[:query_params] || {}
@@ -159,7 +129,7 @@ module TogaiClient
159
129
  # header parameters
160
130
  header_params = opts[:header_params] || {}
161
131
  # HTTP header 'Accept' (if needed)
162
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
132
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
163
133
  # HTTP header 'Content-Type'
164
134
  content_type = @api_client.select_header_content_type(['application/json'])
165
135
  if !content_type.nil?
@@ -170,16 +140,16 @@ module TogaiClient
170
140
  form_params = opts[:form_params] || {}
171
141
 
172
142
  # http body (model)
173
- post_body = opts[:debug_body] || @api_client.object_to_http_body(associate_price_plan_request)
143
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_account_request)
174
144
 
175
145
  # return_type
176
- return_type = opts[:debug_return_type] || 'AssociatePricePlanResponse'
146
+ return_type = opts[:debug_return_type] || 'Account'
177
147
 
178
148
  # auth_names
179
149
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
180
150
 
181
151
  new_options = opts.merge(
182
- :operation => :"AccountsApi.associate_price_plan",
152
+ :operation => :"AccountsApi.create_account",
183
153
  :header_params => header_params,
184
154
  :query_params => query_params,
185
155
  :form_params => form_params,
@@ -190,46 +160,46 @@ module TogaiClient
190
160
 
191
161
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
192
162
  if @api_client.config.debugging
193
- @api_client.config.logger.debug "API called: AccountsApi#associate_price_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
163
+ @api_client.config.logger.debug "API called: AccountsApi#create_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
194
164
  end
195
165
  return data, status_code, headers
196
166
  end
197
167
 
198
- # Create an account
199
- # Create an account
200
- # @param customer_id [String]
201
- # @param create_account_request [CreateAccountRequest] Payload to create account
168
+ # (DEPRECATED) Propose a purchase of a plan
169
+ # This API let’s you to create a proposal of a billing/entitlement plan for an account
170
+ # @param account_id [String] account_id corresponding to an account
171
+ # @param create_proposal_request [CreateProposalRequest] Payload to initiate a proposal
202
172
  # @param [Hash] opts the optional parameters
203
- # @return [Account]
204
- def create_account(customer_id, create_account_request, opts = {})
205
- data, _status_code, _headers = create_account_with_http_info(customer_id, create_account_request, opts)
173
+ # @return [Proposal]
174
+ def create_proposal(account_id, create_proposal_request, opts = {})
175
+ data, _status_code, _headers = create_proposal_with_http_info(account_id, create_proposal_request, opts)
206
176
  data
207
177
  end
208
178
 
209
- # Create an account
210
- # Create an account
211
- # @param customer_id [String]
212
- # @param create_account_request [CreateAccountRequest] Payload to create account
179
+ # (DEPRECATED) Propose a purchase of a plan
180
+ # This API let’s you to create a proposal of a billing/entitlement plan for an account
181
+ # @param account_id [String] account_id corresponding to an account
182
+ # @param create_proposal_request [CreateProposalRequest] Payload to initiate a proposal
213
183
  # @param [Hash] opts the optional parameters
214
- # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
215
- def create_account_with_http_info(customer_id, create_account_request, opts = {})
184
+ # @return [Array<(Proposal, Integer, Hash)>] Proposal data, response status code and response headers
185
+ def create_proposal_with_http_info(account_id, create_proposal_request, opts = {})
216
186
  if @api_client.config.debugging
217
- @api_client.config.logger.debug 'Calling API: AccountsApi.create_account ...'
187
+ @api_client.config.logger.debug 'Calling API: AccountsApi.create_proposal ...'
218
188
  end
219
- # verify the required parameter 'customer_id' is set
220
- if @api_client.config.client_side_validation && customer_id.nil?
221
- fail ArgumentError, "Missing the required parameter 'customer_id' when calling AccountsApi.create_account"
189
+ # verify the required parameter 'account_id' is set
190
+ if @api_client.config.client_side_validation && account_id.nil?
191
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.create_proposal"
222
192
  end
223
- if @api_client.config.client_side_validation && customer_id.to_s.length > 50
224
- fail ArgumentError, 'invalid value for "customer_id" when calling AccountsApi.create_account, the character length must be smaller than or equal to 50.'
193
+ if @api_client.config.client_side_validation && account_id.to_s.length > 50
194
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.create_proposal, the character length must be smaller than or equal to 50.'
225
195
  end
226
196
 
227
- # verify the required parameter 'create_account_request' is set
228
- if @api_client.config.client_side_validation && create_account_request.nil?
229
- fail ArgumentError, "Missing the required parameter 'create_account_request' when calling AccountsApi.create_account"
197
+ # verify the required parameter 'create_proposal_request' is set
198
+ if @api_client.config.client_side_validation && create_proposal_request.nil?
199
+ fail ArgumentError, "Missing the required parameter 'create_proposal_request' when calling AccountsApi.create_proposal"
230
200
  end
231
201
  # resource path
232
- local_var_path = '/customers/{customer_id}/accounts'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s))
202
+ local_var_path = '/accounts/{account_id}/purchase_proposals'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
233
203
 
234
204
  # query parameters
235
205
  query_params = opts[:query_params] || {}
@@ -237,7 +207,7 @@ module TogaiClient
237
207
  # header parameters
238
208
  header_params = opts[:header_params] || {}
239
209
  # HTTP header 'Accept' (if needed)
240
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
210
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
241
211
  # HTTP header 'Content-Type'
242
212
  content_type = @api_client.select_header_content_type(['application/json'])
243
213
  if !content_type.nil?
@@ -248,16 +218,16 @@ module TogaiClient
248
218
  form_params = opts[:form_params] || {}
249
219
 
250
220
  # http body (model)
251
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_account_request)
221
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_proposal_request)
252
222
 
253
223
  # return_type
254
- return_type = opts[:debug_return_type] || 'Account'
224
+ return_type = opts[:debug_return_type] || 'Proposal'
255
225
 
256
226
  # auth_names
257
227
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
258
228
 
259
229
  new_options = opts.merge(
260
- :operation => :"AccountsApi.create_account",
230
+ :operation => :"AccountsApi.create_proposal",
261
231
  :header_params => header_params,
262
232
  :query_params => query_params,
263
233
  :form_params => form_params,
@@ -268,40 +238,30 @@ module TogaiClient
268
238
 
269
239
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
270
240
  if @api_client.config.debugging
271
- @api_client.config.logger.debug "API called: AccountsApi#create_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ @api_client.config.logger.debug "API called: AccountsApi#create_proposal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
242
  end
273
243
  return data, status_code, headers
274
244
  end
275
245
 
276
246
  # Delete an account
277
- # Delete an account by id
278
- # @param customer_id [String]
279
- # @param account_id [String]
247
+ # This API let’s you to delete a customer using customer_id and account_id.
248
+ # @param account_id [String] account_id corresponding to an account
280
249
  # @param [Hash] opts the optional parameters
281
250
  # @return [BaseSuccessResponse]
282
- def delete_account(customer_id, account_id, opts = {})
283
- data, _status_code, _headers = delete_account_with_http_info(customer_id, account_id, opts)
251
+ def delete_account(account_id, opts = {})
252
+ data, _status_code, _headers = delete_account_with_http_info(account_id, opts)
284
253
  data
285
254
  end
286
255
 
287
256
  # Delete an account
288
- # Delete an account by id
289
- # @param customer_id [String]
290
- # @param account_id [String]
257
+ # This API let’s you to delete a customer using customer_id and account_id.
258
+ # @param account_id [String] account_id corresponding to an account
291
259
  # @param [Hash] opts the optional parameters
292
260
  # @return [Array<(BaseSuccessResponse, Integer, Hash)>] BaseSuccessResponse data, response status code and response headers
293
- def delete_account_with_http_info(customer_id, account_id, opts = {})
261
+ def delete_account_with_http_info(account_id, opts = {})
294
262
  if @api_client.config.debugging
295
263
  @api_client.config.logger.debug 'Calling API: AccountsApi.delete_account ...'
296
264
  end
297
- # verify the required parameter 'customer_id' is set
298
- if @api_client.config.client_side_validation && customer_id.nil?
299
- fail ArgumentError, "Missing the required parameter 'customer_id' when calling AccountsApi.delete_account"
300
- end
301
- if @api_client.config.client_side_validation && customer_id.to_s.length > 50
302
- fail ArgumentError, 'invalid value for "customer_id" when calling AccountsApi.delete_account, the character length must be smaller than or equal to 50.'
303
- end
304
-
305
265
  # verify the required parameter 'account_id' is set
306
266
  if @api_client.config.client_side_validation && account_id.nil?
307
267
  fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.delete_account"
@@ -311,7 +271,7 @@ module TogaiClient
311
271
  end
312
272
 
313
273
  # resource path
314
- local_var_path = '/customers/{customer_id}/accounts/{account_id}'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
274
+ local_var_path = '/accounts/{account_id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
315
275
 
316
276
  # query parameters
317
277
  query_params = opts[:query_params] || {}
@@ -319,7 +279,7 @@ module TogaiClient
319
279
  # header parameters
320
280
  header_params = opts[:header_params] || {}
321
281
  # HTTP header 'Accept' (if needed)
322
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
323
283
 
324
284
  # form parameters
325
285
  form_params = opts[:form_params] || {}
@@ -351,34 +311,28 @@ module TogaiClient
351
311
  end
352
312
 
353
313
  # Get an account
354
- # Get an account
355
- # @param customer_id [String]
356
- # @param account_id [String]
314
+ # Get account information using customer_id and account_id.
315
+ # @param account_id [String] account_id corresponding to an account
357
316
  # @param [Hash] opts the optional parameters
317
+ # @option opts [Time] :effective_on
318
+ # @option opts [Boolean] :include_group_details
358
319
  # @return [Account]
359
- def get_account(customer_id, account_id, opts = {})
360
- data, _status_code, _headers = get_account_with_http_info(customer_id, account_id, opts)
320
+ def get_account(account_id, opts = {})
321
+ data, _status_code, _headers = get_account_with_http_info(account_id, opts)
361
322
  data
362
323
  end
363
324
 
364
325
  # Get an account
365
- # Get an account
366
- # @param customer_id [String]
367
- # @param account_id [String]
326
+ # Get account information using customer_id and account_id.
327
+ # @param account_id [String] account_id corresponding to an account
368
328
  # @param [Hash] opts the optional parameters
329
+ # @option opts [Time] :effective_on
330
+ # @option opts [Boolean] :include_group_details
369
331
  # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
370
- def get_account_with_http_info(customer_id, account_id, opts = {})
332
+ def get_account_with_http_info(account_id, opts = {})
371
333
  if @api_client.config.debugging
372
334
  @api_client.config.logger.debug 'Calling API: AccountsApi.get_account ...'
373
335
  end
374
- # verify the required parameter 'customer_id' is set
375
- if @api_client.config.client_side_validation && customer_id.nil?
376
- fail ArgumentError, "Missing the required parameter 'customer_id' when calling AccountsApi.get_account"
377
- end
378
- if @api_client.config.client_side_validation && customer_id.to_s.length > 50
379
- fail ArgumentError, 'invalid value for "customer_id" when calling AccountsApi.get_account, the character length must be smaller than or equal to 50.'
380
- end
381
-
382
336
  # verify the required parameter 'account_id' is set
383
337
  if @api_client.config.client_side_validation && account_id.nil?
384
338
  fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account"
@@ -388,15 +342,17 @@ module TogaiClient
388
342
  end
389
343
 
390
344
  # resource path
391
- local_var_path = '/customers/{customer_id}/accounts/{account_id}'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
345
+ local_var_path = '/accounts/{account_id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
392
346
 
393
347
  # query parameters
394
348
  query_params = opts[:query_params] || {}
349
+ query_params[:'effectiveOn'] = opts[:'effective_on'] if !opts[:'effective_on'].nil?
350
+ query_params[:'includeGroupDetails'] = opts[:'include_group_details'] if !opts[:'include_group_details'].nil?
395
351
 
396
352
  # header parameters
397
353
  header_params = opts[:header_params] || {}
398
354
  # HTTP header 'Accept' (if needed)
399
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
355
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
400
356
 
401
357
  # form parameters
402
358
  form_params = opts[:form_params] || {}
@@ -428,38 +384,28 @@ module TogaiClient
428
384
  end
429
385
 
430
386
  # List accounts of customer
431
- # List accounts with pagination and sort
432
- # @param customer_id [String]
387
+ # Returns a list of accounts of a customer with pagination and sort.
433
388
  # @param [Hash] opts the optional parameters
434
389
  # @option opts [String] :next_token
435
- # @option opts [String] :page_size
390
+ # @option opts [Float] :page_size
436
391
  # @return [AccountPaginatedResponse]
437
- def get_accounts(customer_id, opts = {})
438
- data, _status_code, _headers = get_accounts_with_http_info(customer_id, opts)
392
+ def get_accounts(opts = {})
393
+ data, _status_code, _headers = get_accounts_with_http_info(opts)
439
394
  data
440
395
  end
441
396
 
442
397
  # List accounts of customer
443
- # List accounts with pagination and sort
444
- # @param customer_id [String]
398
+ # Returns a list of accounts of a customer with pagination and sort.
445
399
  # @param [Hash] opts the optional parameters
446
400
  # @option opts [String] :next_token
447
- # @option opts [String] :page_size
401
+ # @option opts [Float] :page_size
448
402
  # @return [Array<(AccountPaginatedResponse, Integer, Hash)>] AccountPaginatedResponse data, response status code and response headers
449
- def get_accounts_with_http_info(customer_id, opts = {})
403
+ def get_accounts_with_http_info(opts = {})
450
404
  if @api_client.config.debugging
451
405
  @api_client.config.logger.debug 'Calling API: AccountsApi.get_accounts ...'
452
406
  end
453
- # verify the required parameter 'customer_id' is set
454
- if @api_client.config.client_side_validation && customer_id.nil?
455
- fail ArgumentError, "Missing the required parameter 'customer_id' when calling AccountsApi.get_accounts"
456
- end
457
- if @api_client.config.client_side_validation && customer_id.to_s.length > 50
458
- fail ArgumentError, 'invalid value for "customer_id" when calling AccountsApi.get_accounts, the character length must be smaller than or equal to 50.'
459
- end
460
-
461
407
  # resource path
462
- local_var_path = '/customers/{customer_id}/accounts'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s))
408
+ local_var_path = '/accounts'
463
409
 
464
410
  # query parameters
465
411
  query_params = opts[:query_params] || {}
@@ -469,7 +415,7 @@ module TogaiClient
469
415
  # header parameters
470
416
  header_params = opts[:header_params] || {}
471
417
  # HTTP header 'Accept' (if needed)
472
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
473
419
 
474
420
  # form parameters
475
421
  form_params = opts[:form_params] || {}
@@ -500,79 +446,143 @@ module TogaiClient
500
446
  return data, status_code, headers
501
447
  end
502
448
 
503
- # Remove Aliases to account
504
- # Remove Aliases to an account by id
505
- # @param customer_id [String]
506
- # @param account_id [String]
507
- # @param remove_account_aliases_request [RemoveAccountAliasesRequest] Payload to remove aliases from account
449
+ # (DEPRECATED) List pricing schedules of an account
450
+ # Returns a list of pricing schedules of an account with pagination and sort.
451
+ # @param account_id [String] account_id corresponding to an account
508
452
  # @param [Hash] opts the optional parameters
509
- # @return [Account]
510
- def remove_aliases(customer_id, account_id, remove_account_aliases_request, opts = {})
511
- data, _status_code, _headers = remove_aliases_with_http_info(customer_id, account_id, remove_account_aliases_request, opts)
453
+ # @option opts [String] :next_token
454
+ # @option opts [Float] :page_size
455
+ # @option opts [String] :start_date
456
+ # @option opts [String] :end_date
457
+ # @option opts [Boolean] :include_price_plan_info
458
+ # @option opts [Boolean] :compact
459
+ # @return [PricingSchedulePaginatedResponse]
460
+ def get_pricing_schedules(account_id, opts = {})
461
+ data, _status_code, _headers = get_pricing_schedules_with_http_info(account_id, opts)
512
462
  data
513
463
  end
514
464
 
515
- # Remove Aliases to account
516
- # Remove Aliases to an account by id
517
- # @param customer_id [String]
518
- # @param account_id [String]
519
- # @param remove_account_aliases_request [RemoveAccountAliasesRequest] Payload to remove aliases from account
465
+ # (DEPRECATED) List pricing schedules of an account
466
+ # Returns a list of pricing schedules of an account with pagination and sort.
467
+ # @param account_id [String] account_id corresponding to an account
520
468
  # @param [Hash] opts the optional parameters
521
- # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
522
- def remove_aliases_with_http_info(customer_id, account_id, remove_account_aliases_request, opts = {})
469
+ # @option opts [String] :next_token
470
+ # @option opts [Float] :page_size
471
+ # @option opts [String] :start_date
472
+ # @option opts [String] :end_date
473
+ # @option opts [Boolean] :include_price_plan_info
474
+ # @option opts [Boolean] :compact
475
+ # @return [Array<(PricingSchedulePaginatedResponse, Integer, Hash)>] PricingSchedulePaginatedResponse data, response status code and response headers
476
+ def get_pricing_schedules_with_http_info(account_id, opts = {})
523
477
  if @api_client.config.debugging
524
- @api_client.config.logger.debug 'Calling API: AccountsApi.remove_aliases ...'
525
- end
526
- # verify the required parameter 'customer_id' is set
527
- if @api_client.config.client_side_validation && customer_id.nil?
528
- fail ArgumentError, "Missing the required parameter 'customer_id' when calling AccountsApi.remove_aliases"
478
+ @api_client.config.logger.debug 'Calling API: AccountsApi.get_pricing_schedules ...'
529
479
  end
530
- if @api_client.config.client_side_validation && customer_id.to_s.length > 50
531
- fail ArgumentError, 'invalid value for "customer_id" when calling AccountsApi.remove_aliases, the character length must be smaller than or equal to 50.'
532
- end
533
-
534
480
  # verify the required parameter 'account_id' is set
535
481
  if @api_client.config.client_side_validation && account_id.nil?
536
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.remove_aliases"
482
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_pricing_schedules"
537
483
  end
538
484
  if @api_client.config.client_side_validation && account_id.to_s.length > 50
539
- fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.remove_aliases, the character length must be smaller than or equal to 50.'
485
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.get_pricing_schedules, the character length must be smaller than or equal to 50.'
540
486
  end
541
487
 
542
- # verify the required parameter 'remove_account_aliases_request' is set
543
- if @api_client.config.client_side_validation && remove_account_aliases_request.nil?
544
- fail ArgumentError, "Missing the required parameter 'remove_account_aliases_request' when calling AccountsApi.remove_aliases"
545
- end
546
488
  # resource path
547
- local_var_path = '/customers/{customer_id}/accounts/{account_id}/remove_aliases'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
489
+ local_var_path = '/accounts/{account_id}/pricing_schedules'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
548
490
 
549
491
  # query parameters
550
492
  query_params = opts[:query_params] || {}
493
+ query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil?
494
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
495
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
496
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
497
+ query_params[:'include_price_plan_info'] = opts[:'include_price_plan_info'] if !opts[:'include_price_plan_info'].nil?
498
+ query_params[:'compact'] = opts[:'compact'] if !opts[:'compact'].nil?
551
499
 
552
500
  # header parameters
553
501
  header_params = opts[:header_params] || {}
554
502
  # HTTP header 'Accept' (if needed)
555
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
556
- # HTTP header 'Content-Type'
557
- content_type = @api_client.select_header_content_type(['application/json'])
558
- if !content_type.nil?
559
- header_params['Content-Type'] = content_type
503
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
504
+
505
+ # form parameters
506
+ form_params = opts[:form_params] || {}
507
+
508
+ # http body (model)
509
+ post_body = opts[:debug_body]
510
+
511
+ # return_type
512
+ return_type = opts[:debug_return_type] || 'PricingSchedulePaginatedResponse'
513
+
514
+ # auth_names
515
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
516
+
517
+ new_options = opts.merge(
518
+ :operation => :"AccountsApi.get_pricing_schedules",
519
+ :header_params => header_params,
520
+ :query_params => query_params,
521
+ :form_params => form_params,
522
+ :body => post_body,
523
+ :auth_names => auth_names,
524
+ :return_type => return_type
525
+ )
526
+
527
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
528
+ if @api_client.config.debugging
529
+ @api_client.config.logger.debug "API called: AccountsApi#get_pricing_schedules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
530
+ end
531
+ return data, status_code, headers
532
+ end
533
+
534
+ # (DEPRECATED) Get proposal information
535
+ # Get proposal information
536
+ # @param purchase_proposal_id [String]
537
+ # @param [Hash] opts the optional parameters
538
+ # @return [GetProposalResponse]
539
+ def get_proposal(purchase_proposal_id, opts = {})
540
+ data, _status_code, _headers = get_proposal_with_http_info(purchase_proposal_id, opts)
541
+ data
542
+ end
543
+
544
+ # (DEPRECATED) Get proposal information
545
+ # Get proposal information
546
+ # @param purchase_proposal_id [String]
547
+ # @param [Hash] opts the optional parameters
548
+ # @return [Array<(GetProposalResponse, Integer, Hash)>] GetProposalResponse data, response status code and response headers
549
+ def get_proposal_with_http_info(purchase_proposal_id, opts = {})
550
+ if @api_client.config.debugging
551
+ @api_client.config.logger.debug 'Calling API: AccountsApi.get_proposal ...'
552
+ end
553
+ # verify the required parameter 'purchase_proposal_id' is set
554
+ if @api_client.config.client_side_validation && purchase_proposal_id.nil?
555
+ fail ArgumentError, "Missing the required parameter 'purchase_proposal_id' when calling AccountsApi.get_proposal"
560
556
  end
557
+ if @api_client.config.client_side_validation && purchase_proposal_id.to_s.length > 512
558
+ fail ArgumentError, 'invalid value for "purchase_proposal_id" when calling AccountsApi.get_proposal, the character length must be smaller than or equal to 512.'
559
+ end
560
+
561
+ # resource path
562
+ local_var_path = '/purchase_proposals/{purchase_proposal_id}'.sub('{' + 'purchase_proposal_id' + '}', CGI.escape(purchase_proposal_id.to_s))
563
+
564
+ # query parameters
565
+ query_params = opts[:query_params] || {}
566
+
567
+ # header parameters
568
+ header_params = opts[:header_params] || {}
569
+ # HTTP header 'Accept' (if needed)
570
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
561
571
 
562
572
  # form parameters
563
573
  form_params = opts[:form_params] || {}
564
574
 
565
575
  # http body (model)
566
- post_body = opts[:debug_body] || @api_client.object_to_http_body(remove_account_aliases_request)
576
+ post_body = opts[:debug_body]
567
577
 
568
578
  # return_type
569
- return_type = opts[:debug_return_type] || 'Account'
579
+ return_type = opts[:debug_return_type] || 'GetProposalResponse'
570
580
 
571
581
  # auth_names
572
582
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
573
583
 
574
584
  new_options = opts.merge(
575
- :operation => :"AccountsApi.remove_aliases",
585
+ :operation => :"AccountsApi.get_proposal",
576
586
  :header_params => header_params,
577
587
  :query_params => query_params,
578
588
  :form_params => form_params,
@@ -581,58 +591,115 @@ module TogaiClient
581
591
  :return_type => return_type
582
592
  )
583
593
 
584
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
594
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
585
595
  if @api_client.config.debugging
586
- @api_client.config.logger.debug "API called: AccountsApi#remove_aliases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
596
+ @api_client.config.logger.debug "API called: AccountsApi#get_proposal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
587
597
  end
588
598
  return data, status_code, headers
589
599
  end
590
600
 
591
- # Update an account
592
- # Update an account by id
593
- # @param customer_id [String]
594
- # @param account_id [String]
595
- # @param update_account_request [UpdateAccountRequest] Payload to update account
601
+ # (DEPRECATED) Get a specific purchase of an account
602
+ # Get purchase information of an account for a specific plan using account_id and price_plan_id
603
+ # @param purchase_id [String]
596
604
  # @param [Hash] opts the optional parameters
597
- # @return [Account]
598
- def update_account(customer_id, account_id, update_account_request, opts = {})
599
- data, _status_code, _headers = update_account_with_http_info(customer_id, account_id, update_account_request, opts)
605
+ # @return [GetPurchaseResponse]
606
+ def get_purchase(purchase_id, opts = {})
607
+ data, _status_code, _headers = get_purchase_with_http_info(purchase_id, opts)
600
608
  data
601
609
  end
602
610
 
603
- # Update an account
604
- # Update an account by id
605
- # @param customer_id [String]
606
- # @param account_id [String]
607
- # @param update_account_request [UpdateAccountRequest] Payload to update account
611
+ # (DEPRECATED) Get a specific purchase of an account
612
+ # Get purchase information of an account for a specific plan using account_id and price_plan_id
613
+ # @param purchase_id [String]
608
614
  # @param [Hash] opts the optional parameters
609
- # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
610
- def update_account_with_http_info(customer_id, account_id, update_account_request, opts = {})
615
+ # @return [Array<(GetPurchaseResponse, Integer, Hash)>] GetPurchaseResponse data, response status code and response headers
616
+ def get_purchase_with_http_info(purchase_id, opts = {})
611
617
  if @api_client.config.debugging
612
- @api_client.config.logger.debug 'Calling API: AccountsApi.update_account ...'
618
+ @api_client.config.logger.debug 'Calling API: AccountsApi.get_purchase ...'
613
619
  end
614
- # verify the required parameter 'customer_id' is set
615
- if @api_client.config.client_side_validation && customer_id.nil?
616
- fail ArgumentError, "Missing the required parameter 'customer_id' when calling AccountsApi.update_account"
620
+ # verify the required parameter 'purchase_id' is set
621
+ if @api_client.config.client_side_validation && purchase_id.nil?
622
+ fail ArgumentError, "Missing the required parameter 'purchase_id' when calling AccountsApi.get_purchase"
617
623
  end
618
- if @api_client.config.client_side_validation && customer_id.to_s.length > 50
619
- fail ArgumentError, 'invalid value for "customer_id" when calling AccountsApi.update_account, the character length must be smaller than or equal to 50.'
624
+ if @api_client.config.client_side_validation && purchase_id.to_s.length > 50
625
+ fail ArgumentError, 'invalid value for "purchase_id" when calling AccountsApi.get_purchase, the character length must be smaller than or equal to 50.'
626
+ end
627
+
628
+ # resource path
629
+ local_var_path = '/purchases/{purchase_id}'.sub('{' + 'purchase_id' + '}', CGI.escape(purchase_id.to_s))
630
+
631
+ # query parameters
632
+ query_params = opts[:query_params] || {}
633
+
634
+ # header parameters
635
+ header_params = opts[:header_params] || {}
636
+ # HTTP header 'Accept' (if needed)
637
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
638
+
639
+ # form parameters
640
+ form_params = opts[:form_params] || {}
641
+
642
+ # http body (model)
643
+ post_body = opts[:debug_body]
644
+
645
+ # return_type
646
+ return_type = opts[:debug_return_type] || 'GetPurchaseResponse'
647
+
648
+ # auth_names
649
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
650
+
651
+ new_options = opts.merge(
652
+ :operation => :"AccountsApi.get_purchase",
653
+ :header_params => header_params,
654
+ :query_params => query_params,
655
+ :form_params => form_params,
656
+ :body => post_body,
657
+ :auth_names => auth_names,
658
+ :return_type => return_type
659
+ )
660
+
661
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
662
+ if @api_client.config.debugging
663
+ @api_client.config.logger.debug "API called: AccountsApi#get_purchase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
620
664
  end
665
+ return data, status_code, headers
666
+ end
667
+
668
+ # (DEPRECATED) Initiate a purchase
669
+ # This API let’s you to initiate a purchase for an account
670
+ # @param account_id [String] account_id corresponding to an account
671
+ # @param create_purchase_request [CreatePurchaseRequest] Payload to initiate a purchase
672
+ # @param [Hash] opts the optional parameters
673
+ # @return [Purchase]
674
+ def initiate_one_time_entitlement_plan(account_id, create_purchase_request, opts = {})
675
+ data, _status_code, _headers = initiate_one_time_entitlement_plan_with_http_info(account_id, create_purchase_request, opts)
676
+ data
677
+ end
621
678
 
679
+ # (DEPRECATED) Initiate a purchase
680
+ # This API let’s you to initiate a purchase for an account
681
+ # @param account_id [String] account_id corresponding to an account
682
+ # @param create_purchase_request [CreatePurchaseRequest] Payload to initiate a purchase
683
+ # @param [Hash] opts the optional parameters
684
+ # @return [Array<(Purchase, Integer, Hash)>] Purchase data, response status code and response headers
685
+ def initiate_one_time_entitlement_plan_with_http_info(account_id, create_purchase_request, opts = {})
686
+ if @api_client.config.debugging
687
+ @api_client.config.logger.debug 'Calling API: AccountsApi.initiate_one_time_entitlement_plan ...'
688
+ end
622
689
  # verify the required parameter 'account_id' is set
623
690
  if @api_client.config.client_side_validation && account_id.nil?
624
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_account"
691
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.initiate_one_time_entitlement_plan"
625
692
  end
626
693
  if @api_client.config.client_side_validation && account_id.to_s.length > 50
627
- fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.update_account, the character length must be smaller than or equal to 50.'
694
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.initiate_one_time_entitlement_plan, the character length must be smaller than or equal to 50.'
628
695
  end
629
696
 
630
- # verify the required parameter 'update_account_request' is set
631
- if @api_client.config.client_side_validation && update_account_request.nil?
632
- fail ArgumentError, "Missing the required parameter 'update_account_request' when calling AccountsApi.update_account"
697
+ # verify the required parameter 'create_purchase_request' is set
698
+ if @api_client.config.client_side_validation && create_purchase_request.nil?
699
+ fail ArgumentError, "Missing the required parameter 'create_purchase_request' when calling AccountsApi.initiate_one_time_entitlement_plan"
633
700
  end
634
701
  # resource path
635
- local_var_path = '/customers/{customer_id}/accounts/{account_id}'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
702
+ local_var_path = '/accounts/{account_id}/purchases'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
636
703
 
637
704
  # query parameters
638
705
  query_params = opts[:query_params] || {}
@@ -640,7 +707,7 @@ module TogaiClient
640
707
  # header parameters
641
708
  header_params = opts[:header_params] || {}
642
709
  # HTTP header 'Accept' (if needed)
643
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
710
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
644
711
  # HTTP header 'Content-Type'
645
712
  content_type = @api_client.select_header_content_type(['application/json'])
646
713
  if !content_type.nil?
@@ -651,16 +718,16 @@ module TogaiClient
651
718
  form_params = opts[:form_params] || {}
652
719
 
653
720
  # http body (model)
654
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_account_request)
721
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_purchase_request)
655
722
 
656
723
  # return_type
657
- return_type = opts[:debug_return_type] || 'Account'
724
+ return_type = opts[:debug_return_type] || 'Purchase'
658
725
 
659
726
  # auth_names
660
727
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
661
728
 
662
729
  new_options = opts.merge(
663
- :operation => :"AccountsApi.update_account",
730
+ :operation => :"AccountsApi.initiate_one_time_entitlement_plan",
664
731
  :header_params => header_params,
665
732
  :query_params => query_params,
666
733
  :form_params => form_params,
@@ -669,9 +736,603 @@ module TogaiClient
669
736
  :return_type => return_type
670
737
  )
671
738
 
672
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
739
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
673
740
  if @api_client.config.debugging
674
- @api_client.config.logger.debug "API called: AccountsApi#update_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
741
+ @api_client.config.logger.debug "API called: AccountsApi#initiate_one_time_entitlement_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
742
+ end
743
+ return data, status_code, headers
744
+ end
745
+
746
+ # Get all aliases of an account
747
+ # Get all aliases of an account using account_id
748
+ # @param account_id [String] account_id corresponding to an account
749
+ # @param [Hash] opts the optional parameters
750
+ # @return [AccountAliasesPaginatedResponse]
751
+ def list_account_aliases(account_id, opts = {})
752
+ data, _status_code, _headers = list_account_aliases_with_http_info(account_id, opts)
753
+ data
754
+ end
755
+
756
+ # Get all aliases of an account
757
+ # Get all aliases of an account using account_id
758
+ # @param account_id [String] account_id corresponding to an account
759
+ # @param [Hash] opts the optional parameters
760
+ # @return [Array<(AccountAliasesPaginatedResponse, Integer, Hash)>] AccountAliasesPaginatedResponse data, response status code and response headers
761
+ def list_account_aliases_with_http_info(account_id, opts = {})
762
+ if @api_client.config.debugging
763
+ @api_client.config.logger.debug 'Calling API: AccountsApi.list_account_aliases ...'
764
+ end
765
+ # verify the required parameter 'account_id' is set
766
+ if @api_client.config.client_side_validation && account_id.nil?
767
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.list_account_aliases"
768
+ end
769
+ if @api_client.config.client_side_validation && account_id.to_s.length > 50
770
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.list_account_aliases, the character length must be smaller than or equal to 50.'
771
+ end
772
+
773
+ # resource path
774
+ local_var_path = '/accounts/{account_id}/account_aliases'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
775
+
776
+ # query parameters
777
+ query_params = opts[:query_params] || {}
778
+
779
+ # header parameters
780
+ header_params = opts[:header_params] || {}
781
+ # HTTP header 'Accept' (if needed)
782
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
783
+
784
+ # form parameters
785
+ form_params = opts[:form_params] || {}
786
+
787
+ # http body (model)
788
+ post_body = opts[:debug_body]
789
+
790
+ # return_type
791
+ return_type = opts[:debug_return_type] || 'AccountAliasesPaginatedResponse'
792
+
793
+ # auth_names
794
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
795
+
796
+ new_options = opts.merge(
797
+ :operation => :"AccountsApi.list_account_aliases",
798
+ :header_params => header_params,
799
+ :query_params => query_params,
800
+ :form_params => form_params,
801
+ :body => post_body,
802
+ :auth_names => auth_names,
803
+ :return_type => return_type
804
+ )
805
+
806
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
807
+ if @api_client.config.debugging
808
+ @api_client.config.logger.debug "API called: AccountsApi#list_account_aliases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
809
+ end
810
+ return data, status_code, headers
811
+ end
812
+
813
+ # (DEPRECATED) List all proposals of an account
814
+ # List all proposals of an account
815
+ # @param account_id [String] account_id corresponding to an account
816
+ # @param [Hash] opts the optional parameters
817
+ # @return [ProposalsPaginatedResponse]
818
+ def list_account_proposals(account_id, opts = {})
819
+ data, _status_code, _headers = list_account_proposals_with_http_info(account_id, opts)
820
+ data
821
+ end
822
+
823
+ # (DEPRECATED) List all proposals of an account
824
+ # List all proposals of an account
825
+ # @param account_id [String] account_id corresponding to an account
826
+ # @param [Hash] opts the optional parameters
827
+ # @return [Array<(ProposalsPaginatedResponse, Integer, Hash)>] ProposalsPaginatedResponse data, response status code and response headers
828
+ def list_account_proposals_with_http_info(account_id, opts = {})
829
+ if @api_client.config.debugging
830
+ @api_client.config.logger.debug 'Calling API: AccountsApi.list_account_proposals ...'
831
+ end
832
+ # verify the required parameter 'account_id' is set
833
+ if @api_client.config.client_side_validation && account_id.nil?
834
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.list_account_proposals"
835
+ end
836
+ if @api_client.config.client_side_validation && account_id.to_s.length > 50
837
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.list_account_proposals, the character length must be smaller than or equal to 50.'
838
+ end
839
+
840
+ # resource path
841
+ local_var_path = '/accounts/{account_id}/purchase_proposals'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
842
+
843
+ # query parameters
844
+ query_params = opts[:query_params] || {}
845
+
846
+ # header parameters
847
+ header_params = opts[:header_params] || {}
848
+ # HTTP header 'Accept' (if needed)
849
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
850
+
851
+ # form parameters
852
+ form_params = opts[:form_params] || {}
853
+
854
+ # http body (model)
855
+ post_body = opts[:debug_body]
856
+
857
+ # return_type
858
+ return_type = opts[:debug_return_type] || 'ProposalsPaginatedResponse'
859
+
860
+ # auth_names
861
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
862
+
863
+ new_options = opts.merge(
864
+ :operation => :"AccountsApi.list_account_proposals",
865
+ :header_params => header_params,
866
+ :query_params => query_params,
867
+ :form_params => form_params,
868
+ :body => post_body,
869
+ :auth_names => auth_names,
870
+ :return_type => return_type
871
+ )
872
+
873
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
874
+ if @api_client.config.debugging
875
+ @api_client.config.logger.debug "API called: AccountsApi#list_account_proposals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
876
+ end
877
+ return data, status_code, headers
878
+ end
879
+
880
+ # (DEPRECATED) Get all purchases for an account
881
+ # Get Purchase information for an account using account_id and price_plan_id
882
+ # @param account_id [String] account_id corresponding to an account
883
+ # @param [Hash] opts the optional parameters
884
+ # @return [PurchasePaginatedListData]
885
+ def list_account_purchases(account_id, opts = {})
886
+ data, _status_code, _headers = list_account_purchases_with_http_info(account_id, opts)
887
+ data
888
+ end
889
+
890
+ # (DEPRECATED) Get all purchases for an account
891
+ # Get Purchase information for an account using account_id and price_plan_id
892
+ # @param account_id [String] account_id corresponding to an account
893
+ # @param [Hash] opts the optional parameters
894
+ # @return [Array<(PurchasePaginatedListData, Integer, Hash)>] PurchasePaginatedListData data, response status code and response headers
895
+ def list_account_purchases_with_http_info(account_id, opts = {})
896
+ if @api_client.config.debugging
897
+ @api_client.config.logger.debug 'Calling API: AccountsApi.list_account_purchases ...'
898
+ end
899
+ # verify the required parameter 'account_id' is set
900
+ if @api_client.config.client_side_validation && account_id.nil?
901
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.list_account_purchases"
902
+ end
903
+ if @api_client.config.client_side_validation && account_id.to_s.length > 50
904
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.list_account_purchases, the character length must be smaller than or equal to 50.'
905
+ end
906
+
907
+ # resource path
908
+ local_var_path = '/accounts/{account_id}/purchases'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
909
+
910
+ # query parameters
911
+ query_params = opts[:query_params] || {}
912
+
913
+ # header parameters
914
+ header_params = opts[:header_params] || {}
915
+ # HTTP header 'Accept' (if needed)
916
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
917
+
918
+ # form parameters
919
+ form_params = opts[:form_params] || {}
920
+
921
+ # http body (model)
922
+ post_body = opts[:debug_body]
923
+
924
+ # return_type
925
+ return_type = opts[:debug_return_type] || 'PurchasePaginatedListData'
926
+
927
+ # auth_names
928
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
929
+
930
+ new_options = opts.merge(
931
+ :operation => :"AccountsApi.list_account_purchases",
932
+ :header_params => header_params,
933
+ :query_params => query_params,
934
+ :form_params => form_params,
935
+ :body => post_body,
936
+ :auth_names => auth_names,
937
+ :return_type => return_type
938
+ )
939
+
940
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
941
+ if @api_client.config.debugging
942
+ @api_client.config.logger.debug "API called: AccountsApi#list_account_purchases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
943
+ end
944
+ return data, status_code, headers
945
+ end
946
+
947
+ # Remove Aliases to account
948
+ # Remove existing aliases tagged to an account using this API
949
+ # @param account_id [String] account_id corresponding to an account
950
+ # @param remove_account_aliases_request [RemoveAccountAliasesRequest] Payload to remove aliases from account
951
+ # @param [Hash] opts the optional parameters
952
+ # @return [Account]
953
+ def remove_aliases(account_id, remove_account_aliases_request, opts = {})
954
+ data, _status_code, _headers = remove_aliases_with_http_info(account_id, remove_account_aliases_request, opts)
955
+ data
956
+ end
957
+
958
+ # Remove Aliases to account
959
+ # Remove existing aliases tagged to an account using this API
960
+ # @param account_id [String] account_id corresponding to an account
961
+ # @param remove_account_aliases_request [RemoveAccountAliasesRequest] Payload to remove aliases from account
962
+ # @param [Hash] opts the optional parameters
963
+ # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
964
+ def remove_aliases_with_http_info(account_id, remove_account_aliases_request, opts = {})
965
+ if @api_client.config.debugging
966
+ @api_client.config.logger.debug 'Calling API: AccountsApi.remove_aliases ...'
967
+ end
968
+ # verify the required parameter 'account_id' is set
969
+ if @api_client.config.client_side_validation && account_id.nil?
970
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.remove_aliases"
971
+ end
972
+ if @api_client.config.client_side_validation && account_id.to_s.length > 50
973
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.remove_aliases, the character length must be smaller than or equal to 50.'
974
+ end
975
+
976
+ # verify the required parameter 'remove_account_aliases_request' is set
977
+ if @api_client.config.client_side_validation && remove_account_aliases_request.nil?
978
+ fail ArgumentError, "Missing the required parameter 'remove_account_aliases_request' when calling AccountsApi.remove_aliases"
979
+ end
980
+ # resource path
981
+ local_var_path = '/accounts/{account_id}/remove_aliases'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
982
+
983
+ # query parameters
984
+ query_params = opts[:query_params] || {}
985
+
986
+ # header parameters
987
+ header_params = opts[:header_params] || {}
988
+ # HTTP header 'Accept' (if needed)
989
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
990
+ # HTTP header 'Content-Type'
991
+ content_type = @api_client.select_header_content_type(['application/json'])
992
+ if !content_type.nil?
993
+ header_params['Content-Type'] = content_type
994
+ end
995
+
996
+ # form parameters
997
+ form_params = opts[:form_params] || {}
998
+
999
+ # http body (model)
1000
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(remove_account_aliases_request)
1001
+
1002
+ # return_type
1003
+ return_type = opts[:debug_return_type] || 'Account'
1004
+
1005
+ # auth_names
1006
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1007
+
1008
+ new_options = opts.merge(
1009
+ :operation => :"AccountsApi.remove_aliases",
1010
+ :header_params => header_params,
1011
+ :query_params => query_params,
1012
+ :form_params => form_params,
1013
+ :body => post_body,
1014
+ :auth_names => auth_names,
1015
+ :return_type => return_type
1016
+ )
1017
+
1018
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1019
+ if @api_client.config.debugging
1020
+ @api_client.config.logger.debug "API called: AccountsApi#remove_aliases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1021
+ end
1022
+ return data, status_code, headers
1023
+ end
1024
+
1025
+ # Update an account
1026
+ # This API let’s you to update an account’s information using customer_id and account_id.
1027
+ # @param account_id [String] account_id corresponding to an account
1028
+ # @param update_account_request [UpdateAccountRequest] Payload to update account
1029
+ # @param [Hash] opts the optional parameters
1030
+ # @return [Account]
1031
+ def update_account(account_id, update_account_request, opts = {})
1032
+ data, _status_code, _headers = update_account_with_http_info(account_id, update_account_request, opts)
1033
+ data
1034
+ end
1035
+
1036
+ # Update an account
1037
+ # This API let’s you to update an account’s information using customer_id and account_id.
1038
+ # @param account_id [String] account_id corresponding to an account
1039
+ # @param update_account_request [UpdateAccountRequest] Payload to update account
1040
+ # @param [Hash] opts the optional parameters
1041
+ # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
1042
+ def update_account_with_http_info(account_id, update_account_request, opts = {})
1043
+ if @api_client.config.debugging
1044
+ @api_client.config.logger.debug 'Calling API: AccountsApi.update_account ...'
1045
+ end
1046
+ # verify the required parameter 'account_id' is set
1047
+ if @api_client.config.client_side_validation && account_id.nil?
1048
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_account"
1049
+ end
1050
+ if @api_client.config.client_side_validation && account_id.to_s.length > 50
1051
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.update_account, the character length must be smaller than or equal to 50.'
1052
+ end
1053
+
1054
+ # verify the required parameter 'update_account_request' is set
1055
+ if @api_client.config.client_side_validation && update_account_request.nil?
1056
+ fail ArgumentError, "Missing the required parameter 'update_account_request' when calling AccountsApi.update_account"
1057
+ end
1058
+ # resource path
1059
+ local_var_path = '/accounts/{account_id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
1060
+
1061
+ # query parameters
1062
+ query_params = opts[:query_params] || {}
1063
+
1064
+ # header parameters
1065
+ header_params = opts[:header_params] || {}
1066
+ # HTTP header 'Accept' (if needed)
1067
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1068
+ # HTTP header 'Content-Type'
1069
+ content_type = @api_client.select_header_content_type(['application/json'])
1070
+ if !content_type.nil?
1071
+ header_params['Content-Type'] = content_type
1072
+ end
1073
+
1074
+ # form parameters
1075
+ form_params = opts[:form_params] || {}
1076
+
1077
+ # http body (model)
1078
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_account_request)
1079
+
1080
+ # return_type
1081
+ return_type = opts[:debug_return_type] || 'Account'
1082
+
1083
+ # auth_names
1084
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1085
+
1086
+ new_options = opts.merge(
1087
+ :operation => :"AccountsApi.update_account",
1088
+ :header_params => header_params,
1089
+ :query_params => query_params,
1090
+ :form_params => form_params,
1091
+ :body => post_body,
1092
+ :auth_names => auth_names,
1093
+ :return_type => return_type
1094
+ )
1095
+
1096
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1097
+ if @api_client.config.debugging
1098
+ @api_client.config.logger.debug "API called: AccountsApi#update_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1099
+ end
1100
+ return data, status_code, headers
1101
+ end
1102
+
1103
+ # (DEPRECATED) Dissociate or associate a price plan with an account
1104
+ # This API let’s you to detach or attach a price plan with an existing account
1105
+ # @param account_id [String] account_id corresponding to an account
1106
+ # @param update_pricing_schedule_request_with_actions [UpdatePricingScheduleRequestWithActions] Payload to associate or dissociate a price plan to an account with actions
1107
+ # @param [Hash] opts the optional parameters
1108
+ # @return [UpdatePricingScheduleResponse]
1109
+ def update_pricing_schedule(account_id, update_pricing_schedule_request_with_actions, opts = {})
1110
+ data, _status_code, _headers = update_pricing_schedule_with_http_info(account_id, update_pricing_schedule_request_with_actions, opts)
1111
+ data
1112
+ end
1113
+
1114
+ # (DEPRECATED) Dissociate or associate a price plan with an account
1115
+ # This API let’s you to detach or attach a price plan with an existing account
1116
+ # @param account_id [String] account_id corresponding to an account
1117
+ # @param update_pricing_schedule_request_with_actions [UpdatePricingScheduleRequestWithActions] Payload to associate or dissociate a price plan to an account with actions
1118
+ # @param [Hash] opts the optional parameters
1119
+ # @return [Array<(UpdatePricingScheduleResponse, Integer, Hash)>] UpdatePricingScheduleResponse data, response status code and response headers
1120
+ def update_pricing_schedule_with_http_info(account_id, update_pricing_schedule_request_with_actions, opts = {})
1121
+ if @api_client.config.debugging
1122
+ @api_client.config.logger.debug 'Calling API: AccountsApi.update_pricing_schedule ...'
1123
+ end
1124
+ # verify the required parameter 'account_id' is set
1125
+ if @api_client.config.client_side_validation && account_id.nil?
1126
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_pricing_schedule"
1127
+ end
1128
+ if @api_client.config.client_side_validation && account_id.to_s.length > 50
1129
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.update_pricing_schedule, the character length must be smaller than or equal to 50.'
1130
+ end
1131
+
1132
+ # verify the required parameter 'update_pricing_schedule_request_with_actions' is set
1133
+ if @api_client.config.client_side_validation && update_pricing_schedule_request_with_actions.nil?
1134
+ fail ArgumentError, "Missing the required parameter 'update_pricing_schedule_request_with_actions' when calling AccountsApi.update_pricing_schedule"
1135
+ end
1136
+ # resource path
1137
+ local_var_path = '/accounts/{account_id}/price_plans'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
1138
+
1139
+ # query parameters
1140
+ query_params = opts[:query_params] || {}
1141
+
1142
+ # header parameters
1143
+ header_params = opts[:header_params] || {}
1144
+ # HTTP header 'Accept' (if needed)
1145
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1146
+ # HTTP header 'Content-Type'
1147
+ content_type = @api_client.select_header_content_type(['application/json'])
1148
+ if !content_type.nil?
1149
+ header_params['Content-Type'] = content_type
1150
+ end
1151
+
1152
+ # form parameters
1153
+ form_params = opts[:form_params] || {}
1154
+
1155
+ # http body (model)
1156
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_pricing_schedule_request_with_actions)
1157
+
1158
+ # return_type
1159
+ return_type = opts[:debug_return_type] || 'UpdatePricingScheduleResponse'
1160
+
1161
+ # auth_names
1162
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1163
+
1164
+ new_options = opts.merge(
1165
+ :operation => :"AccountsApi.update_pricing_schedule",
1166
+ :header_params => header_params,
1167
+ :query_params => query_params,
1168
+ :form_params => form_params,
1169
+ :body => post_body,
1170
+ :auth_names => auth_names,
1171
+ :return_type => return_type
1172
+ )
1173
+
1174
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1175
+ if @api_client.config.debugging
1176
+ @api_client.config.logger.debug "API called: AccountsApi#update_pricing_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1177
+ end
1178
+ return data, status_code, headers
1179
+ end
1180
+
1181
+ # (DEPRECATED) Edit schedules of an account.
1182
+ # This API let’s you to detach/attach one or more price plans from/to an existing account
1183
+ # @param account_id [String] account_id corresponding to an account
1184
+ # @param edit_pricing_schedule_request [EditPricingScheduleRequest] Payload to dis/associate one or more price plans to an account
1185
+ # @param [Hash] opts the optional parameters
1186
+ # @option opts [Boolean] :dry_run
1187
+ # @return [UpdatePricingScheduleResponse]
1188
+ def update_pricing_schedule_batch(account_id, edit_pricing_schedule_request, opts = {})
1189
+ data, _status_code, _headers = update_pricing_schedule_batch_with_http_info(account_id, edit_pricing_schedule_request, opts)
1190
+ data
1191
+ end
1192
+
1193
+ # (DEPRECATED) Edit schedules of an account.
1194
+ # This API let’s you to detach/attach one or more price plans from/to an existing account
1195
+ # @param account_id [String] account_id corresponding to an account
1196
+ # @param edit_pricing_schedule_request [EditPricingScheduleRequest] Payload to dis/associate one or more price plans to an account
1197
+ # @param [Hash] opts the optional parameters
1198
+ # @option opts [Boolean] :dry_run
1199
+ # @return [Array<(UpdatePricingScheduleResponse, Integer, Hash)>] UpdatePricingScheduleResponse data, response status code and response headers
1200
+ def update_pricing_schedule_batch_with_http_info(account_id, edit_pricing_schedule_request, opts = {})
1201
+ if @api_client.config.debugging
1202
+ @api_client.config.logger.debug 'Calling API: AccountsApi.update_pricing_schedule_batch ...'
1203
+ end
1204
+ # verify the required parameter 'account_id' is set
1205
+ if @api_client.config.client_side_validation && account_id.nil?
1206
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_pricing_schedule_batch"
1207
+ end
1208
+ if @api_client.config.client_side_validation && account_id.to_s.length > 50
1209
+ fail ArgumentError, 'invalid value for "account_id" when calling AccountsApi.update_pricing_schedule_batch, the character length must be smaller than or equal to 50.'
1210
+ end
1211
+
1212
+ # verify the required parameter 'edit_pricing_schedule_request' is set
1213
+ if @api_client.config.client_side_validation && edit_pricing_schedule_request.nil?
1214
+ fail ArgumentError, "Missing the required parameter 'edit_pricing_schedule_request' when calling AccountsApi.update_pricing_schedule_batch"
1215
+ end
1216
+ # resource path
1217
+ local_var_path = '/accounts/{account_id}/edit_schedules'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
1218
+
1219
+ # query parameters
1220
+ query_params = opts[:query_params] || {}
1221
+ query_params[:'dry_run'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1222
+
1223
+ # header parameters
1224
+ header_params = opts[:header_params] || {}
1225
+ # HTTP header 'Accept' (if needed)
1226
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1227
+ # HTTP header 'Content-Type'
1228
+ content_type = @api_client.select_header_content_type(['application/json'])
1229
+ if !content_type.nil?
1230
+ header_params['Content-Type'] = content_type
1231
+ end
1232
+
1233
+ # form parameters
1234
+ form_params = opts[:form_params] || {}
1235
+
1236
+ # http body (model)
1237
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(edit_pricing_schedule_request)
1238
+
1239
+ # return_type
1240
+ return_type = opts[:debug_return_type] || 'UpdatePricingScheduleResponse'
1241
+
1242
+ # auth_names
1243
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1244
+
1245
+ new_options = opts.merge(
1246
+ :operation => :"AccountsApi.update_pricing_schedule_batch",
1247
+ :header_params => header_params,
1248
+ :query_params => query_params,
1249
+ :form_params => form_params,
1250
+ :body => post_body,
1251
+ :auth_names => auth_names,
1252
+ :return_type => return_type
1253
+ )
1254
+
1255
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1256
+ if @api_client.config.debugging
1257
+ @api_client.config.logger.debug "API called: AccountsApi#update_pricing_schedule_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1258
+ end
1259
+ return data, status_code, headers
1260
+ end
1261
+
1262
+ # (DEPRECATED) Approve or decline a purchase of a billing plan
1263
+ # This API let’s you to approve or decline a proposal of a billing plan for an account
1264
+ # @param purchase_proposal_id [String]
1265
+ # @param update_proposal_status [UpdateProposalStatus] Payload to approve or decline a proposal
1266
+ # @param [Hash] opts the optional parameters
1267
+ # @return [Proposal]
1268
+ def update_proposal_status(purchase_proposal_id, update_proposal_status, opts = {})
1269
+ data, _status_code, _headers = update_proposal_status_with_http_info(purchase_proposal_id, update_proposal_status, opts)
1270
+ data
1271
+ end
1272
+
1273
+ # (DEPRECATED) Approve or decline a purchase of a billing plan
1274
+ # This API let’s you to approve or decline a proposal of a billing plan for an account
1275
+ # @param purchase_proposal_id [String]
1276
+ # @param update_proposal_status [UpdateProposalStatus] Payload to approve or decline a proposal
1277
+ # @param [Hash] opts the optional parameters
1278
+ # @return [Array<(Proposal, Integer, Hash)>] Proposal data, response status code and response headers
1279
+ def update_proposal_status_with_http_info(purchase_proposal_id, update_proposal_status, opts = {})
1280
+ if @api_client.config.debugging
1281
+ @api_client.config.logger.debug 'Calling API: AccountsApi.update_proposal_status ...'
1282
+ end
1283
+ # verify the required parameter 'purchase_proposal_id' is set
1284
+ if @api_client.config.client_side_validation && purchase_proposal_id.nil?
1285
+ fail ArgumentError, "Missing the required parameter 'purchase_proposal_id' when calling AccountsApi.update_proposal_status"
1286
+ end
1287
+ if @api_client.config.client_side_validation && purchase_proposal_id.to_s.length > 512
1288
+ fail ArgumentError, 'invalid value for "purchase_proposal_id" when calling AccountsApi.update_proposal_status, the character length must be smaller than or equal to 512.'
1289
+ end
1290
+
1291
+ # verify the required parameter 'update_proposal_status' is set
1292
+ if @api_client.config.client_side_validation && update_proposal_status.nil?
1293
+ fail ArgumentError, "Missing the required parameter 'update_proposal_status' when calling AccountsApi.update_proposal_status"
1294
+ end
1295
+ # resource path
1296
+ local_var_path = '/purchase_proposals/{purchase_proposal_id}/update_status'.sub('{' + 'purchase_proposal_id' + '}', CGI.escape(purchase_proposal_id.to_s))
1297
+
1298
+ # query parameters
1299
+ query_params = opts[:query_params] || {}
1300
+
1301
+ # header parameters
1302
+ header_params = opts[:header_params] || {}
1303
+ # HTTP header 'Accept' (if needed)
1304
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1305
+ # HTTP header 'Content-Type'
1306
+ content_type = @api_client.select_header_content_type(['application/json'])
1307
+ if !content_type.nil?
1308
+ header_params['Content-Type'] = content_type
1309
+ end
1310
+
1311
+ # form parameters
1312
+ form_params = opts[:form_params] || {}
1313
+
1314
+ # http body (model)
1315
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_proposal_status)
1316
+
1317
+ # return_type
1318
+ return_type = opts[:debug_return_type] || 'Proposal'
1319
+
1320
+ # auth_names
1321
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1322
+
1323
+ new_options = opts.merge(
1324
+ :operation => :"AccountsApi.update_proposal_status",
1325
+ :header_params => header_params,
1326
+ :query_params => query_params,
1327
+ :form_params => form_params,
1328
+ :body => post_body,
1329
+ :auth_names => auth_names,
1330
+ :return_type => return_type
1331
+ )
1332
+
1333
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1334
+ if @api_client.config.debugging
1335
+ @api_client.config.logger.debug "API called: AccountsApi#update_proposal_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
675
1336
  end
676
1337
  return data, status_code, headers
677
1338
  end