payabli 2.2.27 → 2.2.29

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6fe4c1eb951b5b2834d95fcc20169f67b6e09934c0c6215a0cd8c56aa71f50d
4
- data.tar.gz: 7d3dd43cda3b300e3f00cbb5ed69c4ea33a54e500abdf375cb899d3489321d98
3
+ metadata.gz: 597c0c64b2d2c80e4fb75ee36a2e75c7d67a387a94b91c23403e56fff8da88a9
4
+ data.tar.gz: fe1d3e00f0d431362010dd3ac138e9fe5483be307c1050a3dedc2ed1ad437ff1
5
5
  SHA512:
6
- metadata.gz: 7c1549d6b5cbdcf262f6dd78fea18d6ed1e3eb287212922e564fb66ab0a9ae6d383e3cc287be5246e0f4605e8a81e722388ba5c9ca55a32627360f6e911d1e52
7
- data.tar.gz: e8dbbaa0c6be087ff8de29f392199416b5d8972289eb0209aed5ef25001f05f7225c4cc545de65a87fe05ebd230c85264999a99ea9b35706f74d9ce737166ba1
6
+ metadata.gz: 7f556e15ea09959467c2375664704debd6282fcb7fc0edbb7428ddc2a0608dcf205c99807226e306104208f7f89fcaff99f637038240fbae9c2b5d89e6fcc1e7
7
+ data.tar.gz: 4788c0decb8b1feacdd3be3138fa42d1da7448d9dcf36077672ac776ecd39a4e808b02c28c3d30027eb4f27b39b7e1751897c8c48ddb9cfcf8e2f722082b6400
data/.fern/metadata.json CHANGED
@@ -6,6 +6,6 @@
6
6
  "enableWireTests": true,
7
7
  "rubocopVariableNumberStyle": "snake_case"
8
8
  },
9
- "originGitCommit": "72fdff3484316d01ba20c78f02c52cde8b292f54",
10
- "sdkVersion": "2.2.27"
9
+ "originGitCommit": "d69946f7f37797d4fdc34de0c29dc377dbc94fc5",
10
+ "sdkVersion": "2.2.29"
11
11
  }
