payabli 2.2.26 → 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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/lib/payabli/boarding/client.rb +75 -0
  4. data/lib/payabli/boarding/types/create_application_from_paypoint_request.rb +17 -0
  5. data/lib/payabli/boarding/types/create_application_from_paypoint_response.rb +17 -0
  6. data/lib/payabli/boarding/types/create_application_from_paypoint_response_data.rb +12 -0
  7. data/lib/payabli/client.rb +1 -1
  8. data/lib/payabli/money_out/client.rb +10 -3
  9. data/lib/payabli/query/client.rb +94 -0
  10. data/lib/payabli/query/types/list_vcards_transactions_org_request.rb +15 -0
  11. data/lib/payabli/query/types/list_vcards_transactions_request.rb +15 -0
  12. data/lib/payabli/query_types/types/query_transfer_summary.rb +1 -0
  13. data/lib/payabli/query_types/types/transfer_detail_record.rb +1 -0
  14. data/lib/payabli/query_types/types/v_card_transaction_query_response.rb +13 -0
  15. data/lib/payabli/query_types/types/v_card_transaction_record.rb +38 -0
  16. data/lib/payabli/types/customer_summary_record.rb +4 -4
  17. data/lib/payabli/types/split_count.rb +23 -0
  18. data/lib/payabli/types/subscription_query_records.rb +2 -1
  19. data/lib/payabli/types/transaction_query_records.rb +2 -1
  20. data/lib/payabli/types/transaction_query_records_customer.rb +1 -0
  21. data/lib/payabli/types/v_card_summary.rb +3 -2
  22. data/lib/payabli/types/vendor_response_stored_method.rb +1 -1
  23. data/lib/payabli/v_2_money_in_types/types/v_2_transaction_details.rb +1 -1
  24. data/lib/payabli/version.rb +1 -1
  25. data/lib/payabli.rb +8 -0
  26. data/reference.md +505 -55
  27. data/wiremock/wiremock-mappings.json +157 -16
  28. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c48a11b1a300e2d919f642bf5fb07091f593e0f1e3bf85561a15bc0f15d7dcde
4
- data.tar.gz: 6e2fbd79dd3a84147aac1d6717e8cabfeb9630d760592e9f999d37ff605d1c95
3
+ metadata.gz: 597c0c64b2d2c80e4fb75ee36a2e75c7d67a387a94b91c23403e56fff8da88a9
4
+ data.tar.gz: fe1d3e00f0d431362010dd3ac138e9fe5483be307c1050a3dedc2ed1ad437ff1
5
5
  SHA512:
6
- metadata.gz: 57f5599d14d14e959e9e3e538b9efc6e186ccca1adb4105e239a8e390a96d9d81af976ed8080d820cbbb529bbcae8df355315a0c4202c1e7bf828571474f5638
7
- data.tar.gz: 8638bbf40053f34df853baf39af29a675c682de1cc3ae4a91d1ed50efced28b6d617a046c2e3b214d688dfb3c3a8697359e56e8da5780e0a23d786465aeb243c
6
+ metadata.gz: 7f556e15ea09959467c2375664704debd6282fcb7fc0edbb7428ddc2a0608dcf205c99807226e306104208f7f89fcaff99f637038240fbae9c2b5d89e6fcc1e7
7
+ data.tar.gz: 4788c0decb8b1feacdd3be3138fa42d1da7448d9dcf36077672ac776ecd39a4e808b02c28c3d30027eb4f27b39b7e1751897c8c48ddb9cfcf8e2f722082b6400
data/.fern/metadata.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
- "cliVersion": "4.94.0",
2
+ "cliVersion": "5.7.9",
3
3
  "generatorName": "fernapi/fern-ruby-sdk",
4
4
  "generatorVersion": "1.1.13",
5
5
  "generatorConfig": {
6
6
  "enableWireTests": true,
7
7
  "rubocopVariableNumberStyle": "snake_case"
8
8
  },
9
- "originGitCommit": "0f665390a3f1683396943781707e30c613db2f3d",
10
- "sdkVersion": "2.2.26"
9
+ "originGitCommit": "d69946f7f37797d4fdc34de0c29dc377dbc94fc5",
10
+ "sdkVersion": "2.2.29"
11
11
  }
@@ -428,6 +428,81 @@ module Payabli
428
428
  raise error_class.new(response.body, code: code)
429
429
  end
430
430
  end
431
+
432
+ # Creates a new boarding application linked to an existing paypoint as part of the multi-product boarding flow.
433
+ # Use this endpoint to add new services to a paypoint without creating a duplicate record. The system copies
434
+ # eligible business, contact, banking, and address data from the paypoint to the new application based on 1:1
435
+ # field matching. The merchant only needs to provide fields that are specific to the new service. See the
436
+ # [Multi-product boarding](/guides/pay-ops-developer-boarding-multi-product) guide for the full flow.
437
+ #
438
+ # @param request_options [Hash]
439
+ # @param params [Payabli::Boarding::Types::CreateApplicationFromPaypointRequest]
440
+ # @option request_options [String] :base_url
441
+ # @option request_options [Hash{String => Object}] :additional_headers
442
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
443
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
444
+ # @option request_options [Integer] :timeout_in_seconds
445
+ #
446
+ # @return [Payabli::Boarding::Types::CreateApplicationFromPaypointResponse]
447
+ def add_service_to_paypoint_from_app(request_options: {}, **params)
448
+ params = Payabli::Internal::Types::Utils.normalize_keys(params)
449
+ request = Payabli::Internal::JSON::Request.new(
450
+ base_url: request_options[:base_url],
451
+ method: "POST",
452
+ path: "Boarding/applications",
453
+ body: Payabli::Boarding::Types::CreateApplicationFromPaypointRequest.new(params).to_h,
454
+ request_options: request_options
455
+ )
456
+ begin
457
+ response = @client.send(request)
458
+ rescue Net::HTTPRequestTimeout
459
+ raise Payabli::Errors::TimeoutError
460
+ end
461
+ code = response.code.to_i
462
+ if code.between?(200, 299)
463
+ Payabli::Boarding::Types::CreateApplicationFromPaypointResponse.load(response.body)
464
+ else
465
+ error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
466
+ raise error_class.new(response.body, code: code)
467
+ end
468
+ end
469
+
470
+ # Returns all boarding applications associated with a specific paypoint, including those created through the
471
+ # multi-product boarding flow. Use this endpoint to track underwriting progress across multiple service additions
472
+ # or to build reporting views. See the [Multi-product boarding](/guides/pay-ops-developer-boarding-multi-product)
473
+ # guide for the full flow.
474
+ #
475
+ # @param request_options [Hash]
476
+ # @param params [Hash]
477
+ # @option request_options [String] :base_url
478
+ # @option request_options [Hash{String => Object}] :additional_headers
479
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
480
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
481
+ # @option request_options [Integer] :timeout_in_seconds
482
+ # @option params [Integer] :paypoint_id
483
+ #
484
+ # @return [Payabli::Types::QueryBoardingAppsListResponse]
485
+ def get_applications_by_paypoint_id(request_options: {}, **params)
486
+ params = Payabli::Internal::Types::Utils.normalize_keys(params)
487
+ request = Payabli::Internal::JSON::Request.new(
488
+ base_url: request_options[:base_url],
489
+ method: "GET",
490
+ path: "Boarding/applications/#{URI.encode_uri_component(params[:paypoint_id].to_s)}",
491
+ request_options: request_options
492
+ )
493
+ begin
494
+ response = @client.send(request)
495
+ rescue Net::HTTPRequestTimeout
496
+ raise Payabli::Errors::TimeoutError
497
+ end
498
+ code = response.code.to_i
499
+ if code.between?(200, 299)
500
+ Payabli::Types::QueryBoardingAppsListResponse.load(response.body)
501
+ else
502
+ error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
503
+ raise error_class.new(response.body, code: code)
504
+ end
505
+ end
431
506
  end
432
507
  end
