lithic 0.1.0.pre.alpha.52 → 0.1.0.pre.alpha.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +9 -0
 - data/README.md +1 -1
 - data/lib/lithic/internal/transport/pooled_net_requester.rb +30 -24
 - data/lib/lithic/internal/type/union.rb +15 -3
 - data/lib/lithic/models/account_activity_list_response.rb +47 -1141
 - data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +47 -1151
 - data/lib/lithic/models/auth_rules/auth_rule_condition.rb +3 -0
 - data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +7 -0
 - data/lib/lithic/models/auth_rules/conditional_attribute.rb +4 -0
 - data/lib/lithic/models/auth_rules/v2_apply_response.rb +14 -0
 - data/lib/lithic/models/auth_rules/v2_create_params.rb +7 -0
 - data/lib/lithic/models/auth_rules/v2_create_response.rb +14 -0
 - data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -0
 - data/lib/lithic/models/auth_rules/v2_draft_response.rb +14 -0
 - data/lib/lithic/models/auth_rules/v2_list_response.rb +14 -0
 - data/lib/lithic/models/auth_rules/v2_promote_response.rb +14 -0
 - data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +14 -0
 - data/lib/lithic/models/auth_rules/v2_update_response.rb +14 -0
 - data/lib/lithic/models/book_transfer_response.rb +51 -48
 - data/lib/lithic/models/card_provision_response.rb +25 -3
 - data/lib/lithic/models/event.rb +0 -1
 - data/lib/lithic/models/event_list_params.rb +0 -1
 - data/lib/lithic/models/event_subscription.rb +0 -1
 - data/lib/lithic/models/events/subscription_create_params.rb +0 -1
 - data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
 - data/lib/lithic/models/events/subscription_update_params.rb +0 -1
 - data/lib/lithic/models/external_bank_account_create_params.rb +1 -8
 - data/lib/lithic/models/external_payment.rb +21 -23
 - data/lib/lithic/models/financial_account.rb +48 -39
 - data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +32 -23
 - data/lib/lithic/models/management_operation_transaction.rb +21 -23
 - data/lib/lithic/models/payment.rb +249 -131
 - data/lib/lithic/models/payment_create_response.rb +2 -0
 - data/lib/lithic/models/payment_retry_response.rb +2 -0
 - data/lib/lithic/models/provision_response.rb +30 -0
 - data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +32 -1
 - data/lib/lithic/models/tokenization.rb +1 -0
 - data/lib/lithic/models/transaction.rb +4 -0
 - data/lib/lithic/models/verification_method.rb +0 -1
 - data/lib/lithic/models.rb +2 -0
 - data/lib/lithic/resources/account_activity.rb +2 -2
 - data/lib/lithic/resources/auth_rules/v2.rb +0 -72
 - data/lib/lithic/resources/external_bank_accounts.rb +1 -3
 - data/lib/lithic/version.rb +1 -1
 - data/lib/lithic.rb +1 -2
 - data/rbi/lithic/models/account_activity_list_response.rbi +153 -2629
 - data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +153 -2629
 - data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +6 -0
 - data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +14 -0
 - data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +8 -0
 - data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +28 -0
 - data/rbi/lithic/models/auth_rules/v2_create_params.rbi +14 -0
 - data/rbi/lithic/models/auth_rules/v2_create_response.rbi +28 -0
 - data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +14 -0
 - data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +28 -0
 - data/rbi/lithic/models/auth_rules/v2_list_response.rbi +28 -0
 - data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +28 -0
 - data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +28 -0
 - data/rbi/lithic/models/auth_rules/v2_update_response.rbi +28 -0
 - data/rbi/lithic/models/book_transfer_response.rbi +67 -68
 - data/rbi/lithic/models/card_provision_response.rbi +50 -5
 - data/rbi/lithic/models/event.rbi +0 -5
 - data/rbi/lithic/models/event_list_params.rbi +0 -5
 - data/rbi/lithic/models/event_subscription.rbi +0 -5
 - data/rbi/lithic/models/events/subscription_create_params.rbi +0 -5
 - data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
 - data/rbi/lithic/models/events/subscription_update_params.rbi +0 -5
 - data/rbi/lithic/models/external_bank_account_create_params.rbi +0 -6
 - data/rbi/lithic/models/external_payment.rbi +34 -39
 - data/rbi/lithic/models/financial_account.rbi +74 -73
 - data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +46 -33
 - data/rbi/lithic/models/management_operation_transaction.rbi +49 -60
 - data/rbi/lithic/models/payment.rbi +384 -168
 - data/rbi/lithic/models/payment_create_response.rbi +1 -0
 - data/rbi/lithic/models/payment_retry_response.rbi +1 -0
 - data/rbi/lithic/models/provision_response.rbi +58 -0
 - data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +83 -0
 - data/rbi/lithic/models/tokenization.rbi +5 -0
 - data/rbi/lithic/models/transaction.rbi +20 -0
 - data/rbi/lithic/models/verification_method.rbi +0 -1
 - data/rbi/lithic/models.rbi +2 -0
 - data/rbi/lithic/resources/auth_rules/v2.rbi +0 -64
 - data/rbi/lithic/resources/external_bank_accounts.rbi +0 -2
 - data/sig/lithic/models/account_activity_list_response.rbs +48 -1036
 - data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +48 -1036
 - data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +2 -0
 - data/sig/lithic/models/auth_rules/conditional_attribute.rbs +2 -0
 - data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -0
 - data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
 - data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -0
 - data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
 - data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -0
 - data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -0
 - data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -0
 - data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -0
 - data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -0
 - data/sig/lithic/models/book_transfer_response.rbs +26 -19
 - data/sig/lithic/models/card_provision_response.rbs +22 -5
 - data/sig/lithic/models/event.rbs +0 -2
 - data/sig/lithic/models/event_list_params.rbs +0 -2
 - data/sig/lithic/models/event_subscription.rbs +0 -2
 - data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
 - data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
 - data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
 - data/sig/lithic/models/external_bank_account_create_params.rbs +1 -6
 - data/sig/lithic/models/external_payment.rbs +19 -26
 - data/sig/lithic/models/financial_account.rbs +28 -30
 - data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +21 -15
 - data/sig/lithic/models/management_operation_transaction.rbs +19 -26
 - data/sig/lithic/models/payment.rbs +191 -74
 - data/sig/lithic/models/provision_response.rbs +36 -0
 - data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +28 -0
 - data/sig/lithic/models/tokenization.rbs +2 -0
 - data/sig/lithic/models/transaction.rbs +8 -0
 - data/sig/lithic/models/verification_method.rbs +1 -7
 - data/sig/lithic/models.rbs +2 -0
 - data/sig/lithic/resources/auth_rules/v2.rbs +0 -5
 - data/sig/lithic/resources/external_bank_accounts.rbs +0 -1
 - metadata +5 -8
 - data/lib/lithic/models/auth_rules/v2_report_params.rb +0 -16
 - data/lib/lithic/models/auth_rules/v2_report_response.rb +0 -18
 - data/rbi/lithic/models/auth_rules/v2_report_params.rbi +0 -29
 - data/rbi/lithic/models/auth_rules/v2_report_response.rbi +0 -31
 - data/sig/lithic/models/auth_rules/v2_report_params.rbs +0 -16
 - data/sig/lithic/models/auth_rules/v2_report_response.rbs +0 -17
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8f282b4e31e085754b47acda97401699c517857af39a497c147958e010a84105
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 12bf84857ad175fe54d891e86801927bfb4ebf3f73cbdbdc10d8a8fe12756dc9
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4280b51c91a75e09c2d749f03cfbbb58e5a4594fc9c93fad63bb912c66899fcb03a166c5b7d6aa11edb121f3bb347785e8cafe7e31540fd72a0a93715866212a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 4b0e022cdea943f206278494e872b85e22a1d371c1c9aab4acb073a3118b0cc8be573da4d42b7b63380a1ff24021cbac147e8a31e51306a80f0b7d9335b4699d
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,5 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Changelog
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            ## 0.1.0-alpha.53 (2025-10-23)
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            Full Changelog: [v0.1.0-alpha.52...v0.1.0-alpha.53](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.52...v0.1.0-alpha.53)
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            ### Features
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            * **api:** updates to Auth Rules and Card provisioning ([fe22047](https://github.com/lithic-com/lithic-ruby/commit/fe22047b0689b63872eb7454cb4fc733aabe81cc))
         
     | 
| 
      
 10 
     | 
    
         
            +
            * handle thread interrupts in the core HTTP client ([1f9867e](https://github.com/lithic-com/lithic-ruby/commit/1f9867e2708d86c52e212e11a55d04ef03410b5d))
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       3 
12 
     | 
    
         
             
            ## 0.1.0-alpha.52 (2025-10-15)
         
     | 
| 
       4 
13 
     | 
    
         | 
| 
       5 
14 
     | 
    
         
             
            Full Changelog: [v0.1.0-alpha.51...v0.1.0-alpha.52](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.51...v0.1.0-alpha.52)
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application 
     | 
|
| 
       15 
15 
     | 
    
         
             
            <!-- x-release-please-start-version -->
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
17 
     | 
    
         
             
            ```ruby
         
     | 
| 
       18 
     | 
    
         
            -
            gem "lithic", "~> 0.1.0.pre.alpha. 
     | 
| 
      
 18 
     | 
    
         
            +
            gem "lithic", "~> 0.1.0.pre.alpha.53"
         
     | 
| 
       19 
19 
     | 
    
         
             
            ```
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
            <!-- x-release-please-end -->
         
     | 
| 
         @@ -128,40 +128,48 @@ module Lithic 
     | 
|
| 
       128 
128 
     | 
    
         
             
                      url, deadline = request.fetch_values(:url, :deadline)
         
     | 
| 
       129 
129 
     | 
    
         | 
| 
       130 
130 
     | 
    
         
             
                      req = nil
         
     | 
| 
       131 
     | 
    
         
            -
                      eof = false
         
     | 
| 
       132 
131 
     | 
    
         
             
                      finished = false
         
     | 
| 
       133 
     | 
    
         
            -
                      closing = nil
         
     | 
| 
       134 
132 
     | 
    
         | 
| 
       135 
133 
     | 
    
         
             
                      # rubocop:disable Metrics/BlockLength
         
     | 
| 
       136 
134 
     | 
    
         
             
                      enum = Enumerator.new do |y|
         
     | 
| 
       137 
135 
     | 
    
         
             
                        next if finished
         
     | 
| 
       138 
136 
     | 
    
         | 
| 
       139 
137 
     | 
    
         
             
                        with_pool(url, deadline: deadline) do |conn|
         
     | 
| 
       140 
     | 
    
         
            -
                           
     | 
| 
       141 
     | 
    
         
            -
             
     | 
| 
       142 
     | 
    
         
            -
                           
     | 
| 
       143 
     | 
    
         
            -
             
     | 
| 
       144 
     | 
    
         
            -
             
     | 
| 
       145 
     | 
    
         
            -
             
     | 
| 
       146 
     | 
    
         
            -
             
     | 
| 
       147 
     | 
    
         
            -
                            conn.start
         
     | 
| 
       148 
     | 
    
         
            -
                          end
         
     | 
| 
      
 138 
     | 
    
         
            +
                          eof = false
         
     | 
| 
      
 139 
     | 
    
         
            +
                          closing = nil
         
     | 
| 
      
 140 
     | 
    
         
            +
                          ::Thread.handle_interrupt(Object => :never) do
         
     | 
| 
      
 141 
     | 
    
         
            +
                            ::Thread.handle_interrupt(Object => :immediate) do
         
     | 
| 
      
 142 
     | 
    
         
            +
                              req, closing = self.class.build_request(request) do
         
     | 
| 
      
 143 
     | 
    
         
            +
                                self.class.calibrate_socket_timeout(conn, deadline)
         
     | 
| 
      
 144 
     | 
    
         
            +
                              end
         
     | 
| 
       149 
145 
     | 
    
         | 
| 
       150 
     | 
    
         
            -
             
     | 
| 
       151 
     | 
    
         
            -
             
     | 
| 
       152 
     | 
    
         
            -
             
     | 
| 
       153 
     | 
    
         
            -
             
     | 
| 
       154 
     | 
    
         
            -
             
     | 
| 
       155 
     | 
    
         
            -
                            rsp.read_body do |bytes|
         
     | 
| 
       156 
     | 
    
         
            -
                              y << bytes.force_encoding(Encoding::BINARY)
         
     | 
| 
       157 
     | 
    
         
            -
                              break if finished
         
     | 
| 
      
 146 
     | 
    
         
            +
                              self.class.calibrate_socket_timeout(conn, deadline)
         
     | 
| 
      
 147 
     | 
    
         
            +
                              unless conn.started?
         
     | 
| 
      
 148 
     | 
    
         
            +
                                conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT
         
     | 
| 
      
 149 
     | 
    
         
            +
                                conn.start
         
     | 
| 
      
 150 
     | 
    
         
            +
                              end
         
     | 
| 
       158 
151 
     | 
    
         | 
| 
       159 
152 
     | 
    
         
             
                              self.class.calibrate_socket_timeout(conn, deadline)
         
     | 
| 
      
 153 
     | 
    
         
            +
                              conn.request(req) do |rsp|
         
     | 
| 
      
 154 
     | 
    
         
            +
                                y << [req, rsp]
         
     | 
| 
      
 155 
     | 
    
         
            +
                                break if finished
         
     | 
| 
      
 156 
     | 
    
         
            +
             
     | 
| 
      
 157 
     | 
    
         
            +
                                rsp.read_body do |bytes|
         
     | 
| 
      
 158 
     | 
    
         
            +
                                  y << bytes.force_encoding(Encoding::BINARY)
         
     | 
| 
      
 159 
     | 
    
         
            +
                                  break if finished
         
     | 
| 
      
 160 
     | 
    
         
            +
             
     | 
| 
      
 161 
     | 
    
         
            +
                                  self.class.calibrate_socket_timeout(conn, deadline)
         
     | 
| 
      
 162 
     | 
    
         
            +
                                end
         
     | 
| 
      
 163 
     | 
    
         
            +
                                eof = true
         
     | 
| 
      
 164 
     | 
    
         
            +
                              end
         
     | 
| 
      
 165 
     | 
    
         
            +
                            end
         
     | 
| 
      
 166 
     | 
    
         
            +
                          ensure
         
     | 
| 
      
 167 
     | 
    
         
            +
                            begin
         
     | 
| 
      
 168 
     | 
    
         
            +
                              conn.finish if !eof && conn&.started?
         
     | 
| 
      
 169 
     | 
    
         
            +
                            ensure
         
     | 
| 
      
 170 
     | 
    
         
            +
                              closing&.call
         
     | 
| 
       160 
171 
     | 
    
         
             
                            end
         
     | 
| 
       161 
     | 
    
         
            -
                            eof = true
         
     | 
| 
       162 
172 
     | 
    
         
             
                          end
         
     | 
| 
       163 
     | 
    
         
            -
                        ensure
         
     | 
| 
       164 
     | 
    
         
            -
                          conn.finish if !eof && conn&.started?
         
     | 
| 
       165 
173 
     | 
    
         
             
                        end
         
     | 
| 
       166 
174 
     | 
    
         
             
                      rescue Timeout::Error
         
     | 
| 
       167 
175 
     | 
    
         
             
                        raise Lithic::Errors::APITimeoutError.new(url: url, request: req)
         
     | 
| 
         @@ -174,8 +182,6 @@ module Lithic 
     | 
|
| 
       174 
182 
     | 
    
         
             
                      body = Lithic::Internal::Util.fused_enum(enum, external: true) do
         
     | 
| 
       175 
183 
     | 
    
         
             
                        finished = true
         
     | 
| 
       176 
184 
     | 
    
         
             
                        loop { enum.next }
         
     | 
| 
       177 
     | 
    
         
            -
                      ensure
         
     | 
| 
       178 
     | 
    
         
            -
                        closing&.call
         
     | 
| 
       179 
185 
     | 
    
         
             
                      end
         
     | 
| 
       180 
186 
     | 
    
         
             
                      [Integer(response.code), response, body]
         
     | 
| 
       181 
187 
     | 
    
         
             
                    end
         
     | 
| 
         @@ -8,15 +8,27 @@ module Lithic 
     | 
|
| 
       8 
8 
     | 
    
         
             
                  # @example
         
     | 
| 
       9 
9 
     | 
    
         
             
                  #   # `account_activity_list_response` is a `Lithic::Models::AccountActivityListResponse`
         
     | 
| 
       10 
10 
     | 
    
         
             
                  #   case account_activity_list_response
         
     | 
| 
       11 
     | 
    
         
            -
                  #   when Lithic::Models::AccountActivityListResponse:: 
     | 
| 
      
 11 
     | 
    
         
            +
                  #   when Lithic::Models::AccountActivityListResponse::Internal
         
     | 
| 
       12 
12 
     | 
    
         
             
                  #     puts(account_activity_list_response.token)
         
     | 
| 
       13 
     | 
    
         
            -
                  #   when Lithic:: 
     | 
| 
      
 13 
     | 
    
         
            +
                  #   when Lithic::BookTransferResponse
         
     | 
| 
       14 
14 
     | 
    
         
             
                  #     puts(account_activity_list_response.category)
         
     | 
| 
       15 
     | 
    
         
            -
                  #   when Lithic::Models::AccountActivityListResponse:: 
     | 
| 
      
 15 
     | 
    
         
            +
                  #   when Lithic::Models::AccountActivityListResponse::Card
         
     | 
| 
       16 
16 
     | 
    
         
             
                  #     # ...
         
     | 
| 
       17 
17 
     | 
    
         
             
                  #   else
         
     | 
| 
       18 
18 
     | 
    
         
             
                  #     puts(account_activity_list_response)
         
     | 
| 
       19 
19 
     | 
    
         
             
                  #   end
         
     | 
| 
      
 20 
     | 
    
         
            +
                  #
         
     | 
| 
      
 21 
     | 
    
         
            +
                  # @example
         
     | 
| 
      
 22 
     | 
    
         
            +
                  #   case account_activity_list_response
         
     | 
| 
      
 23 
     | 
    
         
            +
                  #   in {family: :INTERNAL, token: token, category: category, created: created}
         
     | 
| 
      
 24 
     | 
    
         
            +
                  #     puts(token)
         
     | 
| 
      
 25 
     | 
    
         
            +
                  #   in {family: :TRANSFER, token: token, category: category, created: created}
         
     | 
| 
      
 26 
     | 
    
         
            +
                  #     puts(category)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  #   in {family: :PAYMENT, token: token, category: category, created: created}
         
     | 
| 
      
 28 
     | 
    
         
            +
                  #     puts(created)
         
     | 
| 
      
 29 
     | 
    
         
            +
                  #   else
         
     | 
| 
      
 30 
     | 
    
         
            +
                  #     puts(account_activity_list_response)
         
     | 
| 
      
 31 
     | 
    
         
            +
                  #   end
         
     | 
| 
       20 
32 
     | 
    
         
             
                  module Union
         
     | 
| 
       21 
33 
     | 
    
         
             
                    include Lithic::Internal::Type::Converter
         
     | 
| 
       22 
34 
     | 
    
         
             
                    include Lithic::Internal::Util::SorbetRuntimeSupport
         
     |