payabli 3.0.7 → 3.0.9

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 (75) 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 +11 -1
  10. data/lib/payabli/cloud/client.rb +2 -2
  11. data/lib/payabli/customer/client.rb +4 -1
  12. data/lib/payabli/device/client.rb +63 -0
  13. data/lib/payabli/funding/client.rb +1 -1
  14. data/lib/payabli/hosted_payment_pages/client.rb +4 -1
  15. data/lib/payabli/internal/http/raw_client.rb +15 -2
  16. data/lib/payabli/internal/json/request.rb +7 -5
  17. data/lib/payabli/line_item/client.rb +4 -1
  18. data/lib/payabli/money_in/client.rb +71 -64
  19. data/lib/payabli/money_out/client.rb +2 -4
  20. data/lib/payabli/money_out/types/request_out_authorize.rb +1 -3
  21. data/lib/payabli/notification/client.rb +8 -5
  22. data/lib/payabli/ocr/client.rb +8 -2
  23. data/lib/payabli/organization/client.rb +5 -5
  24. data/lib/payabli/organization/types/organization_data.rb +2 -2
  25. data/lib/payabli/payment_link/client.rb +8 -2
  26. data/lib/payabli/paypoint/client.rb +4 -1
  27. data/lib/payabli/types/auth_capture_payout_response_data.rb +1 -1
  28. data/lib/payabli/types/billable_event.rb +29 -0
  29. data/lib/payabli/types/billing_entity.rb +13 -0
  30. data/lib/payabli/types/billing_entity_named.rb +13 -0
  31. data/lib/payabli/types/billing_profile_query_response.rb +14 -0
  32. data/lib/payabli/types/billing_profile_record.rb +32 -0
  33. data/lib/payabli/types/billing_profile_response.rb +31 -0
  34. data/lib/payabli/types/billing_profile_summary.rb +16 -0
  35. data/lib/payabli/types/collection_schedule_value.rb +23 -0
  36. data/lib/payabli/types/device_challenge_data.rb +12 -0
  37. data/lib/payabli/types/device_challenge_response.rb +21 -0
  38. data/lib/payabli/types/device_query_record.rb +8 -0
  39. data/lib/payabli/types/entities_assigned.rb +17 -0
  40. data/lib/payabli/types/entity_type_name.rb +17 -0
  41. data/lib/payabli/types/entity_type_value.rb +23 -0
  42. data/lib/payabli/types/event_group_value.rb +23 -0
  43. data/lib/payabli/types/event_source_value.rb +23 -0
  44. data/lib/payabli/types/event_type_value.rb +23 -0
  45. data/lib/payabli/types/fee_schedule.rb +47 -0
  46. data/lib/payabli/types/fee_type_name.rb +12 -0
  47. data/lib/payabli/types/{lot_number.rb → fee_type_value.rb} +2 -2
  48. data/lib/payabli/types/methodall.rb +1 -0
  49. data/lib/payabli/types/operation_result.rb +4 -2
  50. data/lib/payabli/types/passthrough_value.rb +23 -0
  51. data/lib/payabli/types/pay_method_cloud.rb +0 -2
  52. data/lib/payabli/types/pay_method_device.rb +14 -0
  53. data/lib/payabli/types/pay_method_device_method.rb +11 -0
  54. data/lib/payabli/types/payment_method.rb +2 -0
  55. data/lib/payabli/types/paypoint_data.rb +2 -0
  56. data/lib/payabli/types/query_payout_transaction_records_item.rb +2 -0
  57. data/lib/payabli/types/query_payout_transaction_records_item_allowed_actions_item.rb +13 -0
  58. data/lib/payabli/types/region_type_value.rb +23 -0
  59. data/lib/payabli/types/request_out_authorize_invoice_data.rb +4 -25
  60. data/lib/payabli/types/request_out_authorize_vendor_data.rb +3 -61
  61. data/lib/payabli/types/service_group_value.rb +23 -0
  62. data/lib/payabli/types/service_type_value.rb +23 -0
  63. data/lib/payabli/types/service_value.rb +23 -0
  64. data/lib/payabli/types/service_vertical_name.rb +13 -0
  65. data/lib/payabli/types/transaction_detail_payment_data.rb +2 -2
  66. data/lib/payabli/types/v_2_transaction_detail_response_data.rb +1 -1
  67. data/lib/payabli/types/v_2_transaction_details.rb +1 -1
  68. data/lib/payabli/user/client.rb +8 -2
  69. data/lib/payabli/vendor/client.rb +8 -2
  70. data/lib/payabli/version.rb +1 -1
  71. data/lib/payabli.rb +33 -2
  72. data/reference.md +690 -531
  73. data/wiremock/wiremock-mappings.json +172 -65
  74. metadata +35 -4
  75. data/lib/payabli/types/request_out_authorize_vendor_billing_data.rb +0 -19
