Class AppPaymentRegistration

java.lang.Object
software.amazon.awssdk.services.appmonetization.model.AppPaymentRegistration
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<AppPaymentRegistration.Builder,AppPaymentRegistration>

@Generated("software.amazon.awssdk:codegen") public final class AppPaymentRegistration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AppPaymentRegistration.Builder,AppPaymentRegistration>

An app's seller payment and tax registration, including onboarding status and the seller's legal, tax, and contact details. The seller profile fields are personally identifiable information.

See Also:
  • Method Details

    • appId

      public final String appId()

      The ID of the app this registration belongs to.

      Returns:
      The ID of the app this registration belongs to.
    • status

      public final AppPaymentRegistrationStatus status()

      The onboarding status of the payment registration for this app (ACTIVE, PENDING, or FAILED).

      If the service returns an enum value that is not available in the current SDK version, status will return AppPaymentRegistrationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The onboarding status of the payment registration for this app (ACTIVE, PENDING, or FAILED).
      See Also:
    • statusAsString

      public final String statusAsString()

      The onboarding status of the payment registration for this app (ACTIVE, PENDING, or FAILED).

      If the service returns an enum value that is not available in the current SDK version, status will return AppPaymentRegistrationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The onboarding status of the payment registration for this app (ACTIVE, PENDING, or FAILED).
      See Also:
    • paymentRegistrationId

      public final String paymentRegistrationId()

      The payment registration the app is bound to. Pass it to UpdateAppPaymentRegistration on another app to bind that app to the same registration. Absent if the app uses a payment registration created before registrations could be shared.

      Returns:
      The payment registration the app is bound to. Pass it to UpdateAppPaymentRegistration on another app to bind that app to the same registration. Absent if the app uses a payment registration created before registrations could be shared.
    • paymentRegistrationStatus

      public final PaymentRegistrationStatus paymentRegistrationStatus()

      The onboarding status of this app's payment registration. It has the same value as status. Present exactly when paymentRegistrationId is.

      If the service returns an enum value that is not available in the current SDK version, paymentRegistrationStatus will return PaymentRegistrationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from paymentRegistrationStatusAsString().

      Returns:
      The onboarding status of this app's payment registration. It has the same value as status. Present exactly when paymentRegistrationId is.
      See Also:
    • paymentRegistrationStatusAsString

      public final String paymentRegistrationStatusAsString()

      The onboarding status of this app's payment registration. It has the same value as status. Present exactly when paymentRegistrationId is.

      If the service returns an enum value that is not available in the current SDK version, paymentRegistrationStatus will return PaymentRegistrationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from paymentRegistrationStatusAsString().

      Returns:
      The onboarding status of this app's payment registration. It has the same value as status. Present exactly when paymentRegistrationId is.
      See Also:
    • additionalAppEligibility

      public final AdditionalAppEligibility additionalAppEligibility()

      Whether a further app may bind to the app's payment registration, and if not, why. Present exactly when paymentRegistrationId is.

      If the service returns an enum value that is not available in the current SDK version, additionalAppEligibility will return AdditionalAppEligibility.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from additionalAppEligibilityAsString().

      Returns:
      Whether a further app may bind to the app's payment registration, and if not, why. Present exactly when paymentRegistrationId is.
      See Also:
    • additionalAppEligibilityAsString

      public final String additionalAppEligibilityAsString()

      Whether a further app may bind to the app's payment registration, and if not, why. Present exactly when paymentRegistrationId is.

      If the service returns an enum value that is not available in the current SDK version, additionalAppEligibility will return AdditionalAppEligibility.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from additionalAppEligibilityAsString().

      Returns:
      Whether a further app may bind to the app's payment registration, and if not, why. Present exactly when paymentRegistrationId is.
      See Also:
    • legalName

      public final String legalName()

      The seller's registered legal name.

      Returns:
      The seller's registered legal name.
    • developerAddress

      public final DeveloperAddress developerAddress()

      The seller's postal address.

      Returns:
      The seller's postal address.
    • taxRegistrationNumber

      public final String taxRegistrationNumber()

      The seller's tax registration number (for example, VAT, GST, or EIN).

      Returns:
      The seller's tax registration number (for example, VAT, GST, or EIN).
    • businessType

      public final BusinessType businessType()

      Whether the seller registered as an individual or a registered business.

      If the service returns an enum value that is not available in the current SDK version, businessType will return BusinessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from businessTypeAsString().

      Returns:
      Whether the seller registered as an individual or a registered business.
      See Also:
    • businessTypeAsString

      public final String businessTypeAsString()

      Whether the seller registered as an individual or a registered business.

      If the service returns an enum value that is not available in the current SDK version, businessType will return BusinessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from businessTypeAsString().

      Returns:
      Whether the seller registered as an individual or a registered business.
      See Also:
    • email

      public final String email()

      The seller's primary contact email, read from the seller profile.

      Returns:
      The seller's primary contact email, read from the seller profile.
    • supportEmail

      public final String supportEmail()

      The seller's support email address, displayed in the invoice footer.

      Returns:
      The seller's support email address, displayed in the invoice footer.
    • displayName

      public final String displayName()

      Customer-facing name (doing-business-as) shown to buyers on invoices, read from the seller profile.

      Returns:
      Customer-facing name (doing-business-as) shown to buyers on invoices, read from the seller profile.
    • supportPhone

      public final String supportPhone()

      Customer-facing support phone number, read from the seller profile.

      Returns:
      Customer-facing support phone number, read from the seller profile.
    • hasTaxRegistrations

      public final boolean hasTaxRegistrations()
      For responses, this returns true if the service returned a value for the TaxRegistrations property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • taxRegistrations

      public final List<TaxRegistration> taxRegistrations()

      The jurisdictions where the seller is registered to collect tax.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTaxRegistrations() method.

      Returns:
      The jurisdictions where the seller is registered to collect tax.
    • createdAt

      public final Instant createdAt()

      The time the payment registration was created.

      Returns:
      The time the payment registration was created.
    • updatedAt

      public final Instant updatedAt()

      The time the payment registration was last updated.

      Returns:
      The time the payment registration was last updated.
    • toBuilder

      public AppPaymentRegistration.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<AppPaymentRegistration.Builder,AppPaymentRegistration>
      Returns:
      a builder for type T
    • builder

      public static AppPaymentRegistration.Builder builder()
    • serializableBuilderClass

      public static Class<? extends AppPaymentRegistration.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.