-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15d1b1f
commit f790bf7
Showing
8 changed files
with
157 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
module CheckoutSdk | ||
module Payments | ||
# @!attribute store_payment_details | ||
# @return [String] {StorePaymentDetailsType} | ||
class Card | ||
attr_accessor :store_payment_details | ||
end | ||
end | ||
end |
11 changes: 11 additions & 0 deletions
11
lib/checkout_sdk/payments/sessions/payment_method_configuration.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
module CheckoutSdk | ||
module Payments | ||
# @!attribute card | ||
# @return [Card] | ||
class PaymentMethodConfiguration | ||
attr_accessor :card | ||
end | ||
end | ||
end |
20 changes: 20 additions & 0 deletions
20
lib/checkout_sdk/payments/sessions/payment_methods_type.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
module CheckoutSdk | ||
module Payments | ||
module PaymentMethodsType | ||
APPLEPAY = 'applepay' | ||
BANCONTACT = 'bancontact' | ||
CARD = 'card' | ||
EPS = 'eps' | ||
GIROPAY = 'giropay' | ||
GOOGLEPAY = 'googlepay' | ||
IDEAL = 'ideal' | ||
KNET = 'knet' | ||
MULTIBANCO = 'multibanco' | ||
PRZELEWY24 = 'p24' | ||
PAYPAL = 'paypal' | ||
SOFORT = 'sofort' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
lib/checkout_sdk/payments/sessions/payment_sessions_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# frozen_string_literal: true | ||
|
||
module CheckoutSdk | ||
module Payments | ||
# @!attribute amount | ||
# @return [Integer] | ||
# @!attribute currency | ||
# @return [String] {CheckoutSdk::Common::Currency} | ||
# @!attribute payment_type | ||
# @return [TrueClass, FalseClass] | ||
# @!attribute billing | ||
# @return [BillingInformation] | ||
# @!attribute billing_descriptor | ||
# @return [BillingDescriptor] | ||
# @!attribute reference | ||
# @return [String] | ||
# @!attribute description | ||
# @return [String] | ||
# @!attribute customer | ||
# @return [CheckoutSdk::Common::CustomerRequest] | ||
# @!attribute shipping | ||
# @return [ShippingDetails] | ||
# @!attribute recipient | ||
# @return [PaymentRecipient] | ||
# @!attribute processing | ||
# @return [ProcessingSettings] | ||
# @!attribute processing_channel_id | ||
# @return [String] | ||
# @!attribute expires_on | ||
# @return [Time] | ||
# @!attribute payment_method_configuration | ||
# @return [PaymentMethodConfiguration] | ||
# @!attribute enabled_payment_methods | ||
# @return [Array(PaymentMethodsType)] | ||
# @!attribute disabled_payment_methods | ||
# @return [Array(PaymentMethodsType)] | ||
# @!attribute items | ||
# @return [Array(Product)] | ||
# @!attribute amount_allocations | ||
# @return [Array(CheckoutSdk::Common::AmountAllocations)] | ||
# @!attribute risk | ||
# @return [RiskRequest] | ||
# @!attribute retry | ||
# @return [PaymentRetryRequest] | ||
# @!attribute display_name | ||
# @return [String] | ||
# @!attribute success_url | ||
# @return [String] | ||
# @!attribute failure_url | ||
# @return [String] | ||
# @!attribute metadata | ||
# @return [Hash{String => Object}] | ||
# @!attribute locale | ||
# @return [String] | ||
# @!attribute three_ds | ||
# @return [ThreeDSRequest] | ||
# @!attribute sender | ||
# @return [Sender] | ||
# @!attribute capture | ||
# @return [TrueClass, FalseClass] | ||
# @!attribute ip_address | ||
# @return [String] | ||
# @!attribute tax_amount | ||
# @return [Integer] | ||
class PaymentSessionsRequest | ||
attr_accessor :amount, | ||
:currency, | ||
:payment_type, | ||
:billing, | ||
:billing_descriptor, | ||
:reference, | ||
:description, | ||
:customer, | ||
:shipping, | ||
:recipient, | ||
:processing, | ||
:processing_channel_id, | ||
:expires_on, | ||
:payment_method_configuration, | ||
:enabled_payment_methods, | ||
:disabled_payment_methods, | ||
:items, | ||
:amount_allocations, | ||
:risk, | ||
:retry, | ||
:display_name, | ||
:success_url, | ||
:failure_url, | ||
:metadata, | ||
:locale, | ||
:three_ds, | ||
:sender, | ||
:capture, | ||
:ip_address, | ||
:tax_amount | ||
end | ||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
lib/checkout_sdk/payments/sessions/store_payment_details_type.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
module CheckoutSdk | ||
module Payments | ||
module StorePaymentDetailsType | ||
DISABLED = 'disabled' | ||
ENABLED = 'enabled' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters