Interface AppPaymentRegistration.Builder

  • Method Details

    • appId

      The ID of the app this registration belongs to.

      Parameters:
      appId - The ID of the app this registration belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

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

      Parameters:
      status - The onboarding status of the payment registration for this app (ACTIVE, PENDING, or FAILED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

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

      Parameters:
      status - The onboarding status of the payment registration for this app (ACTIVE, PENDING, or FAILED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentRegistrationId

      AppPaymentRegistration.Builder paymentRegistrationId(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • paymentRegistrationStatus

      AppPaymentRegistration.Builder paymentRegistrationStatus(String paymentRegistrationStatus)

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

      Parameters:
      paymentRegistrationStatus - The onboarding status of this app's payment registration. It has the same value as status . Present exactly when paymentRegistrationId is.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentRegistrationStatus

      AppPaymentRegistration.Builder paymentRegistrationStatus(PaymentRegistrationStatus paymentRegistrationStatus)

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

      Parameters:
      paymentRegistrationStatus - The onboarding status of this app's payment registration. It has the same value as status . Present exactly when paymentRegistrationId is.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • additionalAppEligibility

      AppPaymentRegistration.Builder additionalAppEligibility(String additionalAppEligibility)

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

      Parameters:
      additionalAppEligibility - Whether a further app may bind to the app's payment registration, and if not, why. Present exactly when paymentRegistrationId is.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • additionalAppEligibility

      AppPaymentRegistration.Builder additionalAppEligibility(AdditionalAppEligibility additionalAppEligibility)

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

      Parameters:
      additionalAppEligibility - Whether a further app may bind to the app's payment registration, and if not, why. Present exactly when paymentRegistrationId is.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • legalName

      AppPaymentRegistration.Builder legalName(String legalName)

      The seller's registered legal name.

      Parameters:
      legalName - The seller's registered legal name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • developerAddress

      AppPaymentRegistration.Builder developerAddress(DeveloperAddress developerAddress)

      The seller's postal address.

      Parameters:
      developerAddress - The seller's postal address.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • developerAddress

      default AppPaymentRegistration.Builder developerAddress(Consumer<DeveloperAddress.Builder> developerAddress)

      The seller's postal address.

      This is a convenience method that creates an instance of the DeveloperAddress.Builder avoiding the need to create one manually via DeveloperAddress.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to developerAddress(DeveloperAddress).

      Parameters:
      developerAddress - a consumer that will call methods on DeveloperAddress.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • taxRegistrationNumber

      AppPaymentRegistration.Builder taxRegistrationNumber(String taxRegistrationNumber)

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

      Parameters:
      taxRegistrationNumber - The seller's tax registration number (for example, VAT, GST, or EIN).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • businessType

      AppPaymentRegistration.Builder businessType(String businessType)

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

      Parameters:
      businessType - Whether the seller registered as an individual or a registered business.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • businessType

      AppPaymentRegistration.Builder businessType(BusinessType businessType)

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

      Parameters:
      businessType - Whether the seller registered as an individual or a registered business.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • email

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

      Parameters:
      email - The seller's primary contact email, read from the seller profile.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportEmail

      AppPaymentRegistration.Builder supportEmail(String supportEmail)

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

      Parameters:
      supportEmail - The seller's support email address, displayed in the invoice footer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • displayName

      AppPaymentRegistration.Builder displayName(String displayName)

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

      Parameters:
      displayName - Customer-facing name (doing-business-as) shown to buyers on invoices, read from the seller profile.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportPhone

      AppPaymentRegistration.Builder supportPhone(String supportPhone)

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

      Parameters:
      supportPhone - Customer-facing support phone number, read from the seller profile.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taxRegistrations

      AppPaymentRegistration.Builder taxRegistrations(Collection<TaxRegistration> taxRegistrations)

      The jurisdictions where the seller is registered to collect tax.

      Parameters:
      taxRegistrations - The jurisdictions where the seller is registered to collect tax.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taxRegistrations

      AppPaymentRegistration.Builder taxRegistrations(TaxRegistration... taxRegistrations)

      The jurisdictions where the seller is registered to collect tax.

      Parameters:
      taxRegistrations - The jurisdictions where the seller is registered to collect tax.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taxRegistrations

      AppPaymentRegistration.Builder taxRegistrations(Consumer<TaxRegistration.Builder>... taxRegistrations)

      The jurisdictions where the seller is registered to collect tax.

      This is a convenience method that creates an instance of the TaxRegistration.Builder avoiding the need to create one manually via TaxRegistration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to taxRegistrations(List<TaxRegistration>).

      Parameters:
      taxRegistrations - a consumer that will call methods on TaxRegistration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      The time the payment registration was created.

      Parameters:
      createdAt - The time the payment registration was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      The time the payment registration was last updated.

      Parameters:
      updatedAt - The time the payment registration was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.