Skip to main content

aws_sdk_appmonetization/client/
put_custom_charges.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`PutCustomCharges`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_id(impl Into<String>)`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
7    ///   - [`user_id(impl Into<String>)`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::set_user_id):<br>required: **true**<br>The end user these charges bill.<br>
8    ///   - [`charges(CustomCharge)`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::charges) / [`set_charges(Option<Vec::<CustomCharge>>)`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::set_charges):<br>required: **true**<br>The custom charges to add to this user's next invoice. Stored at the submitted grain; the service never splits a charge. Accepted all-or-nothing.<br>
9    ///   - [`scope(RequestScope)`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox.<br>
10    /// - On success, responds with [`PutCustomChargesOutput`](crate::operation::put_custom_charges::PutCustomChargesOutput) with field(s):
11    ///   - [`billing_period_start_at(DateTime)`](crate::operation::put_custom_charges::PutCustomChargesOutput::billing_period_start_at): The billing period the service assigned these charges to, resolved from the user's current subscription. The caller supplies no window; this reports where the charges landed.
12    ///   - [`billing_period_end_at(DateTime)`](crate::operation::put_custom_charges::PutCustomChargesOutput::billing_period_end_at): End of the assigned billing period.
13    /// - On failure, responds with [`SdkError<PutCustomChargesError>`](crate::operation::put_custom_charges::PutCustomChargesError)
14    pub fn put_custom_charges(&self) -> crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder {
15        crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::new(self.handle.clone())
16    }
17}