Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/checkout_sdk/payments/payments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
require 'checkout_sdk/payments/user_action'
require 'checkout_sdk/payments/three_ds_request'
require 'checkout_sdk/payments/product_type'
require 'checkout_sdk/payments/product_item_type'
require 'checkout_sdk/payments/product_sub_type'
require 'checkout_sdk/payments/payout_billing_descriptor'
require 'checkout_sdk/payments/shipping_details'
require 'checkout_sdk/payments/payer'
Expand Down
8 changes: 6 additions & 2 deletions lib/checkout_sdk/payments/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
module CheckoutSdk
module Payments
# @!attribute type
# @return [String]
# The item type. For example, +physical+ or +digital+.
# [Optional]
# @return [String, nil] {ProductItemType}
# @!attribute sub_type
# @return [String] {ProductSubType}
# The digital item type. Required if +type+ is set to +digital+.
# [Optional]
# @return [String, nil] {ProductSubType}
# @!attribute name
# @return [String]
# @!attribute quantity
Expand Down
11 changes: 11 additions & 0 deletions lib/checkout_sdk/payments/product_item_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

module CheckoutSdk
module Payments
module ProductItemType
DIGITAL = 'digital'
DISCOUNT = 'discount'
PHYSICAL = 'physical'
end
end
end
Loading