payabli 3.0.17 → 3.0.19
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/client.rb +1 -1
- data/lib/payabli/ghost_card/client.rb +48 -2
- data/lib/payabli/money_out/client.rb +56 -2
- data/lib/payabli/money_out/types/reissue_out_request.rb +2 -0
- data/lib/payabli/subscription/types/request_update_schedule.rb +2 -0
- data/lib/payabli/types/associated_vendor.rb +2 -0
- data/lib/payabli/types/bill_query_record_2.rb +2 -0
- data/lib/payabli/types/bill_response_data.rb +2 -0
- data/lib/payabli/types/bill_transaction_reference.rb +12 -0
- data/lib/payabli/types/delete_ghost_card_response.rb +12 -0
- data/lib/payabli/types/delete_ghost_card_response_data.rb +11 -0
- data/lib/payabli/types/device_entry_mode.rb +23 -0
- data/lib/payabli/types/device_query_record.rb +6 -0
- data/lib/payabli/types/device_query_record_operational_status.rb +13 -0
- data/lib/payabli/types/emv_auth_data.rb +14 -0
- data/lib/payabli/types/get_method_response_response_data_vendors_item.rb +2 -0
- data/lib/payabli/types/issue_1099.rb +23 -0
- data/lib/payabli/types/next_check_number_response.rb +10 -0
- data/lib/payabli/types/payout_subscription_vendor.rb +2 -0
- data/lib/payabli/types/query_device_data.rb +26 -0
- data/lib/payabli/types/transaction_query_records.rb +6 -0
- data/lib/payabli/types/transaction_query_records_customer.rb +6 -0
- data/lib/payabli/types/transfer_out_detail_vendor.rb +2 -0
- data/lib/payabli/types/v_card_get_response_associated_vendor.rb +2 -0
- data/lib/payabli/types/vendor_data.rb +2 -0
- data/lib/payabli/types/vendor_data_response.rb +2 -0
- data/lib/payabli/types/vendor_out_data.rb +2 -0
- data/lib/payabli/types/vendor_query_record.rb +2 -0
- data/lib/payabli/vendor/client.rb +1 -0
- data/lib/payabli/version.rb +1 -1
- data/lib/payabli.rb +9 -0
- data/reference.md +168 -2
- data/wiremock/wiremock-mappings.json +90 -25
- metadata +11 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d16b05541611429460fa90e95dcdae99ac25965ecfe11da57593a13029c8373
|
|
4
|
+
data.tar.gz: 0bfd1a9f556b7366fb99eec29f08fa72dcd8a13ffd80b4756010623c9252b81d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12bed5f033b4ca3a02b10daccb188d2d9a1b6e92738f1cc18acfd2a6fcf4adf44aeb30dcb910caf6d0dc936769448c93dd9696987d51983b64a9145ca4ac3ae8
|
|
7
|
+
data.tar.gz: f4ddc17073fdc3e59d97fd44339131b78474cd8e08da76c2b77151db22d706031b3e3a2d3f4d541f1b9351a6d443aa2e90c12fb73203e62e97221d6df913414f
|
data/.fern/metadata.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"rubocopVariableNumberStyle": "snake_case",
|
|
8
8
|
"respectOptionalRequestBody": true
|
|
9
9
|
},
|
|
10
|
-
"originGitCommit": "
|
|
10
|
+
"originGitCommit": "c21edcac756a2d90c721a038883ca28cfbf73024",
|
|
11
11
|
"originGitCommitIsDirty": true,
|
|
12
12
|
"invokedBy": "ci",
|
|
13
|
-
"requestedVersion": "3.0.
|
|
13
|
+
"requestedVersion": "3.0.19",
|
|
14
14
|
"ciProvider": "github",
|
|
15
|
-
"sdkVersion": "3.0.
|
|
15
|
+
"sdkVersion": "3.0.19"
|
|
16
16
|
}
|
data/lib/payabli/client.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Payabli
|
|
|
32
32
|
@raw_client = Payabli::Internal::Http::RawClient.new(
|
|
33
33
|
base_url: base_url || Payabli::Environment::SANDBOX,
|
|
34
34
|
headers: {
|
|
35
|
-
"User-Agent" => "payabli/3.0.
|
|
35
|
+
"User-Agent" => "payabli/3.0.19",
|
|
36
36
|
"X-Fern-Language" => "Ruby"
|
|
37
37
|
},
|
|
38
38
|
auth_provider: Payabli::Internal::RoutingAuthProvider.new(
|
|
@@ -16,8 +16,9 @@ module Payabli
|
|
|
16
16
|
# payout. They're issued directly to a vendor and can be reused up to a configurable number of times within the
|
|
17
17
|
# card's spending limits.
|
|
18
18
|
#
|
|
19
|
-
# Only one ghost card can exist per vendor per paypoint.
|
|
20
|
-
# existing card first.
|
|
19
|
+
# Only one active ghost card can exist per vendor per paypoint. If the vendor already has one, the request fails
|
|
20
|
+
# with error `7067`. To issue a new card to the same vendor, cancel the existing card first. Canceled and expired
|
|
21
|
+
# cards don't count toward this limit. See [Cancel ghost card](/developers/api-reference/cards/cancel-ghost-card).
|
|
21
22
|
#
|
|
22
23
|
# @param request_options [Hash]
|
|
23
24
|
# @param params [Payabli::GhostCard::Types::CreateGhostCardRequestBody]
|
|
@@ -78,6 +79,51 @@ module Payabli
|
|
|
78
79
|
end
|
|
79
80
|
end
|
|
80
81
|
|
|
82
|
+
# Cancels a ghost card. This is always a soft delete: Payabli keeps the card record, including its transaction
|
|
83
|
+
# history.
|
|
84
|
+
#
|
|
85
|
+
# Canceling a ghost card frees the vendor's slot, so you can issue a new ghost card to the same vendor. A card
|
|
86
|
+
# canceled with this endpoint can't be used, reactivated, or canceled again.
|
|
87
|
+
#
|
|
88
|
+
# Requires the `vcard_delete` permission.
|
|
89
|
+
#
|
|
90
|
+
# @param request_options [Hash]
|
|
91
|
+
# @param params [Hash]
|
|
92
|
+
# @option request_options [String] :base_url
|
|
93
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
94
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
95
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
96
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
97
|
+
# @option params [String] :card_token
|
|
98
|
+
#
|
|
99
|
+
# @example
|
|
100
|
+
# client.ghost_card.delete_ghost_card(card_token: "gc_abc123def456")
|
|
101
|
+
#
|
|
102
|
+
# @return [Payabli::Types::DeleteGhostCardResponse]
|
|
103
|
+
def delete_ghost_card(request_options: {}, **params)
|
|
104
|
+
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
105
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
106
|
+
request = Payabli::Internal::JSON::Request.new(
|
|
107
|
+
base_url: request_options[:base_url],
|
|
108
|
+
method: "DELETE",
|
|
109
|
+
path: "MoneyOutCard/GhostCard/#{URI.encode_uri_component(params[:card_token].to_s)}",
|
|
110
|
+
headers: headers,
|
|
111
|
+
request_options: request_options
|
|
112
|
+
)
|
|
113
|
+
begin
|
|
114
|
+
response = @client.send(request)
|
|
115
|
+
rescue Net::HTTPRequestTimeout
|
|
116
|
+
raise Payabli::Errors::TimeoutError
|
|
117
|
+
end
|
|
118
|
+
code = response.code.to_i
|
|
119
|
+
if code.between?(200, 299)
|
|
120
|
+
Payabli::Types::DeleteGhostCardResponse.load(response.body)
|
|
121
|
+
else
|
|
122
|
+
error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
|
|
123
|
+
raise error_class.new(response.body, code: code)
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
81
127
|
# Updates the status of a virtual card (including ghost cards) under a paypoint.
|
|
82
128
|
#
|
|
83
129
|
# @param request_options [Hash]
|
|
@@ -673,11 +673,65 @@ module Payabli
|
|
|
673
673
|
end
|
|
674
674
|
end
|
|
675
675
|
|
|
676
|
+
# Returns a suggested check number for the next check payout from a paypoint's funding account. Payabli suggests
|
|
677
|
+
# the highest check number on the account's check payouts plus one, or `1` if the account has no check history.
|
|
678
|
+
# Canceled check payouts don't count toward the highest number.
|
|
679
|
+
#
|
|
680
|
+
#
|
|
681
|
+
# Use the suggested value with the `checkNumber` field when you reissue a check, or when you create a new check
|
|
682
|
+
# payout.
|
|
683
|
+
#
|
|
684
|
+
#
|
|
685
|
+
# Errors return HTTP `400`: `3005` when the paypoint ID is invalid or inactive, and `3758` when the account ID
|
|
686
|
+
# isn't valid for the paypoint.
|
|
687
|
+
#
|
|
688
|
+
# @param request_options [Hash]
|
|
689
|
+
# @param params [Hash]
|
|
690
|
+
# @option request_options [String] :base_url
|
|
691
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
692
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
693
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
694
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
695
|
+
# @option params [Integer] :paypoint_id
|
|
696
|
+
# @option params [String] :account_id
|
|
697
|
+
#
|
|
698
|
+
# @example
|
|
699
|
+
# client.money_out.get_next_check_number(
|
|
700
|
+
# paypoint_id: 3040,
|
|
701
|
+
# account_id: "123-456"
|
|
702
|
+
# )
|
|
703
|
+
#
|
|
704
|
+
# @return [Payabli::Types::NextCheckNumberResponse]
|
|
705
|
+
def get_next_check_number(request_options: {}, **params)
|
|
706
|
+
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
707
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
708
|
+
request = Payabli::Internal::JSON::Request.new(
|
|
709
|
+
base_url: request_options[:base_url],
|
|
710
|
+
method: "GET",
|
|
711
|
+
path: "MoneyOut/nextCheckNumber/#{URI.encode_uri_component(params[:paypoint_id].to_s)}/#{URI.encode_uri_component(params[:account_id].to_s)}",
|
|
712
|
+
headers: headers,
|
|
713
|
+
request_options: request_options
|
|
714
|
+
)
|
|
715
|
+
begin
|
|
716
|
+
response = @client.send(request)
|
|
717
|
+
rescue Net::HTTPRequestTimeout
|
|
718
|
+
raise Payabli::Errors::TimeoutError
|
|
719
|
+
end
|
|
720
|
+
code = response.code.to_i
|
|
721
|
+
if code.between?(200, 299)
|
|
722
|
+
Payabli::Types::NextCheckNumberResponse.load(response.body)
|
|
723
|
+
else
|
|
724
|
+
error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
|
|
725
|
+
raise error_class.new(response.body, code: code)
|
|
726
|
+
end
|
|
727
|
+
end
|
|
728
|
+
|
|
676
729
|
# Reissues a payout transaction with a new payment method. This creates a new transaction linked to the original
|
|
677
730
|
# and marks the original transaction as reissued.
|
|
678
731
|
#
|
|
679
|
-
# The original transaction must be in **Processing** or **Processed** status.
|
|
680
|
-
# body is used directly. The endpoint doesn't fall
|
|
732
|
+
# The original transaction must be in **Processing** or **Processed** status. An ACH payout with a **Returned**
|
|
733
|
+
# status can also be reissued. The payment method in the request body is used directly. The endpoint doesn't fall
|
|
734
|
+
# back to vendor-managed payment methods.
|
|
681
735
|
#
|
|
682
736
|
# The new transaction goes through the standard authorize-and-capture flow automatically. Both the original and
|
|
683
737
|
# new transactions are linked through their event histories for audit purposes.
|
|
@@ -9,6 +9,8 @@ module Payabli
|
|
|
9
9
|
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotencyKey"
|
|
10
10
|
|
|
11
11
|
field :payment_method, -> { Payabli::Types::ReissuePaymentMethod }, optional: false, nullable: false, api_name: "paymentMethod"
|
|
12
|
+
|
|
13
|
+
field :check_number, -> { String }, optional: true, nullable: false, api_name: "checkNumber"
|
|
12
14
|
end
|
|
13
15
|
end
|
|
14
16
|
end
|
|
@@ -6,6 +6,8 @@ module Payabli
|
|
|
6
6
|
class RequestUpdateSchedule < Internal::Types::Model
|
|
7
7
|
field :sub_id, -> { Integer }, optional: false, nullable: false, api_name: "subId"
|
|
8
8
|
|
|
9
|
+
field :invoice_data, -> { Payabli::Types::BillData }, optional: true, nullable: false, api_name: "invoiceData"
|
|
10
|
+
|
|
9
11
|
field :payment_details, -> { Payabli::Types::PaymentDetail }, optional: true, nullable: false, api_name: "paymentDetails"
|
|
10
12
|
|
|
11
13
|
field :schedule_details, -> { Payabli::Types::ScheduleDetail }, optional: true, nullable: false, api_name: "scheduleDetails"
|
|
@@ -31,6 +31,8 @@ module Payabli
|
|
|
31
31
|
|
|
32
32
|
field :location_code, -> { String }, optional: true, nullable: false, api_name: "LocationCode"
|
|
33
33
|
|
|
34
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "Issue1099"
|
|
35
|
+
|
|
34
36
|
field :contacts, -> { Internal::Types::Array[Payabli::Types::Contacts] }, optional: true, nullable: false, api_name: "Contacts"
|
|
35
37
|
|
|
36
38
|
field :billing_data, -> { Payabli::Types::BillingDataResponse }, optional: true, nullable: false, api_name: "BillingData"
|
|
@@ -79,6 +79,8 @@ module Payabli
|
|
|
79
79
|
|
|
80
80
|
field :transaction, -> { Payabli::Types::TransactionOutQueryRecord }, optional: false, nullable: true, api_name: "Transaction"
|
|
81
81
|
|
|
82
|
+
field :transactions, -> { Internal::Types::Array[Payabli::Types::BillTransactionReference] }, optional: false, nullable: true
|
|
83
|
+
|
|
82
84
|
field :vendor, -> { Payabli::Types::VendorOutData }, optional: false, nullable: true, api_name: "Vendor"
|
|
83
85
|
end
|
|
84
86
|
end
|
|
@@ -57,6 +57,8 @@ module Payabli
|
|
|
57
57
|
|
|
58
58
|
field :transaction, -> { Payabli::Types::TransactionOutQueryRecord }, optional: true, nullable: false, api_name: "Transaction"
|
|
59
59
|
|
|
60
|
+
field :transactions, -> { Internal::Types::Array[Payabli::Types::BillTransactionReference] }, optional: false, nullable: true
|
|
61
|
+
|
|
60
62
|
field :bill_events, -> { Internal::Types::Array[Payabli::Types::GeneralEvents] }, optional: true, nullable: false, api_name: "billEvents"
|
|
61
63
|
|
|
62
64
|
field :bill_approvals, -> { Internal::Types::Array[Payabli::Types::BillQueryRecord2BillApprovalsItem] }, optional: true, nullable: false, api_name: "billApprovals"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Identifies a payout transaction that paid a bill.
|
|
6
|
+
class BillTransactionReference < Internal::Types::Model
|
|
7
|
+
field :id_out, -> { Integer }, optional: false, nullable: false, api_name: "idOut"
|
|
8
|
+
|
|
9
|
+
field :payment_id, -> { String }, optional: false, nullable: true, api_name: "paymentId"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Response for canceling a ghost card.
|
|
6
|
+
class DeleteGhostCardResponse < Internal::Types::Model
|
|
7
|
+
field :is_success, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isSuccess"
|
|
8
|
+
|
|
9
|
+
field :response_data, -> { Payabli::Types::DeleteGhostCardResponseData }, optional: true, nullable: false, api_name: "responseData"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
class DeleteGhostCardResponseData < Internal::Types::Model
|
|
6
|
+
field :delete_type, -> { String }, optional: true, nullable: false, api_name: "deleteType"
|
|
7
|
+
|
|
8
|
+
field :card_token, -> { String }, optional: true, nullable: false, api_name: "cardToken"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
module DeviceEntryMode
|
|
6
|
+
# DeviceEntryMode is an alias for Object
|
|
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
|
|
@@ -17,10 +17,16 @@ module Payabli
|
|
|
17
17
|
|
|
18
18
|
field :model, -> { String }, optional: false, nullable: true
|
|
19
19
|
|
|
20
|
+
field :app_version, -> { String }, optional: false, nullable: true, api_name: "appVersion"
|
|
21
|
+
|
|
22
|
+
field :os_version, -> { String }, optional: false, nullable: true, api_name: "osVersion"
|
|
23
|
+
|
|
20
24
|
field :device_type, -> { Integer }, optional: false, nullable: true, api_name: "deviceType"
|
|
21
25
|
|
|
22
26
|
field :device_status, -> { Integer }, optional: false, nullable: true, api_name: "deviceStatus"
|
|
23
27
|
|
|
28
|
+
field :operational_status, -> { Payabli::Types::DeviceQueryRecordOperationalStatus }, optional: false, nullable: false, api_name: "operationalStatus"
|
|
29
|
+
|
|
24
30
|
field :device_os, -> { Integer }, optional: false, nullable: true, api_name: "deviceOs"
|
|
25
31
|
|
|
26
32
|
field :mac_address, -> { String }, optional: false, nullable: true, api_name: "macAddress"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# EMV data exchanged during the authorization of a device transaction. `null`
|
|
6
|
+
# when both values are `null`, such as for swiped cards, device transactions
|
|
7
|
+
# that never reached the processor, and non-device transactions.
|
|
8
|
+
class EmvAuthData < Internal::Types::Model
|
|
9
|
+
field :request_emv_data, -> { String }, optional: false, nullable: true, api_name: "RequestEmvData"
|
|
10
|
+
|
|
11
|
+
field :response_emv_data, -> { String }, optional: false, nullable: true, api_name: "ResponseEmvData"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -39,6 +39,8 @@ module Payabli
|
|
|
39
39
|
|
|
40
40
|
field :location_code, -> { String }, optional: true, nullable: false, api_name: "locationCode"
|
|
41
41
|
|
|
42
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "issue1099"
|
|
43
|
+
|
|
42
44
|
field :mcc, -> { String }, optional: true, nullable: false
|
|
43
45
|
|
|
44
46
|
field :name_1, -> { String }, optional: true, nullable: false, api_name: "name1"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
module Issue1099
|
|
6
|
+
# Issue1099 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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Response body for the next check number lookup.
|
|
6
|
+
class NextCheckNumberResponse < Internal::Types::Model
|
|
7
|
+
field :check_number, -> { String }, optional: false, nullable: false, api_name: "checkNumber"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -34,6 +34,8 @@ module Payabli
|
|
|
34
34
|
|
|
35
35
|
field :location_code, -> { String }, optional: false, nullable: true, api_name: "locationCode"
|
|
36
36
|
|
|
37
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "issue1099"
|
|
38
|
+
|
|
37
39
|
field :contacts, -> { Internal::Types::Array[Payabli::Types::PayoutSubscriptionVendorContact] }, optional: false, nullable: true
|
|
38
40
|
|
|
39
41
|
field :billing_data, -> { Payabli::Types::BillingDataResponse }, optional: false, nullable: true, api_name: "billingData"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Details of the registered device used for the transaction. `null` when the
|
|
6
|
+
# transaction has no `DeviceId`, or when no matching device is registered to
|
|
7
|
+
# the paypoint.
|
|
8
|
+
class QueryDeviceData < Internal::Types::Model
|
|
9
|
+
field :device_type, -> { String }, optional: false, nullable: true, api_name: "deviceType"
|
|
10
|
+
|
|
11
|
+
field :device_os, -> { String }, optional: false, nullable: true, api_name: "deviceOs"
|
|
12
|
+
|
|
13
|
+
field :friendly_name, -> { String }, optional: false, nullable: true, api_name: "friendlyName"
|
|
14
|
+
|
|
15
|
+
field :serial_number, -> { String }, optional: false, nullable: true, api_name: "serialNumber"
|
|
16
|
+
|
|
17
|
+
field :make, -> { String }, optional: false, nullable: true
|
|
18
|
+
|
|
19
|
+
field :model, -> { String }, optional: false, nullable: true
|
|
20
|
+
|
|
21
|
+
field :mac_address, -> { String }, optional: false, nullable: true, api_name: "macAddress"
|
|
22
|
+
|
|
23
|
+
field :device_status, -> { String }, optional: false, nullable: true, api_name: "deviceStatus"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -19,6 +19,12 @@ module Payabli
|
|
|
19
19
|
|
|
20
20
|
field :device_id, -> { String }, optional: true, nullable: false, api_name: "DeviceId"
|
|
21
21
|
|
|
22
|
+
field :device_data, -> { Payabli::Types::QueryDeviceData }, optional: false, nullable: true, api_name: "DeviceData"
|
|
23
|
+
|
|
24
|
+
field :device_entry_mode, -> { String }, optional: false, nullable: true, api_name: "DeviceEntryMode"
|
|
25
|
+
|
|
26
|
+
field :emv_auth_data, -> { Payabli::Types::EmvAuthData }, optional: false, nullable: true, api_name: "EmvAuthData"
|
|
27
|
+
|
|
22
28
|
field :entrypage_id, -> { Integer }, optional: true, nullable: false, api_name: "EntrypageId"
|
|
23
29
|
|
|
24
30
|
field :external_processor_information, -> { String }, optional: true, nullable: false, api_name: "ExternalProcessorInformation"
|
|
@@ -19,6 +19,12 @@ module Payabli
|
|
|
19
19
|
|
|
20
20
|
field :device_id, -> { String }, optional: true, nullable: false, api_name: "DeviceId"
|
|
21
21
|
|
|
22
|
+
field :device_data, -> { Payabli::Types::QueryDeviceData }, optional: false, nullable: true, api_name: "DeviceData"
|
|
23
|
+
|
|
24
|
+
field :device_entry_mode, -> { String }, optional: false, nullable: true, api_name: "DeviceEntryMode"
|
|
25
|
+
|
|
26
|
+
field :emv_auth_data, -> { Payabli::Types::EmvAuthData }, optional: false, nullable: true, api_name: "EmvAuthData"
|
|
27
|
+
|
|
22
28
|
field :entrypage_id, -> { Integer }, optional: true, nullable: false, api_name: "EntrypageId"
|
|
23
29
|
|
|
24
30
|
field :external_processor_information, -> { String }, optional: true, nullable: false, api_name: "ExternalProcessorInformation"
|
|
@@ -34,6 +34,8 @@ module Payabli
|
|
|
34
34
|
|
|
35
35
|
field :location_code, -> { String }, optional: false, nullable: true, api_name: "LocationCode"
|
|
36
36
|
|
|
37
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "Issue1099"
|
|
38
|
+
|
|
37
39
|
field :contacts, -> { Internal::Types::Array[Payabli::Types::ContactsResponse] }, optional: false, nullable: true, api_name: "Contacts"
|
|
38
40
|
|
|
39
41
|
field :billing_data, -> { Payabli::Types::TransferOutDetailVendorBillingData }, optional: false, nullable: true, api_name: "BillingData"
|
|
@@ -34,6 +34,8 @@ module Payabli
|
|
|
34
34
|
|
|
35
35
|
field :location_code, -> { String }, optional: true, nullable: false, api_name: "LocationCode"
|
|
36
36
|
|
|
37
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "Issue1099"
|
|
38
|
+
|
|
37
39
|
field :contacts, -> { Internal::Types::Array[Payabli::Types::VCardGetResponseContact] }, optional: true, nullable: false, api_name: "Contacts"
|
|
38
40
|
|
|
39
41
|
field :billing_data, -> { Payabli::Types::VCardGetResponseAssociatedVendorBillingData }, optional: true, nullable: false, api_name: "BillingData"
|
|
@@ -65,6 +65,8 @@ module Payabli
|
|
|
65
65
|
|
|
66
66
|
field :vendor_status, -> { Integer }, optional: true, nullable: false, api_name: "vendorStatus"
|
|
67
67
|
|
|
68
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "issue1099"
|
|
69
|
+
|
|
68
70
|
field :zip, -> { String }, optional: true, nullable: false
|
|
69
71
|
|
|
70
72
|
field :default_method_id, -> { String }, optional: true, nullable: false, api_name: "defaultMethodId"
|
|
@@ -33,6 +33,8 @@ module Payabli
|
|
|
33
33
|
|
|
34
34
|
field :location_code, -> { String }, optional: false, nullable: false, api_name: "LocationCode"
|
|
35
35
|
|
|
36
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "Issue1099"
|
|
37
|
+
|
|
36
38
|
field :contacts, -> { Internal::Types::Array[Payabli::Types::ContactsResponse] }, optional: false, nullable: false, api_name: "Contacts"
|
|
37
39
|
|
|
38
40
|
field :billing_data, -> { Payabli::Types::VendorResponseBillingData }, optional: false, nullable: false, api_name: "BillingData"
|
|
@@ -27,6 +27,8 @@ module Payabli
|
|
|
27
27
|
|
|
28
28
|
field :location_code, -> { String }, optional: true, nullable: false, api_name: "LocationCode"
|
|
29
29
|
|
|
30
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "Issue1099"
|
|
31
|
+
|
|
30
32
|
field :mcc, -> { String }, optional: true, nullable: false, api_name: "Mcc"
|
|
31
33
|
|
|
32
34
|
field :name_1, -> { String }, optional: false, nullable: false, api_name: "Name1"
|
|
@@ -33,6 +33,8 @@ module Payabli
|
|
|
33
33
|
|
|
34
34
|
field :location_code, -> { String }, optional: false, nullable: true, api_name: "LocationCode"
|
|
35
35
|
|
|
36
|
+
field :issue_1099, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "Issue1099"
|
|
37
|
+
|
|
36
38
|
field :contacts, -> { Internal::Types::Array[Payabli::Types::ContactsResponse] }, optional: false, nullable: true, api_name: "Contacts"
|
|
37
39
|
|
|
38
40
|
field :billing_data, -> { Payabli::Types::BillingDataResponse }, optional: false, nullable: true, api_name: "BillingData"
|
data/lib/payabli/version.rb
CHANGED
data/lib/payabli.rb
CHANGED
|
@@ -71,6 +71,7 @@ require_relative "payabli/types/bill_id"
|
|
|
71
71
|
require_relative "payabli/types/email"
|
|
72
72
|
require_relative "payabli/types/mcc"
|
|
73
73
|
require_relative "payabli/types/location_code"
|
|
74
|
+
require_relative "payabli/types/issue_1099"
|
|
74
75
|
require_relative "payabli/types/contacts_response"
|
|
75
76
|
require_relative "payabli/types/vendor_response_billing_data"
|
|
76
77
|
require_relative "payabli/types/vendor_data_response_payment_method"
|
|
@@ -153,6 +154,7 @@ require_relative "payabli/types/risk_action"
|
|
|
153
154
|
require_relative "payabli/types/risk_action_code"
|
|
154
155
|
require_relative "payabli/types/payout_program"
|
|
155
156
|
require_relative "payabli/types/transaction_out_query_record"
|
|
157
|
+
require_relative "payabli/types/bill_transaction_reference"
|
|
156
158
|
require_relative "payabli/types/general_events"
|
|
157
159
|
require_relative "payabli/types/bill_events"
|
|
158
160
|
require_relative "payabli/types/bill_query_record_2_bill_approvals_item"
|
|
@@ -225,6 +227,9 @@ require_relative "payabli/types/batch_number"
|
|
|
225
227
|
require_relative "payabli/types/transaction_time"
|
|
226
228
|
require_relative "payabli/types/query_c_fee_transaction"
|
|
227
229
|
require_relative "payabli/types/device"
|
|
230
|
+
require_relative "payabli/types/query_device_data"
|
|
231
|
+
require_relative "payabli/types/device_entry_mode"
|
|
232
|
+
require_relative "payabli/types/emv_auth_data"
|
|
228
233
|
require_relative "payabli/types/external_processor_information"
|
|
229
234
|
require_relative "payabli/types/operation"
|
|
230
235
|
require_relative "payabli/types/order_id"
|
|
@@ -518,6 +523,7 @@ require_relative "payabli/types/replyby"
|
|
|
518
523
|
require_relative "payabli/types/query_chargebacks_response_records_item"
|
|
519
524
|
require_relative "payabli/types/query_chargebacks_response"
|
|
520
525
|
require_relative "payabli/types/query_customer_response"
|
|
526
|
+
require_relative "payabli/types/device_query_record_operational_status"
|
|
521
527
|
require_relative "payabli/types/device_query_record"
|
|
522
528
|
require_relative "payabli/types/query_device_response"
|
|
523
529
|
require_relative "payabli/types/query_response_notification_reports_records_item"
|
|
@@ -876,6 +882,8 @@ require_relative "payabli/types/vendor_call_status_failed"
|
|
|
876
882
|
require_relative "payabli/types/vendor_call_status_response"
|
|
877
883
|
require_relative "payabli/types/create_ghost_card_response_data"
|
|
878
884
|
require_relative "payabli/types/create_ghost_card_response"
|
|
885
|
+
require_relative "payabli/types/delete_ghost_card_response_data"
|
|
886
|
+
require_relative "payabli/types/delete_ghost_card_response"
|
|
879
887
|
require_relative "payabli/types/card_status"
|
|
880
888
|
require_relative "payabli/types/authorize_payment_method"
|
|
881
889
|
require_relative "payabli/types/vendor_check_number"
|
|
@@ -903,6 +911,7 @@ require_relative "payabli/types/renew_v_card_response_data"
|
|
|
903
911
|
require_relative "payabli/types/renew_v_card_response"
|
|
904
912
|
require_relative "payabli/types/operation_result"
|
|
905
913
|
require_relative "payabli/types/allowed_check_payment_status"
|
|
914
|
+
require_relative "payabli/types/next_check_number_response"
|
|
906
915
|
require_relative "payabli/types/reissue_payment_method"
|
|
907
916
|
require_relative "payabli/types/reissue_payout_response_data"
|
|
908
917
|
require_relative "payabli/types/reissue_payout_response"
|