payabli 3.0.8 → 3.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cea61d10b3cafacb06c10380c78c3614ef5567afe7daeca9b59b6395da35140
4
- data.tar.gz: 2583dd669a4c9927bbd4d70cde26346ae9fc8767e1cffe63e51392cc377305e6
3
+ metadata.gz: 5592e568d992b9b084033c2084cdf8fbb9f8dcf6cf741779dffbe0729b1c9756
4
+ data.tar.gz: 5371e7e363edd80deace02b87c77ca2b509b9cb739172159a370237df52c9bf7
5
5
  SHA512:
6
- metadata.gz: 1c9f0e871ea5bea7767c60a3adc6a3aef47e847288bf9a956500219b65e11f5154a826ecc67f8a52d017e01a3258fb945b7ae4cd22370a7cb02de6c719f363f1
7
- data.tar.gz: f2bea200f260b7ab5b473647131f29711b24bee0cf42cb9ebffbb73a45a4895b4ff4c7271a3f97437e45317e583b288b54d1d212905af8fe2af9ab760dd2873f
6
+ metadata.gz: b6f5371080ad1ac24f97dbdd649b5eccfe4bbf96e346ff94360734ec1498154863ea0ce54c1afbdbfbd5b59c3c881eb9a3f1c88c6485964d3fe498c4f636d4e9
7
+ data.tar.gz: 28d44e720fa0625f83627bd6d367abf6b1a8ef45e95cf8ec9d3fe7ab08d382f3b0239b0fe35dc30fcd97300d9d12be488a41af51c08a6507b025db7abf8e4007
data/.fern/metadata.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "cliVersion": "5.95.1",
2
+ "cliVersion": "5.98.1",
3
3
  "generatorName": "fernapi/fern-ruby-sdk",
4
4
  "generatorVersion": "1.23.0",
5
5
  "generatorConfig": {
@@ -7,10 +7,10 @@
7
7
  "rubocopVariableNumberStyle": "snake_case",
8
8
  "respectOptionalRequestBody": true
9
9
  },
10
- "originGitCommit": "c0d928adb5a06dd2f0f02ec1e68e0159c230e3b6",
10
+ "originGitCommit": "2adc358322dabc538c0685e4f8aba68a245a8501",
11
11
  "originGitCommitIsDirty": true,
12
12
  "invokedBy": "ci",
13
- "requestedVersion": "3.0.8",
13
+ "requestedVersion": "3.0.10",
14
14
  "ciProvider": "github",
15
- "sdkVersion": "3.0.8"
15
+ "sdkVersion": "3.0.10"
16
16
  }
@@ -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.8",
35
+ "User-Agent" => "payabli/3.0.10",
36
36
  "X-Fern-Language" => "Ruby"
37
37
  },
38
38
  auth_provider: Payabli::Internal::RoutingAuthProvider.new(
@@ -123,6 +123,11 @@ module Payabli
123
123
  @notificationlogs ||= Payabli::Notificationlogs::Client.new(client: @raw_client)
124
124
  end
125
125
 
126
+ # @return [Payabli::Device::Client]
127
+ def device
128
+ @device ||= Payabli::Device::Client.new(client: @raw_client)
129
+ end
130
+
126
131
  # @return [Payabli::Cloud::Client]
127
132
  def cloud
128
133
  @cloud ||= Payabli::Cloud::Client.new(client: @raw_client)
@@ -149,8 +149,8 @@ module Payabli
149
149
  end
150
150
  end
151
151
 
152
- # Use [List devices by paypoint](/developers/api-reference/cloud/get-list-of-devices-for-a-paypoint) instead,
153
- # which supports filters, sorting, and pagination.
152
+ # Use [List devices by paypoint](/developers/api-reference/get-list-of-devices-for-a-paypoint) instead, which
153
+ # supports filters, sorting, and pagination.
154
154
  #
155
155
  # Get a list of cloud devices registered to an entrypoint.
156
156
  #
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payabli
4
+ module Device
5
+ class Client
6
+ # @param client [Payabli::Internal::Http::RawClient]
7
+ #
8
+ # @return [void]
9
+ def initialize(client:)
10
+ @client = client
11
+ end
12
+
13
+ # Generates a one-time, 6-digit verification code for activating a
14
+ # semi-integrated card-present device in a paypoint. After calling this endpoint, an operator enters the returned
15
+ # code
16
+ # on the device's terminal, along with a device name, to register the
17
+ # device to the paypoint resolved from `{entry}`.
18
+ #
19
+ # A code expires 5 minutes after it's issued. A paypoint can have several
20
+ # codes active at once — for example, when activating a batch of devices —
21
+ # and a code binds to whichever device enters it first.
22
+ #
23
+ # Authenticate with an OAuth2 Bearer token that has the `device_registry` scope.
24
+ #
25
+ # @param request_options [Hash]
26
+ # @param params [Hash]
27
+ # @option request_options [String] :base_url
28
+ # @option request_options [Hash{String => Object}] :additional_headers
29
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
30
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
31
+ # @option request_options [Integer] :timeout_in_seconds
32
+ # @option params [String] :entry
33
+ #
34
+ # @example
35
+ # client.device.challenge(entry: "8cfec329267")
36
+ #
37
+ # @return [Payabli::Types::DeviceChallengeResponse]
38
+ def challenge(request_options: {}, **params)
39
+ params = Payabli::Internal::Types::Utils.normalize_keys(params)
40
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }])
41
+ request = Payabli::Internal::JSON::Request.new(
42
+ base_url: request_options[:base_url],
43
+ method: "POST",
44
+ path: "Device/challenge/#{URI.encode_uri_component(params[:entry].to_s)}",
45
+ headers: headers,
46
+ request_options: request_options
47
+ )
48
+ begin
49
+ response = @client.send(request)
50
+ rescue Net::HTTPRequestTimeout
51
+ raise Payabli::Errors::TimeoutError
52
+ end
53
+ code = response.code.to_i
54
+ if code.between?(200, 299)
55
+ Payabli::Types::DeviceChallengeResponse.load(response.body)
56
+ else
57
+ error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
58
+ raise error_class.new(response.body, code: code)
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -23,7 +23,7 @@ module Payabli
23
23
  #
