payabli 3.0.7 → 3.0.8

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +7 -6
  3. data/lib/payabli/bill/client.rb +8 -2
  4. data/lib/payabli/billing/client.rb +129 -0
  5. data/lib/payabli/billing/types/get_profile_billing_request_entity_type.rb +16 -0
  6. data/lib/payabli/billing/types/get_profile_billing_request_service_group.rb +14 -0
  7. data/lib/payabli/billing/types/list_billing_profiles_request.rb +23 -0
  8. data/lib/payabli/boarding/client.rb +4 -1
  9. data/lib/payabli/client.rb +6 -1
  10. data/lib/payabli/customer/client.rb +4 -1
  11. data/lib/payabli/hosted_payment_pages/client.rb +4 -1
  12. data/lib/payabli/internal/http/raw_client.rb +15 -2
  13. data/lib/payabli/internal/json/request.rb +7 -5
  14. data/lib/payabli/line_item/client.rb +4 -1
  15. data/lib/payabli/money_in/client.rb +55 -8
  16. data/lib/payabli/notification/client.rb +8 -5
  17. data/lib/payabli/ocr/client.rb +8 -2
  18. data/lib/payabli/organization/client.rb +5 -5
  19. data/lib/payabli/organization/types/organization_data.rb +2 -2
  20. data/lib/payabli/payment_link/client.rb +8 -2
  21. data/lib/payabli/paypoint/client.rb +4 -1
  22. data/lib/payabli/types/auth_capture_payout_response_data.rb +1 -1
  23. data/lib/payabli/types/billable_event.rb +29 -0
  24. data/lib/payabli/types/billing_entity.rb +13 -0
  25. data/lib/payabli/types/billing_entity_named.rb +13 -0
  26. data/lib/payabli/types/billing_profile_query_response.rb +14 -0
  27. data/lib/payabli/types/billing_profile_record.rb +32 -0
  28. data/lib/payabli/types/billing_profile_response.rb +31 -0
  29. data/lib/payabli/types/billing_profile_summary.rb +16 -0
  30. data/lib/payabli/types/collection_schedule_value.rb +23 -0
  31. data/lib/payabli/types/device_query_record.rb +8 -0
  32. data/lib/payabli/types/entities_assigned.rb +17 -0
  33. data/lib/payabli/types/entity_type_name.rb +17 -0
  34. data/lib/payabli/types/entity_type_value.rb +23 -0
  35. data/lib/payabli/types/event_group_value.rb +23 -0
  36. data/lib/payabli/types/event_source_value.rb +23 -0
  37. data/lib/payabli/types/event_type_value.rb +23 -0
  38. data/lib/payabli/types/fee_schedule.rb +47 -0
  39. data/lib/payabli/types/fee_type_name.rb +12 -0
  40. data/lib/payabli/types/fee_type_value.rb +23 -0
  41. data/lib/payabli/types/passthrough_value.rb +23 -0
  42. data/lib/payabli/types/query_payout_transaction_records_item.rb +2 -0
  43. data/lib/payabli/types/query_payout_transaction_records_item_allowed_actions_item.rb +13 -0
  44. data/lib/payabli/types/region_type_value.rb +23 -0
  45. data/lib/payabli/types/service_group_value.rb +23 -0
  46. data/lib/payabli/types/service_type_value.rb +23 -0
  47. data/lib/payabli/types/service_value.rb +23 -0
  48. data/lib/payabli/types/service_vertical_name.rb +13 -0
  49. data/lib/payabli/user/client.rb +8 -2
  50. data/lib/payabli/vendor/client.rb +8 -2
  51. data/lib/payabli/version.rb +1 -1
  52. data/lib/payabli.rb +28 -0
  53. data/reference.md +552 -417
  54. data/wiremock/wiremock-mappings.json +85 -9
  55. metadata +30 -2
@@ -104,11 +104,11 @@ module Payabli
104
104
  # @option request_options [Hash{String => Object}] :additional_query_parameters
105
105
  # @option request_options [Hash{String => Object}] :additional_body_parameters
106
106
  # @option request_options [Integer] :timeout_in_seconds
107
- # @option params [Integer] :org_id
107
+ # @option params [Integer] :org_id_path_param
108
108
  #
109
109
  # @example
