Skip to main content

aws_sdk_bedrockagentcore/client/
process_payment.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 [`ProcessPayment`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_id(impl Into<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::set_user_id):<br>required: **false**<br><p>The user ID associated with this payment.</p><br>
7    ///   - [`agent_name(impl Into<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::agent_name) / [`set_agent_name(Option<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::set_agent_name):<br>required: **false**<br><p>The agent name associated with this request, used for observability.</p><br>
8    ///   - [`payment_manager_arn(impl Into<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::payment_manager_arn) / [`set_payment_manager_arn(Option<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::set_payment_manager_arn):<br>required: **true**<br><p>The ARN of the payment manager.</p><br>
9    ///   - [`payment_session_id(impl Into<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::payment_session_id) / [`set_payment_session_id(Option<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::set_payment_session_id):<br>required: **true**<br><p>The ID of the payment session.</p><br>
10    ///   - [`payment_instrument_id(impl Into<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::payment_instrument_id) / [`set_payment_instrument_id(Option<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::set_payment_instrument_id):<br>required: **true**<br><p>The ID of the payment instrument to use.</p><br>
11    ///   - [`payment_type(PaymentType)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::payment_type) / [`set_payment_type(Option<PaymentType>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::set_payment_type):<br>required: **true**<br><p>The type of payment to process.</p><br>
12    ///   - [`payment_input(PaymentInput)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::payment_input) / [`set_payment_input(Option<PaymentInput>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::set_payment_input):<br>required: **true**<br><p>The payment input details specific to the payment type.</p><br>
13    ///   - [`client_token(impl Into<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
14    /// - On success, responds with [`ProcessPaymentOutput`](crate::operation::process_payment::ProcessPaymentOutput) with field(s):
15    ///   - [`process_payment_id(String)`](crate::operation::process_payment::ProcessPaymentOutput::process_payment_id): <p>The unique identifier of the processed payment.</p>
16    ///   - [`payment_manager_arn(String)`](crate::operation::process_payment::ProcessPaymentOutput::payment_manager_arn): <p>The ARN of the payment manager.</p>
17    ///   - [`payment_session_id(String)`](crate::operation::process_payment::ProcessPaymentOutput::payment_session_id): <p>The ID of the payment session used.</p>
18    ///   - [`payment_instrument_id(String)`](crate::operation::process_payment::ProcessPaymentOutput::payment_instrument_id): <p>The ID of the payment instrument used.</p>
19    ///   - [`payment_type(PaymentType)`](crate::operation::process_payment::ProcessPaymentOutput::payment_type): <p>The type of payment processed.</p>
20    ///   - [`status(PaymentStatus)`](crate::operation::process_payment::ProcessPaymentOutput::status): <p>The status of the payment.</p>
21    ///   - [`payment_output(Option<PaymentOutput>)`](crate::operation::process_payment::ProcessPaymentOutput::payment_output): <p>The payment output details specific to the payment type.</p>
22    ///   - [`created_at(DateTime)`](crate::operation::process_payment::ProcessPaymentOutput::created_at): <p>The timestamp when the payment was created.</p>
23    ///   - [`updated_at(DateTime)`](crate::operation::process_payment::ProcessPaymentOutput::updated_at): <p>The timestamp when the payment was last updated.</p>
24    /// - On failure, responds with [`SdkError<ProcessPaymentError>`](crate::operation::process_payment::ProcessPaymentError)
25    pub fn process_payment(&self) -> crate::operation::process_payment::builders::ProcessPaymentFluentBuilder {
26        crate::operation::process_payment::builders::ProcessPaymentFluentBuilder::new(self.handle.clone())
27    }
28}