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,38 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_list_by_external_id_params =
|
|
5
|
+
{
|
|
6
|
+
external_customer_id: String,
|
|
7
|
+
billing_entity_id: String?,
|
|
8
|
+
payment_gateway_connection_id: String?
|
|
9
|
+
}
|
|
10
|
+
& Orb::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class PaymentGatewayConnectionListByExternalIDParams < Orb::Internal::Type::BaseModel
|
|
13
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Orb::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor external_customer_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor billing_entity_id: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor payment_gateway_connection_id: String?
|
|
21
|
+
|
|
22
|
+
def initialize: (
|
|
23
|
+
external_customer_id: String,
|
|
24
|
+
?billing_entity_id: String?,
|
|
25
|
+
?payment_gateway_connection_id: String?,
|
|
26
|
+
?request_options: Orb::request_opts
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
external_customer_id: String,
|
|
31
|
+
billing_entity_id: String?,
|
|
32
|
+
payment_gateway_connection_id: String?,
|
|
33
|
+
request_options: Orb::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_list_by_external_id_response =
|
|
5
|
+
{
|
|
6
|
+
customer_id: String,
|
|
7
|
+
payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class PaymentGatewayConnectionListByExternalIDResponse < Orb::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor customer_id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
customer_id: String,
|
|
17
|
+
payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
customer_id: String,
|
|
22
|
+
payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_list_params =
|
|
5
|
+
{
|
|
6
|
+
customer_id: String,
|
|
7
|
+
billing_entity_id: String?,
|
|
8
|
+
payment_gateway_connection_id: String?
|
|
9
|
+
}
|
|
10
|
+
& Orb::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class PaymentGatewayConnectionListParams < Orb::Internal::Type::BaseModel
|
|
13
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Orb::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor customer_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor billing_entity_id: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor payment_gateway_connection_id: String?
|
|
21
|
+
|
|
22
|
+
def initialize: (
|
|
23
|
+
customer_id: String,
|
|
24
|
+
?billing_entity_id: String?,
|
|
25
|
+
?payment_gateway_connection_id: String?,
|
|
26
|
+
?request_options: Orb::request_opts
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
customer_id: String,
|
|
31
|
+
billing_entity_id: String?,
|
|
32
|
+
payment_gateway_connection_id: String?,
|
|
33
|
+
request_options: Orb::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_list_response =
|
|
5
|
+
{
|
|
6
|
+
customer_id: String,
|
|
7
|
+
payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class PaymentGatewayConnectionListResponse < Orb::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor customer_id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
customer_id: String,
|
|
17
|
+
payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
customer_id: String,
|
|
22
|
+
payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_update_by_external_id_params =
|
|
5
|
+
{
|
|
6
|
+
external_customer_id: String,
|
|
7
|
+
payment_gateway_connection_id: String,
|
|
8
|
+
is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?,
|
|
9
|
+
provider_customer_id: String?
|
|
10
|
+
}
|
|
11
|
+
& Orb::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class PaymentGatewayConnectionUpdateByExternalIDParams < 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_accessor is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?
|
|
22
|
+
|
|
23
|
+
attr_accessor provider_customer_id: String?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
external_customer_id: String,
|
|
27
|
+
payment_gateway_connection_id: String,
|
|
28
|
+
?is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?,
|
|
29
|
+
?provider_customer_id: String?,
|
|
30
|
+
?request_options: Orb::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
external_customer_id: String,
|
|
35
|
+
payment_gateway_connection_id: String,
|
|
36
|
+
is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?,
|
|
37
|
+
provider_customer_id: String?,
|
|
38
|
+
request_options: Orb::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type is_default = true
|
|
42
|
+
|
|
43
|
+
module IsDefault
|
|
44
|
+
extend Orb::Internal::Type::Enum
|
|
45
|
+
|
|
46
|
+
TRUE: true
|
|
47
|
+
|
|
48
|
+
def self?.values: -> ::Array[Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default]
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
module Customers
|
|
4
|
+
type payment_gateway_connection_update_params =
|
|
5
|
+
{
|
|
6
|
+
customer_id: String,
|
|
7
|
+
payment_gateway_connection_id: String,
|
|
8
|
+
is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?,
|
|
9
|
+
provider_customer_id: String?
|
|
10
|
+
}
|
|
11
|
+
& Orb::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class PaymentGatewayConnectionUpdateParams < 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_accessor is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?
|
|
22
|
+
|
|
23
|
+
attr_accessor provider_customer_id: String?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
customer_id: String,
|
|
27
|
+
payment_gateway_connection_id: String,
|
|
28
|
+
?is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?,
|
|
29
|
+
?provider_customer_id: String?,
|
|
30
|
+
?request_options: Orb::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
customer_id: String,
|
|
35
|
+
payment_gateway_connection_id: String,
|
|
36
|
+
is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?,
|
|
37
|
+
provider_customer_id: String?,
|
|
38
|
+
request_options: Orb::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type is_default = true
|
|
42
|
+
|
|
43
|
+
module IsDefault
|
|
44
|
+
extend Orb::Internal::Type::Enum
|
|
45
|
+
|
|
46
|
+
TRUE: true
|
|
47
|
+
|
|
48
|
+
def self?.values: -> ::Array[Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default]
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
data/sig/orb/models.rbs
CHANGED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Resources
|
|
3
|
+
class Account
|
|
4
|
+
class BillingEntities
|
|
5
|
+
def create: (
|
|
6
|
+
address: Orb::AddressInput,
|
|
7
|
+
legal_name: String,
|
|
8
|
+
name: String,
|
|
9
|
+
?external_billing_entity_id: String?,
|
|
10
|
+
?invoice_settings: Orb::Account::BillingEntityCreateParams::InvoiceSettings?,
|
|
11
|
+
?tax_registrations: ::Array[Orb::Account::BillingEntityCreateParams::TaxRegistration],
|
|
12
|
+
?request_options: Orb::request_opts
|
|
13
|
+
) -> Orb::Account::BillingEntity
|
|
14
|
+
|
|
15
|
+
def update: (
|
|
16
|
+
String billing_entity_id,
|
|
17
|
+
?address: Orb::AddressInput?,
|
|
18
|
+
?default_payment_gateway_connection_id: String?,
|
|
19
|
+
?invoice_settings: Orb::Account::BillingEntityUpdateParams::InvoiceSettings?,
|
|
20
|
+
?legal_name: String?,
|
|
21
|
+
?name: String?,
|
|
22
|
+
?payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateParams::PaymentGatewayConnection]?,
|
|
23
|
+
?tax_registrations: ::Array[Orb::Account::BillingEntityUpdateParams::TaxRegistration]?,
|
|
24
|
+
?request_options: Orb::request_opts
|
|
25
|
+
) -> Orb::Account::BillingEntity
|
|
26
|
+
|
|
27
|
+
def list: (
|
|
28
|
+
?cursor: String?,
|
|
29
|
+
?limit: Integer,
|
|
30
|
+
?status: Orb::Models::Account::BillingEntityListParams::status?,
|
|
31
|
+
?request_options: Orb::request_opts
|
|
32
|
+
) -> Orb::Internal::Page[Orb::Account::BillingEntity]
|
|
33
|
+
|
|
34
|
+
def archive: (
|
|
35
|
+
String billing_entity_id,
|
|
36
|
+
?request_options: Orb::request_opts
|
|
37
|
+
) -> Orb::Account::BillingEntity
|
|
38
|
+
|
|
39
|
+
def archive_by_external_id: (
|
|
40
|
+
String external_billing_entity_id,
|
|
41
|
+
?request_options: Orb::request_opts
|
|
42
|
+
) -> Orb::Account::BillingEntity
|
|
43
|
+
|
|
44
|
+
def fetch: (
|
|
45
|
+
String billing_entity_id,
|
|
46
|
+
?request_options: Orb::request_opts
|
|
47
|
+
) -> Orb::Account::BillingEntity
|
|
48
|
+
|
|
49
|
+
def fetch_by_external_id: (
|
|
50
|
+
String external_billing_entity_id,
|
|
51
|
+
?request_options: Orb::request_opts
|
|
52
|
+
) -> Orb::Account::BillingEntity
|
|
53
|
+
|
|
54
|
+
def unarchive: (
|
|
55
|
+
String billing_entity_id,
|
|
56
|
+
?request_options: Orb::request_opts
|
|
57
|
+
) -> Orb::Account::BillingEntity
|
|
58
|
+
|
|
59
|
+
def unarchive_by_external_id: (
|
|
60
|
+
String external_billing_entity_id,
|
|
61
|
+
?request_options: Orb::request_opts
|
|
62
|
+
) -> Orb::Account::BillingEntity
|
|
63
|
+
|
|
64
|
+
def update_by_external_id: (
|
|
65
|
+
String external_billing_entity_id,
|
|
66
|
+
?address: Orb::AddressInput?,
|
|
67
|
+
?default_payment_gateway_connection_id: String?,
|
|
68
|
+
?invoice_settings: Orb::Account::BillingEntityUpdateByExternalIDParams::InvoiceSettings?,
|
|
69
|
+
?legal_name: String?,
|
|
70
|
+
?name: String?,
|
|
71
|
+
?payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection]?,
|
|
72
|
+
?tax_registrations: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::TaxRegistration]?,
|
|
73
|
+
?request_options: Orb::request_opts
|
|
74
|
+
) -> Orb::Account::BillingEntity
|
|
75
|
+
|
|
76
|
+
def initialize: (client: Orb::Client) -> void
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Resources
|
|
3
|
+
class Account
|
|
4
|
+
class PaymentGatewayConnections
|
|
5
|
+
def list: (
|
|
6
|
+
?billing_entity_id: String?,
|
|
7
|
+
?cursor: String?,
|
|
8
|
+
?limit: Integer,
|
|
9
|
+
?provider_type: Orb::Models::Account::PaymentGatewayConnectionListParams::provider_type?,
|
|
10
|
+
?request_options: Orb::request_opts
|
|
11
|
+
) -> Orb::Internal::Page[Orb::Account::PaymentGatewayConnection]
|
|
12
|
+
|
|
13
|
+
def fetch: (
|
|
14
|
+
String payment_gateway_connection_id,
|
|
15
|
+
?request_options: Orb::request_opts
|
|
16
|
+
) -> Orb::Account::PaymentGatewayConnection
|
|
17
|
+
|
|
18
|
+
def initialize: (client: Orb::Client) -> void
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Resources
|
|
3
|
+
class Account
|
|
4
|
+
attr_reader billing_entities: Orb::Resources::Account::BillingEntities
|
|
5
|
+
|
|
6
|
+
attr_reader payment_gateway_connections: Orb::Resources::Account::PaymentGatewayConnections
|
|
7
|
+
|
|
8
|
+
def initialize: (client: Orb::Client) -> void
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Resources
|
|
3
|
+
class Customers
|
|
4
|
+
class PaymentGatewayConnections
|
|
5
|
+
def create: (
|
|
6
|
+
String customer_id,
|
|
7
|
+
payment_gateway_connection_id: String,
|
|
8
|
+
?is_default: bool,
|
|
9
|
+
?provider_customer_id: String?,
|
|
10
|
+
?request_options: Orb::request_opts
|
|
11
|
+
) -> Orb::Customers::CustomerPaymentGatewayConnection
|
|
12
|
+
|
|
13
|
+
def update: (
|
|
14
|
+
String payment_gateway_connection_id,
|
|
15
|
+
customer_id: String,
|
|
16
|
+
?is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?,
|
|
17
|
+
?provider_customer_id: String?,
|
|
18
|
+
?request_options: Orb::request_opts
|
|
19
|
+
) -> Orb::Customers::CustomerPaymentGatewayConnection
|
|
20
|
+
|
|
21
|
+
def list: (
|
|
22
|
+
String customer_id,
|
|
23
|
+
?billing_entity_id: String?,
|
|
24
|
+
?payment_gateway_connection_id: String?,
|
|
25
|
+
?request_options: Orb::request_opts
|
|
26
|
+
) -> Orb::Models::Customers::PaymentGatewayConnectionListResponse
|
|
27
|
+
|
|
28
|
+
def delete: (
|
|
29
|
+
String payment_gateway_connection_id,
|
|
30
|
+
customer_id: String,
|
|
31
|
+
?request_options: Orb::request_opts
|
|
32
|
+
) -> Orb::Customers::CustomerPaymentGatewayConnection
|
|
33
|
+
|
|
34
|
+
def create_by_external_id: (
|
|
35
|
+
String external_customer_id,
|
|
36
|
+
payment_gateway_connection_id: String,
|
|
37
|
+
?is_default: bool,
|
|
38
|
+
?provider_customer_id: String?,
|
|
39
|
+
?request_options: Orb::request_opts
|
|
40
|
+
) -> Orb::Customers::CustomerPaymentGatewayConnection
|
|
41
|
+
|
|
42
|
+
def delete_by_external_id: (
|
|
43
|
+
String payment_gateway_connection_id,
|
|
44
|
+
external_customer_id: String,
|
|
45
|
+
?request_options: Orb::request_opts
|
|
46
|
+
) -> Orb::Customers::CustomerPaymentGatewayConnection
|
|
47
|
+
|
|
48
|
+
def list_by_external_id: (
|
|
49
|
+
String external_customer_id,
|
|
50
|
+
?billing_entity_id: String?,
|
|
51
|
+
?payment_gateway_connection_id: String?,
|
|
52
|
+
?request_options: Orb::request_opts
|
|
53
|
+
) -> Orb::Models::Customers::PaymentGatewayConnectionListByExternalIDResponse
|
|
54
|
+
|
|
55
|
+
def update_by_external_id: (
|
|
56
|
+
String payment_gateway_connection_id,
|
|
57
|
+
external_customer_id: String,
|
|
58
|
+
?is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?,
|
|
59
|
+
?provider_customer_id: String?,
|
|
60
|
+
?request_options: Orb::request_opts
|
|
61
|
+
) -> Orb::Customers::CustomerPaymentGatewayConnection
|
|
62
|
+
|
|
63
|
+
def initialize: (client: Orb::Client) -> void
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orb-billing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.61.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
@@ -72,6 +72,20 @@ files:
|
|
|
72
72
|
- lib/orb/internal/type/unknown.rb
|
|
73
73
|
- lib/orb/internal/util.rb
|
|
74
74
|
- lib/orb/models.rb
|
|
75
|
+
- lib/orb/models/account/billing_entity.rb
|
|
76
|
+
- lib/orb/models/account/billing_entity_archive_by_external_id_params.rb
|
|
77
|
+
- lib/orb/models/account/billing_entity_archive_params.rb
|
|
78
|
+
- lib/orb/models/account/billing_entity_create_params.rb
|
|
79
|
+
- lib/orb/models/account/billing_entity_fetch_by_external_id_params.rb
|
|
80
|
+
- lib/orb/models/account/billing_entity_fetch_params.rb
|
|
81
|
+
- lib/orb/models/account/billing_entity_list_params.rb
|
|
82
|
+
- lib/orb/models/account/billing_entity_unarchive_by_external_id_params.rb
|
|
83
|
+
- lib/orb/models/account/billing_entity_unarchive_params.rb
|
|
84
|
+
- lib/orb/models/account/billing_entity_update_by_external_id_params.rb
|
|
85
|
+
- lib/orb/models/account/billing_entity_update_params.rb
|
|
86
|
+
- lib/orb/models/account/payment_gateway_connection.rb
|
|
87
|
+
- lib/orb/models/account/payment_gateway_connection_fetch_params.rb
|
|
88
|
+
- lib/orb/models/account/payment_gateway_connection_list_params.rb
|
|
75
89
|
- lib/orb/models/accounting_provider_config.rb
|
|
76
90
|
- lib/orb/models/address.rb
|
|
77
91
|
- lib/orb/models/address_input.rb
|
|
@@ -201,6 +215,17 @@ files:
|
|
|
201
215
|
- lib/orb/models/customers/credits/top_up_list_response.rb
|
|
202
216
|
- lib/orb/models/customers/credits/void_initiated_ledger_entry.rb
|
|
203
217
|
- lib/orb/models/customers/credits/void_ledger_entry.rb
|
|
218
|
+
- lib/orb/models/customers/customer_payment_gateway_connection.rb
|
|
219
|
+
- lib/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rb
|
|
220
|
+
- lib/orb/models/customers/payment_gateway_connection_create_params.rb
|
|
221
|
+
- lib/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rb
|
|
222
|
+
- lib/orb/models/customers/payment_gateway_connection_delete_params.rb
|
|
223
|
+
- lib/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rb
|
|
224
|
+
- lib/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rb
|
|
225
|
+
- lib/orb/models/customers/payment_gateway_connection_list_params.rb
|
|
226
|
+
- lib/orb/models/customers/payment_gateway_connection_list_response.rb
|
|
227
|
+
- lib/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rb
|
|
228
|
+
- lib/orb/models/customers/payment_gateway_connection_update_params.rb
|
|
204
229
|
- lib/orb/models/data_exports_transfer_error_webhook_event.rb
|
|
205
230
|
- lib/orb/models/data_exports_transfer_success_webhook_event.rb
|
|
206
231
|
- lib/orb/models/dimensional_price_configuration.rb
|
|
@@ -674,6 +699,9 @@ files:
|
|
|
674
699
|
- lib/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rb
|
|
675
700
|
- lib/orb/models/webhooks/unwrap_standard_webhook_event.rb
|
|
676
701
|
- lib/orb/request_options.rb
|
|
702
|
+
- lib/orb/resources/account.rb
|
|
703
|
+
- lib/orb/resources/account/billing_entities.rb
|
|
704
|
+
- lib/orb/resources/account/payment_gateway_connections.rb
|
|
677
705
|
- lib/orb/resources/alerts.rb
|
|
678
706
|
- lib/orb/resources/coupons.rb
|
|
679
707
|
- lib/orb/resources/coupons/subscriptions.rb
|
|
@@ -685,6 +713,7 @@ files:
|
|
|
685
713
|
- lib/orb/resources/customers/credits.rb
|
|
686
714
|
- lib/orb/resources/customers/credits/ledger.rb
|
|
687
715
|
- lib/orb/resources/customers/credits/top_ups.rb
|
|
716
|
+
- lib/orb/resources/customers/payment_gateway_connections.rb
|
|
688
717
|
- lib/orb/resources/dimensional_price_groups.rb
|
|
689
718
|
- lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb
|
|
690
719
|
- lib/orb/resources/dimensional_price_groups/prices.rb
|
|
@@ -736,6 +765,20 @@ files:
|
|
|
736
765
|
- rbi/orb/internal/type/unknown.rbi
|
|
737
766
|
- rbi/orb/internal/util.rbi
|
|
738
767
|
- rbi/orb/models.rbi
|
|
768
|
+
- rbi/orb/models/account/billing_entity.rbi
|
|
769
|
+
- rbi/orb/models/account/billing_entity_archive_by_external_id_params.rbi
|
|
770
|
+
- rbi/orb/models/account/billing_entity_archive_params.rbi
|
|
771
|
+
- rbi/orb/models/account/billing_entity_create_params.rbi
|
|
772
|
+
- rbi/orb/models/account/billing_entity_fetch_by_external_id_params.rbi
|
|
773
|
+
- rbi/orb/models/account/billing_entity_fetch_params.rbi
|
|
774
|
+
- rbi/orb/models/account/billing_entity_list_params.rbi
|
|
775
|
+
- rbi/orb/models/account/billing_entity_unarchive_by_external_id_params.rbi
|
|
776
|
+
- rbi/orb/models/account/billing_entity_unarchive_params.rbi
|
|
777
|
+
- rbi/orb/models/account/billing_entity_update_by_external_id_params.rbi
|
|
778
|
+
- rbi/orb/models/account/billing_entity_update_params.rbi
|
|
779
|
+
- rbi/orb/models/account/payment_gateway_connection.rbi
|
|
780
|
+
- rbi/orb/models/account/payment_gateway_connection_fetch_params.rbi
|
|
781
|
+
- rbi/orb/models/account/payment_gateway_connection_list_params.rbi
|
|
739
782
|
- rbi/orb/models/accounting_provider_config.rbi
|
|
740
783
|
- rbi/orb/models/address.rbi
|
|
741
784
|
- rbi/orb/models/address_input.rbi
|
|
@@ -865,6 +908,17 @@ files:
|
|
|
865
908
|
- rbi/orb/models/customers/credits/top_up_list_response.rbi
|
|
866
909
|
- rbi/orb/models/customers/credits/void_initiated_ledger_entry.rbi
|
|
867
910
|
- rbi/orb/models/customers/credits/void_ledger_entry.rbi
|
|
911
|
+
- rbi/orb/models/customers/customer_payment_gateway_connection.rbi
|
|
912
|
+
- rbi/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rbi
|
|
913
|
+
- rbi/orb/models/customers/payment_gateway_connection_create_params.rbi
|
|
914
|
+
- rbi/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rbi
|
|
915
|
+
- rbi/orb/models/customers/payment_gateway_connection_delete_params.rbi
|
|
916
|
+
- rbi/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rbi
|
|
917
|
+
- rbi/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rbi
|
|
918
|
+
- rbi/orb/models/customers/payment_gateway_connection_list_params.rbi
|
|
919
|
+
- rbi/orb/models/customers/payment_gateway_connection_list_response.rbi
|
|
920
|
+
- rbi/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rbi
|
|
921
|
+
- rbi/orb/models/customers/payment_gateway_connection_update_params.rbi
|
|
868
922
|
- rbi/orb/models/data_exports_transfer_error_webhook_event.rbi
|
|
869
923
|
- rbi/orb/models/data_exports_transfer_success_webhook_event.rbi
|
|
870
924
|
- rbi/orb/models/dimensional_price_configuration.rbi
|
|
@@ -1338,6 +1392,9 @@ files:
|
|
|
1338
1392
|
- rbi/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbi
|
|
1339
1393
|
- rbi/orb/models/webhooks/unwrap_standard_webhook_event.rbi
|
|
1340
1394
|
- rbi/orb/request_options.rbi
|
|
1395
|
+
- rbi/orb/resources/account.rbi
|
|
1396
|
+
- rbi/orb/resources/account/billing_entities.rbi
|
|
1397
|
+
- rbi/orb/resources/account/payment_gateway_connections.rbi
|
|
1341
1398
|
- rbi/orb/resources/alerts.rbi
|
|
1342
1399
|
- rbi/orb/resources/coupons.rbi
|
|
1343
1400
|
- rbi/orb/resources/coupons/subscriptions.rbi
|
|
@@ -1349,6 +1406,7 @@ files:
|
|
|
1349
1406
|
- rbi/orb/resources/customers/credits.rbi
|
|
1350
1407
|
- rbi/orb/resources/customers/credits/ledger.rbi
|
|
1351
1408
|
- rbi/orb/resources/customers/credits/top_ups.rbi
|
|
1409
|
+
- rbi/orb/resources/customers/payment_gateway_connections.rbi
|
|
1352
1410
|
- rbi/orb/resources/dimensional_price_groups.rbi
|
|
1353
1411
|
- rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi
|
|
1354
1412
|
- rbi/orb/resources/dimensional_price_groups/prices.rbi
|
|
@@ -1399,6 +1457,20 @@ files:
|
|
|
1399
1457
|
- sig/orb/internal/type/unknown.rbs
|
|
1400
1458
|
- sig/orb/internal/util.rbs
|
|
1401
1459
|
- sig/orb/models.rbs
|
|
1460
|
+
- sig/orb/models/account/billing_entity.rbs
|
|
1461
|
+
- sig/orb/models/account/billing_entity_archive_by_external_id_params.rbs
|
|
1462
|
+
- sig/orb/models/account/billing_entity_archive_params.rbs
|
|
1463
|
+
- sig/orb/models/account/billing_entity_create_params.rbs
|
|
1464
|
+
- sig/orb/models/account/billing_entity_fetch_by_external_id_params.rbs
|
|
1465
|
+
- sig/orb/models/account/billing_entity_fetch_params.rbs
|
|
1466
|
+
- sig/orb/models/account/billing_entity_list_params.rbs
|
|
1467
|
+
- sig/orb/models/account/billing_entity_unarchive_by_external_id_params.rbs
|
|
1468
|
+
- sig/orb/models/account/billing_entity_unarchive_params.rbs
|
|
1469
|
+
- sig/orb/models/account/billing_entity_update_by_external_id_params.rbs
|
|
1470
|
+
- sig/orb/models/account/billing_entity_update_params.rbs
|
|
1471
|
+
- sig/orb/models/account/payment_gateway_connection.rbs
|
|
1472
|
+
- sig/orb/models/account/payment_gateway_connection_fetch_params.rbs
|
|
1473
|
+
- sig/orb/models/account/payment_gateway_connection_list_params.rbs
|
|
1402
1474
|
- sig/orb/models/accounting_provider_config.rbs
|
|
1403
1475
|
- sig/orb/models/address.rbs
|
|
1404
1476
|
- sig/orb/models/address_input.rbs
|
|
@@ -1528,6 +1600,17 @@ files:
|
|
|
1528
1600
|
- sig/orb/models/customers/credits/top_up_list_response.rbs
|
|
1529
1601
|
- sig/orb/models/customers/credits/void_initiated_ledger_entry.rbs
|
|
1530
1602
|
- sig/orb/models/customers/credits/void_ledger_entry.rbs
|
|
1603
|
+
- sig/orb/models/customers/customer_payment_gateway_connection.rbs
|
|
1604
|
+
- sig/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rbs
|
|
1605
|
+
- sig/orb/models/customers/payment_gateway_connection_create_params.rbs
|
|
1606
|
+
- sig/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rbs
|
|
1607
|
+
- sig/orb/models/customers/payment_gateway_connection_delete_params.rbs
|
|
1608
|
+
- sig/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rbs
|
|
1609
|
+
- sig/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rbs
|
|
1610
|
+
- sig/orb/models/customers/payment_gateway_connection_list_params.rbs
|
|
1611
|
+
- sig/orb/models/customers/payment_gateway_connection_list_response.rbs
|
|
1612
|
+
- sig/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rbs
|
|
1613
|
+
- sig/orb/models/customers/payment_gateway_connection_update_params.rbs
|
|
1531
1614
|
- sig/orb/models/data_exports_transfer_error_webhook_event.rbs
|
|
1532
1615
|
- sig/orb/models/data_exports_transfer_success_webhook_event.rbs
|
|
1533
1616
|
- sig/orb/models/dimensional_price_configuration.rbs
|
|
@@ -2001,6 +2084,9 @@ files:
|
|
|
2001
2084
|
- sig/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbs
|
|
2002
2085
|
- sig/orb/models/webhooks/unwrap_standard_webhook_event.rbs
|
|
2003
2086
|
- sig/orb/request_options.rbs
|
|
2087
|
+
- sig/orb/resources/account.rbs
|
|
2088
|
+
- sig/orb/resources/account/billing_entities.rbs
|
|
2089
|
+
- sig/orb/resources/account/payment_gateway_connections.rbs
|
|
2004
2090
|
- sig/orb/resources/alerts.rbs
|
|
2005
2091
|
- sig/orb/resources/coupons.rbs
|
|
2006
2092
|
- sig/orb/resources/coupons/subscriptions.rbs
|
|
@@ -2012,6 +2098,7 @@ files:
|
|
|
2012
2098
|
- sig/orb/resources/customers/credits.rbs
|
|
2013
2099
|
- sig/orb/resources/customers/credits/ledger.rbs
|
|
2014
2100
|
- sig/orb/resources/customers/credits/top_ups.rbs
|
|
2101
|
+
- sig/orb/resources/customers/payment_gateway_connections.rbs
|
|
2015
2102
|
- sig/orb/resources/dimensional_price_groups.rbs
|
|
2016
2103
|
- sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs
|
|
2017
2104
|
- sig/orb/resources/dimensional_price_groups/prices.rbs
|