433
508
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Boarding
5
+ module Types
6
+ # Request to create a boarding application linked to an existing paypoint. Used for adding new services to a
7
+ # paypoint without creating a duplicate record.
8
+ class CreateApplicationFromPaypointRequest < Internal::Types::Model
9
+ field :paypoint_id, -> { Integer }, optional: false, nullable: false, api_name: "paypointId"
10
+ field :template_id, -> { Integer }, optional: false, nullable: false, api_name: "templateId"
11
+ field :recipient_email, -> { String }, optional: false, nullable: false, api_name: "recipientEmail"
12
+ field :return_boarding_access_info_in_line, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "returnBoardingAccessInfoInLine"
13
+ field :on_create, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "onCreate"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Boarding
5
+ module Types
6
+ # Response returned when creating a boarding application linked to an existing paypoint.
7
+ class CreateApplicationFromPaypointResponse < Internal::Types::Model
8
+ field :response_code, -> { Integer }, optional: true, nullable: false, api_name: "responseCode"
9
+ field :page_identifier, -> { String }, optional: true, nullable: false, api_name: "pageIdentifier"
10
+ field :room_id, -> { Integer }, optional: true, nullable: false, api_name: "roomId"
11
+ field :is_success, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isSuccess"
12
+ field :response_text, -> { String }, optional: false, nullable: false, api_name: "responseText"
13
+ field :response_data, -> { Payabli::Boarding::Types::CreateApplicationFromPaypointResponseData }, optional: true, nullable: false, api_name: "responseData"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Boarding
5
+ module Types
6
+ class CreateApplicationFromPaypointResponseData < Internal::Types::Model
7
+ field :app_id, -> { Integer }, optional: true, nullable: false, api_name: "appId"
8
+ field :boarding_link, -> { String }, optional: true, nullable: false, api_name: "boardingLink"
9
+ end
10
+ end
11
+ end
12
+ end
@@ -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.26",
13
+ "User-Agent" => "payabli/2.2.29",
14
14
  "X-Fern-Language" => "Ruby",
15
15
  requestToken: api_key.to_s
16
16
  }
@@ -10,9 +10,16 @@ module Payabli
10
10
  @client = client
11
11
  end
12
12
 
13
- # Authorizes transaction for payout. If you don't pass the `autoCapture` field with a value of `true`, authorized
14
- # transactions aren't flagged for settlement until captured. Use `referenceId` returned in the response to
15
- # capture the transaction.
13
+ # Authorizes a transaction for payout.
14
+ #
15
+ # If you don't pass `autoCapture` with a value of `true`, authorized transactions aren't flagged for settlement
16
+ # until captured. Use the `referenceId` returned in the response to capture the transaction.
17
+ #
18
+ # When `autoCapture` is `true`, Payabli captures the transaction asynchronously after authorization. The response
19
+ # confirms only that the transaction was authorized; it doesn't confirm that capture succeeded. To confirm
20
+ # capture, listen for the
21
+ # [`payout_transaction_approvedcaptured`](/developers/webhooks/payout-transaction-approved-captured) webhook
22
+ # event.
16
23
  #
17
24
  # @param request_options [Hash]
18
25
  # @param params [Payabli::MoneyOutTypes::Types::AuthorizePayoutBody]
@@ -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
@@ -3,10 +3,10 @@
3
3
  module Payabli
4
4
  module Types
5
5
  class CustomerSummaryRecord < Internal::Types::Model
6
- field :numberof_transactions, -> { Integer }, optional: true, nullable: false, api_name: "numberofTransactions"
7
- field :recent_transactions, -> { Internal::Types::Array[Payabli::Types::TransactionQueryRecords] }, optional: true, nullable: false, api_name: "recentTransactions"
8
- field :total_amount_transactions, -> { Integer }, optional: true, nullable: false, api_name: "totalAmountTransactions"
9
- field :total_net_amount_transactions, -> { Integer }, optional: true, nullable: false, api_name: "totalNetAmountTransactions"
6
+ field :numberof_transactions, -> { Integer }, optional: true, nullable: false, api_name: "NumberofTransactions"
7
+ field :recent_transactions, -> { Internal::Types::Array[Payabli::Types::TransactionQueryRecords] }, optional: true, nullable: false, api_name: "RecentTransactions"
8
+ field :total_amount_transactions, -> { Integer }, optional: true, nullable: false, api_name: "TotalAmountTransactions"
9
+ field :total_net_amount_transactions, -> { Integer }, optional: true, nullable: false, api_name: "TotalNetAmountTransactions"
10
10
  end
11
11
  end
12
12
  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