24
24
  # @example
25
25
  # client.funding.deposit_funds(
26
- # amount: 10,
26
+ # amount: 1500,
27
27
  # entrypoint: "48acde49",
28
28
  # account_id: "333"
29
29
  # )
@@ -36,22 +36,12 @@ module Payabli
36
36
  #
37
37
  # @example
38
38
  # client.money_in.authorize(
39
- # customer_data: {
40
- # customer_id: 4440
41
- # },
42
- # entry_point: "8cfec329267",
43
- # ipaddress: "255.255.255.255",
44
39
  # payment_details: {
45
- # service_fee: 0,
46
- # total_amount: 100
40
+ # total_amount: 1.1
47
41
  # },
48
42
  # payment_method: {
49
- # cardcvv: "999",
50
- # cardexp: "02/27",
51
- # card_holder: "John Cassian",
52
- # cardnumber: "4111111111111111",
53
- # cardzip: "12345",
54
- # initiator: "payor",
43
+ # cardexp: "cardexp",
44
+ # cardnumber: "cardnumber",
55
45
  # method_: "card"
56
46
  # }
57
47
  # )
@@ -113,8 +103,8 @@ module Payabli
113
103
  #
114
104
  # @example
115
105
  # client.money_in.capture(
116
- # trans_id: "10-7d9cd67d-2d5d-4cd7-a1b7-72b8b201ec13",
117
- # amount: 0
106
+ # trans_id: "transId",
107
+ # amount: 1.1
118
108
  # )
119
109
  #
120
110
  # @return [Payabli::Types::CaptureResponse]
@@ -168,10 +158,9 @@ module Payabli
168
158
  #
169
159
  # @example
170
160
  # client.money_in.capture_auth(
171
- # trans_id: "10-7d9cd67d-2d5d-4cd7-a1b7-72b8b201ec13",
161
+ # trans_id: "transId",
172
162
  # payment_details: {
173
- # total_amount: 105,
174
- # service_fee: 5
163
+ # total_amount: 1.1
175
164
  # }
176
165
  # )
177
166
  #
@@ -341,22 +330,12 @@ module Payabli
341
330
  #
342
331
  # @example
343
332
  # client.money_in.getpaid(
344
- # customer_data: {
345
- # customer_id: 4440
346
- # },
347
- # entry_point: "8cfec329267",
348
- # ipaddress: "255.255.255.255",
349
333
  # payment_details: {
350
- # service_fee: 0,
351
- # total_amount: 100
334
+ # total_amount: 1.1
352
335
  # },
353
336
  # payment_method: {
354
- # cardcvv: "999",
355
- # cardexp: "02/27",
356
- # card_holder: "John Cassian",
357
- # cardnumber: "4111111111111111",
358
- # cardzip: "12345",
359
- # initiator: "payor",
337
+ # cardexp: "cardexp",
338
+ # cardnumber: "cardnumber",
360
339
  # method_: "card"
361
340
  # }
362
341
  # )
@@ -426,8 +405,8 @@ module Payabli
426
405
  #
427
406
  # @example
428
407
  # client.money_in.reverse(
429
- # trans_id: "10-3ffa27df-b171-44e0-b251-e95fbfc7a723",
430
- # amount: 0
408
+ # trans_id: "transId",
409
+ # amount: 1.1
431
410
  # )
432
411
  #
433
412
  # @return [Payabli::Types::ReverseResponse]
