brand.dev 0.9.0 → 0.11.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 +18 -0
- data/README.md +1 -1
- data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +80 -1
- data/lib/brand_dev/models/brand_retrieve_by_email_params.rb +116 -0
- data/lib/brand_dev/models/brand_retrieve_by_email_response.rb +850 -0
- data/lib/brand_dev/models/brand_retrieve_by_name_params.rb +115 -0
- data/lib/brand_dev/models/brand_retrieve_by_name_response.rb +850 -0
- data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +204 -0
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +850 -0
- data/lib/brand_dev/models/brand_retrieve_params.rb +1 -112
- data/lib/brand_dev/models.rb +6 -0
- data/lib/brand_dev/resources/brand.rb +109 -11
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +6 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +324 -0
- data/rbi/brand_dev/models/brand_retrieve_by_email_params.rbi +386 -0
- data/rbi/brand_dev/models/brand_retrieve_by_email_response.rbi +2590 -0
- data/rbi/brand_dev/models/brand_retrieve_by_name_params.rbi +384 -0
- data/rbi/brand_dev/models/brand_retrieve_by_name_response.rbi +2588 -0
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +790 -0
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +2590 -0
- data/rbi/brand_dev/models/brand_retrieve_params.rbi +0 -437
- data/rbi/brand_dev/models.rbi +6 -0
- data/rbi/brand_dev/resources/brand.rbi +108 -17
- data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +133 -1
- data/sig/brand_dev/models/brand_retrieve_by_email_params.rbs +162 -0
- data/sig/brand_dev/models/brand_retrieve_by_email_response.rbs +1076 -0
- data/sig/brand_dev/models/brand_retrieve_by_name_params.rbs +162 -0
- data/sig/brand_dev/models/brand_retrieve_by_name_response.rbs +1076 -0
- data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +324 -0
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +1076 -0
- data/sig/brand_dev/models/brand_retrieve_params.rbs +0 -176
- data/sig/brand_dev/models.rbs +6 -0
- data/sig/brand_dev/resources/brand.rbs +27 -3
- metadata +20 -2
|
@@ -44,41 +44,6 @@ module BrandDev
|
|
|
44
44
|
sig { params(max_speed: T::Boolean).void }
|
|
45
45
|
attr_writer :max_speed
|
|
46
46
|
|
|
47
|
-
# Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
|
|
48
|
-
# Corporation'). Must be 3-30 characters. Cannot be used with domain or ticker
|
|
49
|
-
# parameters.
|
|
50
|
-
sig { returns(T.nilable(String)) }
|
|
51
|
-
attr_reader :name
|
|
52
|
-
|
|
53
|
-
sig { params(name: String).void }
|
|
54
|
-
attr_writer :name
|
|
55
|
-
|
|
56
|
-
# Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
|
|
57
|
-
# Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
|
|
58
|
-
# or name parameters.
|
|
59
|
-
sig { returns(T.nilable(String)) }
|
|
60
|
-
attr_reader :ticker
|
|
61
|
-
|
|
62
|
-
sig { params(ticker: String).void }
|
|
63
|
-
attr_writer :ticker
|
|
64
|
-
|
|
65
|
-
# Optional stock exchange for the ticker. Only used when ticker parameter is
|
|
66
|
-
# provided. Defaults to assume ticker is American if not specified.
|
|
67
|
-
sig do
|
|
68
|
-
returns(
|
|
69
|
-
T.nilable(BrandDev::BrandRetrieveParams::TickerExchange::OrSymbol)
|
|
70
|
-
)
|
|
71
|
-
end
|
|
72
|
-
attr_reader :ticker_exchange
|
|
73
|
-
|
|
74
|
-
sig do
|
|
75
|
-
params(
|
|
76
|
-
ticker_exchange:
|
|
77
|
-
BrandDev::BrandRetrieveParams::TickerExchange::OrSymbol
|
|
78
|
-
).void
|
|
79
|
-
end
|
|
80
|
-
attr_writer :ticker_exchange
|
|
81
|
-
|
|
82
47
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
83
48
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
84
49
|
# value is 300000ms (5 minutes).
|
|
@@ -94,10 +59,6 @@ module BrandDev
|
|
|
94
59
|
force_language:
|
|
95
60
|
BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
|
|
96
61
|
max_speed: T::Boolean,
|
|
97
|
-
name: String,
|
|
98
|
-
ticker: String,
|
|
99
|
-
ticker_exchange:
|
|
100
|
-
BrandDev::BrandRetrieveParams::TickerExchange::OrSymbol,
|
|
101
62
|
timeout_ms: Integer,
|
|
102
63
|
request_options: BrandDev::RequestOptions::OrHash
|
|
103
64
|
).returns(T.attached_class)
|
|
@@ -113,17 +74,6 @@ module BrandDev
|
|
|
113
74
|
# the API will skip time-consuming operations for faster response at the cost of
|
|
114
75
|
# less comprehensive data. Works with all three lookup methods.
|
|
115
76
|
max_speed: nil,
|
|
116
|
-
# Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
|
|
117
|
-
# Corporation'). Must be 3-30 characters. Cannot be used with domain or ticker
|
|
118
|
-
# parameters.
|
|
119
|
-
name: nil,
|
|
120
|
-
# Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
|
|
121
|
-
# Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
|
|
122
|
-
# or name parameters.
|
|
123
|
-
ticker: nil,
|
|
124
|
-
# Optional stock exchange for the ticker. Only used when ticker parameter is
|
|
125
|
-
# provided. Defaults to assume ticker is American if not specified.
|
|
126
|
-
ticker_exchange: nil,
|
|
127
77
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
128
78
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
129
79
|
# value is 300000ms (5 minutes).
|
|
@@ -139,10 +89,6 @@ module BrandDev
|
|
|
139
89
|
force_language:
|
|
140
90
|
BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
|
|
141
91
|
max_speed: T::Boolean,
|
|
142
|
-
name: String,
|
|
143
|
-
ticker: String,
|
|
144
|
-
ticker_exchange:
|
|
145
|
-
BrandDev::BrandRetrieveParams::TickerExchange::OrSymbol,
|
|
146
92
|
timeout_ms: Integer,
|
|
147
93
|
request_options: BrandDev::RequestOptions
|
|
148
94
|
}
|
|
@@ -431,389 +377,6 @@ module BrandDev
|
|
|
431
377
|
def self.values
|
|
432
378
|
end
|
|
433
379
|
end
|
|
434
|
-
|
|
435
|
-
# Optional stock exchange for the ticker. Only used when ticker parameter is
|
|
436
|
-
# provided. Defaults to assume ticker is American if not specified.
|
|
437
|
-
module TickerExchange
|
|
438
|
-
extend BrandDev::Internal::Type::Enum
|
|
439
|
-
|
|
440
|
-
TaggedSymbol =
|
|
441
|
-
T.type_alias do
|
|
442
|
-
T.all(Symbol, BrandDev::BrandRetrieveParams::TickerExchange)
|
|
443
|
-
end
|
|
444
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
445
|
-
|
|
446
|
-
AMEX =
|
|
447
|
-
T.let(
|
|
448
|
-
:AMEX,
|
|
449
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
450
|
-
)
|
|
451
|
-
AMS =
|
|
452
|
-
T.let(
|
|
453
|
-
:AMS,
|
|
454
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
455
|
-
)
|
|
456
|
-
AQS =
|
|
457
|
-
T.let(
|
|
458
|
-
:AQS,
|
|
459
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
460
|
-
)
|
|
461
|
-
ASX =
|
|
462
|
-
T.let(
|
|
463
|
-
:ASX,
|
|
464
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
465
|
-
)
|
|
466
|
-
ATH =
|
|
467
|
-
T.let(
|
|
468
|
-
:ATH,
|
|
469
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
470
|
-
)
|
|
471
|
-
BER =
|
|
472
|
-
T.let(
|
|
473
|
-
:BER,
|
|
474
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
475
|
-
)
|
|
476
|
-
BME =
|
|
477
|
-
T.let(
|
|
478
|
-
:BME,
|
|
479
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
480
|
-
)
|
|
481
|
-
BRU =
|
|
482
|
-
T.let(
|
|
483
|
-
:BRU,
|
|
484
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
485
|
-
)
|
|
486
|
-
BSE =
|
|
487
|
-
T.let(
|
|
488
|
-
:BSE,
|
|
489
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
490
|
-
)
|
|
491
|
-
BUD =
|
|
492
|
-
T.let(
|
|
493
|
-
:BUD,
|
|
494
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
495
|
-
)
|
|
496
|
-
BUE =
|
|
497
|
-
T.let(
|
|
498
|
-
:BUE,
|
|
499
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
500
|
-
)
|
|
501
|
-
BVC =
|
|
502
|
-
T.let(
|
|
503
|
-
:BVC,
|
|
504
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
505
|
-
)
|
|
506
|
-
CBOE =
|
|
507
|
-
T.let(
|
|
508
|
-
:CBOE,
|
|
509
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
510
|
-
)
|
|
511
|
-
CNQ =
|
|
512
|
-
T.let(
|
|
513
|
-
:CNQ,
|
|
514
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
515
|
-
)
|
|
516
|
-
CPH =
|
|
517
|
-
T.let(
|
|
518
|
-
:CPH,
|
|
519
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
520
|
-
)
|
|
521
|
-
DFM =
|
|
522
|
-
T.let(
|
|
523
|
-
:DFM,
|
|
524
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
525
|
-
)
|
|
526
|
-
DOH =
|
|
527
|
-
T.let(
|
|
528
|
-
:DOH,
|
|
529
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
530
|
-
)
|
|
531
|
-
DUB =
|
|
532
|
-
T.let(
|
|
533
|
-
:DUB,
|
|
534
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
535
|
-
)
|
|
536
|
-
DUS =
|
|
537
|
-
T.let(
|
|
538
|
-
:DUS,
|
|
539
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
540
|
-
)
|
|
541
|
-
DXE =
|
|
542
|
-
T.let(
|
|
543
|
-
:DXE,
|
|
544
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
545
|
-
)
|
|
546
|
-
EGX =
|
|
547
|
-
T.let(
|
|
548
|
-
:EGX,
|
|
549
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
550
|
-
)
|
|
551
|
-
FSX =
|
|
552
|
-
T.let(
|
|
553
|
-
:FSX,
|
|
554
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
555
|
-
)
|
|
556
|
-
HAM =
|
|
557
|
-
T.let(
|
|
558
|
-
:HAM,
|
|
559
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
560
|
-
)
|
|
561
|
-
HEL =
|
|
562
|
-
T.let(
|
|
563
|
-
:HEL,
|
|
564
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
565
|
-
)
|
|
566
|
-
HKSE =
|
|
567
|
-
T.let(
|
|
568
|
-
:HKSE,
|
|
569
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
570
|
-
)
|
|
571
|
-
HOSE =
|
|
572
|
-
T.let(
|
|
573
|
-
:HOSE,
|
|
574
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
575
|
-
)
|
|
576
|
-
ICE =
|
|
577
|
-
T.let(
|
|
578
|
-
:ICE,
|
|
579
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
580
|
-
)
|
|
581
|
-
IOB =
|
|
582
|
-
T.let(
|
|
583
|
-
:IOB,
|
|
584
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
585
|
-
)
|
|
586
|
-
IST =
|
|
587
|
-
T.let(
|
|
588
|
-
:IST,
|
|
589
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
590
|
-
)
|
|
591
|
-
JKT =
|
|
592
|
-
T.let(
|
|
593
|
-
:JKT,
|
|
594
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
595
|
-
)
|
|
596
|
-
JNB =
|
|
597
|
-
T.let(
|
|
598
|
-
:JNB,
|
|
599
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
600
|
-
)
|
|
601
|
-
JPX =
|
|
602
|
-
T.let(
|
|
603
|
-
:JPX,
|
|
604
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
605
|
-
)
|
|
606
|
-
KLS =
|
|
607
|
-
T.let(
|
|
608
|
-
:KLS,
|
|
609
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
610
|
-
)
|
|
611
|
-
KOE =
|
|
612
|
-
T.let(
|
|
613
|
-
:KOE,
|
|
614
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
615
|
-
)
|
|
616
|
-
KSC =
|
|
617
|
-
T.let(
|
|
618
|
-
:KSC,
|
|
619
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
620
|
-
)
|
|
621
|
-
KUW =
|
|
622
|
-
T.let(
|
|
623
|
-
:KUW,
|
|
624
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
625
|
-
)
|
|
626
|
-
LIS =
|
|
627
|
-
T.let(
|
|
628
|
-
:LIS,
|
|
629
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
630
|
-
)
|
|
631
|
-
LSE =
|
|
632
|
-
T.let(
|
|
633
|
-
:LSE,
|
|
634
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
635
|
-
)
|
|
636
|
-
MCX =
|
|
637
|
-
T.let(
|
|
638
|
-
:MCX,
|
|
639
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
640
|
-
)
|
|
641
|
-
MEX =
|
|
642
|
-
T.let(
|
|
643
|
-
:MEX,
|
|
644
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
645
|
-
)
|
|
646
|
-
MIL =
|
|
647
|
-
T.let(
|
|
648
|
-
:MIL,
|
|
649
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
650
|
-
)
|
|
651
|
-
MUN =
|
|
652
|
-
T.let(
|
|
653
|
-
:MUN,
|
|
654
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
655
|
-
)
|
|
656
|
-
NASDAQ =
|
|
657
|
-
T.let(
|
|
658
|
-
:NASDAQ,
|
|
659
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
660
|
-
)
|
|
661
|
-
NEO =
|
|
662
|
-
T.let(
|
|
663
|
-
:NEO,
|
|
664
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
665
|
-
)
|
|
666
|
-
NSE =
|
|
667
|
-
T.let(
|
|
668
|
-
:NSE,
|
|
669
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
670
|
-
)
|
|
671
|
-
NYSE =
|
|
672
|
-
T.let(
|
|
673
|
-
:NYSE,
|
|
674
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
675
|
-
)
|
|
676
|
-
NZE =
|
|
677
|
-
T.let(
|
|
678
|
-
:NZE,
|
|
679
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
680
|
-
)
|
|
681
|
-
OSL =
|
|
682
|
-
T.let(
|
|
683
|
-
:OSL,
|
|
684
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
685
|
-
)
|
|
686
|
-
OTC =
|
|
687
|
-
T.let(
|
|
688
|
-
:OTC,
|
|
689
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
690
|
-
)
|
|
691
|
-
PAR =
|
|
692
|
-
T.let(
|
|
693
|
-
:PAR,
|
|
694
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
695
|
-
)
|
|
696
|
-
PNK =
|
|
697
|
-
T.let(
|
|
698
|
-
:PNK,
|
|
699
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
700
|
-
)
|
|
701
|
-
PRA =
|
|
702
|
-
T.let(
|
|
703
|
-
:PRA,
|
|
704
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
705
|
-
)
|
|
706
|
-
RIS =
|
|
707
|
-
T.let(
|
|
708
|
-
:RIS,
|
|
709
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
710
|
-
)
|
|
711
|
-
SAO =
|
|
712
|
-
T.let(
|
|
713
|
-
:SAO,
|
|
714
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
715
|
-
)
|
|
716
|
-
SAU =
|
|
717
|
-
T.let(
|
|
718
|
-
:SAU,
|
|
719
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
720
|
-
)
|
|
721
|
-
SES =
|
|
722
|
-
T.let(
|
|
723
|
-
:SES,
|
|
724
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
725
|
-
)
|
|
726
|
-
SET =
|
|
727
|
-
T.let(
|
|
728
|
-
:SET,
|
|
729
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
730
|
-
)
|
|
731
|
-
SGO =
|
|
732
|
-
T.let(
|
|
733
|
-
:SGO,
|
|
734
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
735
|
-
)
|
|
736
|
-
SHH =
|
|
737
|
-
T.let(
|
|
738
|
-
:SHH,
|
|
739
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
740
|
-
)
|
|
741
|
-
SHZ =
|
|
742
|
-
T.let(
|
|
743
|
-
:SHZ,
|
|
744
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
745
|
-
)
|
|
746
|
-
SIX =
|
|
747
|
-
T.let(
|
|
748
|
-
:SIX,
|
|
749
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
750
|
-
)
|
|
751
|
-
STO =
|
|
752
|
-
T.let(
|
|
753
|
-
:STO,
|
|
754
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
755
|
-
)
|
|
756
|
-
STU =
|
|
757
|
-
T.let(
|
|
758
|
-
:STU,
|
|
759
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
760
|
-
)
|
|
761
|
-
TAI =
|
|
762
|
-
T.let(
|
|
763
|
-
:TAI,
|
|
764
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
765
|
-
)
|
|
766
|
-
TAL =
|
|
767
|
-
T.let(
|
|
768
|
-
:TAL,
|
|
769
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
770
|
-
)
|
|
771
|
-
TLV =
|
|
772
|
-
T.let(
|
|
773
|
-
:TLV,
|
|
774
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
775
|
-
)
|
|
776
|
-
TSX =
|
|
777
|
-
T.let(
|
|
778
|
-
:TSX,
|
|
779
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
780
|
-
)
|
|
781
|
-
TSXV =
|
|
782
|
-
T.let(
|
|
783
|
-
:TSXV,
|
|
784
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
785
|
-
)
|
|
786
|
-
TWO =
|
|
787
|
-
T.let(
|
|
788
|
-
:TWO,
|
|
789
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
790
|
-
)
|
|
791
|
-
VIE =
|
|
792
|
-
T.let(
|
|
793
|
-
:VIE,
|
|
794
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
795
|
-
)
|
|
796
|
-
WSE =
|
|
797
|
-
T.let(
|
|
798
|
-
:WSE,
|
|
799
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
800
|
-
)
|
|
801
|
-
XETRA =
|
|
802
|
-
T.let(
|
|
803
|
-
:XETRA,
|
|
804
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
805
|
-
)
|
|
806
|
-
|
|
807
|
-
sig do
|
|
808
|
-
override.returns(
|
|
809
|
-
T::Array[
|
|
810
|
-
BrandDev::BrandRetrieveParams::TickerExchange::TaggedSymbol
|
|
811
|
-
]
|
|
812
|
-
)
|
|
813
|
-
end
|
|
814
|
-
def self.values
|
|
815
|
-
end
|
|
816
|
-
end
|
|
817
380
|
end
|
|
818
381
|
end
|
|
819
382
|
end
|
data/rbi/brand_dev/models.rbi
CHANGED
|
@@ -8,6 +8,12 @@ module BrandDev
|
|
|
8
8
|
|
|
9
9
|
BrandPrefetchParams = BrandDev::Models::BrandPrefetchParams
|
|
10
10
|
|
|
11
|
+
BrandRetrieveByEmailParams = BrandDev::Models::BrandRetrieveByEmailParams
|
|
12
|
+
|
|
13
|
+
BrandRetrieveByNameParams = BrandDev::Models::BrandRetrieveByNameParams
|
|
14
|
+
|
|
15
|
+
BrandRetrieveByTickerParams = BrandDev::Models::BrandRetrieveByTickerParams
|
|
16
|
+
|
|
11
17
|
BrandRetrieveNaicsParams = BrandDev::Models::BrandRetrieveNaicsParams
|
|
12
18
|
|
|
13
19
|
BrandRetrieveParams = BrandDev::Models::BrandRetrieveParams
|
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
module BrandDev
|
|
4
4
|
module Resources
|
|
5
5
|
class Brand
|
|
6
|
-
# Retrieve
|
|
7
|
-
#
|
|
6
|
+
# Retrieve logos, backdrops, colors, industry, description, and more from any
|
|
7
|
+
# domain
|
|
8
8
|
sig do
|
|
9
9
|
params(
|
|
10
10
|
domain: String,
|
|
11
11
|
force_language:
|
|
12
12
|
BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
|
|
13
13
|
max_speed: T::Boolean,
|
|
14
|
-
name: String,
|
|
15
|
-
ticker: String,
|
|
16
|
-
ticker_exchange:
|
|
17
|
-
BrandDev::BrandRetrieveParams::TickerExchange::OrSymbol,
|
|
18
14
|
timeout_ms: Integer,
|
|
19
15
|
request_options: BrandDev::RequestOptions::OrHash
|
|
20
16
|
).returns(BrandDev::Models::BrandRetrieveResponse)
|
|
@@ -30,17 +26,6 @@ module BrandDev
|
|
|
30
26
|
# the API will skip time-consuming operations for faster response at the cost of
|
|
31
27
|
# less comprehensive data. Works with all three lookup methods.
|
|
32
28
|
max_speed: nil,
|
|
33
|
-
# Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
|
|
34
|
-
# Corporation'). Must be 3-30 characters. Cannot be used with domain or ticker
|
|
35
|
-
# parameters.
|
|
36
|
-
name: nil,
|
|
37
|
-
# Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
|
|
38
|
-
# Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
|
|
39
|
-
# or name parameters.
|
|
40
|
-
ticker: nil,
|
|
41
|
-
# Optional stock exchange for the ticker. Only used when ticker parameter is
|
|
42
|
-
# provided. Defaults to assume ticker is American if not specified.
|
|
43
|
-
ticker_exchange: nil,
|
|
44
29
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
45
30
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
46
31
|
# value is 300000ms (5 minutes).
|
|
@@ -82,6 +67,9 @@ module BrandDev
|
|
|
82
67
|
sig do
|
|
83
68
|
params(
|
|
84
69
|
transaction_info: String,
|
|
70
|
+
force_language:
|
|
71
|
+
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
|
|
72
|
+
max_speed: T::Boolean,
|
|
85
73
|
timeout_ms: Integer,
|
|
86
74
|
request_options: BrandDev::RequestOptions::OrHash
|
|
87
75
|
).returns(BrandDev::Models::BrandIdentifyFromTransactionResponse)
|
|
@@ -89,6 +77,12 @@ module BrandDev
|
|
|
89
77
|
def identify_from_transaction(
|
|
90
78
|
# Transaction information to identify the brand
|
|
91
79
|
transaction_info:,
|
|
80
|
+
# Optional parameter to force the language of the retrieved brand data.
|
|
81
|
+
force_language: nil,
|
|
82
|
+
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
|
83
|
+
# the API will skip time-consuming operations for faster response at the cost of
|
|
84
|
+
# less comprehensive data.
|
|
85
|
+
max_speed: nil,
|
|
92
86
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
93
87
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
94
88
|
# value is 300000ms (5 minutes).
|
|
@@ -119,6 +113,103 @@ module BrandDev
|
|
|
119
113
|
)
|
|
120
114
|
end
|
|
121
115
|
|
|
116
|
+
# Retrieve brand information using an email address while detecting disposable and
|
|
117
|
+
# free email addresses. This endpoint extracts the domain from the email address
|
|
118
|
+
# and returns brand data for that domain. Disposable and free email addresses
|
|
119
|
+
# (like gmail.com, yahoo.com) will throw a 422 error.
|
|
120
|
+
sig do
|
|
121
|
+
params(
|
|
122
|
+
email: String,
|
|
123
|
+
force_language:
|
|
124
|
+
BrandDev::BrandRetrieveByEmailParams::ForceLanguage::OrSymbol,
|
|
125
|
+
max_speed: T::Boolean,
|
|
126
|
+
timeout_ms: Integer,
|
|
127
|
+
request_options: BrandDev::RequestOptions::OrHash
|
|
128
|
+
).returns(BrandDev::Models::BrandRetrieveByEmailResponse)
|
|
129
|
+
end
|
|
130
|
+
def retrieve_by_email(
|
|
131
|
+
# Email address to retrieve brand data for (e.g., 'contact@example.com'). The
|
|
132
|
+
# domain will be extracted from the email. Free email providers (gmail.com,
|
|
133
|
+
# yahoo.com, etc.) and disposable email addresses are not allowed.
|
|
134
|
+
email:,
|
|
135
|
+
# Optional parameter to force the language of the retrieved brand data.
|
|
136
|
+
force_language: nil,
|
|
137
|
+
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
|
138
|
+
# the API will skip time-consuming operations for faster response at the cost of
|
|
139
|
+
# less comprehensive data.
|
|
140
|
+
max_speed: nil,
|
|
141
|
+
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
142
|
+
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
143
|
+
# value is 300000ms (5 minutes).
|
|
144
|
+
timeout_ms: nil,
|
|
145
|
+
request_options: {}
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Retrieve brand information using a company name. This endpoint searches for the
|
|
150
|
+
# company by name and returns its brand data.
|
|
151
|
+
sig do
|
|
152
|
+
params(
|
|
153
|
+
name: String,
|
|
154
|
+
force_language:
|
|
155
|
+
BrandDev::BrandRetrieveByNameParams::ForceLanguage::OrSymbol,
|
|
156
|
+
max_speed: T::Boolean,
|
|
157
|
+
timeout_ms: Integer,
|
|
158
|
+
request_options: BrandDev::RequestOptions::OrHash
|
|
159
|
+
).returns(BrandDev::Models::BrandRetrieveByNameResponse)
|
|
160
|
+
end
|
|
161
|
+
def retrieve_by_name(
|
|
162
|
+
# Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
|
|
163
|
+
# Corporation'). Must be 3-30 characters.
|
|
164
|
+
name:,
|
|
165
|
+
# Optional parameter to force the language of the retrieved brand data.
|
|
166
|
+
force_language: nil,
|
|
167
|
+
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
|
168
|
+
# the API will skip time-consuming operations for faster response at the cost of
|
|
169
|
+
# less comprehensive data.
|
|
170
|
+
max_speed: nil,
|
|
171
|
+
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
172
|
+
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
173
|
+
# value is 300000ms (5 minutes).
|
|
174
|
+
timeout_ms: nil,
|
|
175
|
+
request_options: {}
|
|
176
|
+
)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Retrieve brand information using a stock ticker symbol. This endpoint looks up
|
|
180
|
+
# the company associated with the ticker and returns its brand data.
|
|
181
|
+
sig do
|
|
182
|
+
params(
|
|
183
|
+
ticker: String,
|
|
184
|
+
force_language:
|
|
185
|
+
BrandDev::BrandRetrieveByTickerParams::ForceLanguage::OrSymbol,
|
|
186
|
+
max_speed: T::Boolean,
|
|
187
|
+
ticker_exchange:
|
|
188
|
+
BrandDev::BrandRetrieveByTickerParams::TickerExchange::OrSymbol,
|
|
189
|
+
timeout_ms: Integer,
|
|
190
|
+
request_options: BrandDev::RequestOptions::OrHash
|
|
191
|
+
).returns(BrandDev::Models::BrandRetrieveByTickerResponse)
|
|
192
|
+
end
|
|
193
|
+
def retrieve_by_ticker(
|
|
194
|
+
# Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
|
|
195
|
+
# Must be 1-15 characters, letters/numbers/dots only.
|
|
196
|
+
ticker:,
|
|
197
|
+
# Optional parameter to force the language of the retrieved brand data.
|
|
198
|
+
force_language: nil,
|
|
199
|
+
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
|
200
|
+
# the API will skip time-consuming operations for faster response at the cost of
|
|
201
|
+
# less comprehensive data.
|
|
202
|
+
max_speed: nil,
|
|
203
|
+
# Optional stock exchange for the ticker. Defaults to NASDAQ if not specified.
|
|
204
|
+
ticker_exchange: nil,
|
|
205
|
+
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
206
|
+
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
207
|
+
# value is 300000ms (5 minutes).
|
|
208
|
+
timeout_ms: nil,
|
|
209
|
+
request_options: {}
|
|
210
|
+
)
|
|
211
|
+
end
|
|
212
|
+
|
|
122
213
|
# Endpoint to classify any brand into a 2022 NAICS code.
|
|
123
214
|
sig do
|
|
124
215
|
params(
|