@@ -10,7 +10,7 @@ module Payabli
10
10
  @raw_client = Payabli::Internal::Http::RawClient.new(
11
11
  base_url: base_url || Payabli::Environment::SANDBOX,
12
12
  headers: {
13
- "User-Agent" => "payabli/2.2.27",
13
+ "User-Agent" => "payabli/2.2.29",
14
14
  "X-Fern-Language" => "Ruby",
15
15
  requestToken: api_key.to_s
16
16
  }
@@ -1964,6 +1964,100 @@ module Payabli
1964
1964
  end
1965
1965
  end
1966
1966
 
1967
+ # Retrieve a list of virtual card transactions for an entrypoint. Use filters to limit results.
1968
+ #
1969
+ # @param request_options [Hash]
1970
+ # @param params [Hash]
1971
+ # @option request_options [String] :base_url
1972
+ # @option request_options [Hash{String => Object}] :additional_headers
1973
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1974
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1975
+ # @option request_options [Integer] :timeout_in_seconds
1976
+ # @option params [Payabli::Types::Entry] :entry
1977
+ # @option params [Integer, nil] :from_record
1978
+ # @option params [Integer, nil] :limit_record
1979
+ # @option params [Hash[String, String, nil], nil] :parameters
1980
+ # @option params [String, nil] :sort_by
1981
+ #
1982
+ # @return [Payabli::QueryTypes::Types::VCardTransactionQueryResponse]
1983
+ def list_vcards_transactions(request_options: {}, **params)
1984
+ params = Payabli::Internal::Types::Utils.normalize_keys(params)
1985
+ query_param_names = %i[from_record limit_record parameters sort_by]
1986
+ query_params = {}
1987
+ query_params["fromRecord"] = params[:from_record] if params.key?(:from_record)
1988
+ query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1989
+ query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1990
+ query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1991
+ params = params.except(*query_param_names)
1992
+
1993
+ request = Payabli::Internal::JSON::Request.new(
1994
+ base_url: request_options[:base_url],
1995
+ method: "GET",
1996
+ path: "Query/vcardsTransactions/#{URI.encode_uri_component(params[:entry].to_s)}",
1997
+ query: query_params,
1998
+ request_options: request_options
1999
+ )
2000
+ begin
2001
+ response = @client.send(request)
2002
+ rescue Net::HTTPRequestTimeout
2003
+ raise Payabli::Errors::TimeoutError
2004
+ end
2005
+ code = response.code.to_i
2006
+ if code.between?(200, 299)
2007
+ Payabli::QueryTypes::Types::VCardTransactionQueryResponse.load(response.body)
2008
+ else
2009
+ error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
2010
+ raise error_class.new(response.body, code: code)
2011
+ end
2012
+ end
2013
+
2014
+ # Retrieve a list of virtual card transactions for an organization. Use filters to limit results.
2015
+ #
2016
+ # @param request_options [Hash]
2017
+ # @param params [Hash]
2018
+ # @option request_options [String] :base_url
2019
+ # @option request_options [Hash{String => Object}] :additional_headers
2020
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
2021
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
2022
+ # @option request_options [Integer] :timeout_in_seconds
2023
+ # @option params [Integer] :org_id
2024
+ # @option params [Integer, nil] :from_record
2025
+ # @option params [Integer, nil] :limit_record
2026
+ # @option params [Hash[String, String, nil], nil] :parameters
2027
+ # @option params [String, nil] :sort_by
2028
+ #
2029
+ # @return [Payabli::QueryTypes::Types::VCardTransactionQueryResponse]
2030
+ def list_vcards_transactions_org(request_options: {}, **params)
2031
+ params = Payabli::Internal::Types::Utils.normalize_keys(params)
2032
+ query_param_names = %i[from_record limit_record parameters sort_by]
2033
+ query_params = {}
2034
+ query_params["fromRecord"] = params[:from_record] if params.key?(:from_record)
2035
+ query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
2036
+ query_params["parameters"] = params[:parameters] if params.key?(:parameters)
2037
+ query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
2038
+ params = params.except(*query_param_names)
2039
+
2040
+ request = Payabli::Internal::JSON::Request.new(
2041
+ base_url: request_options[:base_url],
2042
+ method: "GET",
2043
+ path: "Query/vcardsTransactions/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
2044
+ query: query_params,
2045
+ request_options: request_options
2046
+ )
2047
+ begin
2048
+ response = @client.send(request)
2049
+ rescue Net::HTTPRequestTimeout
2050
+ raise Payabli::Errors::TimeoutError
2051
+ end
2052
+ code = response.code.to_i
2053
+ if code.between?(200, 299)
2054
+ Payabli::QueryTypes::Types::VCardTransactionQueryResponse.load(response.body)
2055
+ else
2056
+ error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
2057
+ raise error_class.new(response.body, code: code)
2058
+ end
2059
+ end
2060
+
1967
2061
  # Retrieve a list of vcards (virtual credit cards) issued for an organization. Use filters to limit results.
1968
2062
  # Include the `exportFormat` query parameter to return the results as a file instead of a JSON response.
1969
2063
  #
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Query
5
+ module Types
6
+ class ListVcardsTransactionsOrgRequest < Internal::Types::Model
7
+ field :org_id, -> { Integer }, optional: false, nullable: false, api_name: "orgId"
8
+ field :from_record, -> { Integer }, optional: true, nullable: false, api_name: "fromRecord"
9
+ field :limit_record, -> { Integer }, optional: true, nullable: false, api_name: "limitRecord"
10
+ field :parameters, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
11
+ field :sort_by, -> { String }, optional: true, nullable: false, api_name: "sortBy"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Query
5
+ module Types
6
+ class ListVcardsTransactionsRequest < Internal::Types::Model
7
+ field :entry, -> { String }, optional: false, nullable: false
8
+ field :from_record, -> { Integer }, optional: true, nullable: false, api_name: "fromRecord"
9
+ field :limit_record, -> { Integer }, optional: true, nullable: false, api_name: "limitRecord"
10
+ field :parameters, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
11
+ field :sort_by, -> { String }, optional: true, nullable: false, api_name: "sortBy"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -18,6 +18,7 @@ module Payabli
18
18
  field :transfer_amount, -> { Integer }, optional: false, nullable: true, api_name: "transferAmount"
19
19
  field :refunds, -> { Integer }, optional: false, nullable: true
20
20
  field :held_amount, -> { Integer }, optional: false, nullable: true, api_name: "heldAmount"
21
+ field :card_rejected_amount, -> { Integer }, optional: false, nullable: true, api_name: "cardRejectedAmount"
21
22
  field :total_records, -> { Integer }, optional: false, nullable: true, api_name: "totalRecords"
22
23
  field :total_amount, -> { Integer }, optional: false, nullable: true, api_name: "totalAmount"
23
24
  field :total_net_amount, -> { Integer }, optional: false, nullable: true, api_name: "totalNetAmount"
@@ -21,6 +21,7 @@ module Payabli
21
21
  field :adjustments_amount, -> { Integer }, optional: false, nullable: true, api_name: "adjustmentsAmount"
22
22
  field :net_transfer_amount, -> { Integer }, optional: false, nullable: true, api_name: "netTransferAmount"
23
23
  field :split_funding_amount, -> { Integer }, optional: false, nullable: true, api_name: "splitFundingAmount"
24
+ field :card_rejected_amount, -> { Integer }, optional: false, nullable: true, api_name: "cardRejectedAmount"
24
25
  field :billing_fees_details, -> { Internal::Types::Array[Payabli::Types::BillingFeeDetail] }, optional: false, nullable: true, api_name: "billingFeesDetails"
25
26
  field :parent_org_name, -> { String }, optional: false, nullable: true, api_name: "ParentOrgName"
26
27
  field :paypoint_dbaname, -> { String }, optional: false, nullable: true, api_name: "PaypointDbaname"
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module QueryTypes
5
+ module Types
6
+ # Response body for queries about virtual card transactions.
7
+ class VCardTransactionQueryResponse < Internal::Types::Model
8
+ field :summary, -> { Payabli::Types::VCardSummary }, optional: false, nullable: false, api_name: "Summary"
9
+ field :records, -> { Internal::Types::Array[Payabli::QueryTypes::Types::VCardTransactionRecord] }, optional: false, nullable: false, api_name: "Records"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module QueryTypes
5
+ module Types
6
+ # A virtual card transaction record returned by the query.
7
+ class VCardTransactionRecord < Internal::Types::Model
8
+ field :identifier, -> { String }, optional: false, nullable: true, api_name: "Identifier"
9
+ field :card_token, -> { String }, optional: false, nullable: true, api_name: "CardToken"
10
+ field :last_four, -> { String }, optional: false, nullable: true, api_name: "LastFour"
11
+ field :expiration_date, -> { String }, optional: false, nullable: true, api_name: "ExpirationDate"
12
+ field :mcc, -> { String }, optional: false, nullable: true, api_name: "Mcc"
13
+ field :payout_id, -> { Integer }, optional: false, nullable: true, api_name: "PayoutId"
14
+ field :customer_id, -> { Integer }, optional: false, nullable: true, api_name: "CustomerId"
15
+ field :vendor_id, -> { Integer }, optional: false, nullable: true, api_name: "VendorId"
16
+ field :misc_data_1, -> { String }, optional: false, nullable: true, api_name: "MiscData1"
17
+ field :misc_data_2, -> { String }, optional: false, nullable: true, api_name: "MiscData2"
18
+ field :current_uses, -> { Integer }, optional: false, nullable: true, api_name: "CurrentUses"
19
+ field :amount, -> { Integer }, optional: false, nullable: true, api_name: "Amount"
20
+ field :balance, -> { Integer }, optional: false, nullable: true, api_name: "Balance"
21
+ field :paypoint_id, -> { Integer }, optional: false, nullable: true, api_name: "PaypointId"
22
+ field :paypoint_legal, -> { String }, optional: false, nullable: true, api_name: "PaypointLegal"
23
+ field :paypoint_dba, -> { String }, optional: false, nullable: true, api_name: "PaypointDba"
24
+ field :external_paypoint_id, -> { String }, optional: false, nullable: true, api_name: "ExternalPaypointID"
25
+ field :org_name, -> { String }, optional: false, nullable: true, api_name: "OrgName"
26
+ field :type, -> { String }, optional: false, nullable: true, api_name: "Type"
27
+ field :status, -> { String }, optional: false, nullable: true, api_name: "Status"
28
+ field :created_on, -> { String }, optional: false, nullable: true, api_name: "CreatedOn"
29
+ field :transaction_amount, -> { String }, optional: false, nullable: true, api_name: "TransactionAmount"
30
+ field :posted_amount, -> { String }, optional: false, nullable: true, api_name: "PostedAmount"
31
+ field :posted_on, -> { String }, optional: false, nullable: true, api_name: "PostedOn"
32
+ field :merchant_name, -> { String }, optional: false, nullable: true, api_name: "MerchantName"
33
+ field :authorization_status, -> { String }, optional: false, nullable: true, api_name: "AuthorizationStatus"
34
+ field :reason_to_decline, -> { String }, optional: false, nullable: true, api_name: "ReasonToDecline"
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module SplitCount
6
+ # SplitCount is an alias for Integer
7
+
8
+ # @option str [String]
9
+ #
10
+ # @return [untyped]
11
+ def self.load(str)
12
+ ::JSON.parse(str)
13
+ end
14
+
15
+ # @option value [untyped]
16
+ #
17
+ # @return [String]
18
+ def self.dump(value)
19
+ ::JSON.generate(value)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -27,6 +27,7 @@ module Payabli
27
27
  field :plan_id, -> { Integer }, optional: true, nullable: false, api_name: "PlanId"
28
28
  field :source, -> { String }, optional: true, nullable: false, api_name: "Source"
29
29
  field :start_date, -> { String }, optional: false, nullable: true, api_name: "StartDate"
30
+ field :stored_method, -> { Payabli::Types::VendorResponseStoredMethod }, optional: false, nullable: true, api_name: "StoredMethod"
30
31
  field :sub_events, -> { Internal::Types::Array[Payabli::Types::GeneralEvents] }, optional: true, nullable: false, api_name: "SubEvents"
31
32
  field :sub_status, -> { Integer }, optional: true, nullable: false, api_name: "SubStatus"
32
33
  field :total_amount, -> { Integer }, optional: true, nullable: false, api_name: "TotalAmount"
@@ -37,6 +37,7 @@ module Payabli
37
37
  field :settlement_status, -> { Integer }, optional: true, nullable: false, api_name: "SettlementStatus"
38
38
  field :source, -> { String }, optional: true, nullable: false, api_name: "Source"
39
39
  field :split_funding_instructions, -> { Internal::Types::Array[Payabli::Types::SplitFundingContent] }, optional: true, nullable: false, api_name: "splitFundingInstructions"
40
+ field :split_count, -> { Integer }, optional: false, nullable: false, api_name: "splitCount"
40
41
  field :total_amount, -> { Integer }, optional: true, nullable: false, api_name: "TotalAmount"
41
42
  field :transaction_events, -> { Internal::Types::Array[Payabli::Types::QueryTransactionEvents] }, optional: true, nullable: false, api_name: "TransactionEvents"
42
43
  field :transaction_time, -> { String }, optional: false, nullable: true, api_name: "TransactionTime"
@@ -37,6 +37,7 @@ module Payabli
37
37
  field :settlement_status, -> { Integer }, optional: true, nullable: false, api_name: "SettlementStatus"
38
38
  field :source, -> { String }, optional: true, nullable: false, api_name: "Source"
39
39
  field :split_funding_instructions, -> { Internal::Types::Array[Payabli::Types::SplitFundingContent] }, optional: true, nullable: false, api_name: "splitFundingInstructions"
40
+ field :split_count, -> { Integer }, optional: false, nullable: false, api_name: "splitCount"
40
41
  field :total_amount, -> { Integer }, optional: true, nullable: false, api_name: "TotalAmount"
41
42
  field :transaction_events, -> { Internal::Types::Array[Payabli::Types::QueryTransactionEvents] }, optional: true, nullable: false, api_name: "TransactionEvents"
42
43
  field :transaction_time, -> { String }, optional: false, nullable: true, api_name: "TransactionTime"
@@ -6,10 +6,11 @@ module Payabli
6
6
  field :total_pages, -> { Integer }, optional: false, nullable: false, api_name: "totalPages"
7
7
  field :total_records, -> { Integer }, optional: false, nullable: false, api_name: "totalRecords"
8
8
  field :total_amount, -> { Integer }, optional: false, nullable: false, api_name: "totalAmount"
9
+ field :total_net_amount, -> { Integer }, optional: true, nullable: false, api_name: "totalNetAmount"
9
10
  field :totalactive, -> { Integer }, optional: false, nullable: false
10
- field :totalamounteactive, -> { Integer }, optional: false, nullable: false
11
+ field :totalamountactive, -> { Integer }, optional: false, nullable: false
11
12
  field :totalbalanceactive, -> { Integer }, optional: false, nullable: false
12
- field :page_identifier, -> { String }, optional: true, nullable: false, api_name: "pageIdentifier"
13
+ field :pageidentifier, -> { String }, optional: true, nullable: false
13
14
  field :page_size, -> { Integer }, optional: true, nullable: false, api_name: "pageSize"
14
15
  end
15
16
  end
@@ -14,7 +14,7 @@ module Payabli
14
14
  field :ach_holder_type, -> { String }, optional: false, nullable: true, api_name: "AchHolderType"
15
15
  field :is_validated_ach, -> { Internal::Types::Boolean }, optional: false, nullable: true, api_name: "IsValidatedACH"
16
16
  field :bin, -> { String }, optional: false, nullable: true, api_name: "BIN"
17
- field :bin_data, -> { String }, optional: false, nullable: true, api_name: "binData"
17
+ field :bin_data, -> { Payabli::Types::BinData }, optional: false, nullable: true, api_name: "binData"
18
18
  field :aba, -> { String }, optional: false, nullable: true, api_name: "ABA"
19
19
  field :postal_code, -> { String }, optional: false, nullable: true, api_name: "PostalCode"
20
20
  field :method_type, -> { String }, optional: false, nullable: true, api_name: "MethodType"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Payabli
4
- VERSION = "2.2.27"
4
+ VERSION = "2.2.29"
5
5
  end
data/lib/payabli.rb CHANGED
@@ -449,6 +449,7 @@ require_relative "payabli/types/query_response_data"
449
449
  require_relative "payabli/types/query_transaction_payor_data"
450
450
  require_relative "payabli/types/refund_id"
451
451
  require_relative "payabli/types/returned_id"
452
+ require_relative "payabli/types/split_count"
452
453
  require_relative "payabli/types/transaction_query_records"
453
454
  require_relative "payabli/types/customer_summary_record"
454
455
  require_relative "payabli/types/descriptor"
@@ -747,6 +748,8 @@ require_relative "payabli/query_types/types/transfer_out_detail_record"
747
748
  require_relative "payabli/query_types/types/transfer_out_detail_query_response"
748
749
  require_relative "payabli/query_types/types/device_query_record"
749
750
  require_relative "payabli/query_types/types/query_device_response"
751
+ require_relative "payabli/query_types/types/v_card_transaction_record"
752
+ require_relative "payabli/query_types/types/v_card_transaction_query_response"
750
753
  require_relative "payabli/v_2_money_in_types/types/v_2_response_code"
751
754
  require_relative "payabli/v_2_money_in_types/types/v_2_response_reason"
752
755
  require_relative "payabli/v_2_money_in_types/types/v_2_response_explanation"
@@ -1065,6 +1068,8 @@ require_relative "payabli/query/types/list_users_paypoint_request"
1065
1068
  require_relative "payabli/query/types/list_vendors_request"
1066
1069
  require_relative "payabli/query/types/list_vendors_org_request"
1067
1070
  require_relative "payabli/query/types/list_vcards_request"
1071
+ require_relative "payabli/query/types/list_vcards_transactions_request"
1072
+ require_relative "payabli/query/types/list_vcards_transactions_org_request"
1068
1073
  require_relative "payabli/query/types/list_vcards_org_request"
1069
1074
  require_relative "payabli/statistic/client"
1070
1075
  require_relative "payabli/statistic/types/basic_stats_request"