aws_sdk_appmonetization/client/create_app_payment_registration.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 [`CreateAppPaymentRegistration`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`app_id(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app being registered for payment.<br>
7 /// - [`legal_name(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::legal_name) / [`set_legal_name(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_legal_name):<br>required: **false**<br>Your registered legal name.<br>
8 /// - [`developer_address(DeveloperAddress)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::developer_address) / [`set_developer_address(Option<DeveloperAddress>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_developer_address):<br>required: **false**<br>Your business address.<br>
9 /// - [`tax_registration_number(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::tax_registration_number) / [`set_tax_registration_number(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_tax_registration_number):<br>required: **false**<br>Your tax registration number (for example, VAT, GST, or EIN).<br>
10 /// - [`business_type(BusinessType)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::business_type) / [`set_business_type(Option<BusinessType>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_business_type):<br>required: **false**<br>Whether the seller is an individual or a registered business.<br>
11 /// - [`email(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::email) / [`set_email(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_email):<br>required: **false**<br>Your primary contact email for this registration, distinct from supportEmail (the address shown to customers). If you omit it, AWS App Monetization uses supportEmail.<br>
12 /// - [`support_email(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::support_email) / [`set_support_email(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_support_email):<br>required: **false**<br>Your support email address, displayed in the invoice footer.<br>
13 /// - [`display_name(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_display_name):<br>required: **false**<br>Customer-facing name (doing-business-as) shown to buyers on invoices, distinct from legalName.<br>
14 /// - [`support_phone(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::support_phone) / [`set_support_phone(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_support_phone):<br>required: **false**<br>Customer-facing support phone number shown to buyers on invoices.<br>
15 /// - [`invoice_logo(Blob)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::invoice_logo) / [`set_invoice_logo(Option<Blob>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_invoice_logo):<br>required: **false**<br>Logo printed on the seller's invoices: raw PNG or JPEG bytes, up to 100 KiB. The image type is detected from the bytes. Write-only: the logo is not returned by GetAppPaymentRegistration.<br>
16 /// - [`tax_registrations(TaxRegistration)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::tax_registrations) / [`set_tax_registrations(Option<Vec::<TaxRegistration>>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_tax_registrations):<br>required: **false**<br>The jurisdictions where the seller is registered to collect tax.<br>
17 /// - [`return_url(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::return_url) / [`set_return_url(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_return_url):<br>required: **true**<br>The URL the seller's browser is redirected to after completing hosted registration.<br>
18 /// - [`refresh_url(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::refresh_url) / [`set_refresh_url(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_refresh_url):<br>required: **true**<br>The URL the seller's browser is redirected to if the hosted registration session expires.<br>
19 /// - [`client_token(impl Into<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_client_token):<br>required: **false**<br>A unique, case-sensitive identifier to ensure that the operation completes no more than one time.<br>
20 /// - [`scope(RequestScope)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox.<br>
21 /// - On success, responds with [`CreateAppPaymentRegistrationOutput`](crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationOutput) with field(s):
22 /// - [`registration_url(String)`](crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationOutput::registration_url): The hosted URL the seller opens to finish entering payment and tax details.
23 /// - [`expires_at(DateTime)`](crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationOutput::expires_at): The time the registration URL expires.
24 /// - On failure, responds with [`SdkError<CreateAppPaymentRegistrationError>`](crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError)
25 pub fn create_app_payment_registration(
26 &self,
27 ) -> crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder {
28 crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationFluentBuilder::new(self.handle.clone())
29 }
30}