Class StatementsClient


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

      • StatementsClient

        public StatementsClient​(ClientOptions clientOptions)
    • Method Detail

      • withRawResponse

        public RawStatementsClient withRawResponse()
        Get responses with HTTP metadata like headers
      • getV1

        public Statement1 getV1​(java.lang.String statementId)
        Gets a statement by ID. | authz_personas=[statement_org_operators, statement_driver] | () -> (Statement1)
      • getV1

        public Statement1 getV1​(java.lang.String statementId,
                                RequestOptions requestOptions)
        Gets a statement by ID. | authz_personas=[statement_org_operators, statement_driver] | () -> (Statement1)
      • getByLigIdV1

        public Statement1 getByLigIdV1​(java.lang.String lineItemGroupId)
        Gets a statement by its associated LineItemGroup ID. | authz_personas=[statement_org_operators, statement_driver] | () -> (Statement1)
      • getByLigIdV1

        public Statement1 getByLigIdV1​(java.lang.String lineItemGroupId,
                                       RequestOptions requestOptions)
        Gets a statement by its associated LineItemGroup ID. | authz_personas=[statement_org_operators, statement_driver] | () -> (Statement1)
      • expandedRetrieveV1

        public StatementExpandedRes expandedRetrieveV1​(StatementExpandedRetrieveReq request)
        Retrieves a statement with its associated LineItemGroups expanded. | authz_personas=[statement_org_operators, statement_driver] | (StatementExpandedRetrieveReq) -> (StatementExpandedRes)
      • expandedRetrieveV1

        public StatementExpandedRes expandedRetrieveV1​(StatementExpandedRetrieveReq request,
                                                       RequestOptions requestOptions)
        Retrieves a statement with its associated LineItemGroups expanded. | authz_personas=[statement_org_operators, statement_driver] | (StatementExpandedRetrieveReq) -> (StatementExpandedRes)
      • listV1

        public StatementsListRes listV1()
        Lists statements with filtering, sorting, and pagination. | authz_personas=[statement_org_operators, statement_driver] | () -> (StatementsListRes)
      • listV1

        public StatementsListRes listV1​(StatementsListV1Request request)
        Lists statements with filtering, sorting, and pagination. | authz_personas=[statement_org_operators, statement_driver] | () -> (StatementsListRes)
      • createV1

        public Statement1 createV1​(CreateStatementReq request)
        Creates a new statement without LIG IDs, starting in STAGED status. Requires payment vector, origin, and destination. | authz: org_type=[courier, forwarder], min_org_role=operator | (CreateStatementReq) -> (Statement1)
      • createV1

        public Statement1 createV1​(CreateStatementReq request,
                                   RequestOptions requestOptions)
        Creates a new statement without LIG IDs, starting in STAGED status. Requires payment vector, origin, and destination. | authz: org_type=[courier, forwarder], min_org_role=operator | (CreateStatementReq) -> (Statement1)
      • deleteV1

        public boolean deleteV1​(java.lang.String statementId)
        Deletes a statement. Only allowed if statement has no LineItemGroup IDs. | authz: org_type=[courier, forwarder], min_org_role=operator, authz_personas=[statement_owner_operators] | () -> (bool)
      • deleteV1

        public boolean deleteV1​(java.lang.String statementId,
                                RequestOptions requestOptions)
        Deletes a statement. Only allowed if statement has no LineItemGroup IDs. | authz: org_type=[courier, forwarder], min_org_role=operator, authz_personas=[statement_owner_operators] | () -> (bool)
      • openInvoiceV1

        public Statement1 openInvoiceV1​(java.lang.String statementId)
        Opens a Stripe Connect invoice for a statement and attempt to send via email. Org must have a Stripe Connect account. | authz: org_type=[courier, forwarder], min_org_role=operator, authz_personas=[statement_owner_operators], statement_status=STAGED, line_item_groups_status=FINALIZED | (OpenInvoiceReq) -> (Statement1)
      • openInvoiceV1

        public Statement1 openInvoiceV1​(java.lang.String statementId,
                                        OpenInvoiceReq request)
        Opens a Stripe Connect invoice for a statement and attempt to send via email. Org must have a Stripe Connect account. | authz: org_type=[courier, forwarder], min_org_role=operator, authz_personas=[statement_owner_operators], statement_status=STAGED, line_item_groups_status=FINALIZED | (OpenInvoiceReq) -> (Statement1)
      • openInvoiceV1

        public Statement1 openInvoiceV1​(java.lang.String statementId,
                                        OpenInvoiceReq request,
                                        RequestOptions requestOptions)
        Opens a Stripe Connect invoice for a statement and attempt to send via email. Org must have a Stripe Connect account. | authz: org_type=[courier, forwarder], min_org_role=operator, authz_personas=[statement_owner_operators], statement_status=STAGED, line_item_groups_status=FINALIZED | (OpenInvoiceReq) -> (Statement1)
      • syncInvoiceV1

        public Statement1 syncInvoiceV1​(java.lang.String statementId)
        Syncs invoice state from Stripe Connect to the Statement and LineItemGroups. The webhook usually keeps invoices up to date, but users can manually trigger a sync. | authz: org_type=[courier, forwarder, shipper], min_org_role=operator, authz_personas=[statement_org_operators] | () -> (Statement1)
      • syncInvoiceV1

        public Statement1 syncInvoiceV1​(java.lang.String statementId,
                                        RequestOptions requestOptions)
        Syncs invoice state from Stripe Connect to the Statement and LineItemGroups. The webhook usually keeps invoices up to date, but users can manually trigger a sync. | authz: org_type=[courier, forwarder, shipper], min_org_role=operator, authz_personas=[statement_org_operators] | () -> (Statement1)
      • voidInvoiceV1

        public Statement1 voidInvoiceV1​(java.lang.String statementId)
        Voids a Stripe Connect invoice. Statement reverts to STAGED and LIGs revert to FINALIZED. | authz: org_type=[courier, forwarder], min_org_role=operator, authz_personas=[statement_owner_operators], statement_status=OPEN | () -> (Statement1)
      • voidInvoiceV1

        public Statement1 voidInvoiceV1​(java.lang.String statementId,
                                        RequestOptions requestOptions)
        Voids a Stripe Connect invoice. Statement reverts to STAGED and LIGs revert to FINALIZED. | authz: org_type=[courier, forwarder], min_org_role=operator, authz_personas=[statement_owner_operators], statement_status=OPEN | () -> (Statement1)