checkout_sdk 2.2.1 → 2.3.0

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: e35da1d54a7c25ab2755f6147131dab80f8b274dca9e361cfba0f81bfaf95a8c
4
- data.tar.gz: 54388ec13a0da6428ce39e6b3f4c62e3782efbd199d0d5eaaef20d9af5602321
3
+ metadata.gz: 10c1640f0771e6b8ad38799a40a00322c5347fdacedce0669c6920b4a4a36199
4
+ data.tar.gz: 43d03c65b9a2ecfa94b50116f86db22aa5a86f1698d9bb134c2d5f49bd672d31
5
5
  SHA512:
6
- metadata.gz: 47c7d8fea40f55d4d7103ab1d3fefbe6115ac533923572b2c3c8bf637353df3fea222efa8c5c704f2b29d60e0eb934dc6f4241b6a4668c615825fd0c77aed378
7
- data.tar.gz: d9ff05b691c3113cd3dd1fed536591ef16001dc0c0d0f5d3688be2224d94be8795a763025674ad41e20b2bd9c43d1066c39a14eca4ef0d908ad88c8b4aef5fb3
6
+ metadata.gz: 43f590d48d61549fa90ade59902f394efb2c79e06a76775fe531493e275506f665168be87c6aef6947f6664e66b4a3c2c046925ca858a08bc3a5bff8c5c7ac02
7
+ data.tar.gz: dd687b3f02bed8008e0ae4aabe23bd948251a78274d71f48da80a657d3c2dd266fcd98eb2bc7a4bebe0dcb21844e61eb2bb222fd5b835cbc5537cca98e895b6b
@@ -213,6 +213,16 @@ require 'checkout_sdk/payments/setups/payment_setup_account_funding_transaction'
213
213
  require 'checkout_sdk/payments/setups/payment_setup_billing_descriptor'
214
214
  require 'checkout_sdk/payments/setups/payment_setup_presentment_details'
215
215
  require 'checkout_sdk/payments/setups/payment_setup_terminal'
216
+ require 'checkout_sdk/payments/setups/payment_setup_accommodation_address'
217
+ require 'checkout_sdk/payments/setups/payment_setup_accommodation_guest'
218
+ require 'checkout_sdk/payments/setups/payment_setup_accommodation_room'
219
+ require 'checkout_sdk/payments/setups/payment_setup_accommodation_host'
220
+ require 'checkout_sdk/payments/setups/payment_setup_accommodation'
221
+ require 'checkout_sdk/payments/setups/payment_setup_airline_ticket'
222
+ require 'checkout_sdk/payments/setups/payment_setup_airline_passenger'
223
+ require 'checkout_sdk/payments/setups/payment_setup_airline_insurance'
224
+ require 'checkout_sdk/payments/setups/payment_setup_airline'
225
+ require 'checkout_sdk/payments/setups/payment_setup_industry'
216
226
  require 'checkout_sdk/payments/setups/blik_payment_method'
217
227
  require 'checkout_sdk/payments/setups/bacs_payment_method'