@@ -478,8 +457,8 @@ module Payabli
478
457
  #
479
458
  # @example
480
459
  # client.money_in.refund(
481
- # trans_id: "10-3ffa27df-b171-44e0-b251-e95fbfc7a723",
482
- # amount: 0
460
+ # trans_id: "transId",
461
+ # amount: 1.1
483
462
  # )
484
463
  #
485
464
  # @return [Payabli::Types::RefundResponse]
@@ -529,26 +508,7 @@ module Payabli
529
508
  # @option params [String, nil] :idempotency_key
530
509
  #
531
510
  # @example
532
- # client.money_in.refund_with_instructions(
533
- # trans_id: "10-3ffa27df-b171-44e0-b251-e95fbfc7a723",
534
- # idempotency_key: "8A29FC40-CA47-1067-B31D-00DD010662DB",
535
- # amount: 100,
536
- # order_description: "Materials deposit",
537
- # refund_details: {
538
- # split_refunding: [{
539
- # origination_entry_point: "7f1a381696",
540
- # account_id: "187-342",
541
- # description: "Refunding undelivered materials",
542
- # amount: 60
543
- # }, {
544
- # origination_entry_point: "7f1a381696",
545
- # account_id: "187-343",
546
- # description: "Refunding deposit for undelivered materials",
547
- # amount: 40
548
- # }]
549
- # },
550
- # source: "api"
551
- # )
511
+ # client.money_in.refund_with_instructions(trans_id: "transId")
552
512
  #
553
513
  # @return [Payabli::Types::RefundWithInstructionsResponse]
554
514
  def refund_with_instructions(request_options: {}, **params)
@@ -747,7 +707,7 @@ module Payabli
747
707
  # @option params [String] :trans_id
748
708
  #
749
709
  # @example
750
- # client.money_in.void(trans_id: "10-3ffa27df-b171-44e0-b251-e95fbfc7a723")
710
+ # client.money_in.void(trans_id: "transId")
751
711
  #
752
712
  # @return [Payabli::Types::VoidResponse]
753
713
  def void(request_options: {}, **params)
@@ -39,7 +39,6 @@ module Payabli
39
39
  # @option request_options [Integer] :timeout_in_seconds
40
40
  # @option params [Boolean, nil] :allow_duplicated_bills
41
41
  # @option params [Boolean, nil] :do_not_create_bills
42
- # @option params [Boolean, nil] :force_vendor_creation
43
42
  # @option params [Boolean, nil] :same_day_ach
44
43
  # @option params [String, nil] :idempotency_key
45
44
  #
@@ -67,13 +66,12 @@ module Payabli
67
66
  def authorize_out(request_options: {}, **params)
68
67
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
69
68
  request_data = Payabli::MoneyOut::Types::RequestOutAuthorize.new(params).to_h
70
- non_body_param_names = %w[allowDuplicatedBills doNotCreateBills forceVendorCreation sameDayACH idempotencyKey]
69
+ non_body_param_names = %w[allowDuplicatedBills doNotCreateBills sameDayACH idempotencyKey]
71
70
  body = request_data.except(*non_body_param_names)
72
71
 
73
72
  query_params = {}
74
73
  query_params["allowDuplicatedBills"] = params[:allow_duplicated_bills] if params.key?(:allow_duplicated_bills)
75
74
  query_params["doNotCreateBills"] = params[:do_not_create_bills] if params.key?(:do_not_create_bills)
76
- query_params["forceVendorCreation"] = params[:force_vendor_creation] if params.key?(:force_vendor_creation)
77
75
  query_params["sameDayACH"] = params[:same_day_ach] if params.key?(:same_day_ach)
78
76
 
79
77
  headers = {}
