aws-sdk-appmonetization 1.0.0

AWS SDK for AWS App Monetization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutCustomCharges`](crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`PutCustomChargesOutput`](crate::operation::put_custom_charges::PutCustomChargesOutput) with field(s):
    ///   - [`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.
    ///   - [`billing_period_end_at(DateTime)`](crate::operation::put_custom_charges::PutCustomChargesOutput::billing_period_end_at): End of the assigned billing period.
    /// - On failure, responds with [`SdkError<PutCustomChargesError>`](crate::operation::put_custom_charges::PutCustomChargesError)
    pub fn put_custom_charges(&self) -> crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder {
        crate::operation::put_custom_charges::builders::PutCustomChargesFluentBuilder::new(self.handle.clone())
    }
}