218
228
  require 'checkout_sdk/payments/setups/card_present_payment_method'
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # Details about an accommodation booking (lodging or cruise).
6
+ #
7
+ # @!attribute name
8
+ # @return [String] For lodging, the lodging name that appears on the storefront/customer
9
+ # receipts. For cruise, the ship name booked for the cruise.
10
+ # @!attribute booking_reference
11
+ # @return [String] A unique identifier for the booking.
12
+ # @!attribute check_in_date
13
+ # @return [String] For lodging bookings, the customer's check-in date. For cruise bookings,
14
+ # the cruise departure date (sail date). Format: YYYY-MM-DD.
15
+ # @!attribute check_out_date
16
+ # @return [String] For lodging bookings, the customer's check-out date. For cruise bookings,
17
+ # the cruise return date. Format: YYYY-MM-DD.
18
+ # @!attribute address
19
+ # @return [PaymentSetupAccommodationAddress] The accommodation's address.
20
+ # @!attribute number_of_rooms
21
+ # @return [Integer] The total number of rooms booked for the accommodation.
22
+ # @!attribute guests
23
+ # @return [Array(PaymentSetupAccommodationGuest)] The list of guests staying at the
24
+ # accommodation.
25
+ # @!attribute room
26
+ # @return [Array(PaymentSetupAccommodationRoom)] The list of rooms booked by the customer.
27
+ # @!attribute total_number_of_guests
28
+ # @return [Integer] The total number of guests on the booking.
29
+ # @!attribute refundable
30
+ # @return [Boolean] Specifies whether the booking is refundable.
31
+ # @!attribute delivery_recipient
32
+ # @return [String] The recipient the booking confirmation is delivered to.
33
+ # @!attribute host
34
+ # @return [PaymentSetupAccommodationHost] Details about the host of the accommodation.
35
+ class PaymentSetupAccommodation
36
+ attr_accessor :name,
37
+ :booking_reference,
38
+ :check_in_date,
39
+ :check_out_date,
40
+ :address,
41
+ :number_of_rooms,
42
+ :guests,
43
+ :room,
44
+ :total_number_of_guests,
45
+ :refundable,
46
+ :delivery_recipient,
47
+ :host
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # The accommodation's address.
6
+ #
7
+ # @!attribute address_line1
8
+ # @return [String] The first line of the address.
9
+ # @!attribute city
10
+ # @return [String] The city of the address.
11
+ # @!attribute state
12
+ # @return [String] The state of the address.
13
+ # @!attribute country
14
+ # @return [String] The country of the address, as an ISO 3166-1 alpha-2 country code.
15
+ # @!attribute zip
16
+ # @return [String] The postal/zip code of the address.
17
+ class PaymentSetupAccommodationAddress
18
+ attr_accessor :address_line1,
19
+ :city,
20
+ :state,
21
+ :country,
22
+ :zip
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # A guest staying at the accommodation.
6
+ #
7
+ # @!attribute first_name
8
+ # @return [String] The guest's first name.
9
+ # @!attribute last_name
10
+ # @return [String] The guest's last name.
11
+ # @!attribute date_of_birth
12
+ # @return [String] The guest's date of birth. Format: YYYY-MM-DD.
13
+ class PaymentSetupAccommodationGuest
14
+ attr_accessor :first_name,
15
+ :last_name,
16
+ :date_of_birth
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # Details about the host of the accommodation.
6
+ #
7
+ # @!attribute registration_date
8
+ # @return [String] The date the host registered. Format: YYYY-MM-DD.
9
+ # @!attribute total_reservation_count
10
+ # @return [Integer] The total number of reservations the host has received.
11
+ class PaymentSetupAccommodationHost
12
+ attr_accessor :registration_date,
13
+ :total_reservation_count
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # A room booked by the customer.
6
+ #
7
+ # @!attribute rate
8
+ # @return [Float] The nightly rate of the room.
9
+ # @!attribute number_of_nights
10
+ # @return [Integer] The number of nights booked for the room.
11
+ # @!attribute type
12
+ # @return [String] The type of room, for example "deluxe".
13
+ class PaymentSetupAccommodationRoom
14
+ attr_accessor :rate,
15
+ :number_of_nights,
16
+ :type
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # Details about an airline booking.
6
+ #
7
+ # @!attribute ticket
8
+ # @return [PaymentSetupAirlineTicket] Details about the airline ticket.
9
+ # @!attribute passengers
10
+ # @return [Array(PaymentSetupAirlinePassenger)] The list of passengers on the flight.
11
+ # @!attribute flight_leg_details
12
+ # @return [Array(FlightLegDetails)] The list of flight legs booked by the customer.
13
+ # @!attribute total_number_of_passengers
14
+ # @return [Integer] The total number of passengers on the booking.
15
+ # @!attribute travel_type
16
+ # @return [String] The type of travel, for example "international" or "domestic".
17
+ # @!attribute trip_type
18
+ # @return [String] The type of trip, for example "one_way" or "round_trip".
19
+ # @!attribute refundable
20
+ # @return [Boolean] Specifies whether the booking is refundable.
21
+ # @!attribute delivery_recipient
22
+ # @return [String] The recipient the ticket is delivered to.
23
+ # @!attribute ancillaries
24
+ # @return [String] Any additional add-ons purchased with the booking, for example
25
+ # "extra_baggage".
26
+ # @!attribute insurance
27
+ # @return [PaymentSetupAirlineInsurance] Details about the travel insurance purchased with
28
+ # the booking.
29
+ class PaymentSetupAirline
30
+ attr_accessor :ticket,
31
+ :passengers,
32
+ :flight_leg_details,
33
+ :total_number_of_passengers,
34
+ :travel_type,
35
+ :trip_type,
36
+ :refundable,
37
+ :delivery_recipient,
38
+ :ancillaries,
39
+ :insurance
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # The price of the travel insurance.
6
+ #
7
+ # @!attribute amount
8
+ # @return [Float] The insurance price amount.
9
+ # @!attribute currency
10
+ # @return [String] The insurance price currency, as a three-letter ISO currency code.
11
+ class PaymentSetupAirlineInsurancePrice
12
+ attr_accessor :amount,
13
+ :currency
14
+ end
15
+
16
+ # Details about the travel insurance purchased with the booking.
17
+ #
18
+ # @!attribute type
19
+ # @return [String] The type of insurance purchased.
20
+ # @!attribute company
21
+ # @return [String] The name of the insurance company.
22
+ # @!attribute price
23
+ # @return [PaymentSetupAirlineInsurancePrice] The price of the insurance.
24
+ class PaymentSetupAirlineInsurance
25
+ attr_accessor :type,
26
+ :company,
27
+ :price
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # Partial address information for a payment setup airline passenger.
6
+ #
7
+ # @!attribute country
8
+ # @return [String] The passenger's country, as an ISO 3166-1 alpha-2 country code.
9
+ class PaymentSetupAirlinePassengerAddress
10
+ attr_accessor :country
11
+ end
12
+
13
+ # A passenger on the flight.
14
+ #
15
+ # @!attribute first_name
16
+ # @return [String] The passenger's first name.
17
+ # @!attribute last_name
18
+ # @return [String] The passenger's last name.
19
+ # @!attribute date_of_birth
20
+ # @return [String] The passenger's date of birth. Format: YYYY-MM-DD.
21
+ # @!attribute address
22
+ # @return [PaymentSetupAirlinePassengerAddress] The passenger's address.
23
+ class PaymentSetupAirlinePassenger
24
+ attr_accessor :first_name,
25
+ :last_name,
26
+ :date_of_birth,
27
+ :address
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # Details about the airline ticket.
6
+ #
7
+ # @!attribute number
8
+ # @return [String] The ticket number.
9
+ # @!attribute issue_date
10
+ # @return [String] The date the ticket was issued. Format: YYYY-MM-DD.
11
+ # @!attribute issuing_carrier_code
12
+ # @return [String] The code of the carrier that issued the ticket.
13
+ # @!attribute travel_package_indicator
14
+ # @return [String] Indicates whether the ticket is part of a travel package.
15
+ # @!attribute travel_agency_name
16
+ # @return [String] The name of the travel agency that issued the ticket.
17
+ # @!attribute travel_agency_code
18
+ # @return [String] The code of the travel agency that issued the ticket.
19
+ class PaymentSetupAirlineTicket
20
+ attr_accessor :number,
21
+ :issue_date,
22
+ :issuing_carrier_code,
23
+ :travel_package_indicator,
24
+ :travel_agency_name,
25
+ :travel_agency_code
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckoutSdk
4
+ module Payments
5
+ # Industry-specific details for the payment setup.
6
+ #
7
+ # @!attribute accommodation
8
+ # @return [Array(PaymentSetupAccommodation)] The list of accommodation bookings associated
9
+ # with the payment setup.
10
+ # @!attribute airline
11
+ # @return [Array(PaymentSetupAirline)] The list of airline bookings associated with the
12
+ # payment setup.
13
+ class PaymentSetupIndustry
14
+ attr_accessor :accommodation,
15
+ :airline
16
+ end
17
+ end
18
+ end
@@ -23,8 +23,10 @@ module CheckoutSdk
23
23
  #
