sumup 0.0.1
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 +7 -0
- data/CHANGELOG.md +18 -0
- data/LICENSE +201 -0
- data/README.md +188 -0
- data/lib/sumup/client.rb +213 -0
- data/lib/sumup/errors.rb +45 -0
- data/lib/sumup/event_types.rb +115 -0
- data/lib/sumup/events.rb +168 -0
- data/lib/sumup/model.rb +109 -0
- data/lib/sumup/pagination.rb +92 -0
- data/lib/sumup/resource.rb +36 -0
- data/lib/sumup/resources/checkouts.rb +155 -0
- data/lib/sumup/resources/customers.rb +89 -0
- data/lib/sumup/resources/members.rb +93 -0
- data/lib/sumup/resources/memberships.rb +23 -0
- data/lib/sumup/resources/merchants.rb +51 -0
- data/lib/sumup/resources/payouts.rb +29 -0
- data/lib/sumup/resources/readers.rb +264 -0
- data/lib/sumup/resources/receipts.rb +23 -0
- data/lib/sumup/resources/roles.rb +89 -0
- data/lib/sumup/resources/sales.rb +66 -0
- data/lib/sumup/resources/tokens.rb +31 -0
- data/lib/sumup/resources/transactions.rb +61 -0
- data/lib/sumup/resources.rb +83 -0
- data/lib/sumup/transport.rb +40 -0
- data/lib/sumup/types.rb +4720 -0
- data/lib/sumup/version.rb +5 -0
- data/lib/sumup.rb +13 -0
- data/sig/sumup/events.rbs +64 -0
- data/sig/sumup/resources/checkouts.rbs +35 -0
- data/sig/sumup/resources/customers.rbs +25 -0
- data/sig/sumup/resources/members.rbs +25 -0
- data/sig/sumup/resources/memberships.rbs +13 -0
- data/sig/sumup/resources/merchants.rbs +17 -0
- data/sig/sumup/resources/payouts.rbs +13 -0
- data/sig/sumup/resources/readers.rbs +45 -0
- data/sig/sumup/resources/receipts.rbs +13 -0
- data/sig/sumup/resources/roles.rbs +25 -0
- data/sig/sumup/resources/sales.rbs +19 -0
- data/sig/sumup/resources/tokens.rbs +15 -0
- data/sig/sumup/resources/transactions.rbs +19 -0
- data/sig/sumup/types.rbs +1635 -0
- data/sig/sumup.rbs +183 -0
- metadata +149 -0
data/lib/sumup.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "sumup/version"
|
|
4
|
+
require_relative "sumup/model"
|
|
5
|
+
require_relative "sumup/types"
|
|
6
|
+
require_relative "sumup/errors"
|
|
7
|
+
require_relative "sumup/transport"
|
|
8
|
+
require_relative "sumup/client"
|
|
9
|
+
require_relative "sumup/resource"
|
|
10
|
+
require_relative "sumup/resources"
|
|
11
|
+
require_relative "sumup/events"
|
|
12
|
+
require_relative "sumup/event_types"
|
|
13
|
+
require_relative "sumup/pagination"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class CheckoutCreatedEvent < EventNotification
|
|
5
|
+
TYPE: String
|
|
6
|
+
def fetch_object: (?options: request_options) -> Types::Checkout
|
|
7
|
+
end
|
|
8
|
+
class CheckoutExpiredEvent < EventNotification
|
|
9
|
+
TYPE: String
|
|
10
|
+
def fetch_object: (?options: request_options) -> Types::Checkout
|
|
11
|
+
end
|
|
12
|
+
class CheckoutFailedEvent < EventNotification
|
|
13
|
+
TYPE: String
|
|
14
|
+
def fetch_object: (?options: request_options) -> Types::Checkout
|
|
15
|
+
end
|
|
16
|
+
class CheckoutPaidEvent < EventNotification
|
|
17
|
+
TYPE: String
|
|
18
|
+
def fetch_object: (?options: request_options) -> Types::Checkout
|
|
19
|
+
end
|
|
20
|
+
class CheckoutUpdatedEvent < EventNotification
|
|
21
|
+
TYPE: String
|
|
22
|
+
def fetch_object: (?options: request_options) -> Types::Checkout
|
|
23
|
+
end
|
|
24
|
+
class MemberCreatedEvent < EventNotification
|
|
25
|
+
TYPE: String
|
|
26
|
+
def fetch_object: (?options: request_options) -> Types::Member
|
|
27
|
+
end
|
|
28
|
+
class MemberDeletedEvent < EventNotification
|
|
29
|
+
TYPE: String
|
|
30
|
+
def fetch_object: (?options: request_options) -> Types::Member
|
|
31
|
+
end
|
|
32
|
+
class MemberUpdatedEvent < EventNotification
|
|
33
|
+
TYPE: String
|
|
34
|
+
def fetch_object: (?options: request_options) -> Types::Member
|
|
35
|
+
end
|
|
36
|
+
class ReaderCreatedEvent < EventNotification
|
|
37
|
+
TYPE: String
|
|
38
|
+
def fetch_object: (?options: request_options) -> Types::Reader
|
|
39
|
+
end
|
|
40
|
+
class ReaderDeletedEvent < EventNotification
|
|
41
|
+
TYPE: String
|
|
42
|
+
def fetch_object: (?options: request_options) -> Types::Reader
|
|
43
|
+
end
|
|
44
|
+
class RoleCreatedEvent < EventNotification
|
|
45
|
+
TYPE: String
|
|
46
|
+
def fetch_object: (?options: request_options) -> Types::Role
|
|
47
|
+
end
|
|
48
|
+
class RoleDeletedEvent < EventNotification
|
|
49
|
+
TYPE: String
|
|
50
|
+
def fetch_object: (?options: request_options) -> Types::Role
|
|
51
|
+
end
|
|
52
|
+
class RoleUpdatedEvent < EventNotification
|
|
53
|
+
TYPE: String
|
|
54
|
+
def fetch_object: (?options: request_options) -> Types::Role
|
|
55
|
+
end
|
|
56
|
+
class SaleCompletedEvent < EventNotification
|
|
57
|
+
TYPE: String
|
|
58
|
+
def fetch_object: (?options: request_options) -> Types::Sale
|
|
59
|
+
end
|
|
60
|
+
class SaleUpdatedEvent < EventNotification
|
|
61
|
+
TYPE: String
|
|
62
|
+
def fetch_object: (?options: request_options) -> Types::Sale
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def checkouts: () -> Resources::Checkouts
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Checkouts < Resource
|
|
9
|
+
def list_available_payment_methods: (merchant_code: String, ?amount: Numeric, ?currency: String, ?options: request_options) -> Types::GetPaymentMethodsResponse
|
|
10
|
+
def list_available_payment_methods_with_response: (merchant_code: String, ?amount: Numeric, ?currency: String, ?options: request_options) -> Response[Types::GetPaymentMethodsResponse]
|
|
11
|
+
def create: (body: Types::CheckoutCreateRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Checkout
|
|
12
|
+
| (?options: request_options, checkout_reference: String, amount: Numeric, currency: String, merchant_code: String, ?description: String, ?return_url: String, ?customer_id: String, ?purpose: String, ?valid_until: (String | nil), ?redirect_url: String, ?hosted_checkout: Types::HostedCheckout | Hash[Symbol | String, untyped]) -> Types::Checkout
|
|
13
|
+
def create_with_response: (body: Types::CheckoutCreateRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Checkout]
|
|
14
|
+
| (?options: request_options, checkout_reference: String, amount: Numeric, currency: String, merchant_code: String, ?description: String, ?return_url: String, ?customer_id: String, ?purpose: String, ?valid_until: (String | nil), ?redirect_url: String, ?hosted_checkout: Types::HostedCheckout | Hash[Symbol | String, untyped]) -> Response[Types::Checkout]
|
|
15
|
+
def list: (?checkout_reference: String, ?options: request_options) -> Array[Types::CheckoutSuccess]
|
|
16
|
+
def list_with_response: (?checkout_reference: String, ?options: request_options) -> Response[Array[Types::CheckoutSuccess]]
|
|
17
|
+
def get: (checkout_id: String, ?options: request_options) -> Types::CheckoutSuccess
|
|
18
|
+
def get_with_response: (checkout_id: String, ?options: request_options) -> Response[Types::CheckoutSuccess]
|
|
19
|
+
def update: (checkout_id: String, body: Types::CheckoutUpdateRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Checkout
|
|
20
|
+
| (checkout_id: String, ?options: request_options, ?amount: Numeric, ?currency: String, ?description: String, ?checkout_reference: String, ?valid_until: (String | nil), ?customer_id: String) -> Types::Checkout
|
|
21
|
+
def update_with_response: (checkout_id: String, body: Types::CheckoutUpdateRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Checkout]
|
|
22
|
+
| (checkout_id: String, ?options: request_options, ?amount: Numeric, ?currency: String, ?description: String, ?checkout_reference: String, ?valid_until: (String | nil), ?customer_id: String) -> Response[Types::Checkout]
|
|
23
|
+
def process: (checkout_id: String, body: Types::ProcessCheckout | Hash[Symbol | String, untyped], ?options: request_options) -> (Types::CheckoutSuccess | Types::CheckoutAccepted)
|
|
24
|
+
| (checkout_id: String, ?options: request_options, payment_type: String, ?installments: Integer, ?mandate: Types::MandatePayload | Hash[Symbol | String, untyped], ?card: Types::Card | Hash[Symbol | String, untyped], ?google_pay: Hash[Symbol | String, untyped], ?apple_pay: Hash[Symbol | String, untyped], ?token: String, ?customer_id: String, ?personal_details: Types::PersonalDetails | Hash[Symbol | String, untyped]) -> (Types::CheckoutSuccess | Types::CheckoutAccepted)
|
|
25
|
+
def process_with_response: (checkout_id: String, body: Types::ProcessCheckout | Hash[Symbol | String, untyped], ?options: request_options) -> Response[(Types::CheckoutSuccess | Types::CheckoutAccepted)]
|
|
26
|
+
| (checkout_id: String, ?options: request_options, payment_type: String, ?installments: Integer, ?mandate: Types::MandatePayload | Hash[Symbol | String, untyped], ?card: Types::Card | Hash[Symbol | String, untyped], ?google_pay: Hash[Symbol | String, untyped], ?apple_pay: Hash[Symbol | String, untyped], ?token: String, ?customer_id: String, ?personal_details: Types::PersonalDetails | Hash[Symbol | String, untyped]) -> Response[(Types::CheckoutSuccess | Types::CheckoutAccepted)]
|
|
27
|
+
def deactivate: (checkout_id: String, ?options: request_options) -> Types::Checkout
|
|
28
|
+
def deactivate_with_response: (checkout_id: String, ?options: request_options) -> Response[Types::Checkout]
|
|
29
|
+
def create_apple_pay_session: (checkout_id: String, ?body: Types::CreateApplePaySessionRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Hash[String, untyped]
|
|
30
|
+
| (checkout_id: String, ?options: request_options, context: String, target: String) -> Hash[String, untyped]
|
|
31
|
+
def create_apple_pay_session_with_response: (checkout_id: String, ?body: Types::CreateApplePaySessionRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Hash[String, untyped]]
|
|
32
|
+
| (checkout_id: String, ?options: request_options, context: String, target: String) -> Response[Hash[String, untyped]]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def customers: () -> Resources::Customers
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Customers < Resource
|
|
9
|
+
def create: (body: Types::Customer | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Customer
|
|
10
|
+
| (?options: request_options, customer_id: String, ?personal_details: Types::PersonalDetails | Hash[Symbol | String, untyped]) -> Types::Customer
|
|
11
|
+
def create_with_response: (body: Types::Customer | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Customer]
|
|
12
|
+
| (?options: request_options, customer_id: String, ?personal_details: Types::PersonalDetails | Hash[Symbol | String, untyped]) -> Response[Types::Customer]
|
|
13
|
+
def get: (customer_id: String, ?options: request_options) -> Types::Customer
|
|
14
|
+
def get_with_response: (customer_id: String, ?options: request_options) -> Response[Types::Customer]
|
|
15
|
+
def update: (customer_id: String, body: Types::UpdateCustomerRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Customer
|
|
16
|
+
| (customer_id: String, ?options: request_options, ?personal_details: Types::PersonalDetails | Hash[Symbol | String, untyped]) -> Types::Customer
|
|
17
|
+
def update_with_response: (customer_id: String, body: Types::UpdateCustomerRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Customer]
|
|
18
|
+
| (customer_id: String, ?options: request_options, ?personal_details: Types::PersonalDetails | Hash[Symbol | String, untyped]) -> Response[Types::Customer]
|
|
19
|
+
def list_payment_instruments: (customer_id: String, ?options: request_options) -> Array[Types::PaymentInstrumentResponse]
|
|
20
|
+
def list_payment_instruments_with_response: (customer_id: String, ?options: request_options) -> Response[Array[Types::PaymentInstrumentResponse]]
|
|
21
|
+
def deactivate_payment_instrument: (customer_id: String, token: String, ?options: request_options) -> nil
|
|
22
|
+
def deactivate_payment_instrument_with_response: (customer_id: String, token: String, ?options: request_options) -> Response[nil]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def members: () -> Resources::Members
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Members < Resource
|
|
9
|
+
def list: (merchant_code: String, ?offset: Integer, ?limit: Integer, ?scroll: bool, ?email: String, ?user_id: String, ?status: String, ?roles: Array[String], ?options: request_options) -> Types::ListMerchantMembersResponse
|
|
10
|
+
def list_with_response: (merchant_code: String, ?offset: Integer, ?limit: Integer, ?scroll: bool, ?email: String, ?user_id: String, ?status: String, ?roles: Array[String], ?options: request_options) -> Response[Types::ListMerchantMembersResponse]
|
|
11
|
+
def create: (merchant_code: String, body: Types::CreateMerchantMemberRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Member
|
|
12
|
+
| (merchant_code: String, ?options: request_options, ?is_managed_user: bool, email: String, ?password: String, ?nickname: String, roles: Array[String], ?metadata: Hash[Symbol | String, untyped], ?attributes: Hash[Symbol | String, untyped]) -> Types::Member
|
|
13
|
+
def create_with_response: (merchant_code: String, body: Types::CreateMerchantMemberRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Member]
|
|
14
|
+
| (merchant_code: String, ?options: request_options, ?is_managed_user: bool, email: String, ?password: String, ?nickname: String, roles: Array[String], ?metadata: Hash[Symbol | String, untyped], ?attributes: Hash[Symbol | String, untyped]) -> Response[Types::Member]
|
|
15
|
+
def get: (merchant_code: String, member_id: String, ?options: request_options) -> Types::Member
|
|
16
|
+
def get_with_response: (merchant_code: String, member_id: String, ?options: request_options) -> Response[Types::Member]
|
|
17
|
+
def update: (merchant_code: String, member_id: String, body: Types::UpdateMerchantMemberRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Member
|
|
18
|
+
| (merchant_code: String, member_id: String, ?options: request_options, ?roles: Array[String], ?metadata: Hash[Symbol | String, untyped], ?attributes: Hash[Symbol | String, untyped], ?user: Types::UpdateMerchantMemberRequestUser | Hash[Symbol | String, untyped]) -> Types::Member
|
|
19
|
+
def update_with_response: (merchant_code: String, member_id: String, body: Types::UpdateMerchantMemberRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Member]
|
|
20
|
+
| (merchant_code: String, member_id: String, ?options: request_options, ?roles: Array[String], ?metadata: Hash[Symbol | String, untyped], ?attributes: Hash[Symbol | String, untyped], ?user: Types::UpdateMerchantMemberRequestUser | Hash[Symbol | String, untyped]) -> Response[Types::Member]
|
|
21
|
+
def delete: (merchant_code: String, member_id: String, ?options: request_options) -> nil
|
|
22
|
+
def delete_with_response: (merchant_code: String, member_id: String, ?options: request_options) -> Response[nil]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def memberships: () -> Resources::Memberships
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Memberships < Resource
|
|
9
|
+
def list: (?offset: Integer, ?limit: Integer, ?kind: String, ?status: String, ?resource_type: String, ?resource_attributes_sandbox: bool, ?resource_name: String, ?resource_id: String, ?resource_parent_id: String, ?resource_parent_type: String, ?roles: Array[String], ?options: request_options) -> Types::ListMembershipsResponse
|
|
10
|
+
def list_with_response: (?offset: Integer, ?limit: Integer, ?kind: String, ?status: String, ?resource_type: String, ?resource_attributes_sandbox: bool, ?resource_name: String, ?resource_id: String, ?resource_parent_id: String, ?resource_parent_type: String, ?roles: Array[String], ?options: request_options) -> Response[Types::ListMembershipsResponse]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def merchants: () -> Resources::Merchants
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Merchants < Resource
|
|
9
|
+
def get: (merchant_code: String, ?options: request_options) -> Types::Merchant
|
|
10
|
+
def get_with_response: (merchant_code: String, ?options: request_options) -> Response[Types::Merchant]
|
|
11
|
+
def list_persons: (merchant_code: String, ?options: request_options) -> Types::ListPersonsResponseBody
|
|
12
|
+
def list_persons_with_response: (merchant_code: String, ?options: request_options) -> Response[Types::ListPersonsResponseBody]
|
|
13
|
+
def get_person: (merchant_code: String, person_id: String, ?options: request_options) -> Types::Person
|
|
14
|
+
def get_person_with_response: (merchant_code: String, person_id: String, ?options: request_options) -> Response[Types::Person]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def payouts: () -> Resources::Payouts
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Payouts < Resource
|
|
9
|
+
def list: (merchant_code: String, start_date: String, end_date: String, ?format: String, ?limit: Integer, ?order: String, ?options: request_options) -> (Array[Types::FinancialPayout] | String)
|
|
10
|
+
def list_with_response: (merchant_code: String, start_date: String, end_date: String, ?format: String, ?limit: Integer, ?order: String, ?options: request_options) -> Response[(Array[Types::FinancialPayout] | String)]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def readers: () -> Resources::Readers
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Readers < Resource
|
|
9
|
+
def create_go_checkout: (merchant_code: String, reader_id: String, body: Types::ReaderPaymentRequestParams | Hash[Symbol | String, untyped], ?options: request_options) -> Types::ReaderPaymentResponse
|
|
10
|
+
| (merchant_code: String, reader_id: String, ?options: request_options, ?affiliate: Types::ReaderPaymentRequestParamsAffiliate | Hash[Symbol | String, untyped], client_transaction_id: String, ?tip_amount: Integer, total_amount: Types::ReaderPaymentRequestParamsTotalAmount | Hash[Symbol | String, untyped]) -> Types::ReaderPaymentResponse
|
|
11
|
+
def create_go_checkout_with_response: (merchant_code: String, reader_id: String, body: Types::ReaderPaymentRequestParams | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::ReaderPaymentResponse]
|
|
12
|
+
| (merchant_code: String, reader_id: String, ?options: request_options, ?affiliate: Types::ReaderPaymentRequestParamsAffiliate | Hash[Symbol | String, untyped], client_transaction_id: String, ?tip_amount: Integer, total_amount: Types::ReaderPaymentRequestParamsTotalAmount | Hash[Symbol | String, untyped]) -> Response[Types::ReaderPaymentResponse]
|
|
13
|
+
def list: (merchant_code: String, ?options: request_options) -> Types::ListReadersResponse
|
|
14
|
+
def list_with_response: (merchant_code: String, ?options: request_options) -> Response[Types::ListReadersResponse]
|
|
15
|
+
def create: (merchant_code: String, body: Types::CreateReaderRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Reader
|
|
16
|
+
| (merchant_code: String, ?options: request_options, pairing_code: String, name: String, ?metadata: Hash[Symbol | String, untyped]) -> Types::Reader
|
|
17
|
+
def create_with_response: (merchant_code: String, body: Types::CreateReaderRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Reader]
|
|
18
|
+
| (merchant_code: String, ?options: request_options, pairing_code: String, name: String, ?metadata: Hash[Symbol | String, untyped]) -> Response[Types::Reader]
|
|
19
|
+
def get: (merchant_code: String, reader_id: String, ?if_modified_since: (String), ?options: request_options) -> Types::Reader
|
|
20
|
+
def get_with_response: (merchant_code: String, reader_id: String, ?if_modified_since: (String), ?options: request_options) -> Response[Types::Reader]
|
|
21
|
+
def delete: (merchant_code: String, reader_id: String, ?options: request_options) -> nil
|
|
22
|
+
def delete_with_response: (merchant_code: String, reader_id: String, ?options: request_options) -> Response[nil]
|
|
23
|
+
def update: (merchant_code: String, reader_id: String, body: Types::UpdateReaderRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Reader
|
|
24
|
+
| (merchant_code: String, reader_id: String, ?options: request_options, ?name: String, ?metadata: Hash[Symbol | String, untyped]) -> Types::Reader
|
|
25
|
+
def update_with_response: (merchant_code: String, reader_id: String, body: Types::UpdateReaderRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Reader]
|
|
26
|
+
| (merchant_code: String, reader_id: String, ?options: request_options, ?name: String, ?metadata: Hash[Symbol | String, untyped]) -> Response[Types::Reader]
|
|
27
|
+
def create_checkout: (merchant_code: String, reader_id: String, body: Types::CreateReaderCheckoutRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::CreateReaderCheckoutResponse
|
|
28
|
+
| (merchant_code: String, reader_id: String, ?options: request_options, ?aade: Types::CreateReaderCheckoutRequestAade | Hash[Symbol | String, untyped], ?affiliate: (Types::CreateReaderCheckoutRequestAffiliate | Hash[Symbol | String, untyped] | nil), ?card_type: String, ?description: String, ?installments: (Integer | nil), ?payment_type: String, ?return_url: String, ?tip_rates: Array[Numeric], ?tip_timeout: Integer, total_amount: Types::CreateReaderCheckoutRequestTotalAmount | Hash[Symbol | String, untyped]) -> Types::CreateReaderCheckoutResponse
|
|
29
|
+
def create_checkout_with_response: (merchant_code: String, reader_id: String, body: Types::CreateReaderCheckoutRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::CreateReaderCheckoutResponse]
|
|
30
|
+
| (merchant_code: String, reader_id: String, ?options: request_options, ?aade: Types::CreateReaderCheckoutRequestAade | Hash[Symbol | String, untyped], ?affiliate: (Types::CreateReaderCheckoutRequestAffiliate | Hash[Symbol | String, untyped] | nil), ?card_type: String, ?description: String, ?installments: (Integer | nil), ?payment_type: String, ?return_url: String, ?tip_rates: Array[Numeric], ?tip_timeout: Integer, total_amount: Types::CreateReaderCheckoutRequestTotalAmount | Hash[Symbol | String, untyped]) -> Response[Types::CreateReaderCheckoutResponse]
|
|
31
|
+
def get_status: (merchant_code: String, reader_id: String, ?options: request_options) -> Types::StatusResponse
|
|
32
|
+
def get_status_with_response: (merchant_code: String, reader_id: String, ?options: request_options) -> Response[Types::StatusResponse]
|
|
33
|
+
def get_reader_settings: (merchant_code: String, reader_id: String, ?options: request_options) -> Types::GetReaderSettingsResponse
|
|
34
|
+
def get_reader_settings_with_response: (merchant_code: String, reader_id: String, ?options: request_options) -> Response[Types::GetReaderSettingsResponse]
|
|
35
|
+
def update_reader_settings: (merchant_code: String, reader_id: String, body: Types::UpdateReaderSettingsRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::UpdateReaderSettingsResponse
|
|
36
|
+
| (merchant_code: String, reader_id: String, ?options: request_options, menu_lock: Types::UpdateReaderSettingsRequestMenuLock | Hash[Symbol | String, untyped]) -> Types::UpdateReaderSettingsResponse
|
|
37
|
+
def update_reader_settings_with_response: (merchant_code: String, reader_id: String, body: Types::UpdateReaderSettingsRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::UpdateReaderSettingsResponse]
|
|
38
|
+
| (merchant_code: String, reader_id: String, ?options: request_options, menu_lock: Types::UpdateReaderSettingsRequestMenuLock | Hash[Symbol | String, untyped]) -> Response[Types::UpdateReaderSettingsResponse]
|
|
39
|
+
def terminate_checkout: (merchant_code: String, reader_id: String, ?body: untyped, ?options: request_options) -> untyped
|
|
40
|
+
def terminate_checkout_with_response: (merchant_code: String, reader_id: String, ?body: untyped, ?options: request_options) -> Response[untyped]
|
|
41
|
+
def get_checkout: (merchant_code: String, reader_id: String, checkout_id: String, ?options: request_options) -> Types::GetReaderCheckoutResponse
|
|
42
|
+
def get_checkout_with_response: (merchant_code: String, reader_id: String, checkout_id: String, ?options: request_options) -> Response[Types::GetReaderCheckoutResponse]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def receipts: () -> Resources::Receipts
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Receipts < Resource
|
|
9
|
+
def get: (transaction_id: String, mid: String, ?tx_event_id: Integer, ?options: request_options) -> Types::Receipt
|
|
10
|
+
def get_with_response: (transaction_id: String, mid: String, ?tx_event_id: Integer, ?options: request_options) -> Response[Types::Receipt]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def roles: () -> Resources::Roles
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Roles < Resource
|
|
9
|
+
def list: (merchant_code: String, ?options: request_options) -> Types::ListMerchantRolesResponse
|
|
10
|
+
def list_with_response: (merchant_code: String, ?options: request_options) -> Response[Types::ListMerchantRolesResponse]
|
|
11
|
+
def create: (merchant_code: String, body: Types::CreateMerchantRoleRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Role
|
|
12
|
+
| (merchant_code: String, ?options: request_options, name: String, permissions: Array[String], ?metadata: Hash[Symbol | String, untyped], ?description: String) -> Types::Role
|
|
13
|
+
def create_with_response: (merchant_code: String, body: Types::CreateMerchantRoleRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Role]
|
|
14
|
+
| (merchant_code: String, ?options: request_options, name: String, permissions: Array[String], ?metadata: Hash[Symbol | String, untyped], ?description: String) -> Response[Types::Role]
|
|
15
|
+
def get: (merchant_code: String, role_id: String, ?options: request_options) -> Types::Role
|
|
16
|
+
def get_with_response: (merchant_code: String, role_id: String, ?options: request_options) -> Response[Types::Role]
|
|
17
|
+
def delete: (merchant_code: String, role_id: String, ?options: request_options) -> nil
|
|
18
|
+
def delete_with_response: (merchant_code: String, role_id: String, ?options: request_options) -> Response[nil]
|
|
19
|
+
def update: (merchant_code: String, role_id: String, body: Types::UpdateMerchantRoleRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Role
|
|
20
|
+
| (merchant_code: String, role_id: String, ?options: request_options, ?name: String, ?permissions: Array[String], ?description: String) -> Types::Role
|
|
21
|
+
def update_with_response: (merchant_code: String, role_id: String, body: Types::UpdateMerchantRoleRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Role]
|
|
22
|
+
| (merchant_code: String, role_id: String, ?options: request_options, ?name: String, ?permissions: Array[String], ?description: String) -> Response[Types::Role]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def sales: () -> Resources::Sales
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Sales < Resource
|
|
9
|
+
def list: (merchant_code: String, ?pagination_token: String, ?pagination_limit: Integer, ?options: request_options) -> Types::SalePage
|
|
10
|
+
def list_with_response: (merchant_code: String, ?pagination_token: String, ?pagination_limit: Integer, ?options: request_options) -> Response[Types::SalePage]
|
|
11
|
+
def search: (merchant_code: String, body: Types::SaleSearchRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::SaleSearchResponse
|
|
12
|
+
| (merchant_code: String, ?options: request_options, ?start_date: String, ?end_date: String, ?sale_statuses: Array[String], ?payment_statuses: Array[String], ?sales_channels: Array[String], ?pagination_token: String, ?pagination_limit: Integer) -> Types::SaleSearchResponse
|
|
13
|
+
def search_with_response: (merchant_code: String, body: Types::SaleSearchRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::SaleSearchResponse]
|
|
14
|
+
| (merchant_code: String, ?options: request_options, ?start_date: String, ?end_date: String, ?sale_statuses: Array[String], ?payment_statuses: Array[String], ?sales_channels: Array[String], ?pagination_token: String, ?pagination_limit: Integer) -> Response[Types::SaleSearchResponse]
|
|
15
|
+
def get: (merchant_code: String, sale_id: String, ?options: request_options) -> Types::Sale
|
|
16
|
+
def get_with_response: (merchant_code: String, sale_id: String, ?options: request_options) -> Response[Types::Sale]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def tokens: () -> Resources::Tokens
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Tokens < Resource
|
|
9
|
+
def create: (merchant_code: String, body: Types::CreateMerchantTokenRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::Token
|
|
10
|
+
| (merchant_code: String, ?options: request_options, actions: Array[String]) -> Types::Token
|
|
11
|
+
def create_with_response: (merchant_code: String, body: Types::CreateMerchantTokenRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::Token]
|
|
12
|
+
| (merchant_code: String, ?options: request_options, actions: Array[String]) -> Response[Types::Token]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Generated by codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module SumUp
|
|
4
|
+
class Client
|
|
5
|
+
def transactions: () -> Resources::Transactions
|
|
6
|
+
end
|
|
7
|
+
module Resources
|
|
8
|
+
class Transactions < Resource
|
|
9
|
+
def refund: (merchant_code: String, transaction_id: String, ?body: Types::RefundTransactionRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Types::RefundTransactionResponse
|
|
10
|
+
| (merchant_code: String, transaction_id: String, ?options: request_options, ?amount: Numeric) -> Types::RefundTransactionResponse
|
|
11
|
+
def refund_with_response: (merchant_code: String, transaction_id: String, ?body: Types::RefundTransactionRequest | Hash[Symbol | String, untyped], ?options: request_options) -> Response[Types::RefundTransactionResponse]
|
|
12
|
+
| (merchant_code: String, transaction_id: String, ?options: request_options, ?amount: Numeric) -> Response[Types::RefundTransactionResponse]
|
|
13
|
+
def get: (merchant_code: String, ?id: String, ?transaction_code: String, ?foreign_transaction_id: String, ?client_transaction_id: String, ?options: request_options) -> Types::TransactionFull
|
|
14
|
+
def get_with_response: (merchant_code: String, ?id: String, ?transaction_code: String, ?foreign_transaction_id: String, ?client_transaction_id: String, ?options: request_options) -> Response[Types::TransactionFull]
|
|
15
|
+
def list: (merchant_code: String, ?transaction_code: String, ?order: String, ?limit: Integer, ?users: Array[String], ?statuses: Array[String], ?payment_types: Array[String], ?entry_modes: Array[String], ?types: Array[String], ?changes_since: String, ?newest_time: String, ?newest_ref: String, ?oldest_time: String, ?oldest_ref: String, ?options: request_options) -> Types::ListTransactionsV21Response
|
|
16
|
+
def list_with_response: (merchant_code: String, ?transaction_code: String, ?order: String, ?limit: Integer, ?users: Array[String], ?statuses: Array[String], ?payment_types: Array[String], ?entry_modes: Array[String], ?types: Array[String], ?changes_since: String, ?newest_time: String, ?newest_ref: String, ?oldest_time: String, ?oldest_ref: String, ?options: request_options) -> Response[Types::ListTransactionsV21Response]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|