@@ -477,7 +475,7 @@ module Payabli
477
475
  request = Payabli::Internal::JSON::Request.new(
478
476
  base_url: request_options[:base_url],
479
477
  method: "POST",
480
- path: "vcard/send-card-link",
478
+ path: "MoneyOut/vcard/send-card-link",
481
479
  headers: headers,
482
480
  body: Payabli::MoneyOut::Types::SendVCardLinkRequest.new(params).to_h,
483
481
  request_options: request_options
@@ -8,8 +8,6 @@ module Payabli
8
8
 
9
9
  field :do_not_create_bills, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "doNotCreateBills"
10
10
 
11
- field :force_vendor_creation, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "forceVendorCreation"
12
-
13
11
  field :same_day_ach, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "sameDayACH"
14
12
 
15
13
  field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotencyKey"
@@ -28,7 +26,7 @@ module Payabli
28
26
 
29
27
  field :vendor_data, -> { Payabli::Types::RequestOutAuthorizeVendorData }, optional: false, nullable: false, api_name: "vendorData"
30
28
 
31
- field :invoice_data, -> { Internal::Types::Array[Payabli::Types::RequestOutAuthorizeInvoiceData] }, optional: false, nullable: false, api_name: "invoiceData"
29
+ field :invoice_data, -> { Internal::Types::Array[Payabli::Types::RequestOutAuthorizeInvoiceData] }, optional: true, nullable: false, api_name: "invoiceData"
32
30
 
33
31
  field :account_id, -> { String }, optional: true, nullable: false, api_name: "accountId"
34
32
 
@@ -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
@@ -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
@@ -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: true, nullable: false, 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"
@@ -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
@@ -4,9 +4,9 @@ module Payabli
4
4
  module Types
5
5
  # Payment method and transaction details
6
6
  class TransactionDetailPaymentData < Internal::Types::Model
7
- field :masked_account, -> { String }, optional: false, nullable: false, api_name: "maskedAccount"
7
+ field :masked_account, -> { String }, optional: false, nullable: true, api_name: "maskedAccount"
8
8
 
9
- field :account_type, -> { String }, optional: false, nullable: false, api_name: "accountType"
9
+ field :account_type, -> { String }, optional: false, nullable: true, api_name: "accountType"
10
10
 
11
11
  field :account_exp, -> { String }, optional: false, nullable: true, api_name: "accountExp"
12
12
 
@@ -14,7 +14,7 @@ module Payabli
14
14
 
15
15
  field :authcode, -> { String }, optional: false, nullable: true
16
16
 
17
- field :transactionid, -> { String }, optional: false, nullable: false
17
+ field :transactionid, -> { String }, optional: false, nullable: true
18
18
 
19
19
  field :avsresponse, -> { String }, optional: false, nullable: true
20
20
 
@@ -19,7 +19,7 @@ module Payabli
19
19
 
20
20
  field :external_processor_information, -> { String }, optional: false, nullable: false, api_name: "externalProcessorInformation"
21
21
 
22
- field :gateway_trans_id, -> { String }, optional: false, nullable: false, api_name: "gatewayTransId"
22
+ field :gateway_trans_id, -> { String }, optional: false, nullable: true, api_name: "gatewayTransId"
23
23
 
24
24
  field :order_id, -> { String }, optional: false, nullable: true, api_name: "orderId"
25
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Payabli
4
- VERSION = "3.0.8"
4
+ VERSION = "3.0.10"
5
5
  end
data/lib/payabli.rb CHANGED
@@ -279,6 +279,8 @@ require_relative "payabli/types/pay_method_stored_method_method"
279
279
  require_relative "payabli/types/pay_method_stored_method"
280
280
  require_relative "payabli/types/pay_method_cloud_method"
281
281
  require_relative "payabli/types/pay_method_cloud"
282
+ require_relative "payabli/types/pay_method_device_method"
283
+ require_relative "payabli/types/pay_method_device"
282
284
  require_relative "payabli/types/check_method"
283
285
  require_relative "payabli/types/check"
284
286
  require_relative "payabli/types/cash_method"
@@ -656,6 +658,8 @@ require_relative "payabli/types/string_string_key_value_pair"
656
658
  require_relative "payabli/types/key_value_array"
657
659
  require_relative "payabli/types/notification_log_detail"
658
660
  require_relative "payabli/types/bulk_retry_request"
661
+ require_relative "payabli/types/device_challenge_data"
662
+ require_relative "payabli/types/device_challenge_response"
659
663
  require_relative "payabli/types/add_device_response"
660
664
  require_relative "payabli/types/remove_device_response"
661
665
  require_relative "payabli/types/poi_device"
@@ -865,9 +869,7 @@ require_relative "payabli/types/card_status"
865
869
  require_relative "payabli/types/authorize_payment_method"
866
870
  require_relative "payabli/types/vendor_check_number"
867
871
  require_relative "payabli/types/request_out_authorize_payment_details"
868
- require_relative "payabli/types/request_out_authorize_vendor_billing_data"
869
872
  require_relative "payabli/types/request_out_authorize_vendor_data"
870
- require_relative "payabli/types/lot_number"
871
873
  require_relative "payabli/types/request_out_authorize_invoice_data"
872
874
  require_relative "payabli/types/auto_capture"
873
875
  require_relative "payabli/types/vendoridtrans"
@@ -1076,6 +1078,7 @@ require_relative "payabli/query/types/list_vcards_org_request"
1076
1078
  require_relative "payabli/ocr/client"
1077
1079
  require_relative "payabli/notificationlogs/client"
1078
1080
  require_relative "payabli/notificationlogs/types/search_notification_logs_request"
1081
+ require_relative "payabli/device/client"
1079
1082
  require_relative "payabli/cloud/client"
1080
1083
  require_relative "payabli/cloud/types/device_entry"
1081
1084
  require_relative "payabli/cloud/types/list_device_request"