Class PaymentsClient


  • public class PaymentsClient
    extends java.lang.Object
    • Constructor Detail

      • PaymentsClient

        public PaymentsClient​(ClientOptions clientOptions)
    • Method Detail

      • withRawResponse

        public RawPaymentsClient withRawResponse()
        Get responses with HTTP metadata like headers
      • generateInvoiceV1

        public GenerateInvoiceRes generateInvoiceV1​(GenerateInvoiceReq request)
        Generates and sends a Stripe invoice for a shipper statement to a courier organization's Connect account. Applies a 10% application fee. | (GenerateInvoiceReq) -> (GenerateInvoiceRes)
      • generateInvoiceV1

        public GenerateInvoiceRes generateInvoiceV1​(GenerateInvoiceReq request,
                                                    RequestOptions requestOptions)
        Generates and sends a Stripe invoice for a shipper statement to a courier organization's Connect account. Applies a 10% application fee. | (GenerateInvoiceReq) -> (GenerateInvoiceRes)
      • createCheckoutSessionV1

        public CreateCheckoutSessionRes createCheckoutSessionV1​(CreateCheckoutSessionReq request)
        Creates a Stripe checkout session for a subscription with pricing based on the selected plan. | (CreateCheckoutSessionReq) -> (CreateCheckoutSessionRes)
      • syncStripeToClerkV1

        public boolean syncStripeToClerkV1()
        Synchronizes subscription data from Stripe to the authentication service for the current user. | () -> (bool)
      • syncStripeToClerkV1

        public boolean syncStripeToClerkV1​(RequestOptions requestOptions)
        Synchronizes subscription data from Stripe to the authentication service for the current user. | () -> (bool)
      • createConnectAccountV1

        public CreateConnectAccountRes createConnectAccountV1()
        Creates a Stripe Connect account for the organization to receive payments. Idempotent - returns existing account if already created. | () -> (CreateConnectAccountRes)
      • createConnectAccountV1

        public CreateConnectAccountRes createConnectAccountV1​(RequestOptions requestOptions)
        Creates a Stripe Connect account for the organization to receive payments. Idempotent - returns existing account if already created. | () -> (CreateConnectAccountRes)
      • createConnectAccountLinkV1

        public CreateConnectAccountLinkRes createConnectAccountLinkV1()
        Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup. | () -> (CreateConnectAccountLinkRes)
      • createConnectAccountLinkV1

        public CreateConnectAccountLinkRes createConnectAccountLinkV1​(RequestOptions requestOptions)
        Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup. | () -> (CreateConnectAccountLinkRes)