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,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#create
|
|
7
|
+
class PaymentGatewayConnectionCreateParams < Orb::Internal::Type::BaseModel
|
|
8
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Orb::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute payment_gateway_connection_id
|
|
17
|
+
# The ID of the payment gateway connection to map the customer to.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :payment_gateway_connection_id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute is_default
|
|
23
|
+
# Whether Orb charges the customer for the billing entity's invoices through this
|
|
24
|
+
# mapping. The customer's first mapping for a billing entity is the default
|
|
25
|
+
# regardless.
|
|
26
|
+
#
|
|
27
|
+
# @return [Boolean, nil]
|
|
28
|
+
optional :is_default, Orb::Internal::Type::Boolean
|
|
29
|
+
|
|
30
|
+
# @!attribute provider_customer_id
|
|
31
|
+
# The ID of the customer in the external payment provider.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :provider_customer_id, String, nil?: true
|
|
35
|
+
|
|
36
|
+
# @!method initialize(customer_id:, payment_gateway_connection_id:, is_default: nil, provider_customer_id: nil, request_options: {})
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {Orb::Models::Customers::PaymentGatewayConnectionCreateParams} for more details.
|
|
39
|
+
#
|
|
40
|
+
# @param customer_id [String]
|
|
41
|
+
#
|
|
42
|
+
# @param payment_gateway_connection_id [String] The ID of the payment gateway connection to map the customer to.
|
|
43
|
+
#
|
|
44
|
+
# @param is_default [Boolean] Whether Orb charges the customer for the billing entity's invoices through this
|
|
45
|
+
#
|
|
46
|
+
# @param provider_customer_id [String, nil] The ID of the customer in the external payment provider.
|
|
47
|
+
#
|
|
48
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#delete_by_external_id
|
|
7
|
+
class PaymentGatewayConnectionDeleteByExternalIDParams < Orb::Internal::Type::BaseModel
|
|
8
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Orb::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute external_customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :external_customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute payment_gateway_connection_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :payment_gateway_connection_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(external_customer_id:, payment_gateway_connection_id:, request_options: {})
|
|
22
|
+
# @param external_customer_id [String]
|
|
23
|
+
# @param payment_gateway_connection_id [String]
|
|
24
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#delete
|
|
7
|
+
class PaymentGatewayConnectionDeleteParams < Orb::Internal::Type::BaseModel
|
|
8
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Orb::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute payment_gateway_connection_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :payment_gateway_connection_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(customer_id:, payment_gateway_connection_id:, request_options: {})
|
|
22
|
+
# @param customer_id [String]
|
|
23
|
+
# @param payment_gateway_connection_id [String]
|
|
24
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#list_by_external_id
|
|
7
|
+
class PaymentGatewayConnectionListByExternalIDParams < Orb::Internal::Type::BaseModel
|
|
8
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Orb::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute external_customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :external_customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute billing_entity_id
|
|
17
|
+
# Only return mappings to this billing entity's connections.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :billing_entity_id, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute payment_gateway_connection_id
|
|
23
|
+
# Only return the mapping to this connection.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :payment_gateway_connection_id, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!method initialize(external_customer_id:, billing_entity_id: nil, payment_gateway_connection_id: nil, request_options: {})
|
|
29
|
+
# @param external_customer_id [String]
|
|
30
|
+
#
|
|
31
|
+
# @param billing_entity_id [String, nil] Only return mappings to this billing entity's connections.
|
|
32
|
+
#
|
|
33
|
+
# @param payment_gateway_connection_id [String, nil] Only return the mapping to this connection.
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#list_by_external_id
|
|
7
|
+
class PaymentGatewayConnectionListByExternalIDResponse < Orb::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute customer_id
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :customer_id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute payment_gateway_connections
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Orb::Models::Customers::CustomerPaymentGatewayConnection>]
|
|
16
|
+
required :payment_gateway_connections,
|
|
17
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::Customers::CustomerPaymentGatewayConnection] }
|
|
18
|
+
|
|
19
|
+
# @!method initialize(customer_id:, payment_gateway_connections:)
|
|
20
|
+
# @param customer_id [String]
|
|
21
|
+
# @param payment_gateway_connections [Array<Orb::Models::Customers::CustomerPaymentGatewayConnection>]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#list
|
|
7
|
+
class PaymentGatewayConnectionListParams < Orb::Internal::Type::BaseModel
|
|
8
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Orb::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute billing_entity_id
|
|
17
|
+
# Only return mappings to this billing entity's connections.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :billing_entity_id, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute payment_gateway_connection_id
|
|
23
|
+
# Only return the mapping to this connection.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :payment_gateway_connection_id, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!method initialize(customer_id:, billing_entity_id: nil, payment_gateway_connection_id: nil, request_options: {})
|
|
29
|
+
# @param customer_id [String]
|
|
30
|
+
#
|
|
31
|
+
# @param billing_entity_id [String, nil] Only return mappings to this billing entity's connections.
|
|
32
|
+
#
|
|
33
|
+
# @param payment_gateway_connection_id [String, nil] Only return the mapping to this connection.
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#list
|
|
7
|
+
class PaymentGatewayConnectionListResponse < Orb::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute customer_id
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :customer_id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute payment_gateway_connections
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Orb::Models::Customers::CustomerPaymentGatewayConnection>]
|
|
16
|
+
required :payment_gateway_connections,
|
|
17
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::Customers::CustomerPaymentGatewayConnection] }
|
|
18
|
+
|
|
19
|
+
# @!method initialize(customer_id:, payment_gateway_connections:)
|
|
20
|
+
# @param customer_id [String]
|
|
21
|
+
# @param payment_gateway_connections [Array<Orb::Models::Customers::CustomerPaymentGatewayConnection>]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#update_by_external_id
|
|
7
|
+
class PaymentGatewayConnectionUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
|
|
8
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Orb::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute external_customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :external_customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute payment_gateway_connection_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :payment_gateway_connection_id, String
|
|
20
|
+
|
|
21
|
+
# @!attribute is_default
|
|
22
|
+
# Only `true` is accepted: it makes this the customer's default mapping for the
|
|
23
|
+
# connection's billing entity. Omit it to keep the current default. To move the
|
|
24
|
+
# default, set it on another mapping.
|
|
25
|
+
#
|
|
26
|
+
# @return [Boolean, Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::IsDefault, nil]
|
|
27
|
+
optional :is_default,
|
|
28
|
+
enum: -> { Orb::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::IsDefault },
|
|
29
|
+
nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute provider_customer_id
|
|
32
|
+
# The ID of the customer in the external payment provider. Omit it to keep the
|
|
33
|
+
# current one; `null` clears it, and Orb creates a Stripe customer at the next
|
|
34
|
+
# payment through this connection.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :provider_customer_id, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!method initialize(external_customer_id:, payment_gateway_connection_id:, is_default: nil, provider_customer_id: nil, request_options: {})
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams} for
|
|
42
|
+
# more details.
|
|
43
|
+
#
|
|
44
|
+
# @param external_customer_id [String]
|
|
45
|
+
#
|
|
46
|
+
# @param payment_gateway_connection_id [String]
|
|
47
|
+
#
|
|
48
|
+
# @param is_default [Boolean, Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::IsDefault, nil] Only `true` is accepted: it makes this the customer's default mapping for the co
|
|
49
|
+
#
|
|
50
|
+
# @param provider_customer_id [String, nil] The ID of the customer in the external payment provider. Omit it to keep the cur
|
|
51
|
+
#
|
|
52
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
53
|
+
|
|
54
|
+
# Only `true` is accepted: it makes this the customer's default mapping for the
|
|
55
|
+
# connection's billing entity. Omit it to keep the current default. To move the
|
|
56
|
+
# default, set it on another mapping.
|
|
57
|
+
module IsDefault
|
|
58
|
+
extend Orb::Internal::Type::Enum
|
|
59
|
+
|
|
60
|
+
TRUE = true
|
|
61
|
+
|
|
62
|
+
# @!method self.values
|
|
63
|
+
# @return [Array<Boolean>]
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Customers
|
|
6
|
+
# @see Orb::Resources::Customers::PaymentGatewayConnections#update
|
|
7
|
+
class PaymentGatewayConnectionUpdateParams < Orb::Internal::Type::BaseModel
|
|
8
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Orb::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute payment_gateway_connection_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :payment_gateway_connection_id, String
|
|
20
|
+
|
|
21
|
+
# @!attribute is_default
|
|
22
|
+
# Only `true` is accepted: it makes this the customer's default mapping for the
|
|
23
|
+
# connection's billing entity. Omit it to keep the current default. To move the
|
|
24
|
+
# default, set it on another mapping.
|
|
25
|
+
#
|
|
26
|
+
# @return [Boolean, Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::IsDefault, nil]
|
|
27
|
+
optional :is_default,
|
|
28
|
+
enum: -> { Orb::Customers::PaymentGatewayConnectionUpdateParams::IsDefault },
|
|
29
|
+
nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute provider_customer_id
|
|
32
|
+
# The ID of the customer in the external payment provider. Omit it to keep the
|
|
33
|
+
# current one; `null` clears it, and Orb creates a Stripe customer at the next
|
|
34
|
+
# payment through this connection.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :provider_customer_id, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!method initialize(customer_id:, payment_gateway_connection_id:, is_default: nil, provider_customer_id: nil, request_options: {})
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Orb::Models::Customers::PaymentGatewayConnectionUpdateParams} for more details.
|
|
42
|
+
#
|
|
43
|
+
# @param customer_id [String]
|
|
44
|
+
#
|
|
45
|
+
# @param payment_gateway_connection_id [String]
|
|
46
|
+
#
|
|
47
|
+
# @param is_default [Boolean, Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::IsDefault, nil] Only `true` is accepted: it makes this the customer's default mapping for the co
|
|
48
|
+
#
|
|
49
|
+
# @param provider_customer_id [String, nil] The ID of the customer in the external payment provider. Omit it to keep the cur
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
|
|
53
|
+
# Only `true` is accepted: it makes this the customer's default mapping for the
|
|
54
|
+
# connection's billing entity. Omit it to keep the current default. To move the
|
|
55
|
+
# default, set it on another mapping.
|
|
56
|
+
module IsDefault
|
|
57
|
+
extend Orb::Internal::Type::Enum
|
|
58
|
+
|
|
59
|
+
TRUE = true
|
|
60
|
+
|
|
61
|
+
# @!method self.values
|
|
62
|
+
# @return [Array<Boolean>]
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
data/lib/orb/models.rb
CHANGED