@@ -11,7 +11,7 @@ module Payabli
11
11
  field :fee_amount, -> { Integer }, optional: true, nullable: false, api_name: "FeeAmount"
12
12
  field :frequency, -> { String }, optional: true, nullable: false, api_name: "Frequency"
13
13
  field :id_sub, -> { Integer }, optional: true, nullable: false, api_name: "IdSub"
14
- field :invoice_data, -> { Payabli::Types::BillData }, optional: true, nullable: false, api_name: "InvoiceData"
14
+ field :invoice_data, -> { Payabli::Types::BillData }, optional: true, nullable: false, api_name: "invoiceData"
15
15
  field :last_run, -> { String }, optional: false, nullable: true, api_name: "LastRun"
16
16
  field :last_updated, -> { String }, optional: true, nullable: false, api_name: "LastUpdated"
17
17
  field :left_cycles, -> { Integer }, optional: true, nullable: false, api_name: "LeftCycles"
@@ -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"
@@ -15,7 +15,7 @@ module Payabli
15
15
  field :external_processor_information, -> { String }, optional: true, nullable: false, api_name: "ExternalProcessorInformation"
16
16
  field :fee_amount, -> { Integer }, optional: true, nullable: false, api_name: "FeeAmount"
17
17
  field :gateway_trans_id, -> { String }, optional: true, nullable: false, api_name: "GatewayTransId"
18
- field :invoice_data, -> { Payabli::Types::BillData }, optional: true, nullable: false, api_name: "InvoiceData"
18
+ field :invoice_data, -> { Payabli::Types::BillData }, optional: true, nullable: false, api_name: "invoiceData"
19
19
  field :method_, -> { String }, optional: true, nullable: false, api_name: "Method"
20
20
  field :net_amount, -> { Integer }, optional: true, nullable: false, api_name: "NetAmount"
21
21
  field :operation, -> { String }, optional: true, nullable: false, api_name: "Operation"
@@ -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"
@@ -54,7 +54,7 @@ module Payabli
54
54
  field :risk_action_code, -> { Integer }, optional: true, nullable: false, api_name: "riskActionCode"
55
55
  field :device_id, -> { String }, optional: false, nullable: false, api_name: "deviceId"
56
56
  field :ach_sec_code, -> { String }, optional: false, nullable: false, api_name: "achSecCode"
57
- field :ach_holder_type, -> { Payabli::Types::AchHolderType }, optional: false, nullable: false, api_name: "achHolderType"
57
+ field :ach_holder_type, -> { Payabli::Types::AchHolderType }, optional: false, nullable: true, api_name: "achHolderType"
58
58
  field :ip_address, -> { String }, optional: false, nullable: false, api_name: "ipAddress"
59
59
  field :is_same_day_ach, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSameDayACH"
60
60
  field :wallet_type, -> { String }, optional: false, nullable: true, api_name: "walletType"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Payabli
4
- VERSION = "2.2.26"
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"
@@ -772,6 +775,9 @@ require_relative "payabli/bill/types/bill_out_data_scheduled_options"
772
775
  require_relative "payabli/bill/types/bill_out_data"
773
776
  require_relative "payabli/bill/types/bill_response"
774
777
  require_relative "payabli/boarding/types/add_application_request"
778
+ require_relative "payabli/boarding/types/create_application_from_paypoint_request"
779
+ require_relative "payabli/boarding/types/create_application_from_paypoint_response_data"
780
+ require_relative "payabli/boarding/types/create_application_from_paypoint_response"
775
781
  require_relative "payabli/charge_backs/types/add_response_response"
776
782
  require_relative "payabli/charge_backs/types/chargeback_message"
777
783
  require_relative "payabli/charge_backs/types/charge_back_response"
@@ -1062,6 +1068,8 @@ require_relative "payabli/query/types/list_users_paypoint_request"
1062
1068
  require_relative "payabli/query/types/list_vendors_request"
1063
1069
  require_relative "payabli/query/types/list_vendors_org_request"
1064
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"
1065
1073
  require_relative "payabli/query/types/list_vcards_org_request"
1066
1074
  require_relative "payabli/statistic/client"
1067
1075
  require_relative "payabli/statistic/types/basic_stats_request"