orb-billing 1.60.0 → 1.61.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +4 -0
- data/lib/orb/models/account/billing_entity.rb +214 -0
- data/lib/orb/models/account/billing_entity_archive_by_external_id_params.rb +22 -0
- data/lib/orb/models/account/billing_entity_archive_params.rb +22 -0
- data/lib/orb/models/account/billing_entity_create_params.rb +117 -0
- data/lib/orb/models/account/billing_entity_fetch_by_external_id_params.rb +22 -0
- data/lib/orb/models/account/billing_entity_fetch_params.rb +22 -0
- data/lib/orb/models/account/billing_entity_list_params.rb +55 -0
- data/lib/orb/models/account/billing_entity_unarchive_by_external_id_params.rb +22 -0
- data/lib/orb/models/account/billing_entity_unarchive_params.rb +22 -0
- data/lib/orb/models/account/billing_entity_update_by_external_id_params.rb +177 -0
- data/lib/orb/models/account/billing_entity_update_params.rb +179 -0
- data/lib/orb/models/account/payment_gateway_connection.rb +75 -0
- data/lib/orb/models/account/payment_gateway_connection_fetch_params.rb +22 -0
- data/lib/orb/models/account/payment_gateway_connection_list_params.rb +65 -0
- data/lib/orb/models/customers/customer_payment_gateway_connection.rb +89 -0
- data/lib/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rb +53 -0
- data/lib/orb/models/customers/payment_gateway_connection_create_params.rb +52 -0
- data/lib/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rb +28 -0
- data/lib/orb/models/customers/payment_gateway_connection_delete_params.rb +28 -0
- data/lib/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rb +39 -0
- data/lib/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rb +25 -0
- data/lib/orb/models/customers/payment_gateway_connection_list_params.rb +39 -0
- data/lib/orb/models/customers/payment_gateway_connection_list_response.rb +25 -0
- data/lib/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rb +68 -0
- data/lib/orb/models/customers/payment_gateway_connection_update_params.rb +67 -0
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/account/billing_entities.rb +321 -0
- data/lib/orb/resources/account/payment_gateway_connections.rb +71 -0
- data/lib/orb/resources/account.rb +26 -0
- data/lib/orb/resources/customers/payment_gateway_connections.rb +310 -0
- data/lib/orb/resources/customers.rb +22 -0
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +29 -0
- data/rbi/orb/client.rbi +3 -0
- data/rbi/orb/models/account/billing_entity.rbi +342 -0
- data/rbi/orb/models/account/billing_entity_archive_by_external_id_params.rbi +43 -0
- data/rbi/orb/models/account/billing_entity_archive_params.rbi +40 -0
- data/rbi/orb/models/account/billing_entity_create_params.rbi +208 -0
- data/rbi/orb/models/account/billing_entity_fetch_by_external_id_params.rbi +43 -0
- data/rbi/orb/models/account/billing_entity_fetch_params.rbi +40 -0
- data/rbi/orb/models/account/billing_entity_list_params.rbi +108 -0
- data/rbi/orb/models/account/billing_entity_unarchive_by_external_id_params.rbi +43 -0
- data/rbi/orb/models/account/billing_entity_unarchive_params.rbi +40 -0
- data/rbi/orb/models/account/billing_entity_update_by_external_id_params.rbi +335 -0
- data/rbi/orb/models/account/billing_entity_update_params.rbi +331 -0
- data/rbi/orb/models/account/payment_gateway_connection.rbi +125 -0
- data/rbi/orb/models/account/payment_gateway_connection_fetch_params.rbi +43 -0
- data/rbi/orb/models/account/payment_gateway_connection_list_params.rbi +124 -0
- data/rbi/orb/models/customers/customer_payment_gateway_connection.rbi +139 -0
- data/rbi/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rbi +77 -0
- data/rbi/orb/models/customers/payment_gateway_connection_create_params.rbi +77 -0
- data/rbi/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rbi +52 -0
- data/rbi/orb/models/customers/payment_gateway_connection_delete_params.rbi +52 -0
- data/rbi/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rbi +62 -0
- data/rbi/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rbi +47 -0
- data/rbi/orb/models/customers/payment_gateway_connection_list_params.rbi +62 -0
- data/rbi/orb/models/customers/payment_gateway_connection_list_response.rbi +47 -0
- data/rbi/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rbi +120 -0
- data/rbi/orb/models/customers/payment_gateway_connection_update_params.rbi +120 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/account/billing_entities.rbi +289 -0
- data/rbi/orb/resources/account/payment_gateway_connections.rbi +54 -0
- data/rbi/orb/resources/account.rbi +22 -0
- data/rbi/orb/resources/customers/payment_gateway_connections.rbi +234 -0
- data/rbi/orb/resources/customers.rbi +21 -0
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/models/account/billing_entity.rbs +155 -0
- data/sig/orb/models/account/billing_entity_archive_by_external_id_params.rbs +26 -0
- data/sig/orb/models/account/billing_entity_archive_params.rbs +25 -0
- data/sig/orb/models/account/billing_entity_create_params.rbs +86 -0
- data/sig/orb/models/account/billing_entity_fetch_by_external_id_params.rbs +26 -0
- data/sig/orb/models/account/billing_entity_fetch_params.rbs +25 -0
- data/sig/orb/models/account/billing_entity_list_params.rbs +51 -0
- data/sig/orb/models/account/billing_entity_unarchive_by_external_id_params.rbs +26 -0
- data/sig/orb/models/account/billing_entity_unarchive_params.rbs +25 -0
- data/sig/orb/models/account/billing_entity_update_by_external_id_params.rbs +125 -0
- data/sig/orb/models/account/billing_entity_update_params.rbs +125 -0
- data/sig/orb/models/account/payment_gateway_connection.rbs +58 -0
- data/sig/orb/models/account/payment_gateway_connection_fetch_params.rbs +26 -0
- data/sig/orb/models/account/payment_gateway_connection_list_params.rbs +56 -0
- data/sig/orb/models/customers/customer_payment_gateway_connection.rbs +65 -0
- data/sig/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rbs +45 -0
- data/sig/orb/models/customers/payment_gateway_connection_create_params.rbs +45 -0
- data/sig/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rbs +30 -0
- data/sig/orb/models/customers/payment_gateway_connection_delete_params.rbs +30 -0
- data/sig/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rbs +38 -0
- data/sig/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rbs +27 -0
- data/sig/orb/models/customers/payment_gateway_connection_list_params.rbs +38 -0
- data/sig/orb/models/customers/payment_gateway_connection_list_response.rbs +27 -0
- data/sig/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rbs +53 -0
- data/sig/orb/models/customers/payment_gateway_connection_update_params.rbs +53 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/account/billing_entities.rbs +80 -0
- data/sig/orb/resources/account/payment_gateway_connections.rbs +22 -0
- data/sig/orb/resources/account.rbs +11 -0
- data/sig/orb/resources/customers/payment_gateway_connections.rbs +67 -0
- data/sig/orb/resources/customers.rbs +2 -0
- metadata +88 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Account
|
|
4
|
+
type billing_entity_unarchive_by_external_id_params =
|
|
5
|
+
{ external_billing_entity_id: String }
|
|
6
|
+
& Orb::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class BillingEntityUnarchiveByExternalIDParams < Orb::Internal::Type::BaseModel
|
|
9
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Orb::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor external_billing_entity_id: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
external_billing_entity_id: String,
|
|
16
|
+
?request_options: Orb::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
external_billing_entity_id: String,
|
|
21
|
+
request_options: Orb::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Account
|
|
4
|
+
type billing_entity_unarchive_params =
|
|
5
|
+
{ billing_entity_id: String } & Orb::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class BillingEntityUnarchiveParams < Orb::Internal::Type::BaseModel
|
|
8
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Orb::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor billing_entity_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
billing_entity_id: String,
|
|
15
|
+
?request_options: Orb::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
billing_entity_id: String,
|
|
20
|
+
request_options: Orb::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Account
|
|
4
|
+
type billing_entity_update_by_external_id_params =
|
|
5
|
+
{
|
|
6
|
+
external_billing_entity_id: String,
|
|
7
|
+
address: Orb::AddressInput?,
|
|
8
|
+
default_payment_gateway_connection_id: String?,
|
|
9
|
+
invoice_settings: Orb::Account::BillingEntityUpdateByExternalIDParams::InvoiceSettings?,
|
|
10
|
+
legal_name: String?,
|
|
11
|
+
name: String?,
|
|
12
|
+
payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection]?,
|
|
13
|
+
tax_registrations: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::TaxRegistration]?
|
|
14
|
+
}
|
|
15
|
+
& Orb::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class BillingEntityUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
|
|
18
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include Orb::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor external_billing_entity_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor address: Orb::AddressInput?
|
|
24
|
+
|
|
25
|
+
attr_accessor default_payment_gateway_connection_id: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor invoice_settings: Orb::Account::BillingEntityUpdateByExternalIDParams::InvoiceSettings?
|
|
28
|
+
|
|
29
|
+
attr_accessor legal_name: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor name: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection]?
|
|
34
|
+
|
|
35
|
+
attr_accessor tax_registrations: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::TaxRegistration]?
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
external_billing_entity_id: String,
|
|
39
|
+
?address: Orb::AddressInput?,
|
|
40
|
+
?default_payment_gateway_connection_id: String?,
|
|
41
|
+
?invoice_settings: Orb::Account::BillingEntityUpdateByExternalIDParams::InvoiceSettings?,
|
|
42
|
+
?legal_name: String?,
|
|
43
|
+
?name: String?,
|
|
44
|
+
?payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection]?,
|
|
45
|
+
?tax_registrations: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::TaxRegistration]?,
|
|
46
|
+
?request_options: Orb::request_opts
|
|
47
|
+
) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> {
|
|
50
|
+
external_billing_entity_id: String,
|
|
51
|
+
address: Orb::AddressInput?,
|
|
52
|
+
default_payment_gateway_connection_id: String?,
|
|
53
|
+
invoice_settings: Orb::Account::BillingEntityUpdateByExternalIDParams::InvoiceSettings?,
|
|
54
|
+
legal_name: String?,
|
|
55
|
+
name: String?,
|
|
56
|
+
payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection]?,
|
|
57
|
+
tax_registrations: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::TaxRegistration]?,
|
|
58
|
+
request_options: Orb::RequestOptions
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
type invoice_settings = { memo: String? }
|
|
62
|
+
|
|
63
|
+
class InvoiceSettings < Orb::Internal::Type::BaseModel
|
|
64
|
+
attr_accessor memo: String?
|
|
65
|
+
|
|
66
|
+
def initialize: (?memo: String?) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> { memo: String? }
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
type payment_gateway_connection =
|
|
72
|
+
{
|
|
73
|
+
payment_gateway_connection_id: String,
|
|
74
|
+
payment_provider_type: Orb::Models::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection::payment_provider_type
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
class PaymentGatewayConnection < Orb::Internal::Type::BaseModel
|
|
78
|
+
attr_accessor payment_gateway_connection_id: String
|
|
79
|
+
|
|
80
|
+
attr_accessor payment_provider_type: Orb::Models::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection::payment_provider_type
|
|
81
|
+
|
|
82
|
+
def initialize: (
|
|
83
|
+
payment_gateway_connection_id: String,
|
|
84
|
+
payment_provider_type: Orb::Models::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection::payment_provider_type
|
|
85
|
+
) -> void
|
|
86
|
+
|
|
87
|
+
def to_hash: -> {
|
|
88
|
+
payment_gateway_connection_id: String,
|
|
89
|
+
payment_provider_type: Orb::Models::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection::payment_provider_type
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type payment_provider_type = :stripe | :adyen
|
|
93
|
+
|
|
94
|
+
module PaymentProviderType
|
|
95
|
+
extend Orb::Internal::Type::Enum
|
|
96
|
+
|
|
97
|
+
STRIPE: :stripe
|
|
98
|
+
ADYEN: :adyen
|
|
99
|
+
|
|
100
|
+
def self?.values: -> ::Array[Orb::Models::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection::payment_provider_type]
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
type tax_registration =
|
|
105
|
+
{ code: String, value: String, applies_to: String? }
|
|
106
|
+
|
|
107
|
+
class TaxRegistration < Orb::Internal::Type::BaseModel
|
|
108
|
+
attr_accessor code: String
|
|
109
|
+
|
|
110
|
+
attr_accessor value: String
|
|
111
|
+
|
|
112
|
+
attr_accessor applies_to: String?
|
|
113
|
+
|
|
114
|
+
def initialize: (
|
|
115
|
+
code: String,
|
|
116
|
+
value: String,
|
|
117
|
+
?applies_to: String?
|
|
118
|
+
) -> void
|
|
119
|
+
|
|
120
|
+
def to_hash: -> { code: String, value: String, applies_to: String? }
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Account
|
|
4
|
+
type billing_entity_update_params =
|
|
5
|
+
{
|
|
6
|
+
billing_entity_id: String,
|
|
7
|
+
address: Orb::AddressInput?,
|
|
8
|
+
default_payment_gateway_connection_id: String?,
|
|
9
|
+
invoice_settings: Orb::Account::BillingEntityUpdateParams::InvoiceSettings?,
|
|
10
|
+
legal_name: String?,
|
|
11
|
+
name: String?,
|
|
12
|
+
payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateParams::PaymentGatewayConnection]?,
|
|
13
|
+
tax_registrations: ::Array[Orb::Account::BillingEntityUpdateParams::TaxRegistration]?
|
|
14
|
+
}
|
|
15
|
+
& Orb::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class BillingEntityUpdateParams < Orb::Internal::Type::BaseModel
|
|
18
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include Orb::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor billing_entity_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor address: Orb::AddressInput?
|
|
24
|
+
|
|
25
|
+
attr_accessor default_payment_gateway_connection_id: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor invoice_settings: Orb::Account::BillingEntityUpdateParams::InvoiceSettings?
|
|
28
|
+
|
|
29
|
+
attr_accessor legal_name: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor name: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateParams::PaymentGatewayConnection]?
|
|
34
|
+
|
|
35
|
+
attr_accessor tax_registrations: ::Array[Orb::Account::BillingEntityUpdateParams::TaxRegistration]?
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
billing_entity_id: String,
|
|
39
|
+
?address: Orb::AddressInput?,
|
|
40
|
+
?default_payment_gateway_connection_id: String?,
|
|
41
|
+
?invoice_settings: Orb::Account::BillingEntityUpdateParams::InvoiceSettings?,
|
|
42
|
+
?legal_name: String?,
|
|
43
|
+
?name: String?,
|
|
44
|
+
?payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateParams::PaymentGatewayConnection]?,
|
|
45
|
+
?tax_registrations: ::Array[Orb::Account::BillingEntityUpdateParams::TaxRegistration]?,
|
|
46
|
+
?request_options: Orb::request_opts
|
|
47
|
+
) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> {
|
|
50
|
+
billing_entity_id: String,
|
|
51
|
+
address: Orb::AddressInput?,
|
|
52
|
+
default_payment_gateway_connection_id: String?,
|
|
53
|
+
invoice_settings: Orb::Account::BillingEntityUpdateParams::InvoiceSettings?,
|
|
54
|
+
legal_name: String?,
|
|
55
|
+
name: String?,
|
|
56
|
+
payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateParams::PaymentGatewayConnection]?,
|
|
57
|
+
tax_registrations: ::Array[Orb::Account::BillingEntityUpdateParams::TaxRegistration]?,
|
|
58
|
+
request_options: Orb::RequestOptions
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
type invoice_settings = { memo: String? }
|
|
62
|
+
|
|
63
|
+
class InvoiceSettings < Orb::Internal::Type::BaseModel
|
|
64
|
+
attr_accessor memo: String?
|
|
65
|
+
|
|
66
|
+
def initialize: (?memo: String?) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> { memo: String? }
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
type payment_gateway_connection =
|
|
72
|
+
{
|
|
73
|
+
payment_gateway_connection_id: String,
|
|
74
|
+
payment_provider_type: Orb::Models::Account::BillingEntityUpdateParams::PaymentGatewayConnection::payment_provider_type
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
class PaymentGatewayConnection < Orb::Internal::Type::BaseModel
|
|
78
|
+
attr_accessor payment_gateway_connection_id: String
|
|
79
|
+
|
|
80
|
+
attr_accessor payment_provider_type: Orb::Models::Account::BillingEntityUpdateParams::PaymentGatewayConnection::payment_provider_type
|
|
81
|
+
|
|
82
|
+
def initialize: (
|
|
83
|
+
payment_gateway_connection_id: String,
|
|
84
|
+
payment_provider_type: Orb::Models::Account::BillingEntityUpdateParams::PaymentGatewayConnection::payment_provider_type
|
|
85
|
+
) -> void
|
|
86
|
+
|
|
87
|
+
def to_hash: -> {
|
|
88
|
+
payment_gateway_connection_id: String,
|
|
89
|
+
payment_provider_type: Orb::Models::Account::BillingEntityUpdateParams::PaymentGatewayConnection::payment_provider_type
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type payment_provider_type = :stripe | :adyen
|
|
93
|
+
|
|
94
|
+
module PaymentProviderType
|
|
95
|
+
extend Orb::Internal::Type::Enum
|
|
96
|
+
|
|
97
|
+
STRIPE: :stripe
|
|
98
|
+
ADYEN: :adyen
|
|
99
|
+
|
|
100
|
+
def self?.values: -> ::Array[Orb::Models::Account::BillingEntityUpdateParams::PaymentGatewayConnection::payment_provider_type]
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
type tax_registration =
|
|
105
|
+
{ code: String, value: String, applies_to: String? }
|
|
106
|
+
|
|
107
|
+
class TaxRegistration < Orb::Internal::Type::BaseModel
|
|
108
|
+
attr_accessor code: String
|
|
109
|
+
|
|
110
|
+
attr_accessor value: String
|
|
111
|
+
|
|
112
|
+
attr_accessor applies_to: String?
|
|
113
|
+
|
|
114
|
+
def initialize: (
|
|
115
|
+
code: String,
|
|
116
|
+
value: String,
|
|
117
|
+
?applies_to: String?
|
|
118
|
+
) -> void
|
|
119
|
+
|
|
120
|
+
def to_hash: -> { code: String, value: String, applies_to: String? }
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Account
|
|
4
|
+
type payment_gateway_connection =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
billing_entity_id: String,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
external_account_id: String?,
|
|
10
|
+
is_default: bool,
|
|
11
|
+
provider_type: Orb::Models::Account::PaymentGatewayConnection::provider_type
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class PaymentGatewayConnection < Orb::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor billing_entity_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor created_at: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor external_account_id: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor is_default: bool
|
|
24
|
+
|
|
25
|
+
attr_accessor provider_type: Orb::Models::Account::PaymentGatewayConnection::provider_type
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
id: String,
|
|
29
|
+
billing_entity_id: String,
|
|
30
|
+
created_at: Time,
|
|
31
|
+
external_account_id: String?,
|
|
32
|
+
is_default: bool,
|
|
33
|
+
provider_type: Orb::Models::Account::PaymentGatewayConnection::provider_type
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
id: String,
|
|
38
|
+
billing_entity_id: String,
|
|
39
|
+
created_at: Time,
|
|
40
|
+
external_account_id: String?,
|
|
41
|
+
is_default: bool,
|
|
42
|
+
provider_type: Orb::Models::Account::PaymentGatewayConnection::provider_type
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type provider_type = :stripe | :adyen
|
|
46
|
+
|
|
47
|
+
module ProviderType
|
|
48
|
+
extend Orb::Internal::Type::Enum
|
|
49
|
+
|
|
50
|
+
STRIPE: :stripe
|
|
51
|
+
ADYEN: :adyen
|
|
52
|
+
|
|
53
|
+
def self?.values: -> ::Array[Orb::Models::Account::PaymentGatewayConnection::provider_type]
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Account
|
|
4
|
+
type payment_gateway_connection_fetch_params =
|
|
5
|
+
{ payment_gateway_connection_id: String }
|
|
6
|
+
& Orb::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class PaymentGatewayConnectionFetchParams < Orb::Internal::Type::BaseModel
|
|
9
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Orb::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor payment_gateway_connection_id: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
payment_gateway_connection_id: String,
|
|
16
|
+
?request_options: Orb::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
payment_gateway_connection_id: String,
|
|
21
|
+
request_options: Orb::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Account
|
|
4
|
+
type payment_gateway_connection_list_params =
|
|
5
|
+
{
|
|
6
|
+
billing_entity_id: String?,
|
|
7
|
+
cursor: String?,
|
|
8
|
+
limit: Integer,
|
|
9
|
+
provider_type: Orb::Models::Account::PaymentGatewayConnectionListParams::provider_type?
|
|
10
|
+
}
|
|
11
|
+
& Orb::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class PaymentGatewayConnectionListParams < Orb::Internal::Type::BaseModel
|
|
14
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Orb::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor billing_entity_id: String?
|
|
18
|
+
|
|
19
|
+
attr_accessor cursor: String?
|
|
20
|
+
|
|
21
|
+
attr_reader limit: Integer?
|
|
22
|
+
|
|
23
|
+
def limit=: (Integer) -> Integer
|
|
24
|
+
|
|
25
|
+
attr_accessor provider_type: Orb::Models::Account::PaymentGatewayConnectionListParams::provider_type?
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
?billing_entity_id: String?,
|
|
29
|
+
?cursor: String?,
|
|
30
|
+
?limit: Integer,
|
|
31
|
+
?provider_type: Orb::Models::Account::PaymentGatewayConnectionListParams::provider_type?,
|
|
32
|
+
?request_options: Orb::request_opts
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
billing_entity_id: String?,
|
|
37
|
+
cursor: String?,
|
|
38
|
+
limit: Integer,
|
|
39
|
+
provider_type: Orb::Models::Account::PaymentGatewayConnectionListParams::provider_type?,
|
|
40
|
+
request_options: Orb::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type provider_type = :stripe | :adyen
|
|
44
|
+
|
|
45
|
+
module ProviderType
|
|
46
|
+
extend Orb::Internal::Type::Enum
|
|
47
|
+
|
|
48
|
+
STRIPE: :stripe
|
|
49
|
+
ADYEN: :adyen
|
|
50
|
+
|
|
51
|
+
def self?.values: -> ::Array[Orb::Models::Account::PaymentGatewayConnectionListParams::provider_type]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
class CustomerPaymentGatewayConnection = Customers::CustomerPaymentGatewayConnection
|
|
4
|
+
|
|
5
|
+
module Customers
|
|
6
|
+
type customer_payment_gateway_connection =
|
|
7
|
+
{
|
|
8
|
+
billing_entity_id: String,
|
|
9
|
+
created_at: Time,
|
|
10
|
+
external_account_id: String?,
|
|
11
|
+
is_default: bool,
|
|
12
|
+
payment_gateway_connection_id: String,
|
|
13
|
+
provider_customer_id: String?,
|
|
14
|
+
provider_type: Orb::Models::Customers::CustomerPaymentGatewayConnection::provider_type
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class CustomerPaymentGatewayConnection < Orb::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor billing_entity_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor created_at: Time
|
|
21
|
+
|
|
22
|
+
attr_accessor external_account_id: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor is_default: bool
|
|
25
|
+
|
|
26
|
+
attr_accessor payment_gateway_connection_id: String
|
|
27
|
+
|
|
28
|
+
attr_accessor provider_customer_id: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor provider_type: Orb::Models::Customers::CustomerPaymentGatewayConnection::provider_type
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
billing_entity_id: String,
|
|
34
|
+
created_at: Time,
|
|
35
|
+
external_account_id: String?,
|
|
36
|
+
is_default: bool,
|
|
37
|
+
payment_gateway_connection_id: String,
|
|
38
|
+
provider_customer_id: String?,
|
|
39
|
+
provider_type: Orb::Models::Customers::CustomerPaymentGatewayConnection::provider_type
|
|
40
|
+
) -> void
|
|
41
|
+
|
|
42
|
+
def to_hash: -> {
|
|
43
|
+
billing_entity_id: String,
|
|
44
|
+
created_at: Time,
|
|
45
|
+
external_account_id: String?,
|
|
46
|
+
is_default: bool,
|
|
47
|
+
payment_gateway_connection_id: String,
|
|
48
|
+
provider_customer_id: String?,
|
|
49
|
+
provider_type: Orb::Models::Customers::CustomerPaymentGatewayConnection::provider_type
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type provider_type = :stripe | :adyen
|
|
53
|
+
|
|
54
|
+
module ProviderType
|
|
55
|
+
extend Orb::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
STRIPE: :stripe
|
|
58
|
+
ADYEN: :adyen
|
|
59
|
+
|
|
60
|
+
def self?.values: -> ::Array[Orb::Models::Customers::CustomerPaymentGatewayConnection::provider_type]
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_create_by_external_id_params =
|
|
5
|
+
{
|
|
6
|
+
external_customer_id: String,
|
|
7
|
+
payment_gateway_connection_id: String,
|
|
8
|
+
is_default: bool,
|
|
9
|
+
provider_customer_id: String?
|
|
10
|
+
}
|
|
11
|
+
& Orb::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class PaymentGatewayConnectionCreateByExternalIDParams < Orb::Internal::Type::BaseModel
|
|
14
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Orb::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor external_customer_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor payment_gateway_connection_id: String
|
|
20
|
+
|
|
21
|
+
attr_reader is_default: bool?
|
|
22
|
+
|
|
23
|
+
def is_default=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
attr_accessor provider_customer_id: String?
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
external_customer_id: String,
|
|
29
|
+
payment_gateway_connection_id: String,
|
|
30
|
+
?is_default: bool,
|
|
31
|
+
?provider_customer_id: String?,
|
|
32
|
+
?request_options: Orb::request_opts
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
external_customer_id: String,
|
|
37
|
+
payment_gateway_connection_id: String,
|
|
38
|
+
is_default: bool,
|
|
39
|
+
provider_customer_id: String?,
|
|
40
|
+
request_options: Orb::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_create_params =
|
|
5
|
+
{
|
|
6
|
+
customer_id: String,
|
|
7
|
+
payment_gateway_connection_id: String,
|
|
8
|
+
is_default: bool,
|
|
9
|
+
provider_customer_id: String?
|
|
10
|
+
}
|
|
11
|
+
& Orb::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class PaymentGatewayConnectionCreateParams < Orb::Internal::Type::BaseModel
|
|
14
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Orb::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor customer_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor payment_gateway_connection_id: String
|
|
20
|
+
|
|
21
|
+
attr_reader is_default: bool?
|
|
22
|
+
|
|
23
|
+
def is_default=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
attr_accessor provider_customer_id: String?
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
customer_id: String,
|
|
29
|
+
payment_gateway_connection_id: String,
|
|
30
|
+
?is_default: bool,
|
|
31
|
+
?provider_customer_id: String?,
|
|
32
|
+
?request_options: Orb::request_opts
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
customer_id: String,
|
|
37
|
+
payment_gateway_connection_id: String,
|
|
38
|
+
is_default: bool,
|
|
39
|
+
provider_customer_id: String?,
|
|
40
|
+
request_options: Orb::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_delete_by_external_id_params =
|
|
5
|
+
{ external_customer_id: String, payment_gateway_connection_id: String }
|
|
6
|
+
& Orb::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class PaymentGatewayConnectionDeleteByExternalIDParams < Orb::Internal::Type::BaseModel
|
|
9
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Orb::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor external_customer_id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor payment_gateway_connection_id: String
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
external_customer_id: String,
|
|
18
|
+
payment_gateway_connection_id: String,
|
|
19
|
+
?request_options: Orb::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
external_customer_id: String,
|
|
24
|
+
payment_gateway_connection_id: String,
|
|
25
|
+
request_options: Orb::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_delete_params =
|
|
5
|
+
{ customer_id: String, payment_gateway_connection_id: String }
|
|
6
|
+
& Orb::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class PaymentGatewayConnectionDeleteParams < Orb::Internal::Type::BaseModel
|
|
9
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Orb::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor customer_id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor payment_gateway_connection_id: String
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
customer_id: String,
|
|
18
|
+
payment_gateway_connection_id: String,
|
|
19
|
+
?request_options: Orb::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
customer_id: String,
|
|
24
|
+
payment_gateway_connection_id: String,
|
|
25
|
+
request_options: Orb::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|