@@ -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
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # The issued activation code and the time it expires.
6
+ class DeviceChallengeData < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :expires_at, -> { String }, optional: false, nullable: false, api_name: "expiresAt"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # Response to a device activation code request. On success, `responseData`
6
+ # carries the verification code and the time it expires.
7
+ class DeviceChallengeResponse < Internal::Types::Model
8
+ field :response_code, -> { Integer }, optional: true, nullable: false, api_name: "responseCode"
9
+
10
+ field :page_identifier, -> { String }, optional: true, nullable: false, api_name: "pageIdentifier"
11
+
12
+ field :room_id, -> { Integer }, optional: true, nullable: false, api_name: "roomId"
13
+
14
+ field :is_success, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isSuccess"
15
+
16
+ field :response_text, -> { String }, optional: false, nullable: false, api_name: "responseText"
17
+
18
+ field :response_data, -> { Payabli::Types::DeviceChallengeData }, optional: false, nullable: false, api_name: "responseData"
19
+ end
20
+ end
21
+ 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
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Payabli
4
4
  module Types
5
- module LotNumber
6
- # LotNumber is an alias for String
5
+ module FeeTypeValue
6
+ # FeeTypeValue is an alias for Integer
7
7
 
8
8
  # @option str [String]
9
9
  #
@@ -8,6 +8,7 @@ module Payabli
8
8
  CARD = "card"
9
9
  ACH = "ach"
10
10
  CLOUD = "cloud"
11
+ DEVICE = "device"
11
12
  CHECK = "check"
12
13
  CASH = "cash"
13
14
  end
@@ -3,9 +3,11 @@
3
3
  module Payabli
4
4
  module Types
5
5
  class OperationResult < Internal::Types::Model
6
- field :message, -> { String }, optional: true, nullable: false
7
-
8
6
  field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
+
8
+ field :message, -> { String }, optional: false, nullable: false
9
+
10
+ field :link, -> { String }, optional: false, nullable: false
9
11
  end
10
12
  end
11
13
  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
@@ -6,8 +6,6 @@ module Payabli
6
6
  field :device, -> { String }, optional: true, nullable: false
7
7
 
8
8
  field :method_, -> { Payabli::Types::PayMethodCloudMethod }, optional: false, nullable: false, api_name: "method"
9
-
10
- field :save_if_success, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "saveIfSuccess"
11
9
  end
12
10
  end
13
11
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ # The required fields for a payment made with a semi-integrated device.
6
+ class PayMethodDevice < Internal::Types::Model
7
+ field :device, -> { String }, optional: false, nullable: false
8
+
9
+ field :method_, -> { Payabli::Types::PayMethodDeviceMethod }, optional: false, nullable: false, api_name: "method"
10
+
11
+ field :save_if_success, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "saveIfSuccess"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Types
5
+ module PayMethodDeviceMethod
6
+ extend Payabli::Internal::Types::Enum
7
+
8
+ DEVICE = "device"
9
+ end
10
+ end
11
+ end
@@ -14,6 +14,8 @@ module Payabli
14
14
 
15
15
  member -> { Payabli::Types::PayMethodCloud }
16
16
 
17
+ member -> { Payabli::Types::PayMethodDevice }
18
+
17
19
  member -> { Payabli::Types::Check }
18
20
 
19
21
  member -> { Payabli::Types::Cash }
@@ -39,6 +39,8 @@ module Payabli
39
39
 
40
40
  field :state, -> { String }, optional: true, nullable: false, api_name: "State"
41
41
 
42
+ field :business_summary, -> { String }, optional: false, nullable: true, api_name: "Summary"
43
+
42
44
  field :summary, -> { Payabli::Types::PaypointSummary }, optional: true, nullable: false
43
45
 
44
46
  field :time_zone, -> { Integer }, optional: true, nullable: false, api_name: "TimeZone"
@@ -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
@@ -2,32 +2,11 @@
2
2
 
3
3
  module Payabli
4
4
  module Types
5
+ # Bill to pay with this payout. Create the bill first with
6
+ # [Add bill](/developers/api-reference/bill/add-bill), then reference it here
7
+ # by `billId`.
5
8
  class RequestOutAuthorizeInvoiceData < Internal::Types::Model
