From d85ee366181cd1d8c2530049d4bf13bfd8f22d19 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:49:14 +0000 Subject: [PATCH 1/3] feat(api): api update --- .stats.yml | 4 ++-- lib/lithic/models/event.rb | 2 ++ lib/lithic/models/event_list_params.rb | 2 ++ lib/lithic/models/event_subscription.rb | 2 ++ lib/lithic/models/events/subscription_create_params.rb | 2 ++ .../subscription_send_simulated_example_params.rb | 2 ++ lib/lithic/models/events/subscription_update_params.rb | 2 ++ rbi/lithic/models/event.rbi | 10 ++++++++++ rbi/lithic/models/event_list_params.rbi | 10 ++++++++++ rbi/lithic/models/event_subscription.rbi | 10 ++++++++++ .../models/events/subscription_create_params.rbi | 10 ++++++++++ .../subscription_send_simulated_example_params.rbi | 10 ++++++++++ .../models/events/subscription_update_params.rbi | 10 ++++++++++ sig/lithic/models/event.rbs | 4 ++++ sig/lithic/models/event_list_params.rbs | 4 ++++ sig/lithic/models/event_subscription.rbs | 4 ++++ .../models/events/subscription_create_params.rbs | 4 ++++ .../subscription_send_simulated_example_params.rbs | 4 ++++ .../models/events/subscription_update_params.rbs | 4 ++++ 19 files changed, 98 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6a2d35f7..1be7de0b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 165 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-80f2056989855259782c8e23b9b95530b708b87669d2ba82594ecfee843b4db3.yml -openapi_spec_hash: 160aa2f0e95a7be3ad9d68390ae9aa7c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-0598a3569ace333f5006a8174ff828a0f1a290f6dc9bbbdb5659d50318c31957.yml +openapi_spec_hash: 09925ebceb9cfe47224f05a2ff9ce14f config_hash: a5d12cd64a37624cbe350cd7b2380693 diff --git a/lib/lithic/models/event.rb b/lib/lithic/models/event.rb index 7045525a..5245a319 100644 --- a/lib/lithic/models/event.rb +++ b/lib/lithic/models/event.rb @@ -137,6 +137,8 @@ module EventType LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" MANAGEMENT_OPERATION_UPDATED = :"management_operation.updated" + NETWORK_TOTAL_CREATED = :"network_total.created" + NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" diff --git a/lib/lithic/models/event_list_params.rb b/lib/lithic/models/event_list_params.rb index 26139235..48b81aea 100644 --- a/lib/lithic/models/event_list_params.rb +++ b/lib/lithic/models/event_list_params.rb @@ -108,6 +108,8 @@ module EventType LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" MANAGEMENT_OPERATION_UPDATED = :"management_operation.updated" + NETWORK_TOTAL_CREATED = :"network_total.created" + NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" diff --git a/lib/lithic/models/event_subscription.rb b/lib/lithic/models/event_subscription.rb index 37f04440..03f50bfd 100644 --- a/lib/lithic/models/event_subscription.rb +++ b/lib/lithic/models/event_subscription.rb @@ -81,6 +81,8 @@ module EventType LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" MANAGEMENT_OPERATION_UPDATED = :"management_operation.updated" + NETWORK_TOTAL_CREATED = :"network_total.created" + NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" diff --git a/lib/lithic/models/events/subscription_create_params.rb b/lib/lithic/models/events/subscription_create_params.rb index f85c4d92..861ffd60 100644 --- a/lib/lithic/models/events/subscription_create_params.rb +++ b/lib/lithic/models/events/subscription_create_params.rb @@ -85,6 +85,8 @@ module EventType LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" MANAGEMENT_OPERATION_UPDATED = :"management_operation.updated" + NETWORK_TOTAL_CREATED = :"network_total.created" + NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" diff --git a/lib/lithic/models/events/subscription_send_simulated_example_params.rb b/lib/lithic/models/events/subscription_send_simulated_example_params.rb index bf3d4805..8f34c341 100644 --- a/lib/lithic/models/events/subscription_send_simulated_example_params.rb +++ b/lib/lithic/models/events/subscription_send_simulated_example_params.rb @@ -55,6 +55,8 @@ module EventType LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" MANAGEMENT_OPERATION_UPDATED = :"management_operation.updated" + NETWORK_TOTAL_CREATED = :"network_total.created" + NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" diff --git a/lib/lithic/models/events/subscription_update_params.rb b/lib/lithic/models/events/subscription_update_params.rb index e6b740d5..fc4eb957 100644 --- a/lib/lithic/models/events/subscription_update_params.rb +++ b/lib/lithic/models/events/subscription_update_params.rb @@ -85,6 +85,8 @@ module EventType LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" MANAGEMENT_OPERATION_UPDATED = :"management_operation.updated" + NETWORK_TOTAL_CREATED = :"network_total.created" + NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" diff --git a/rbi/lithic/models/event.rbi b/rbi/lithic/models/event.rbi index e5270937..31a3354a 100644 --- a/rbi/lithic/models/event.rbi +++ b/rbi/lithic/models/event.rbi @@ -271,6 +271,16 @@ module Lithic :"management_operation.updated", Lithic::Event::EventType::TaggedSymbol ) + NETWORK_TOTAL_CREATED = + T.let( + :"network_total.created", + Lithic::Event::EventType::TaggedSymbol + ) + NETWORK_TOTAL_UPDATED = + T.let( + :"network_total.updated", + Lithic::Event::EventType::TaggedSymbol + ) PAYMENT_TRANSACTION_CREATED = T.let( :"payment_transaction.created", diff --git a/rbi/lithic/models/event_list_params.rbi b/rbi/lithic/models/event_list_params.rbi index 053e9ed9..aca7cb44 100644 --- a/rbi/lithic/models/event_list_params.rbi +++ b/rbi/lithic/models/event_list_params.rbi @@ -281,6 +281,16 @@ module Lithic :"management_operation.updated", Lithic::EventListParams::EventType::TaggedSymbol ) + NETWORK_TOTAL_CREATED = + T.let( + :"network_total.created", + Lithic::EventListParams::EventType::TaggedSymbol + ) + NETWORK_TOTAL_UPDATED = + T.let( + :"network_total.updated", + Lithic::EventListParams::EventType::TaggedSymbol + ) PAYMENT_TRANSACTION_CREATED = T.let( :"payment_transaction.created", diff --git a/rbi/lithic/models/event_subscription.rbi b/rbi/lithic/models/event_subscription.rbi index 4c22b0d8..da04916d 100644 --- a/rbi/lithic/models/event_subscription.rbi +++ b/rbi/lithic/models/event_subscription.rbi @@ -229,6 +229,16 @@ module Lithic :"management_operation.updated", Lithic::EventSubscription::EventType::TaggedSymbol ) + NETWORK_TOTAL_CREATED = + T.let( + :"network_total.created", + Lithic::EventSubscription::EventType::TaggedSymbol + ) + NETWORK_TOTAL_UPDATED = + T.let( + :"network_total.updated", + Lithic::EventSubscription::EventType::TaggedSymbol + ) PAYMENT_TRANSACTION_CREATED = T.let( :"payment_transaction.created", diff --git a/rbi/lithic/models/events/subscription_create_params.rbi b/rbi/lithic/models/events/subscription_create_params.rbi index 5d08924c..efba12e2 100644 --- a/rbi/lithic/models/events/subscription_create_params.rbi +++ b/rbi/lithic/models/events/subscription_create_params.rbi @@ -258,6 +258,16 @@ module Lithic :"management_operation.updated", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) + NETWORK_TOTAL_CREATED = + T.let( + :"network_total.created", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) + NETWORK_TOTAL_UPDATED = + T.let( + :"network_total.updated", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) PAYMENT_TRANSACTION_CREATED = T.let( :"payment_transaction.created", diff --git a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi index 8dc20f83..223ebcfd 100644 --- a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +++ b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi @@ -222,6 +222,16 @@ module Lithic :"management_operation.updated", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) + NETWORK_TOTAL_CREATED = + T.let( + :"network_total.created", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) + NETWORK_TOTAL_UPDATED = + T.let( + :"network_total.updated", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) PAYMENT_TRANSACTION_CREATED = T.let( :"payment_transaction.created", diff --git a/rbi/lithic/models/events/subscription_update_params.rbi b/rbi/lithic/models/events/subscription_update_params.rbi index d2f78031..01c9ec6e 100644 --- a/rbi/lithic/models/events/subscription_update_params.rbi +++ b/rbi/lithic/models/events/subscription_update_params.rbi @@ -258,6 +258,16 @@ module Lithic :"management_operation.updated", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) + NETWORK_TOTAL_CREATED = + T.let( + :"network_total.created", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) + NETWORK_TOTAL_UPDATED = + T.let( + :"network_total.updated", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) PAYMENT_TRANSACTION_CREATED = T.let( :"payment_transaction.created", diff --git a/sig/lithic/models/event.rbs b/sig/lithic/models/event.rbs index 295478a2..048f05b6 100644 --- a/sig/lithic/models/event.rbs +++ b/sig/lithic/models/event.rbs @@ -62,6 +62,8 @@ module Lithic | :"loan_tape.updated" | :"management_operation.created" | :"management_operation.updated" + | :"network_total.created" + | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" | :"internal_transaction.created" @@ -109,6 +111,8 @@ module Lithic LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" MANAGEMENT_OPERATION_UPDATED: :"management_operation.updated" + NETWORK_TOTAL_CREATED: :"network_total.created" + NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" diff --git a/sig/lithic/models/event_list_params.rbs b/sig/lithic/models/event_list_params.rbs index c45f866f..266eb0e3 100644 --- a/sig/lithic/models/event_list_params.rbs +++ b/sig/lithic/models/event_list_params.rbs @@ -99,6 +99,8 @@ module Lithic | :"loan_tape.updated" | :"management_operation.created" | :"management_operation.updated" + | :"network_total.created" + | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" | :"internal_transaction.created" @@ -146,6 +148,8 @@ module Lithic LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" MANAGEMENT_OPERATION_UPDATED: :"management_operation.updated" + NETWORK_TOTAL_CREATED: :"network_total.created" + NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" diff --git a/sig/lithic/models/event_subscription.rbs b/sig/lithic/models/event_subscription.rbs index 7739b86c..0ee016ac 100644 --- a/sig/lithic/models/event_subscription.rbs +++ b/sig/lithic/models/event_subscription.rbs @@ -67,6 +67,8 @@ module Lithic | :"loan_tape.updated" | :"management_operation.created" | :"management_operation.updated" + | :"network_total.created" + | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" | :"internal_transaction.created" @@ -114,6 +116,8 @@ module Lithic LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" MANAGEMENT_OPERATION_UPDATED: :"management_operation.updated" + NETWORK_TOTAL_CREATED: :"network_total.created" + NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" diff --git a/sig/lithic/models/events/subscription_create_params.rbs b/sig/lithic/models/events/subscription_create_params.rbs index c817c737..522b71d1 100644 --- a/sig/lithic/models/events/subscription_create_params.rbs +++ b/sig/lithic/models/events/subscription_create_params.rbs @@ -77,6 +77,8 @@ module Lithic | :"loan_tape.updated" | :"management_operation.created" | :"management_operation.updated" + | :"network_total.created" + | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" | :"internal_transaction.created" @@ -124,6 +126,8 @@ module Lithic LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" MANAGEMENT_OPERATION_UPDATED: :"management_operation.updated" + NETWORK_TOTAL_CREATED: :"network_total.created" + NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" diff --git a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs index f0bf7615..1ee60b2d 100644 --- a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +++ b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs @@ -58,6 +58,8 @@ module Lithic | :"loan_tape.updated" | :"management_operation.created" | :"management_operation.updated" + | :"network_total.created" + | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" | :"internal_transaction.created" @@ -105,6 +107,8 @@ module Lithic LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" MANAGEMENT_OPERATION_UPDATED: :"management_operation.updated" + NETWORK_TOTAL_CREATED: :"network_total.created" + NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" diff --git a/sig/lithic/models/events/subscription_update_params.rbs b/sig/lithic/models/events/subscription_update_params.rbs index b1d5f5cc..1de09054 100644 --- a/sig/lithic/models/events/subscription_update_params.rbs +++ b/sig/lithic/models/events/subscription_update_params.rbs @@ -77,6 +77,8 @@ module Lithic | :"loan_tape.updated" | :"management_operation.created" | :"management_operation.updated" + | :"network_total.created" + | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" | :"internal_transaction.created" @@ -124,6 +126,8 @@ module Lithic LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" MANAGEMENT_OPERATION_UPDATED: :"management_operation.updated" + NETWORK_TOTAL_CREATED: :"network_total.created" + NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" From c0963987f272b3c94603f5072a0e480b06d99a02 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:52:34 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +-- .../settlement/network_total_list_response.rb | 22 ++++++++++----- .../network_total_retrieve_response.rb | 22 ++++++++++----- .../network_total_list_response.rbi | 27 ++++++++++++++----- .../network_total_retrieve_response.rbi | 27 ++++++++++++++----- .../network_total_list_response.rbs | 8 +++++- .../network_total_retrieve_response.rbs | 8 +++++- .../reports/settlement/network_totals_test.rb | 2 ++ 8 files changed, 92 insertions(+), 28 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1be7de0b..0709ca81 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 165 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-0598a3569ace333f5006a8174ff828a0f1a290f6dc9bbbdb5659d50318c31957.yml -openapi_spec_hash: 09925ebceb9cfe47224f05a2ff9ce14f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1aaf1d9d9aea1bfa14a48559f01d539aa1449d65f252dc9c3b606c7bca300af1.yml +openapi_spec_hash: 3327246caf3bcbd3504ce99c81062075 config_hash: a5d12cd64a37624cbe350cd7b2380693 diff --git a/lib/lithic/models/reports/settlement/network_total_list_response.rb b/lib/lithic/models/reports/settlement/network_total_list_response.rb index 5ddebd4c..de6a0f40 100644 --- a/lib/lithic/models/reports/settlement/network_total_list_response.rb +++ b/lib/lithic/models/reports/settlement/network_total_list_response.rb @@ -37,9 +37,16 @@ class NetworkTotalListResponse < Lithic::Internal::Type::BaseModel # @return [String] required :institution_id, String + # @!attribute is_complete + # Indicates that all settlement records related to this Network Total are + # available in the details endpoint. + # + # @return [Boolean] + required :is_complete, Lithic::Internal::Type::Boolean + # @!attribute network - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. # # @return [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network] required :network, enum: -> { Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network } @@ -76,7 +83,7 @@ class NetworkTotalListResponse < Lithic::Internal::Type::BaseModel # @return [Integer, nil] optional :cycle, Integer - # @!method initialize(token:, amounts:, created:, currency:, institution_id:, network:, report_date:, settlement_institution_id:, settlement_service:, updated:, cycle: nil) + # @!method initialize(token:, amounts:, created:, currency:, institution_id:, is_complete:, network:, report_date:, settlement_institution_id:, settlement_service:, updated:, cycle: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::Reports::Settlement::NetworkTotalListResponse} for more # details. @@ -91,7 +98,9 @@ class NetworkTotalListResponse < Lithic::Internal::Type::BaseModel # # @param institution_id [String] The institution that activity occurred on. For Mastercard: ICA (Interbank Card A # - # @param network [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network] Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or INT + # @param is_complete [Boolean] Indicates that all settlement records related to this Network Total are availabl + # + # @param network [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network] Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, # # @param report_date [Date] Date that the network total record applies to. YYYY-MM-DD format. # @@ -144,13 +153,14 @@ class Amounts < Lithic::Internal::Type::BaseModel # @param visa_charges [Integer] Charges specific to Visa/Interlink, in currency's smallest unit. end - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. # # @see Lithic::Models::Reports::Settlement::NetworkTotalListResponse#network module Network extend Lithic::Internal::Type::Enum + AMEX = :AMEX VISA = :VISA MASTERCARD = :MASTERCARD MAESTRO = :MAESTRO diff --git a/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb b/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb index 8e8dfc17..42365479 100644 --- a/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +++ b/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb @@ -37,9 +37,16 @@ class NetworkTotalRetrieveResponse < Lithic::Internal::Type::BaseModel # @return [String] required :institution_id, String + # @!attribute is_complete + # Indicates that all settlement records related to this Network Total are + # available in the details endpoint. + # + # @return [Boolean] + required :is_complete, Lithic::Internal::Type::Boolean + # @!attribute network - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. # # @return [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network] required :network, enum: -> { Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network } @@ -76,7 +83,7 @@ class NetworkTotalRetrieveResponse < Lithic::Internal::Type::BaseModel # @return [Integer, nil] optional :cycle, Integer - # @!method initialize(token:, amounts:, created:, currency:, institution_id:, network:, report_date:, settlement_institution_id:, settlement_service:, updated:, cycle: nil) + # @!method initialize(token:, amounts:, created:, currency:, institution_id:, is_complete:, network:, report_date:, settlement_institution_id:, settlement_service:, updated:, cycle: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse} for more # details. @@ -91,7 +98,9 @@ class NetworkTotalRetrieveResponse < Lithic::Internal::Type::BaseModel # # @param institution_id [String] The institution that activity occurred on. For Mastercard: ICA (Interbank Card A # - # @param network [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network] Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or INT + # @param is_complete [Boolean] Indicates that all settlement records related to this Network Total are availabl + # + # @param network [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network] Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, # # @param report_date [Date] Date that the network total record applies to. YYYY-MM-DD format. # @@ -144,13 +153,14 @@ class Amounts < Lithic::Internal::Type::BaseModel # @param visa_charges [Integer] Charges specific to Visa/Interlink, in currency's smallest unit. end - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. # # @see Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse#network module Network extend Lithic::Internal::Type::Enum + AMEX = :AMEX VISA = :VISA MASTERCARD = :MASTERCARD MAESTRO = :MAESTRO diff --git a/rbi/lithic/models/reports/settlement/network_total_list_response.rbi b/rbi/lithic/models/reports/settlement/network_total_list_response.rbi index bc9b769f..9401a907 100644 --- a/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +++ b/rbi/lithic/models/reports/settlement/network_total_list_response.rbi @@ -46,8 +46,13 @@ module Lithic sig { returns(String) } attr_accessor :institution_id - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Indicates that all settlement records related to this Network Total are + # available in the details endpoint. + sig { returns(T::Boolean) } + attr_accessor :is_complete + + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. sig do returns( Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network::TaggedSymbol @@ -88,6 +93,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: T::Boolean, network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network::OrSymbol, report_date: Date, @@ -109,8 +115,11 @@ module Lithic # Association). For Maestro: institution ID. For Visa: lowest level SRE # (Settlement Reporting Entity). institution_id:, - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Indicates that all settlement records related to this Network Total are + # available in the details endpoint. + is_complete:, + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. network:, # Date that the network total record applies to. YYYY-MM-DD format. report_date:, @@ -136,6 +145,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: T::Boolean, network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network::TaggedSymbol, report_date: Date, @@ -213,8 +223,8 @@ module Lithic end end - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. module Network extend Lithic::Internal::Type::Enum @@ -227,6 +237,11 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } + AMEX = + T.let( + :AMEX, + Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network::TaggedSymbol + ) VISA = T.let( :VISA, diff --git a/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi b/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi index 1b247485..10bd603d 100644 --- a/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +++ b/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi @@ -46,8 +46,13 @@ module Lithic sig { returns(String) } attr_accessor :institution_id - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Indicates that all settlement records related to this Network Total are + # available in the details endpoint. + sig { returns(T::Boolean) } + attr_accessor :is_complete + + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. sig do returns( Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network::TaggedSymbol @@ -88,6 +93,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: T::Boolean, network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network::OrSymbol, report_date: Date, @@ -109,8 +115,11 @@ module Lithic # Association). For Maestro: institution ID. For Visa: lowest level SRE # (Settlement Reporting Entity). institution_id:, - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Indicates that all settlement records related to this Network Total are + # available in the details endpoint. + is_complete:, + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. network:, # Date that the network total record applies to. YYYY-MM-DD format. report_date:, @@ -136,6 +145,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: T::Boolean, network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network::TaggedSymbol, report_date: Date, @@ -213,8 +223,8 @@ module Lithic end end - # Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or - # INTERLINK. + # Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, + # or INTERLINK. module Network extend Lithic::Internal::Type::Enum @@ -227,6 +237,11 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } + AMEX = + T.let( + :AMEX, + Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network::TaggedSymbol + ) VISA = T.let( :VISA, diff --git a/sig/lithic/models/reports/settlement/network_total_list_response.rbs b/sig/lithic/models/reports/settlement/network_total_list_response.rbs index 248697c1..108d21b8 100644 --- a/sig/lithic/models/reports/settlement/network_total_list_response.rbs +++ b/sig/lithic/models/reports/settlement/network_total_list_response.rbs @@ -9,6 +9,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: bool, network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::network, report_date: Date, settlement_institution_id: String, @@ -28,6 +29,8 @@ module Lithic attr_accessor institution_id: String + attr_accessor is_complete: bool + attr_accessor network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::network attr_accessor report_date: Date @@ -48,6 +51,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: bool, network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::network, report_date: Date, settlement_institution_id: String, @@ -62,6 +66,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: bool, network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::network, report_date: Date, settlement_institution_id: String, @@ -104,11 +109,12 @@ module Lithic } end - type network = :VISA | :MASTERCARD | :MAESTRO | :INTERLINK + type network = :AMEX | :VISA | :MASTERCARD | :MAESTRO | :INTERLINK module Network extend Lithic::Internal::Type::Enum + AMEX: :AMEX VISA: :VISA MASTERCARD: :MASTERCARD MAESTRO: :MAESTRO diff --git a/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs b/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs index 90b5a7a1..726a1804 100644 --- a/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +++ b/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs @@ -9,6 +9,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: bool, network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::network, report_date: Date, settlement_institution_id: String, @@ -28,6 +29,8 @@ module Lithic attr_accessor institution_id: String + attr_accessor is_complete: bool + attr_accessor network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::network attr_accessor report_date: Date @@ -48,6 +51,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: bool, network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::network, report_date: Date, settlement_institution_id: String, @@ -62,6 +66,7 @@ module Lithic created: Time, currency: String, institution_id: String, + is_complete: bool, network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::network, report_date: Date, settlement_institution_id: String, @@ -104,11 +109,12 @@ module Lithic } end - type network = :VISA | :MASTERCARD | :MAESTRO | :INTERLINK + type network = :AMEX | :VISA | :MASTERCARD | :MAESTRO | :INTERLINK module Network extend Lithic::Internal::Type::Enum + AMEX: :AMEX VISA: :VISA MASTERCARD: :MASTERCARD MAESTRO: :MAESTRO diff --git a/test/lithic/resources/reports/settlement/network_totals_test.rb b/test/lithic/resources/reports/settlement/network_totals_test.rb index 4ba13f41..f7fc2058 100644 --- a/test/lithic/resources/reports/settlement/network_totals_test.rb +++ b/test/lithic/resources/reports/settlement/network_totals_test.rb @@ -17,6 +17,7 @@ def test_retrieve created: Time, currency: String, institution_id: String, + is_complete: Lithic::Internal::Type::Boolean, network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network, report_date: Date, settlement_institution_id: String, @@ -48,6 +49,7 @@ def test_list created: Time, currency: String, institution_id: String, + is_complete: Lithic::Internal::Type::Boolean, network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network, report_date: Date, settlement_institution_id: String, From b89d1ae511c7d54323439aeb87f17f1c1eda1db9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:52:52 +0000 Subject: [PATCH 3/3] release: 0.1.0-alpha.39 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/lithic/version.rb | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0c41cec4..0f02ea1c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.38" + ".": "0.1.0-alpha.39" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e278eee0..64b735c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.1.0-alpha.39 (2025-07-03) + +Full Changelog: [v0.1.0-alpha.38...v0.1.0-alpha.39](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.38...v0.1.0-alpha.39) + +### Features + +* **api:** api update ([c096398](https://github.com/lithic-com/lithic-ruby/commit/c0963987f272b3c94603f5072a0e480b06d99a02)) +* **api:** api update ([d85ee36](https://github.com/lithic-com/lithic-ruby/commit/d85ee366181cd1d8c2530049d4bf13bfd8f22d19)) + ## 0.1.0-alpha.38 (2025-07-02) Full Changelog: [v0.1.0-alpha.37...v0.1.0-alpha.38](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.37...v0.1.0-alpha.38) diff --git a/Gemfile.lock b/Gemfile.lock index 7a4ae581..8b77322e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.1.0.pre.alpha.38) + lithic (0.1.0.pre.alpha.39) connection_pool GEM diff --git a/README.md b/README.md index 1b01e940..054ca55a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.1.0.pre.alpha.38" +gem "lithic", "~> 0.1.0.pre.alpha.39" ``` diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 6b382693..7b28be27 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.1.0.pre.alpha.38" + VERSION = "0.1.0.pre.alpha.39" end