payabli 3.0.19 → 3.0.20
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 +3 -3
- data/lib/payabli/applications/client.rb +735 -0
- data/lib/payabli/applications/types/create_application_request.rb +27 -0
- data/lib/payabli/applications/types/list_applications_applications_request.rb +13 -0
- data/lib/payabli/applications/types/submit_application_request.rb +13 -0
- data/lib/payabli/applications/types/update_application_request.rb +25 -0
- data/lib/payabli/applications/types/upload_application_document_request.rb +11 -0
- data/lib/payabli/applications/types/withdraw_application_request.rb +13 -0
- data/lib/payabli/boarding/client.rb +90 -0
- data/lib/payabli/boarding_templates/client.rb +196 -0
- data/lib/payabli/boarding_templates/types/list_templates_boarding_templates_request.rb +25 -0
- data/lib/payabli/businesses/client.rb +796 -0
- data/lib/payabli/businesses/types/create_business_address_request.rb +31 -0
- data/lib/payabli/businesses/types/deactivate_business_request.rb +13 -0
- data/lib/payabli/businesses/types/link_business_person_request.rb +35 -0
- data/lib/payabli/businesses/types/list_businesses_businesses_request.rb +25 -0
- data/lib/payabli/businesses/types/update_business_address_request.rb +33 -0
- data/lib/payabli/businesses/types/update_business_person_request.rb +35 -0
- data/lib/payabli/businesses/types/update_business_request.rb +63 -0
- data/lib/payabli/businesses/types/update_business_request_legal_structure.rb +21 -0
- data/lib/payabli/businesses/types/update_business_request_operating_seasons_item.rb +16 -0
- data/lib/payabli/client.rb +31 -1
- data/lib/payabli/export/client.rb +2 -3
- data/lib/payabli/payment_methods/client.rb +254 -0
- data/lib/payabli/payment_methods/types/create_payment_methods_request.rb +11 -0
- data/lib/payabli/payment_methods/types/list_payment_methods_payment_methods_request.rb +25 -0
- data/lib/payabli/payment_methods/types/update_payment_method_request.rb +23 -0
- data/lib/payabli/paypoints/client.rb +204 -0
- data/lib/payabli/paypoints/types/create_paypoint_paypoints_request.rb +17 -0
- data/lib/payabli/paypoints/types/list_paypoints_paypoints_request.rb +19 -0
- data/lib/payabli/paypoints/types/update_paypoint_request.rb +29 -0
- data/lib/payabli/people/client.rb +428 -0
- data/lib/payabli/people/types/create_person_request.rb +47 -0
- data/lib/payabli/people/types/list_people_people_request.rb +23 -0
- data/lib/payabli/people/types/search_people_request.rb +15 -0
- data/lib/payabli/people/types/search_people_unmasked_request.rb +15 -0
- data/lib/payabli/people/types/update_person_request.rb +41 -0
- data/lib/payabli/templates/client.rb +25 -0
- data/lib/payabli/types/address_type.rb +16 -0
- data/lib/payabli/types/application.rb +46 -0
- data/lib/payabli/types/application_common.rb +42 -0
- data/lib/payabli/types/application_document.rb +26 -0
- data/lib/payabli/types/application_document_envelope.rb +16 -0
- data/lib/payabli/types/application_document_error.rb +16 -0
- data/lib/payabli/types/application_document_list_envelope.rb +16 -0
- data/lib/payabli/types/application_envelope.rb +16 -0
- data/lib/payabli/types/application_links.rb +12 -0
- data/lib/payabli/types/application_list_item.rb +52 -0
- data/lib/payabli/types/bank_account_services.rb +2 -2
- data/lib/payabli/types/boarding_warning.rb +12 -0
- data/lib/payabli/types/business_address.rb +28 -0
- data/lib/payabli/types/business_address_create.rb +28 -0
- data/lib/payabli/types/business_address_deleted_envelope.rb +16 -0
- data/lib/payabli/types/business_address_deleted_response.rb +16 -0
- data/lib/payabli/types/business_address_envelope.rb +16 -0
- data/lib/payabli/types/business_address_links.rb +12 -0
- data/lib/payabli/types/business_address_list_envelope.rb +16 -0
- data/lib/payabli/types/business_address_location.rb +15 -0
- data/lib/payabli/types/business_address_response.rb +32 -0
- data/lib/payabli/types/business_created_envelope.rb +18 -0
- data/lib/payabli/types/business_created_response.rb +16 -0
- data/lib/payabli/types/business_deactivated_envelope.rb +18 -0
- data/lib/payabli/types/business_deactivated_response.rb +18 -0
- data/lib/payabli/types/business_detail_envelope.rb +18 -0
- data/lib/payabli/types/business_detail_response.rb +76 -0
- data/lib/payabli/types/business_detail_response_legal_structure.rb +17 -0
- data/lib/payabli/types/business_detail_response_operating_seasons_item.rb +14 -0
- data/lib/payabli/types/business_links.rb +10 -0
- data/lib/payabli/types/business_payment_method.rb +36 -0
- data/lib/payabli/types/business_person_envelope.rb +16 -0
- data/lib/payabli/types/business_person_link.rb +42 -0
- data/lib/payabli/types/business_person_links.rb +14 -0
- data/lib/payabli/types/business_person_list_envelope.rb +16 -0
- data/lib/payabli/types/business_relationship_request.rb +35 -0
- data/lib/payabli/types/business_relationship_response.rb +36 -0
- data/lib/payabli/types/business_summary_response.rb +22 -0
- data/lib/payabli/types/business_updated_envelope.rb +18 -0
- data/lib/payabli/types/business_updated_response.rb +14 -0
- data/lib/payabli/types/case_management_money_in_service.rb +17 -0
- data/lib/payabli/types/case_management_money_out_service.rb +17 -0
- data/lib/payabli/types/certification_detail.rb +18 -0
- data/lib/payabli/types/create_business_request.rb +64 -0
- data/lib/payabli/types/create_business_request_legal_structure.rb +19 -0
- data/lib/payabli/types/create_business_request_operating_seasons_item.rb +14 -0
- data/lib/payabli/types/create_payment_method_request.rb +28 -0
- data/lib/payabli/types/create_payment_method_request_type.rb +11 -0
- data/lib/payabli/types/create_paypoint_all_fields.rb +32 -0
- data/lib/payabli/types/create_paypoint_with_business_reference.rb +31 -0
- data/lib/payabli/types/create_paypoint_with_inline_business.rb +31 -0
- data/lib/payabli/types/document_requirement.rb +31 -0
- data/lib/payabli/types/document_requirement_list_envelope.rb +16 -0
- data/lib/payabli/types/document_requirement_source.rb +12 -0
- data/lib/payabli/types/document_subject_type.rb +13 -0
- data/lib/payabli/types/enablement_envelope.rb +16 -0
- data/lib/payabli/types/enablement_result.rb +24 -0
- data/lib/payabli/types/enablement_service.rb +18 -0
- data/lib/payabli/types/identification_document_request.rb +18 -0
- data/lib/payabli/types/identification_document_response.rb +18 -0
- data/lib/payabli/types/list_applications_envelope.rb +16 -0
- data/lib/payabli/types/list_applications_response.rb +16 -0
- data/lib/payabli/types/list_businesses_envelope.rb +18 -0
- data/lib/payabli/types/list_businesses_response.rb +12 -0
- data/lib/payabli/types/list_payment_methods_envelope.rb +16 -0
- data/lib/payabli/types/list_payment_methods_response.rb +12 -0
- data/lib/payabli/types/list_paypoints_envelope.rb +16 -0
- data/lib/payabli/types/list_paypoints_response.rb +16 -0
- data/lib/payabli/types/list_people_envelope.rb +16 -0
- data/lib/payabli/types/list_people_response.rb +12 -0
- data/lib/payabli/types/list_templates_response.rb +12 -0
- data/lib/payabli/types/pagination.rb +20 -0
- data/lib/payabli/types/payment_method_deactivated_envelope.rb +16 -0
- data/lib/payabli/types/payment_method_detail.rb +38 -0
- data/lib/payabli/types/payment_method_detail_envelope.rb +16 -0
- data/lib/payabli/types/payment_method_links.rb +12 -0
- data/lib/payabli/types/payment_method_owner_type.rb +12 -0
- data/lib/payabli/types/payment_method_result.rb +40 -0
- data/lib/payabli/types/payment_method_updated_envelope.rb +16 -0
- data/lib/payabli/types/payment_method_usage.rb +16 -0
- data/lib/payabli/types/payment_methods_created_envelope.rb +16 -0
- data/lib/payabli/types/payout_metrics.rb +16 -0
- data/lib/payabli/types/paypoint_created_envelope.rb +16 -0
- data/lib/payabli/types/paypoint_created_response.rb +22 -0
- data/lib/payabli/types/paypoint_detail_envelope.rb +16 -0
- data/lib/payabli/types/paypoint_detail_response.rb +40 -0
- data/lib/payabli/types/paypoint_links.rb +12 -0
- data/lib/payabli/types/paypoint_summary_response.rb +38 -0
- data/lib/payabli/types/paypoint_updated_envelope.rb +16 -0
- data/lib/payabli/types/paypoint_updated_response.rb +14 -0
- data/lib/payabli/types/paypoint_writable_fields.rb +28 -0
- data/lib/payabli/types/people_search_envelope.rb +16 -0
- data/lib/payabli/types/people_search_request.rb +12 -0
- data/lib/payabli/types/people_search_result_response.rb +38 -0
- data/lib/payabli/types/people_search_results_response.rb +14 -0
- data/lib/payabli/types/person_address_request.rb +22 -0
- data/lib/payabli/types/person_address_response.rb +22 -0
- data/lib/payabli/types/person_address_type.rb +17 -0
- data/lib/payabli/types/person_detail_envelope.rb +18 -0
- data/lib/payabli/types/person_detail_response.rb +56 -0
- data/lib/payabli/types/person_links.rb +12 -0
- data/lib/payabli/types/person_summary_response.rb +24 -0
- data/lib/payabli/types/person_type.rb +16 -0
- data/lib/payabli/types/person_updated_envelope.rb +16 -0
- data/lib/payabli/types/person_updated_response.rb +14 -0
- data/lib/payabli/types/processing_metrics.rb +30 -0
- data/lib/payabli/types/representative_input.rb +20 -0
- data/lib/payabli/types/representative_response.rb +20 -0
- data/lib/payabli/types/requested_services.rb +13 -0
- data/lib/payabli/types/signature_type.rb +13 -0
- data/lib/payabli/types/status_history_entry.rb +22 -0
- data/lib/payabli/types/status_history_envelope.rb +16 -0
- data/lib/payabli/types/status_history_result.rb +12 -0
- data/lib/payabli/types/submit_application_error.rb +16 -0
- data/lib/payabli/types/submit_signer.rb +32 -0
- data/lib/payabli/types/template.rb +38 -0
- data/lib/payabli/types/template_status.rb +12 -0
- data/lib/payabli/types/template_version.rb +79 -0
- data/lib/payabli/types/templates_summary.rb +14 -0
- data/lib/payabli/types/transition_result.rb +14 -0
- data/lib/payabli/types/transition_result_envelope.rb +16 -0
- data/lib/payabli/types/underwriting_mode.rb +13 -0
- data/lib/payabli/types/validation_missing_field.rb +14 -0
- data/lib/payabli/types/validation_result.rb +14 -0
- data/lib/payabli/types/validation_result_envelope.rb +16 -0
- data/lib/payabli/types/validation_section.rb +12 -0
- data/lib/payabli/types/validation_sections.rb +16 -0
- data/lib/payabli/version.rb +1 -1
- data/lib/payabli.rb +161 -2
- data/reference.md +5052 -1
- data/wiremock/wiremock-mappings.json +1600 -1
- metadata +161 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping an application's enablement progress.
|
|
6
|
+
class EnablementEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::EnablementResult }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# The progress of setting up an approved application's services with their processors.
|
|
6
|
+
class EnablementResult < Internal::Types::Model
|
|
7
|
+
field :requests_reference, -> { String }, optional: false, nullable: false, api_name: "requestsReference"
|
|
8
|
+
|
|
9
|
+
field :state, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :services, -> { Internal::Types::Array[Payabli::Types::EnablementService] }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :blocked_on, -> { String }, optional: false, nullable: true, api_name: "blockedOn"
|
|
14
|
+
|
|
15
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
16
|
+
|
|
17
|
+
field :attempts, -> { Integer }, optional: false, nullable: true
|
|
18
|
+
|
|
19
|
+
field :first_attempt_at, -> { String }, optional: false, nullable: true, api_name: "firstAttemptAt"
|
|
20
|
+
|
|
21
|
+
field :last_attempt_at, -> { String }, optional: false, nullable: true, api_name: "lastAttemptAt"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# The enablement progress of one service the application requested.
|
|
6
|
+
class EnablementService < Internal::Types::Model
|
|
7
|
+
field :service, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :rail, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :state, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :missing_fields, -> { Internal::Types::Array[String] }, optional: false, nullable: true, api_name: "missingFields"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A government-issued identification document included in a person request.
|
|
6
|
+
class IdentificationDocumentRequest < Internal::Types::Model
|
|
7
|
+
field :type, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :number, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :issuing_state, -> { String }, optional: true, nullable: false, api_name: "issuingState"
|
|
12
|
+
|
|
13
|
+
field :issuing_country, -> { String }, optional: true, nullable: false, api_name: "issuingCountry"
|
|
14
|
+
|
|
15
|
+
field :expiration_date, -> { String }, optional: true, nullable: false, api_name: "expirationDate"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A government-issued identification document in a person response.
|
|
6
|
+
class IdentificationDocumentResponse < Internal::Types::Model
|
|
7
|
+
field :type, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :number, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :issuing_state, -> { String }, optional: true, nullable: false, api_name: "issuingState"
|
|
12
|
+
|
|
13
|
+
field :issuing_country, -> { String }, optional: true, nullable: false, api_name: "issuingCountry"
|
|
14
|
+
|
|
15
|
+
field :expiration_date, -> { String }, optional: true, nullable: false, api_name: "expirationDate"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a page of applications.
|
|
6
|
+
class ListApplicationsEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::ListApplicationsResponse }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A page of applications.
|
|
6
|
+
class ListApplicationsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Payabli::Types::ApplicationListItem] }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :total, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :page, -> { Integer }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :page_size, -> { Integer }, optional: false, nullable: false, api_name: "pageSize"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a page of businesses.
|
|
6
|
+
class ListBusinessesEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::ListBusinessesResponse }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :warnings, -> { Internal::Types::Array[Payabli::Types::BoardingWarning] }, optional: false, nullable: true
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A page of businesses.
|
|
6
|
+
class ListBusinessesResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Payabli::Types::BusinessSummaryResponse] }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :pagination, -> { Payabli::Types::Pagination }, optional: false, nullable: true
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a page of payment methods.
|
|
6
|
+
class ListPaymentMethodsEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::ListPaymentMethodsResponse }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A page of payment methods.
|
|
6
|
+
class ListPaymentMethodsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Payabli::Types::PaymentMethodDetail] }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :pagination, -> { Payabli::Types::Pagination }, optional: false, nullable: true
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a page of paypoints.
|
|
6
|
+
class ListPaypointsEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::ListPaypointsResponse }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A page of paypoints.
|
|
6
|
+
class ListPaypointsResponse < Internal::Types::Model
|
|
7
|
+
field :items, -> { Internal::Types::Array[Payabli::Types::PaypointSummaryResponse] }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :total, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :page, -> { Integer }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :page_size, -> { Integer }, optional: false, nullable: false, api_name: "pageSize"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a page of people.
|
|
6
|
+
class ListPeopleEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::ListPeopleResponse }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A page of people.
|
|
6
|
+
class ListPeopleResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Payabli::Types::PersonSummaryResponse] }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :pagination, -> { Payabli::Types::Pagination }, optional: false, nullable: true
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A page of boarding templates.
|
|
6
|
+
class ListTemplatesResponse < Internal::Types::Model
|
|
7
|
+
field :summary, -> { Payabli::Types::TemplatesSummary }, optional: false, nullable: false, api_name: "Summary"
|
|
8
|
+
|
|
9
|
+
field :records, -> { Internal::Types::Array[Payabli::Types::Template] }, optional: false, nullable: false, api_name: "Records"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Pagination metadata for a list response.
|
|
6
|
+
class Pagination < Internal::Types::Model
|
|
7
|
+
field :page, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :total_pages, -> { Integer }, optional: true, nullable: false, api_name: "totalPages"
|
|
10
|
+
|
|
11
|
+
field :total_records, -> { Integer }, optional: true, nullable: false, api_name: "totalRecords"
|
|
12
|
+
|
|
13
|
+
field :page_size, -> { Integer }, optional: true, nullable: false, api_name: "pageSize"
|
|
14
|
+
|
|
15
|
+
field :has_next, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "hasNext"
|
|
16
|
+
|
|
17
|
+
field :has_previous, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "hasPrevious"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a deactivated payment method.
|
|
6
|
+
class PaymentMethodDeactivatedEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::PaymentMethodResult }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A payment method as returned by read and list. Sensitive fields are masked.
|
|
6
|
+
class PaymentMethodDetail < Internal::Types::Model
|
|
7
|
+
field :is_default, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isDefault"
|
|
8
|
+
|
|
9
|
+
field :payment_method_reference, -> { String }, optional: false, nullable: false, api_name: "paymentMethodReference"
|
|
10
|
+
|
|
11
|
+
field :type, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :account_owner, -> { String }, optional: false, nullable: false, api_name: "accountOwner"
|
|
14
|
+
|
|
15
|
+
field :owner_type, -> { Payabli::Types::PaymentMethodOwnerType }, optional: false, nullable: false, api_name: "ownerType"
|
|
16
|
+
|
|
17
|
+
field :nickname, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :financial_institution, -> { String }, optional: true, nullable: false, api_name: "financialInstitution"
|
|
20
|
+
|
|
21
|
+
field :account_type, -> { String }, optional: true, nullable: false, api_name: "accountType"
|
|
22
|
+
|
|
23
|
+
field :account_number, -> { String }, optional: true, nullable: false, api_name: "accountNumber"
|
|
24
|
+
|
|
25
|
+
field :routing_number, -> { String }, optional: true, nullable: false, api_name: "routingNumber"
|
|
26
|
+
|
|
27
|
+
field :status, -> { String }, optional: false, nullable: false
|
|
28
|
+
|
|
29
|
+
field :usage, -> { Internal::Types::Array[Payabli::Types::PaymentMethodUsage] }, optional: true, nullable: false
|
|
30
|
+
|
|
31
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
32
|
+
|
|
33
|
+
field :last_updated, -> { String }, optional: false, nullable: false, api_name: "lastUpdated"
|
|
34
|
+
|
|
35
|
+
field :links, -> { Payabli::Types::PaymentMethodLinks }, optional: false, nullable: false, api_name: "_links"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a payment method detail.
|
|
6
|
+
class PaymentMethodDetailEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::PaymentMethodDetail }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Hypermedia links for a payment method resource.
|
|
6
|
+
class PaymentMethodLinks < Internal::Types::Model
|
|
7
|
+
field :self_, -> { String }, optional: true, nullable: false, api_name: "self"
|
|
8
|
+
|
|
9
|
+
field :owner, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# A payment method as returned by create, update, and deactivate. Sensitive fields are masked.
|
|
6
|
+
class PaymentMethodResult < Internal::Types::Model
|
|
7
|
+
field :payment_method_reference, -> { String }, optional: false, nullable: false, api_name: "paymentMethodReference"
|
|
8
|
+
|
|
9
|
+
field :type, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :fingerprint, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :token_reference, -> { String }, optional: true, nullable: false, api_name: "tokenReference"
|
|
14
|
+
|
|
15
|
+
field :account_owner, -> { String }, optional: false, nullable: false, api_name: "accountOwner"
|
|
16
|
+
|
|
17
|
+
field :owner_type, -> { Payabli::Types::PaymentMethodOwnerType }, optional: false, nullable: false, api_name: "ownerType"
|
|
18
|
+
|
|
19
|
+
field :nickname, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :financial_institution, -> { String }, optional: true, nullable: false, api_name: "financialInstitution"
|
|
22
|
+
|
|
23
|
+
field :account_type, -> { String }, optional: true, nullable: false, api_name: "accountType"
|
|
24
|
+
|
|
25
|
+
field :account_number, -> { String }, optional: true, nullable: false, api_name: "accountNumber"
|
|
26
|
+
|
|
27
|
+
field :routing_number, -> { String }, optional: true, nullable: false, api_name: "routingNumber"
|
|
28
|
+
|
|
29
|
+
field :status, -> { String }, optional: false, nullable: false
|
|
30
|
+
|
|
31
|
+
field :usage, -> { Internal::Types::Array[Payabli::Types::PaymentMethodUsage] }, optional: true, nullable: false
|
|
32
|
+
|
|
33
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
34
|
+
|
|
35
|
+
field :last_updated, -> { String }, optional: false, nullable: false, api_name: "lastUpdated"
|
|
36
|
+
|
|
37
|
+
field :links, -> { Payabli::Types::PaymentMethodLinks }, optional: false, nullable: false, api_name: "_links"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping an updated payment method.
|
|
6
|
+
class PaymentMethodUpdatedEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::PaymentMethodResult }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
module PaymentMethodUsage
|
|
6
|
+
extend Payabli::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
DEPOSITS = "deposits"
|
|
9
|
+
BILLING = "billing"
|
|
10
|
+
WITHDRAWALS = "withdrawals"
|
|
11
|
+
PAY_OUT_FUNDING = "payOutFunding"
|
|
12
|
+
REFUNDS = "refunds"
|
|
13
|
+
RETURNS = "returns"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping the created payment methods.
|
|
6
|
+
class PaymentMethodsCreatedEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Internal::Types::Array[Payabli::Types::PaymentMethodResult] }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Expected Pay Out profile for the business.
|
|
6
|
+
class PayoutMetrics < Internal::Types::Model
|
|
7
|
+
field :monthly_payables_volume, -> { Integer }, optional: true, nullable: false, api_name: "monthlyPayablesVolume"
|
|
8
|
+
|
|
9
|
+
field :average_payables_size, -> { Integer }, optional: true, nullable: false, api_name: "averagePayablesSize"
|
|
10
|
+
|
|
11
|
+
field :largest_payables_size, -> { Integer }, optional: true, nullable: false, api_name: "largestPayablesSize"
|
|
12
|
+
|
|
13
|
+
field :number_of_transactions, -> { Integer }, optional: true, nullable: false, api_name: "numberOfTransactions"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a created paypoint.
|
|
6
|
+
class PaypointCreatedEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::PaypointCreatedResponse }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# The reference and initial status of a newly created paypoint.
|
|
6
|
+
class PaypointCreatedResponse < Internal::Types::Model
|
|
7
|
+
field :paypoint_reference, -> { String }, optional: false, nullable: false, api_name: "paypointReference"
|
|
8
|
+
|
|
9
|
+
field :business_reference, -> { String }, optional: true, nullable: false, api_name: "businessReference"
|
|
10
|
+
|
|
11
|
+
field :doing_business_as, -> { String }, optional: true, nullable: false, api_name: "doingBusinessAs"
|
|
12
|
+
|
|
13
|
+
field :paypoint_status, -> { String }, optional: false, nullable: false, api_name: "paypointStatus"
|
|
14
|
+
|
|
15
|
+
field :timezone, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
18
|
+
|
|
19
|
+
field :links, -> { Payabli::Types::PaypointLinks }, optional: false, nullable: false, api_name: "_links"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Standard boarding response envelope wrapping a paypoint detail.
|
|
6
|
+
class PaypointDetailEnvelope < Internal::Types::Model
|
|
7
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :trace_id, -> { String }, optional: false, nullable: true, api_name: "traceId"
|
|
12
|
+
|
|
13
|
+
field :data, -> { Payabli::Types::PaypointDetailResponse }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# The full detail of a paypoint.
|
|
6
|
+
class PaypointDetailResponse < Internal::Types::Model
|
|
7
|
+
field :paypoint_reference, -> { String }, optional: false, nullable: false, api_name: "paypointReference"
|
|
8
|
+
|
|
9
|
+
field :business_reference, -> { String }, optional: true, nullable: false, api_name: "businessReference"
|
|
10
|
+
|
|
11
|
+
field :parent_paypoint_reference, -> { String }, optional: false, nullable: false, api_name: "parentPaypointReference"
|
|
12
|
+
|
|
13
|
+
field :paypoint_type, -> { String }, optional: true, nullable: false, api_name: "paypointType"
|
|
14
|
+
|
|
15
|
+
field :paypoint_status, -> { String }, optional: false, nullable: false, api_name: "paypointStatus"
|
|
16
|
+
|
|
17
|
+
field :doing_business_as, -> { String }, optional: true, nullable: false, api_name: "doingBusinessAs"
|
|
18
|
+
|
|
19
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :website, -> { String }, optional: true, nullable: false
|
|
22
|
+
|
|
23
|
+
field :timezone, -> { String }, optional: true, nullable: false
|
|
24
|
+
|
|
25
|
+
field :customer_service_phone, -> { String }, optional: true, nullable: false, api_name: "customerServicePhone"
|
|
26
|
+
|
|
27
|
+
field :customer_service_email, -> { String }, optional: true, nullable: false, api_name: "customerServiceEmail"
|
|
28
|
+
|
|
29
|
+
field :external_id, -> { String }, optional: true, nullable: false, api_name: "externalId"
|
|
30
|
+
|
|
31
|
+
field :entry_name, -> { String }, optional: false, nullable: false, api_name: "entryName"
|
|
32
|
+
|
|
33
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
34
|
+
|
|
35
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
36
|
+
|
|
37
|
+
field :links, -> { Payabli::Types::PaypointLinks }, optional: false, nullable: false, api_name: "_links"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Hypermedia links for a paypoint resource.
|
|
6
|
+
class PaypointLinks < Internal::Types::Model
|
|
7
|
+
field :self_, -> { String }, optional: true, nullable: false, api_name: "self"
|
|
8
|
+
|
|
9
|
+
field :business, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|