6
- field :invoice_number, -> { String }, optional: true, nullable: false, api_name: "invoiceNumber"
7
-
8
- field :net_amount, -> { String }, optional: true, nullable: false, api_name: "netAmount"
9
-
10
- field :invoice_date, -> { String }, optional: true, nullable: false, api_name: "invoiceDate"
11
-
12
- field :due_date, -> { String }, optional: true, nullable: false, api_name: "dueDate"
13
-
14
- field :comments, -> { String }, optional: true, nullable: false
15
-
16
- field :lot_number, -> { String }, optional: true, nullable: false, api_name: "lotNumber"
17
-
18
- field :bill_id, -> { Integer }, optional: true, nullable: false, api_name: "billId"
19
-
20
- field :discount, -> { Integer }, optional: true, nullable: false
21
-
22
- field :terms, -> { Payabli::Types::Terms }, optional: true, nullable: false
23
-
24
- field :accounting_field_1, -> { String }, optional: true, nullable: false, api_name: "accountingField1"
25
-
26
- field :accounting_field_2, -> { String }, optional: true, nullable: false, api_name: "accountingField2"
27
-
28
- field :additional_data, -> { String }, optional: true, nullable: false, api_name: "additionalData"
29
-
30
- field :attachments, -> { Internal::Types::Array[Payabli::Types::FileContent] }, optional: true, nullable: false
9
+ field :bill_id, -> { Integer }, optional: false, nullable: false, api_name: "billId"
31
10
  end
32
11
  end
33
12
  end
@@ -2,70 +2,12 @@
2
2
 
3
3
  module Payabli
4
4
  module Types
5
- # Object containing vendor data.
5
+ # Vendor to pay with this payout. Create the vendor first with
6
+ # [Create vendor](/developers/api-reference/vendor/create-vendor), then
7
+ # reference it here by `vendorNumber` or `vendorId`.
6
8
  class RequestOutAuthorizeVendorData < Internal::Types::Model
7
9
  field :vendor_number, -> { String }, optional: true, nullable: false, api_name: "vendorNumber"
8
10
 
9
- field :name_1, -> { String }, optional: true, nullable: false, api_name: "name1"
10
-
11
- field :name_2, -> { String }, optional: true, nullable: false, api_name: "name2"
12
-
13
- field :ein, -> { String }, optional: true, nullable: false
14
-
15
- field :phone, -> { String }, optional: true, nullable: false
16
-
17
- field :email, -> { String }, optional: true, nullable: false
18
-
19
- field :address_1, -> { String }, optional: true, nullable: false, api_name: "address1"
20
-
21
- field :city, -> { String }, optional: true, nullable: false
22
-
23
- field :state, -> { String }, optional: true, nullable: false
24
-
25
- field :zip, -> { String }, optional: true, nullable: false
26
-
27
- field :country, -> { String }, optional: true, nullable: false
28
-
29
- field :mcc, -> { String }, optional: true, nullable: false
30
-
31
- field :contacts, -> { Internal::Types::Array[Payabli::Types::Contacts] }, optional: true, nullable: false
32
-
33
- field :billing_data, -> { Payabli::Types::RequestOutAuthorizeVendorBillingData }, optional: true, nullable: false, api_name: "billingData"
34
-
35
- field :vendor_status, -> { Integer }, optional: true, nullable: false, api_name: "vendorStatus"
36
-
37
- field :remit_address_1, -> { String }, optional: true, nullable: false, api_name: "remitAddress1"
38
-
39
- field :remit_address_2, -> { String }, optional: true, nullable: false, api_name: "remitAddress2"
40
-
41
- field :remit_city, -> { String }, optional: true, nullable: false, api_name: "remitCity"
42
-
43
- field :remit_state, -> { String }, optional: true, nullable: false, api_name: "remitState"
44
-
45
- field :remit_zip, -> { String }, optional: true, nullable: false, api_name: "remitZip"
46
-
47
- field :remit_country, -> { String }, optional: true, nullable: false, api_name: "remitCountry"
48
-
49
- field :customer_vendor_account, -> { String }, optional: true, nullable: false, api_name: "customerVendorAccount"
50
-
51
- field :custom_field_1, -> { String }, optional: true, nullable: false, api_name: "customField1"
52
-
53
- field :custom_field_2, -> { String }, optional: true, nullable: false, api_name: "customField2"
54
-
55
- field :additional_data, -> { Internal::Types::Hash[String, Internal::Types::Hash[String, Object]] }, optional: true, nullable: false, api_name: "additionalData"
56
-
57
- field :address_2, -> { String }, optional: true, nullable: false, api_name: "address2"
58
-
59
- field :internal_reference_id, -> { Integer }, optional: true, nullable: false, api_name: "internalReferenceId"
60
-
61
- field :location_code, -> { String }, optional: true, nullable: false, api_name: "locationCode"
62
-
63
- field :payee_name_1, -> { String }, optional: true, nullable: false, api_name: "payeeName1"
64
-
65
- field :payee_name_2, -> { String }, optional: true, nullable: false, api_name: "payeeName2"
66
-
67
- field :payment_method, -> { Payabli::Types::VendorPaymentMethod }, optional: true, nullable: false, api_name: "paymentMethod"
68
-
69
11
  field :vendor_id, -> { Integer }, optional: true, nullable: false, api_name: "vendorId"
70
12
  end
71
13
  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