24
24
  # @param [Hash] payment_setups_request
25
25
  # May include :billing_descriptor {PaymentSetupBillingDescriptor},
26
- # :presentment_details {PaymentSetupPresentmentDetails} and
27
- # :terminal {PaymentSetupTerminal}.
26
+ # :presentment_details {PaymentSetupPresentmentDetails},
27
+ # :terminal {PaymentSetupTerminal} and
28
+ # :industry {PaymentSetupIndustry} (containing :accommodation
29
+ # {Array(PaymentSetupAccommodation)} and :airline {Array(PaymentSetupAirline)}).
28
30
  def create_payment_setup(payment_setups_request)
29
31
  api_client.invoke_post(
30
32
  build_path(PAYMENTS_PATH, SETUPS_PATH),
@@ -42,8 +44,10 @@ module CheckoutSdk
42
44
  # @param [String] id - The unique identifier of the Payment Setup to update
43
45
  # @param [Hash] payment_setups_request
44
46
  # May include :billing_descriptor {PaymentSetupBillingDescriptor},
45
- # :presentment_details {PaymentSetupPresentmentDetails} and
46
- # :terminal {PaymentSetupTerminal}.
47
+ # :presentment_details {PaymentSetupPresentmentDetails},
48
+ # :terminal {PaymentSetupTerminal} and
49
+ # :industry {PaymentSetupIndustry} (containing :accommodation
50
+ # {Array(PaymentSetupAccommodation)} and :airline {Array(PaymentSetupAirline)}).
47
51
  def update_payment_setup(id, payment_setups_request)
48
52
  api_client.invoke_put(
49
53
  build_path(PAYMENTS_PATH, SETUPS_PATH, id),
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CheckoutSdk
4
- VERSION = '2.2.1'
4
+ VERSION = '2.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkout_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Checkout
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-16 00:00:00.000000000 Z
11
+ date: 2026-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -566,8 +566,18 @@ files:
566
566
  - lib/checkout_sdk/payments/setups/blik_payment_method.rb
567
567
  - lib/checkout_sdk/payments/setups/card_present_payment_method.rb
568
568
  - lib/checkout_sdk/payments/setups/pay_by_bank_payment_method.rb
569
+ - lib/checkout_sdk/payments/setups/payment_setup_accommodation.rb
570
+ - lib/checkout_sdk/payments/setups/payment_setup_accommodation_address.rb
571
+ - lib/checkout_sdk/payments/setups/payment_setup_accommodation_guest.rb
572
+ - lib/checkout_sdk/payments/setups/payment_setup_accommodation_host.rb
573
+ - lib/checkout_sdk/payments/setups/payment_setup_accommodation_room.rb
569
574
  - lib/checkout_sdk/payments/setups/payment_setup_account_funding_transaction.rb
575
+ - lib/checkout_sdk/payments/setups/payment_setup_airline.rb
576
+ - lib/checkout_sdk/payments/setups/payment_setup_airline_insurance.rb
577
+ - lib/checkout_sdk/payments/setups/payment_setup_airline_passenger.rb
578
+ - lib/checkout_sdk/payments/setups/payment_setup_airline_ticket.rb
570
579
  - lib/checkout_sdk/payments/setups/payment_setup_billing_descriptor.rb
580
+ - lib/checkout_sdk/payments/setups/payment_setup_industry.rb
571
581
  - lib/checkout_sdk/payments/setups/payment_setup_presentment_details.rb
572
582
  - lib/checkout_sdk/payments/setups/payment_setup_terminal.rb
573
583
  - lib/checkout_sdk/payments/setups/payment_setups_client.rb