payabli 2.2.22 → 2.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +6 -5
- data/.fernignore +1 -2
- data/.rubocop.yml +1 -1
- data/CONTRIBUTING.md +33 -0
- data/README.md +5 -5
- data/lib/payabli/client.rb +6 -1
- data/lib/payabli/cloud/client.rb +3 -0
- data/lib/payabli/internal/http/base_request.rb +14 -0
- data/lib/payabli/internal/http/raw_client.rb +21 -3
- data/lib/payabli/internal/json/request.rb +6 -4
- data/lib/payabli/internal/multipart/multipart_request.rb +6 -4
- data/lib/payabli/internal/types/boolean.rb +1 -1
- data/lib/payabli/internal/types/utils.rb +2 -2
- data/lib/payabli/management/client.rb +61 -0
- data/lib/payabli/management/types/bank_account_verification_details_response.rb +24 -0
- data/lib/payabli/management/types/verify_account_details_request.rb +17 -0
- data/lib/payabli/management/types/verify_account_details_response.rb +14 -0
- data/lib/payabli/money_in/client.rb +3 -1
- data/lib/payabli/money_in/types/transaction_detail_payment_data.rb +1 -1
- data/lib/payabli/money_out/client.rb +5 -3
- data/lib/payabli/money_out_types/types/authorize_payout_body.rb +1 -0
- data/lib/payabli/query/client.rb +100 -0
- data/lib/payabli/query/types/list_devices_org_request.rb +16 -0
- data/lib/payabli/query/types/list_devices_request.rb +16 -0
- data/lib/payabli/query_types/types/device_query_record.rb +34 -0
- data/lib/payabli/query_types/types/query_device_response.rb +13 -0
- data/lib/payabli/types/auto_capture.rb +23 -0
- data/lib/payabli/types/notification_content_event_type.rb +0 -1
- data/lib/payabli/types/notification_standard_request_content_event_type.rb +0 -1
- data/lib/payabli/types/processing_section.rb +5 -0
- data/lib/payabli/types/template_element.rb +1 -0
- data/lib/payabli/types/v_card_card_type.rb +23 -0
- data/lib/payabli/types/v_card_record.rb +1 -0
- data/lib/payabli/types/vendor_data.rb +2 -0
- data/lib/payabli/types/vendor_query_record.rb +7 -0
- data/lib/payabli/vendor/client.rb +39 -1
- data/lib/payabli/vendor/types/vendor_enrich_request.rb +18 -0
- data/lib/payabli/vendor/types/vendor_enrich_response.rb +17 -0
- data/lib/payabli/vendor/types/vendor_enrich_response_data.rb +16 -0
- data/lib/payabli/vendor/types/vendor_enrichment_data.rb +13 -0
- data/lib/payabli/vendor/types/vendor_enrichment_invoice_scan.rb +26 -0
- data/lib/payabli/vendor/types/vendor_enrichment_web_search.rb +26 -0
- data/lib/payabli/version.rb +1 -1
- data/lib/payabli.rb +16 -0
- data/reference.md +686 -75
- data/wiremock/wiremock-mappings.json +8569 -1
- metadata +25 -3
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module QueryTypes
|
|
5
|
+
module Types
|
|
6
|
+
class DeviceQueryRecord < Internal::Types::Model
|
|
7
|
+
field :device_id, -> { String }, optional: false, nullable: true, api_name: "deviceId"
|
|
8
|
+
field :id_cloud, -> { Integer }, optional: false, nullable: true, api_name: "idCloud"
|
|
9
|
+
field :description, -> { String }, optional: false, nullable: true
|
|
10
|
+
field :serial_number, -> { String }, optional: false, nullable: true, api_name: "serialNumber"
|
|
11
|
+
field :friendly_name, -> { String }, optional: false, nullable: true, api_name: "friendlyName"
|
|
12
|
+
field :make, -> { String }, optional: false, nullable: true
|
|
13
|
+
field :model, -> { String }, optional: false, nullable: true
|
|
14
|
+
field :device_type, -> { Integer }, optional: false, nullable: true, api_name: "deviceType"
|
|
15
|
+
field :device_status, -> { Integer }, optional: false, nullable: true, api_name: "deviceStatus"
|
|
16
|
+
field :device_os, -> { Integer }, optional: false, nullable: true, api_name: "deviceOs"
|
|
17
|
+
field :mac_address, -> { String }, optional: false, nullable: true, api_name: "macAddress"
|
|
18
|
+
field :last_health_check, -> { String }, optional: false, nullable: true, api_name: "lastHealthCheck"
|
|
19
|
+
field :registration_code, -> { String }, optional: false, nullable: true, api_name: "registrationCode"
|
|
20
|
+
field :activation_attempts, -> { Integer }, optional: false, nullable: true, api_name: "activationAttempts"
|
|
21
|
+
field :activation_code_expiry, -> { String }, optional: false, nullable: true, api_name: "activationCodeExpiry"
|
|
22
|
+
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
|
23
|
+
field :updated_at, -> { String }, optional: false, nullable: true, api_name: "updatedAt"
|
|
24
|
+
field :paypoint_id, -> { Integer }, optional: false, nullable: true, api_name: "paypointId"
|
|
25
|
+
field :paypoint_dba, -> { String }, optional: false, nullable: true, api_name: "paypointDba"
|
|
26
|
+
field :paypoint_legal, -> { String }, optional: false, nullable: true, api_name: "paypointLegal"
|
|
27
|
+
field :paypoint_entry, -> { String }, optional: false, nullable: true, api_name: "paypointEntry"
|
|
28
|
+
field :external_paypoint_id, -> { String }, optional: false, nullable: true, api_name: "externalPaypointId"
|
|
29
|
+
field :parent_org_id, -> { Integer }, optional: false, nullable: true, api_name: "parentOrgId"
|
|
30
|
+
field :parent_org_name, -> { String }, optional: false, nullable: true, api_name: "parentOrgName"
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -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 cloud devices.
|
|
7
|
+
class QueryDeviceResponse < Internal::Types::Model
|
|
8
|
+
field :summary, -> { Payabli::Types::QuerySummary }, optional: false, nullable: false, api_name: "Summary"
|
|
9
|
+
field :records, -> { Internal::Types::Array[Payabli::QueryTypes::Types::DeviceQueryRecord] }, optional: false, nullable: false, api_name: "Records"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
module AutoCapture
|
|
6
|
+
# AutoCapture is an alias for Boolean
|
|
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
|
|
@@ -34,7 +34,6 @@ module Payabli
|
|
|
34
34
|
APPROVED_APPLICATION = "ApprovedApplication"
|
|
35
35
|
FAILED_BOARDING_APPLICATION = "FailedBoardingApplication"
|
|
36
36
|
SUBMITTED_APPLICATION = "SubmittedApplication"
|
|
37
|
-
UNDER_WRITING_APPLICATION = "UnderWritingApplication"
|
|
38
37
|
ACTIVATED_MERCHANT = "ActivatedMerchant"
|
|
39
38
|
RECEIVED_CHARGE_BACK = "ReceivedChargeBack"
|
|
40
39
|
CHARGEBACK_UPDATED = "ChargebackUpdated"
|
|
@@ -80,7 +80,6 @@ module Payabli
|
|
|
80
80
|
APPROVED_APPLICATION = "ApprovedApplication"
|
|
81
81
|
FAILED_BOARDING_APPLICATION = "FailedBoardingApplication"
|
|
82
82
|
SUBMITTED_APPLICATION = "SubmittedApplication"
|
|
83
|
-
UNDER_WRITING_APPLICATION = "UnderWritingApplication"
|
|
84
83
|
ACTIVATED_MERCHANT = "ActivatedMerchant"
|
|
85
84
|
RECEIVED_CHARGE_BACK = "ReceivedChargeBack"
|
|
86
85
|
CHARGEBACK_UPDATED = "ChargebackUpdated"
|
|
@@ -18,6 +18,11 @@ module Payabli
|
|
|
18
18
|
field :when_delivered, -> { Payabli::Types::TemplateElement }, optional: true, nullable: false, api_name: "whenDelivered"
|
|
19
19
|
field :when_provided, -> { Payabli::Types::TemplateElement }, optional: true, nullable: false, api_name: "whenProvided"
|
|
20
20
|
field :when_refunded, -> { Payabli::Types::TemplateElement }, optional: true, nullable: false, api_name: "whenRefunded"
|
|
21
|
+
field :combined_batches, -> { Payabli::Types::TemplateElement }, optional: true, nullable: false, api_name: "CombinedBatches"
|
|
22
|
+
field :payout_average_monthly_volume, -> { Payabli::Types::TemplateElement }, optional: true, nullable: false, api_name: "payoutAverageMonthlyVolume"
|
|
23
|
+
field :payout_high_ticket_amount, -> { Payabli::Types::TemplateElement }, optional: true, nullable: false, api_name: "payoutHighTicketAmount"
|
|
24
|
+
field :payout_average_ticket_amount, -> { Payabli::Types::TemplateElement }, optional: true, nullable: false, api_name: "payoutAverageTicketAmount"
|
|
25
|
+
field :payout_credit_limit, -> { Payabli::Types::TemplateElement }, optional: true, nullable: false, api_name: "payoutCreditLimit"
|
|
21
26
|
end
|
|
22
27
|
end
|
|
23
28
|
end
|
|
@@ -8,6 +8,7 @@ module Payabli
|
|
|
8
8
|
field :read_only, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "readOnly"
|
|
9
9
|
field :value, -> { String }, optional: true, nullable: false
|
|
10
10
|
field :visible, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
|
+
field :required, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
12
|
end
|
|
12
13
|
end
|
|
13
14
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
module VCardCardType
|
|
6
|
+
# VCardCardType 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
|
|
@@ -4,6 +4,7 @@ module Payabli
|
|
|
4
4
|
module Types
|
|
5
5
|
class VCardRecord < Internal::Types::Model
|
|
6
6
|
field :vcard_sent, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "vcardSent"
|
|
7
|
+
field :card_type, -> { Integer }, optional: true, nullable: false, api_name: "cardType"
|
|
7
8
|
field :card_token, -> { String }, optional: true, nullable: false, api_name: "cardToken"
|
|
8
9
|
field :card_number, -> { String }, optional: true, nullable: false, api_name: "cardNumber"
|
|
9
10
|
field :cvc, -> { String }, optional: true, nullable: false
|
|
@@ -35,6 +35,8 @@ module Payabli
|
|
|
35
35
|
field :state, -> { String }, optional: true, nullable: false
|
|
36
36
|
field :vendor_status, -> { Integer }, optional: true, nullable: false, api_name: "vendorStatus"
|
|
37
37
|
field :zip, -> { String }, optional: true, nullable: false
|
|
38
|
+
field :default_method_id, -> { String }, optional: true, nullable: false, api_name: "defaultMethodId"
|
|
39
|
+
field :attachment, -> { Payabli::Types::FileContent }, optional: true, nullable: false
|
|
38
40
|
end
|
|
39
41
|
end
|
|
40
42
|
end
|
|
@@ -47,6 +47,13 @@ module Payabli
|
|
|
47
47
|
field :vendor_number, -> { String }, optional: true, nullable: false, api_name: "VendorNumber"
|
|
48
48
|
field :vendor_status, -> { Integer }, optional: true, nullable: false, api_name: "VendorStatus"
|
|
49
49
|
field :zip, -> { String }, optional: true, nullable: false, api_name: "Zip"
|
|
50
|
+
field :payment_portal_url, -> { String }, optional: true, nullable: false, api_name: "PaymentPortalUrl"
|
|
51
|
+
field :card_accepted, -> { String }, optional: true, nullable: false, api_name: "CardAccepted"
|
|
52
|
+
field :ach_accepted, -> { String }, optional: true, nullable: false, api_name: "AchAccepted"
|
|
53
|
+
field :enrichment_status, -> { String }, optional: true, nullable: false, api_name: "EnrichmentStatus"
|
|
54
|
+
field :enriched_by, -> { String }, optional: true, nullable: false, api_name: "EnrichedBy"
|
|
55
|
+
field :enriched_at, -> { String }, optional: true, nullable: false, api_name: "EnrichedAt"
|
|
56
|
+
field :enrichment_id, -> { String }, optional: true, nullable: false, api_name: "EnrichmentId"
|
|
50
57
|
end
|
|
51
58
|
end
|
|
52
59
|
end
|
|
@@ -114,7 +114,7 @@ module Payabli
|
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
# Retrieves a vendor's details.
|
|
117
|
+
# Retrieves a vendor's details, including enrichment status and payment acceptance info when available.
|
|
118
118
|
#
|
|
119
119
|
# @param request_options [Hash]
|
|
120
120
|
# @param params [Hash]
|
|
@@ -147,6 +147,44 @@ module Payabli
|
|
|
147
147
|
raise error_class.new(response.body, code: code)
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
|
+
|
|
151
|
+
# Triggers AI-powered vendor enrichment for an existing vendor. Runs one or more enrichment stages (invoice scan,
|
|
152
|
+
# web search) based on the `scope` parameter. Can automatically apply extracted payment acceptance info and vendor
|
|
153
|
+
# contact information to the vendor record, or return raw results for manual review. Contact Payabli to enable
|
|
154
|
+
# this feature.
|
|
155
|
+
#
|
|
156
|
+
# @param request_options [Hash]
|
|
157
|
+
# @param params [Payabli::Vendor::Types::VendorEnrichRequest]
|
|
158
|
+
# @option request_options [String] :base_url
|
|
159
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
160
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
161
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
162
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
163
|
+
# @option params [String] :entry
|
|
164
|
+
#
|
|
165
|
+
# @return [Payabli::Vendor::Types::VendorEnrichResponse]
|
|
166
|
+
def enrich_vendor(request_options: {}, **params)
|
|
167
|
+
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
168
|
+
request = Payabli::Internal::JSON::Request.new(
|
|
169
|
+
base_url: request_options[:base_url],
|
|
170
|
+
method: "POST",
|
|
171
|
+
path: "Vendor/enrich/#{URI.encode_uri_component(params[:entry].to_s)}",
|
|
172
|
+
body: Payabli::Vendor::Types::VendorEnrichRequest.new(params).to_h,
|
|
173
|
+
request_options: request_options
|
|
174
|
+
)
|
|
175
|
+
begin
|
|
176
|
+
response = @client.send(request)
|
|
177
|
+
rescue Net::HTTPRequestTimeout
|
|
178
|
+
raise Payabli::Errors::TimeoutError
|
|
179
|
+
end
|
|
180
|
+
code = response.code.to_i
|
|
181
|
+
if code.between?(200, 299)
|
|
182
|
+
Payabli::Vendor::Types::VendorEnrichResponse.load(response.body)
|
|
183
|
+
else
|
|
184
|
+
error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
|
|
185
|
+
raise error_class.new(response.body, code: code)
|
|
186
|
+
end
|
|
187
|
+
end
|
|
150
188
|
end
|
|
151
189
|
end
|
|
152
190
|
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Vendor
|
|
5
|
+
module Types
|
|
6
|
+
# Request body for the vendor enrichment endpoint.
|
|
7
|
+
class VendorEnrichRequest < Internal::Types::Model
|
|
8
|
+
field :vendor_id, -> { Integer }, optional: false, nullable: false, api_name: "vendorId"
|
|
9
|
+
field :scope, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
10
|
+
field :apply_enrichment_data, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "applyEnrichmentData"
|
|
11
|
+
field :schedule_call_if_needed, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "scheduleCallIfNeeded"
|
|
12
|
+
field :invoice_file, -> { Payabli::Types::FileContent }, optional: true, nullable: false, api_name: "invoiceFile"
|
|
13
|
+
field :bill_id, -> { Integer }, optional: true, nullable: false, api_name: "billId"
|
|
14
|
+
field :fallback_method, -> { String }, optional: true, nullable: false, api_name: "fallbackMethod"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Vendor
|
|
5
|
+
module Types
|
|
6
|
+
# Response from the vendor enrichment endpoint.
|
|
7
|
+
class VendorEnrichResponse < 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::Vendor::Types::VendorEnrichResponseData }, optional: true, nullable: false, api_name: "responseData"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Vendor
|
|
5
|
+
module Types
|
|
6
|
+
# Enrichment result details.
|
|
7
|
+
class VendorEnrichResponseData < Internal::Types::Model
|
|
8
|
+
field :enrichment_id, -> { String }, optional: true, nullable: false, api_name: "enrichmentId"
|
|
9
|
+
field :status, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :stages_triggered, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "stagesTriggered"
|
|
11
|
+
field :vendor_payout_ready, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "vendorPayoutReady"
|
|
12
|
+
field :enrichment_data, -> { Payabli::Vendor::Types::VendorEnrichmentData }, optional: true, nullable: false, api_name: "enrichmentData"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Vendor
|
|
5
|
+
module Types
|
|
6
|
+
# Container for enrichment stage results.
|
|
7
|
+
class VendorEnrichmentData < Internal::Types::Model
|
|
8
|
+
field :invoice_scan, -> { Payabli::Vendor::Types::VendorEnrichmentInvoiceScan }, optional: true, nullable: false, api_name: "invoiceScan"
|
|
9
|
+
field :web_search, -> { Payabli::Vendor::Types::VendorEnrichmentWebSearch }, optional: true, nullable: false, api_name: "webSearch"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Vendor
|
|
5
|
+
module Types
|
|
6
|
+
# Vendor contact information and payment acceptance info extracted from an invoice.
|
|
7
|
+
class VendorEnrichmentInvoiceScan < Internal::Types::Model
|
|
8
|
+
field :vendor_name, -> { String }, optional: true, nullable: false, api_name: "vendorName"
|
|
9
|
+
field :street, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :city, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :state, -> { String }, optional: true, nullable: false
|
|
12
|
+
field :zip_code, -> { String }, optional: true, nullable: false, api_name: "zipCode"
|
|
13
|
+
field :country, -> { String }, optional: true, nullable: false
|
|
14
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
15
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
16
|
+
field :payment_link, -> { String }, optional: true, nullable: false, api_name: "paymentLink"
|
|
17
|
+
field :card_accepted, -> { String }, optional: true, nullable: false, api_name: "cardAccepted"
|
|
18
|
+
field :ach_accepted, -> { String }, optional: true, nullable: false, api_name: "achAccepted"
|
|
19
|
+
field :check_accepted, -> { String }, optional: true, nullable: false, api_name: "checkAccepted"
|
|
20
|
+
field :invoice_number, -> { String }, optional: true, nullable: false, api_name: "invoiceNumber"
|
|
21
|
+
field :amount_due, -> { Integer }, optional: true, nullable: false, api_name: "amountDue"
|
|
22
|
+
field :due_date, -> { String }, optional: true, nullable: false, api_name: "dueDate"
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Vendor
|
|
5
|
+
module Types
|
|
6
|
+
# Vendor contact information and payment acceptance info found through web search.
|
|
7
|
+
class VendorEnrichmentWebSearch < Internal::Types::Model
|
|
8
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
9
|
+
field :phone_type, -> { String }, optional: true, nullable: false, api_name: "phoneType"
|
|
10
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :email_type, -> { String }, optional: true, nullable: false, api_name: "emailType"
|
|
12
|
+
field :street, -> { String }, optional: true, nullable: false
|
|
13
|
+
field :city, -> { String }, optional: true, nullable: false
|
|
14
|
+
field :state, -> { String }, optional: true, nullable: false
|
|
15
|
+
field :zip_code, -> { String }, optional: true, nullable: false, api_name: "zipCode"
|
|
16
|
+
field :country, -> { String }, optional: true, nullable: false
|
|
17
|
+
field :address_type, -> { String }, optional: true, nullable: false, api_name: "addressType"
|
|
18
|
+
field :payment_link, -> { String }, optional: true, nullable: false, api_name: "paymentLink"
|
|
19
|
+
field :payment_link_type, -> { String }, optional: true, nullable: false, api_name: "paymentLinkType"
|
|
20
|
+
field :card_accepted, -> { String }, optional: true, nullable: false, api_name: "cardAccepted"
|
|
21
|
+
field :ach_accepted, -> { String }, optional: true, nullable: false, api_name: "achAccepted"
|
|
22
|
+
field :check_accepted, -> { String }, optional: true, nullable: false, api_name: "checkAccepted"
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
data/lib/payabli/version.rb
CHANGED
data/lib/payabli.rb
CHANGED
|
@@ -259,6 +259,7 @@ require_relative "payabli/types/auto_element"
|
|
|
259
259
|
require_relative "payabli/types/avgticketamt"
|
|
260
260
|
require_relative "payabli/types/avs_response_text"
|
|
261
261
|
require_relative "payabli/types/avs_response"
|
|
262
|
+
require_relative "payabli/types/auto_capture"
|
|
262
263
|
require_relative "payabli/types/cvv_response"
|
|
263
264
|
require_relative "payabli/types/cvv_response_text"
|
|
264
265
|
require_relative "payabli/types/bank_section"
|
|
@@ -674,6 +675,7 @@ require_relative "payabli/types/transfer_summary"
|
|
|
674
675
|
require_relative "payabli/types/transfer_query_response"
|
|
675
676
|
require_relative "payabli/types/payment_trans_status_description"
|
|
676
677
|
require_relative "payabli/types/user_data"
|
|
678
|
+
require_relative "payabli/types/v_card_card_type"
|
|
677
679
|
require_relative "payabli/types/v_card_summary"
|
|
678
680
|
require_relative "payabli/types/associated_vendor"
|
|
679
681
|
require_relative "payabli/types/v_card_record"
|
|
@@ -743,6 +745,8 @@ require_relative "payabli/query_types/types/transfer_out_detail_bill"
|
|
|
743
745
|
require_relative "payabli/query_types/types/transfer_out_detail_event"
|
|
744
746
|
require_relative "payabli/query_types/types/transfer_out_detail_record"
|
|
745
747
|
require_relative "payabli/query_types/types/transfer_out_detail_query_response"
|
|
748
|
+
require_relative "payabli/query_types/types/device_query_record"
|
|
749
|
+
require_relative "payabli/query_types/types/query_device_response"
|
|
746
750
|
require_relative "payabli/v_2_money_in_types/types/v_2_response_code"
|
|
747
751
|
require_relative "payabli/v_2_money_in_types/types/v_2_response_reason"
|
|
748
752
|
require_relative "payabli/v_2_money_in_types/types/v_2_response_explanation"
|
|
@@ -790,6 +794,8 @@ require_relative "payabli/invoice/types/invoice_response_without_data"
|
|
|
790
794
|
require_relative "payabli/invoice/types/send_invoice_response"
|
|
791
795
|
require_relative "payabli/invoice/types/invoice_number_response"
|
|
792
796
|
require_relative "payabli/line_item/types/delete_item_response"
|
|
797
|
+
require_relative "payabli/management/types/bank_account_verification_details_response"
|
|
798
|
+
require_relative "payabli/management/types/verify_account_details_response"
|
|
793
799
|
require_relative "payabli/money_in/types/invalid_trans_status_error_type"
|
|
794
800
|
require_relative "payabli/money_in/types/receipt_response"
|
|
795
801
|
require_relative "payabli/money_in/types/capture_response_data"
|
|
@@ -899,6 +905,12 @@ require_relative "payabli/user/types/change_psw_user_response"
|
|
|
899
905
|
require_relative "payabli/user/types/delete_user_response"
|
|
900
906
|
require_relative "payabli/user/types/edit_mfa_user_response"
|
|
901
907
|
require_relative "payabli/user/types/logout_user_response"
|
|
908
|
+
require_relative "payabli/vendor/types/vendor_enrich_request"
|
|
909
|
+
require_relative "payabli/vendor/types/vendor_enrichment_invoice_scan"
|
|
910
|
+
require_relative "payabli/vendor/types/vendor_enrichment_web_search"
|
|
911
|
+
require_relative "payabli/vendor/types/vendor_enrichment_data"
|
|
912
|
+
require_relative "payabli/vendor/types/vendor_enrich_response_data"
|
|
913
|
+
require_relative "payabli/vendor/types/vendor_enrich_response"
|
|
902
914
|
require_relative "payabli/client"
|
|
903
915
|
require_relative "payabli/bill/client"
|
|
904
916
|
require_relative "payabli/bill/types/add_bill_request"
|
|
@@ -971,6 +983,8 @@ require_relative "payabli/invoice/types/send_invoice_request"
|
|
|
971
983
|
require_relative "payabli/line_item/client"
|
|
972
984
|
require_relative "payabli/line_item/types/add_item_request"
|
|
973
985
|
require_relative "payabli/line_item/types/list_line_items_request"
|
|
986
|
+
require_relative "payabli/management/client"
|
|
987
|
+
require_relative "payabli/management/types/verify_account_details_request"
|
|
974
988
|
require_relative "payabli/money_in/client"
|
|
975
989
|
require_relative "payabli/money_in/types/request_payment_authorize"
|
|
976
990
|
require_relative "payabli/money_in/types/request_credit"
|
|
@@ -1019,6 +1033,8 @@ require_relative "payabli/query/types/list_chargebacks_request"
|
|
|
1019
1033
|
require_relative "payabli/query/types/list_chargebacks_org_request"
|
|
1020
1034
|
require_relative "payabli/query/types/list_customers_request"
|
|
1021
1035
|
require_relative "payabli/query/types/list_customers_org_request"
|
|
1036
|
+
require_relative "payabli/query/types/list_devices_request"
|
|
1037
|
+
require_relative "payabli/query/types/list_devices_org_request"
|
|
1022
1038
|
require_relative "payabli/query/types/list_notification_reports_request"
|
|
1023
1039
|
require_relative "payabli/query/types/list_notification_reports_org_request"
|
|
1024
1040
|
require_relative "payabli/query/types/list_notifications_request"
|