Skip to content

Commit

Permalink
OpenAPI generated code at 2023-11-27T21:39:38Z
Browse files Browse the repository at this point in the history
  • Loading branch information
aarohmankad committed Nov 27, 2023
1 parent cc75853 commit 3f1e769
Show file tree
Hide file tree
Showing 1,397 changed files with 10,854 additions and 2,794 deletions.
14 changes: 14 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,22 @@ docs/BaseReportsErrorWebhook.md
docs/BaseReportsProductReadyWebhook.md
docs/BeaconAuditTrail.md
docs/BeaconAuditTrailSource.md
docs/BeaconDuplicateDetectedWebhook.md
docs/BeaconMatchSummaryCode.md
docs/BeaconReport.md
docs/BeaconReportCreateRequest.md
docs/BeaconReportCreateResponse.md
docs/BeaconReportCreatedWebhook.md
docs/BeaconReportListRequest.md
docs/BeaconReportListResponse.md
docs/BeaconReportSyndication.md
docs/BeaconReportSyndicationAnalysis.md
docs/BeaconReportSyndicationCreatedWebhook.md
docs/BeaconReportSyndicationListRequest.md
docs/BeaconReportSyndicationListResponse.md
docs/BeaconReportSyndicationOriginalReport.md
docs/BeaconReportType.md
docs/BeaconReportUpdatedWebhook.md
docs/BeaconUserAddress.md
docs/BeaconUserCreateRequest.md
docs/BeaconUserCreateResponse.md
Expand Down Expand Up @@ -681,6 +685,7 @@ docs/LinkTokenGetResponse.md
docs/LinkTokenGetSessionsResponse.md
docs/LinkTokenInvestments.md
docs/LinkTokenInvestmentsAuth.md
docs/LinkTokenTransactions.md
docs/LinkUserDeliveryStatusWebhook.md
docs/Loan.md
docs/LoanAccountSubtype.md
Expand Down Expand Up @@ -1061,6 +1066,8 @@ docs/StatementsAccount.md
docs/StatementsDownloadRequest.md
docs/StatementsListRequest.md
docs/StatementsListResponse.md
docs/StatementsRefreshRequest.md
docs/StatementsRefreshResponse.md
docs/StatementsStatement.md
docs/Status.md
docs/Statuses.md
Expand Down Expand Up @@ -1531,18 +1538,22 @@ lib/plaid/models/base_reports_error_webhook.rb
lib/plaid/models/base_reports_product_ready_webhook.rb
lib/plaid/models/beacon_audit_trail.rb
lib/plaid/models/beacon_audit_trail_source.rb
lib/plaid/models/beacon_duplicate_detected_webhook.rb
lib/plaid/models/beacon_match_summary_code.rb
lib/plaid/models/beacon_report.rb
lib/plaid/models/beacon_report_create_request.rb
lib/plaid/models/beacon_report_create_response.rb
lib/plaid/models/beacon_report_created_webhook.rb
lib/plaid/models/beacon_report_list_request.rb
lib/plaid/models/beacon_report_list_response.rb
lib/plaid/models/beacon_report_syndication.rb
lib/plaid/models/beacon_report_syndication_analysis.rb
lib/plaid/models/beacon_report_syndication_created_webhook.rb
lib/plaid/models/beacon_report_syndication_list_request.rb
lib/plaid/models/beacon_report_syndication_list_response.rb
lib/plaid/models/beacon_report_syndication_original_report.rb
lib/plaid/models/beacon_report_type.rb
lib/plaid/models/beacon_report_updated_webhook.rb
lib/plaid/models/beacon_user_address.rb
lib/plaid/models/beacon_user_create_request.rb
lib/plaid/models/beacon_user_create_response.rb
Expand Down Expand Up @@ -2062,6 +2073,7 @@ lib/plaid/models/link_token_get_response.rb
lib/plaid/models/link_token_get_sessions_response.rb
lib/plaid/models/link_token_investments.rb
lib/plaid/models/link_token_investments_auth.rb
lib/plaid/models/link_token_transactions.rb
lib/plaid/models/link_user_delivery_status_webhook.rb
lib/plaid/models/loan.rb
lib/plaid/models/loan_account_subtype.rb
Expand Down Expand Up @@ -2441,6 +2453,8 @@ lib/plaid/models/statements_account.rb
lib/plaid/models/statements_download_request.rb
lib/plaid/models/statements_list_request.rb
lib/plaid/models/statements_list_response.rb
lib/plaid/models/statements_refresh_request.rb
lib/plaid/models/statements_refresh_response.rb
lib/plaid/models/statements_statement.rb
lib/plaid/models/status.rb
lib/plaid/models/statuses.rb
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.1.0
6.3.0
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
See full changelog for the OpenAPI schema (OAS) [here](https://github.com/plaid/plaid-openapi/blob/master/CHANGELOG.md).

# 24.2.0

- Updating to OAS 2020-09-14_1.474.0

## OpenAPI Schema Changes

### 2020-09-14_1.474.0

- Added `statements/refresh` endpoint

### 2020-09-14_1.473.0

- Add Beacon webhooks

### 2020-09-14_1.472.0

- Change client library visibility of `options.transactions.days_requested` field for `/link/token/create` and `/sandbox/public_token/create`
- Add `options.days_requested` field to `/transactions/get` and `/transactions/sync`

### 2020-09-14_1.471.0

[Breaking change for Go client libraries] Make `products` field in `/institutions/search` request optional to fix https://github.com/plaid/plaid-ruby/issues/476

# 24.1.0

- Updated OpenAPI generator version to 6.3.0 for bug fixes.

# 24.0.0

- Updating to OAS 2020-09-14_1.470.1
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ruby embeds the version in the generator where as others don't so it's not possible to cat for it.
RUBY_PACKAGE_VERSION=24.0.0
RUBY_PACKAGE_VERSION=24.2.0

.PHONY: release
release:
Expand Down
11 changes: 9 additions & 2 deletions lib/plaid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand Down Expand Up @@ -169,18 +169,22 @@
Plaid.autoload :BaseReportsProductReadyWebhook, 'plaid/models/base_reports_product_ready_webhook'
Plaid.autoload :BeaconAuditTrail, 'plaid/models/beacon_audit_trail'
Plaid.autoload :BeaconAuditTrailSource, 'plaid/models/beacon_audit_trail_source'
Plaid.autoload :BeaconDuplicateDetectedWebhook, 'plaid/models/beacon_duplicate_detected_webhook'
Plaid.autoload :BeaconMatchSummaryCode, 'plaid/models/beacon_match_summary_code'
Plaid.autoload :BeaconReport, 'plaid/models/beacon_report'
Plaid.autoload :BeaconReportCreateRequest, 'plaid/models/beacon_report_create_request'
Plaid.autoload :BeaconReportCreateResponse, 'plaid/models/beacon_report_create_response'
Plaid.autoload :BeaconReportCreatedWebhook, 'plaid/models/beacon_report_created_webhook'
Plaid.autoload :BeaconReportListRequest, 'plaid/models/beacon_report_list_request'
Plaid.autoload :BeaconReportListResponse, 'plaid/models/beacon_report_list_response'
Plaid.autoload :BeaconReportSyndication, 'plaid/models/beacon_report_syndication'
Plaid.autoload :BeaconReportSyndicationAnalysis, 'plaid/models/beacon_report_syndication_analysis'
Plaid.autoload :BeaconReportSyndicationCreatedWebhook, 'plaid/models/beacon_report_syndication_created_webhook'
Plaid.autoload :BeaconReportSyndicationListRequest, 'plaid/models/beacon_report_syndication_list_request'
Plaid.autoload :BeaconReportSyndicationListResponse, 'plaid/models/beacon_report_syndication_list_response'
Plaid.autoload :BeaconReportSyndicationOriginalReport, 'plaid/models/beacon_report_syndication_original_report'
Plaid.autoload :BeaconReportType, 'plaid/models/beacon_report_type'
Plaid.autoload :BeaconReportUpdatedWebhook, 'plaid/models/beacon_report_updated_webhook'
Plaid.autoload :BeaconUserAddress, 'plaid/models/beacon_user_address'
Plaid.autoload :BeaconUserCreateRequest, 'plaid/models/beacon_user_create_request'
Plaid.autoload :BeaconUserCreateResponse, 'plaid/models/beacon_user_create_response'
Expand Down Expand Up @@ -700,6 +704,7 @@
Plaid.autoload :LinkTokenGetSessionsResponse, 'plaid/models/link_token_get_sessions_response'
Plaid.autoload :LinkTokenInvestments, 'plaid/models/link_token_investments'
Plaid.autoload :LinkTokenInvestmentsAuth, 'plaid/models/link_token_investments_auth'
Plaid.autoload :LinkTokenTransactions, 'plaid/models/link_token_transactions'
Plaid.autoload :LinkUserDeliveryStatusWebhook, 'plaid/models/link_user_delivery_status_webhook'
Plaid.autoload :Loan, 'plaid/models/loan'
Plaid.autoload :LoanAccountSubtype, 'plaid/models/loan_account_subtype'
Expand Down Expand Up @@ -1079,6 +1084,8 @@
Plaid.autoload :StatementsDownloadRequest, 'plaid/models/statements_download_request'
Plaid.autoload :StatementsListRequest, 'plaid/models/statements_list_request'
Plaid.autoload :StatementsListResponse, 'plaid/models/statements_list_response'
Plaid.autoload :StatementsRefreshRequest, 'plaid/models/statements_refresh_request'
Plaid.autoload :StatementsRefreshResponse, 'plaid/models/statements_refresh_response'
Plaid.autoload :StatementsStatement, 'plaid/models/statements_statement'
Plaid.autoload :Status, 'plaid/models/status'
Plaid.autoload :Statuses, 'plaid/models/statuses'
Expand Down
4 changes: 2 additions & 2 deletions lib/plaid/api/plaid_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

#The Plaid REST API. Please see https://plaid.com/docs/api for more details.

The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0

=end

Expand Down
10 changes: 6 additions & 4 deletions lib/plaid/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand Down Expand Up @@ -38,7 +38,7 @@ class ApiClient
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
def initialize(config = Configuration.default)
@config = config
@user_agent = "Plaid Ruby v24.0.0"
@user_agent = "Plaid Ruby v24.2.0"
@default_headers = {
'Content-Type' => 'application/json',
'User-Agent' => @user_agent,
Expand Down Expand Up @@ -79,7 +79,7 @@ def call_api(http_method, path, opts = {})
end

unless response.success?
if response.status == 0
if response.status == 0 && response.respond_to?(:return_message)
# Errors from libcurl will be made visible here
fail ApiError.new(:code => 0,
:message => response.return_message)
Expand All @@ -100,6 +100,8 @@ def call_api(http_method, path, opts = {})
end
rescue Faraday::TimeoutError
fail ApiError.new('Connection timed out')
rescue Faraday::ConnectionFailed
fail ApiError.new('Connection failed')
end

if opts[:return_type]
Expand Down
7 changes: 4 additions & 3 deletions lib/plaid/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand All @@ -25,6 +25,7 @@ def initialize(arg = nil)
super(arg[:message] || arg['message'])
else
super arg
@message = arg
end

arg.each do |k, v|
Expand Down Expand Up @@ -54,4 +55,4 @@ def message
msg
end
end
end
end
16 changes: 14 additions & 2 deletions lib/plaid/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand Down Expand Up @@ -71,6 +71,12 @@ class Configuration
# Defines the access token (Bearer) used with OAuth2.
attr_accessor :access_token

# Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2.
# Overrides the access_token if set
# @return [Proc]
attr_accessor :access_token_getter


# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
# details will be logged with `logger.debug` (see the `logger` attribute).
# Default to false.
Expand Down Expand Up @@ -216,6 +222,12 @@ def api_key_with_prefix(param_name)
end
end

# Gets access_token using access_token_getter or uses the static access_token
def access_token_with_refresh
return access_token if access_token_getter.nil?
access_token_getter.call
end

# Gets Basic Auth token string
def basic_auth_token
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
Expand Down
4 changes: 2 additions & 2 deletions lib/plaid/models/account_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand Down
4 changes: 2 additions & 2 deletions lib/plaid/models/account_assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand Down
26 changes: 24 additions & 2 deletions lib/plaid/models/account_assets_all_of.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand All @@ -31,6 +31,28 @@ class AccountAssetsAllOf
# Calculated data about the historical balances on the account.
attr_accessor :historical_balances

class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values

def initialize(datatype, allowable_values)
@allowable_values = allowable_values.map do |value|
case datatype.to_s
when /Integer/i
value.to_i
when /Float/i
value.to_f
else
value
end
end
end

def valid?(value)
!value || allowable_values.include?(value)
end
end

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
Expand Down
4 changes: 2 additions & 2 deletions lib/plaid/models/account_balance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand Down
4 changes: 2 additions & 2 deletions lib/plaid/models/account_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.470.1
The version of the OpenAPI document: 2020-09-14_1.474.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.1.0
OpenAPI Generator version: 6.3.0
=end

Expand Down
Loading

0 comments on commit 3f1e769

Please sign in to comment.