@@ -50,7 +50,7 @@ module Orb
5050 ) ,
5151 tax_id : T . nilable ( T . any ( Orb ::Models ::CustomerCreateParams ::TaxID , Orb ::Internal ::AnyHash ) ) ,
5252 timezone : T . nilable ( String ) ,
53- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb :: Internal :: AnyHash ) )
53+ request_options : Orb ::RequestOpts
5454 )
5555 . returns ( Orb ::Models ::Customer )
5656 end
@@ -237,7 +237,7 @@ module Orb
237237 )
238238 ) ,
239239 tax_id : T . nilable ( T . any ( Orb ::Models ::CustomerUpdateParams ::TaxID , Orb ::Internal ::AnyHash ) ) ,
240- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb :: Internal :: AnyHash ) )
240+ request_options : Orb ::RequestOpts
241241 )
242242 . returns ( Orb ::Models ::Customer )
243243 end
@@ -405,7 +405,7 @@ module Orb
405405 created_at_lte : T . nilable ( Time ) ,
406406 cursor : T . nilable ( String ) ,
407407 limit : Integer ,
408- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb :: Internal :: AnyHash ) )
408+ request_options : Orb ::RequestOpts
409409 )
410410 . returns ( Orb ::Internal ::Page [ Orb ::Models ::Customer ] )
411411 end
@@ -436,13 +436,7 @@ module Orb
436436 # been fully processed, the customer will not be returned in the API.
437437 #
438438 # On successful processing, this returns an empty dictionary (`{}`) in the API.
439- sig do
440- params (
441- customer_id : String ,
442- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb ::Internal ::AnyHash ) )
443- )
444- . void
445- end
439+ sig { params ( customer_id : String , request_options : Orb ::RequestOpts ) . void }
446440 def delete ( customer_id , request_options : { } ) ; end
447441
448442 # This endpoint is used to fetch customer details given an identifier. If the
@@ -451,27 +445,15 @@ module Orb
451445 #
452446 # See the [Customer resource](/core-concepts#customer) for a full discussion of
453447 # the Customer model.
454- sig do
455- params (
456- customer_id : String ,
457- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb ::Internal ::AnyHash ) )
458- )
459- . returns ( Orb ::Models ::Customer )
460- end
448+ sig { params ( customer_id : String , request_options : Orb ::RequestOpts ) . returns ( Orb ::Models ::Customer ) }
461449 def fetch ( customer_id , request_options : { } ) ; end
462450
463451 # This endpoint is used to fetch customer details given an `external_customer_id`
464452 # (see [Customer ID Aliases](/events-and-metrics/customer-aliases)).
465453 #
466454 # Note that the resource and semantics of this endpoint exactly mirror
467455 # [Get Customer](fetch-customer).
468- sig do
469- params (
470- external_customer_id : String ,
471- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb ::Internal ::AnyHash ) )
472- )
473- . returns ( Orb ::Models ::Customer )
474- end
456+ sig { params ( external_customer_id : String , request_options : Orb ::RequestOpts ) . returns ( Orb ::Models ::Customer ) }
475457 def fetch_by_external_id ( external_customer_id , request_options : { } ) ; end
476458
477459 # Sync Orb's payment methods for the customer with their gateway.
@@ -480,13 +462,7 @@ module Orb
480462 # be charged, ensuring that the most up-to-date payment method is charged.
481463 #
482464 # **Note**: This functionality is currently only available for Stripe.
483- sig do
484- params (
485- customer_id : String ,
486- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb ::Internal ::AnyHash ) )
487- )
488- . void
489- end
465+ sig { params ( customer_id : String , request_options : Orb ::RequestOpts ) . void }
490466 def sync_payment_methods_from_gateway ( customer_id , request_options : { } ) ; end
491467
492468 # Sync Orb's payment methods for the customer with their gateway.
@@ -495,13 +471,7 @@ module Orb
495471 # be charged, ensuring that the most up-to-date payment method is charged.
496472 #
497473 # **Note**: This functionality is currently only available for Stripe.
498- sig do
499- params (
500- external_customer_id : String ,
501- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb ::Internal ::AnyHash ) )
502- )
503- . void
504- end
474+ sig { params ( external_customer_id : String , request_options : Orb ::RequestOpts ) . void }
505475 def sync_payment_methods_from_gateway_by_external_customer_id (
506476 external_customer_id ,
507477 request_options : { }
@@ -542,7 +512,7 @@ module Orb
542512 )
543513 ) ,
544514 tax_id : T . nilable ( T . any ( Orb ::Models ::CustomerUpdateByExternalIDParams ::TaxID , Orb ::Internal ::AnyHash ) ) ,
545- request_options : T . nilable ( T . any ( Orb ::RequestOptions , Orb :: Internal :: AnyHash ) )
515+ request_options : Orb ::RequestOpts
546516 )
547517 . returns ( Orb ::Models ::Customer )
548518 end
0 commit comments