110
110
  # client.organization.edit_organization(
111
- # org_id: 123,
111
+ # org_id_path_param: 123,
112
112
  # contacts: [{
113
113
  # contact_email: "herman@hermanscoatings.com",
114
114
  # contact_name: "Herman Martinez",
@@ -119,7 +119,7 @@ module Payabli
119
119
  # org_city: "Johnson City",
120
120
  # org_country: "US",
121
121
  # org_entry_name: "pilgrim-planner",
122
- # organization_data_org_id: "123",
122
+ # org_id: "123",
123
123
  # org_name: "Pilgrim Planner",
124
124
  # org_state: "TN",
125
125
  # org_timezone: -5,
@@ -132,14 +132,14 @@ module Payabli
132
132
  def edit_organization(request_options: {}, **params)
133
133
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
134
134
  request_data = Payabli::Organization::Types::OrganizationData.new(params).to_h
135
- non_body_param_names = %w[orgId]
135
+ non_body_param_names = %w[orgIdPathParam]
136
136
  body = request_data.except(*non_body_param_names)
137
137
 
138
138
  headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
139
139
  request = Payabli::Internal::JSON::Request.new(
140
140
  base_url: request_options[:base_url],
141
141
  method: "PUT",
142
- path: "Organization/#{URI.encode_uri_component(params[:org_id].to_s)}",
142
+ path: "Organization/#{URI.encode_uri_component(params[:org_id_path_param].to_s)}",
143
143
  headers: headers,
144
144
  body: body,
145
145
  request_options: request_options
@@ -4,7 +4,7 @@ module Payabli
4
4
  module Organization
5
5
  module Types
6
6
  class OrganizationData < Internal::Types::Model
7
- field :org_id, -> { Integer }, optional: false, nullable: false, api_name: "orgId"
7
+ field :org_id_path_param, -> { Integer }, optional: false, nullable: false, api_name: "orgIdPathParam"
8
8
 
9
9
  field :services, -> { Internal::Types::Array[Payabli::Types::ServiceCost] }, optional: true, nullable: false
10
10
 
@@ -24,7 +24,7 @@ module Payabli
24
24
 
25
25
  field :org_entry_name, -> { String }, optional: true, nullable: false, api_name: "orgEntryName"
26
26
 
27
- field :organization_data_org_id, -> { String }, optional: true, nullable: false, api_name: "orgId"
27
+ field :org_id, -> { String }, optional: true, nullable: false, api_name: "orgId"
28
28
 
29
29
  field :org_logo, -> { Payabli::Types::FileContent }, optional: true, nullable: false, api_name: "orgLogo"
30
30
 
@@ -393,13 +393,16 @@ module Payabli
393
393
  # @return [Payabli::Types::PayabliApiResponsePaymentLinks]
394
394
  def push_pay_link_from_id(request_options: {}, **params)
395
395
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
396
+ path_param_names = %i[pay_link_id]
397
+ body_params = params.except(*path_param_names)
398
+
396
399
  headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
397
400
  request = Payabli::Internal::JSON::Request.new(
398
401
  base_url: request_options[:base_url],
399
402
  method: "POST",
400
403
  path: "PaymentLink/push/#{URI.encode_uri_component(params[:pay_link_id].to_s)}",
401
404
  headers: headers,
402
- body: Payabli::Types::PushPayLinkRequest.new(params).to_h,
405
+ body: Payabli::Types::PushPayLinkRequest.new(body_params).to_h,
403
406
  request_options: request_options
404
407
  )
405
408
  begin
@@ -816,13 +819,16 @@ module Payabli
816
819
  # @return [Payabli::Types::PayabliApiResponsePaymentLinks]
817
820
  def update_pay_link_out_from_id(request_options: {}, **params)
818
821
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
822
+ path_param_names = %i[paylink_id]
823
+ body_params = params.except(*path_param_names)
824
+
819
825
  headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
820
826
  request = Payabli::Internal::JSON::Request.new(
821
827
  base_url: request_options[:base_url],
822
828
  method: "PATCH",
823
829
  path: "PaymentLink/updateOut/#{URI.encode_uri_component(params[:paylink_id].to_s)}",
824
830
  headers: headers,
825
- body: Payabli::Types::PaymentPageRequestBodyOut.new(params).to_h,
831
+ body: Payabli::Types::PaymentPageRequestBodyOut.new(body_params).to_h,
826
832
  request_options: request_options
827
833
  )
828
834
  begin
@@ -105,13 +105,16 @@ module Payabli
105
105
  # @return [Payabli::Types::PayabliApiResponse00Responsedatanonobject]
106
106
  def save_logo(request_options: {}, **params)
107
107
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
108
+ path_param_names = %i[entry]
109
+ body_params = params.except(*path_param_names)
110
+
108
111
  headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
109
112
  request = Payabli::Internal::JSON::Request.new(
110
113
  base_url: request_options[:base_url],
111
114
  method: "PUT",
112
115
  path: "Paypoint/logo/#{URI.encode_uri_component(params[:entry].to_s)}",
113
116
  headers: headers,
114
- body: Payabli::Types::FileContent.new(params).to_h,
117
+ body: Payabli::Types::FileContent.new(body_params).to_h,
115
118
  request_options: request_options
116
119
  )
117
120
  begin
@@ -5,7 +5,7 @@ module Payabli
5
5
  class AuthCapturePayoutResponseData < Internal::Types::Model
6
6
  field :auth_code, -> { String }, optional: false, nullable: true, api_name: "authCode"
7
7
 
8
- field :reference_id, -> { String }, optional: false, nullable: false, api_name: "referenceId"
8
+ field :reference_id, -> { String }, optional: false, nullable: true, api_name: "referenceId"
9
9
 
10
10
  field :result_code, -> { Integer }, optional: false, nullable: false, api_name: "resultCode"
11
11
 
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # A chargeable action covered by a billing profile, with the fee schedule(s)
6
+ # that apply to it.
7
+ class BillableEvent < Internal::Types::Model
8
+ field :id, -> { Integer }, optional: false, nullable: false
9
+
10
+ field :name, -> { String }, optional: false, nullable: false
11
+
12
+ field :vertical, -> { Integer }, optional: false, nullable: false
13
+
14
+ field :service, -> { Integer }, optional: false, nullable: false
15
+
16
+ field :service_type, -> { Integer }, optional: false, nullable: false, api_name: "serviceType"
17
+
18
+ field :event_type, -> { Integer }, optional: false, nullable: false, api_name: "eventType"
19
+
20
+ field :event_group, -> { Integer }, optional: false, nullable: false, api_name: "eventGroup"
21
+
22
+ field :event_source, -> { Integer }, optional: false, nullable: false, api_name: "eventSource"
23
+
24
+ field :region_type, -> { Integer }, optional: false, nullable: false, api_name: "regionType"
25
+
26
+ field :fee_schedules, -> { Internal::Types::Array[Payabli::Types::FeeSchedule] }, optional: false, nullable: false, api_name: "feeSchedules"
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # An owning or participating entity, as returned by the View profile endpoint
6
+ # (`entityType` serialized as an integer).
7
+ class BillingEntity < Internal::Types::Model
8
+ field :entity_type, -> { Integer }, optional: false, nullable: false, api_name: "entityType"
9
+
10
+ field :entity_id, -> { Integer }, optional: false, nullable: false, api_name: "entityId"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # An owning entity, as returned by the List profiles endpoint (`entityType`
6
+ # serialized as a name).
7
+ class BillingEntityNamed < Internal::Types::Model
8
+ field :entity_type, -> { Payabli::Types::EntityTypeName }, optional: false, nullable: false, api_name: "entityType"
9
+
10
+ field :entity_id, -> { Integer }, optional: false, nullable: false, api_name: "entityId"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # A page of billing profiles that belong to an organization, returned by the
6
+ # List profiles endpoint. This is the data behind the Profile Library table in
7
+ # the Payabli Portal.
8
+ class BillingProfileQueryResponse < Internal::Types::Model
9
+ field :summary, -> { Payabli::Types::BillingProfileSummary }, optional: false, nullable: false
10
+
11
+ field :records, -> { Internal::Types::Array[Payabli::Types::BillingProfileRecord] }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # A single billing profile as it appears in the list.
6
+ class BillingProfileRecord < Internal::Types::Model
7
+ field :id, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :version_id, -> { Integer }, optional: false, nullable: false, api_name: "versionId"
10
+
11
+ field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
12
+
13
+ field :business, -> { Payabli::Types::BillingEntityNamed }, optional: false, nullable: false
14
+
15
+ field :service_vertical, -> { Payabli::Types::ServiceVerticalName }, optional: false, nullable: false, api_name: "serviceVertical"
16
+
17
+ field :name, -> { String }, optional: false, nullable: false
18
+
19
+ field :fee_type, -> { Payabli::Types::FeeTypeName }, optional: false, nullable: false, api_name: "feeType"
20
+
21
+ field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
22
+
23
+ field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
24
+
25
+ field :entities_assigned, -> { Payabli::Types::EntitiesAssigned }, optional: false, nullable: false, api_name: "entitiesAssigned"
26
+
27
+ field :parent_id, -> { String }, optional: false, nullable: false, api_name: "parentId"
28
+
29
+ field :count_of_events, -> { Integer }, optional: false, nullable: false, api_name: "countOfEvents"
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # A billing profile assigned to an entity, returned by the View profile
6
+ # endpoint. A profile is a named configuration of billable events, each with
7
+ # one or more fee schedules. Profiles are append-only versioned — every edit
8
+ # mints a new version.
9
+ class BillingProfileResponse < Internal::Types::Model
10
+ field :id, -> { Integer }, optional: false, nullable: false
11
+
12
+ field :version_id, -> { Integer }, optional: false, nullable: false, api_name: "versionId"
13
+
14
+ field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
15
+
16
+ field :business, -> { Payabli::Types::BillingEntity }, optional: false, nullable: false
17
+
18
+ field :name, -> { String }, optional: false, nullable: false
19
+
20
+ field :fee_type, -> { Integer }, optional: false, nullable: false, api_name: "feeType"
21
+
22
+ field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
23
+
24
+ field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
25
+
26
+ field :parent_id, -> { String }, optional: false, nullable: false, api_name: "parentId"
27
+
28
+ field :billable_events, -> { Internal::Types::Array[Payabli::Types::BillableEvent] }, optional: false, nullable: false, api_name: "billableEvents"
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # Pagination summary for the profile list.
6
+ class BillingProfileSummary < Internal::Types::Model
7
+ field :page_identifier, -> { String }, optional: false, nullable: false, api_name: "pageIdentifier"
8
+
9
+ field :page_size, -> { Integer }, optional: false, nullable: false, api_name: "pageSize"
10
+
11
+ field :total_pages, -> { Integer }, optional: false, nullable: false, api_name: "totalPages"
12
+
13
+ field :total_records, -> { Integer }, optional: false, nullable: false, api_name: "totalRecords"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module CollectionScheduleValue
6
+ # CollectionScheduleValue 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
@@ -45,11 +45,19 @@ module Payabli
45
45
 
46
46
  field :paypoint_entry, -> { String }, optional: false, nullable: true, api_name: "paypointEntry"
47
47
 
48
+ field :paypoint_logo, -> { String }, optional: false, nullable: true, api_name: "paypointLogo"
49
+
48
50
  field :external_paypoint_id, -> { String }, optional: false, nullable: true, api_name: "externalPaypointId"
49
51
 
50
52
  field :parent_org_id, -> { Integer }, optional: false, nullable: true, api_name: "parentOrgId"
51
53
 
52
54
  field :parent_org_name, -> { String }, optional: false, nullable: true, api_name: "parentOrgName"
55
+
56
+ field :parent_org_logo, -> { String }, optional: false, nullable: true, api_name: "parentOrgLogo"
57
+
58
+ field :transaction_count, -> { Integer }, optional: false, nullable: false, api_name: "transactionCount"
59
+
60
+ field :volume_processed, -> { Integer }, optional: false, nullable: false, api_name: "volumeProcessed"
53
61
  end
54
62
  end
55
63
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # Counts of entities the profile is assigned to. Any non-zero count locks the
6
+ # profile from deletion in the Payabli Portal.
7
+ class EntitiesAssigned < Internal::Types::Model
8
+ field :organizations, -> { Integer }, optional: false, nullable: false
9
+
10
+ field :paypoints, -> { Integer }, optional: false, nullable: false
11
+
12
+ field :templates, -> { Integer }, optional: false, nullable: false
13
+
14
+ field :applications, -> { Integer }, optional: false, nullable: false
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module EntityTypeName
6
+ extend Payabli::Internal::Types::Enum
7
+
8
+ ORGANIZATION = "Organization"
9
+ PAYPOINT = "Paypoint"
10
+ CUSTOMER = "Customer"
11
+ TEMPLATE = "Template"
12
+ APPLICATION = "Application"
13
+ BANK_ACCOUNT = "BankAccount"
14
+ ADDRESS = "Address"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module EntityTypeValue
6
+ # EntityTypeValue 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
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module EventGroupValue
6
+ # EventGroupValue 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
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module EventSourceValue
6
+ # EventSourceValue 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
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module EventTypeValue
6
+ # EventTypeValue 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
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # A fee schedule attached to a billable event. Flat and interchange-plus
6
+ # schedules share this shape; `feeType` is the discriminator.
7
+ class FeeSchedule < Internal::Types::Model
8
+ field :id, -> { Integer }, optional: false, nullable: false
9
+
10
+ field :value, -> { Integer }, optional: false, nullable: false
11
+
12
+ field :rate, -> { Integer }, optional: false, nullable: false
13
+
14
+ field :passthrough, -> { Integer }, optional: false, nullable: false
15
+
16
+ field :payor, -> { Payabli::Types::BillingEntity }, optional: false, nullable: true
17
+
18
+ field :collector, -> { Payabli::Types::BillingEntity }, optional: false, nullable: true
19
+
20
+ field :overflow_payor, -> { Payabli::Types::BillingEntity }, optional: false, nullable: true, api_name: "overflowPayor"
21
+
22
+ field :overflow_collection_schedule, -> { Integer }, optional: false, nullable: true, api_name: "overflowCollectionSchedule"
23
+
24
+ field :minimum_total, -> { Integer }, optional: false, nullable: true, api_name: "minimumTotal"
25
+
26
+ field :maximum_total, -> { Integer }, optional: false, nullable: true, api_name: "maximumTotal"
27
+
28
+ field :effective_date, -> { String }, optional: false, nullable: false, api_name: "effectiveDate"
29
+
30
+ field :expiration_date, -> { String }, optional: false, nullable: true, api_name: "expirationDate"
31
+
32
+ field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
33
+
34
+ field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
35
+
36
+ field :created_by, -> { String }, optional: false, nullable: false, api_name: "createdBy"
37
+
38
+ field :collection_schedule, -> { Integer }, optional: false, nullable: false, api_name: "collectionSchedule"
39
+
40
+ field :bill_date, -> { Integer }, optional: false, nullable: true, api_name: "billDate"
41
+
42
+ field :override_fee_schedule_id, -> { Integer }, optional: false, nullable: true, api_name: "overrideFeeScheduleId"
43
+
44
+ field :fee_type, -> { Integer }, optional: false, nullable: false, api_name: "feeType"
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module FeeTypeName
6
+ extend Payabli::Internal::Types::Enum
7
+
8
+ FLAT = "Flat"
9
+ ICP = "ICP"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module FeeTypeValue
6
+ # FeeTypeValue 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
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module PassthroughValue
6
+ # PassthroughValue 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
@@ -100,6 +100,8 @@ module Payabli
100
100
  field :ach_trace_number, -> { String }, optional: true, nullable: false, api_name: "AchTraceNumber"
101
101
 
102
102
  field :entity_id, -> { String }, optional: true, nullable: false, api_name: "EntityId"
103
+
104
+ field :allowed_actions, -> { Internal::Types::Array[Payabli::Types::QueryPayoutTransactionRecordsItemAllowedActionsItem] }, optional: false, nullable: false, api_name: "allowedActions"
103
105
  end
104
106
  end
105
107
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module QueryPayoutTransactionRecordsItemAllowedActionsItem
6
+ extend Payabli::Internal::Types::Enum
7
+
8
+ CAPTURE = "capture"
9
+ CANCEL = "cancel"
10
+ REISSUE = "reissue"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module RegionTypeValue
6
+ # RegionTypeValue 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
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module ServiceGroupValue
6
+ # ServiceGroupValue 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
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module ServiceTypeValue
6
+ # ServiceTypeValue 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