-
Notifications
You must be signed in to change notification settings - Fork 1
/
Settings.php
40 lines (37 loc) · 1.4 KB
/
Settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace Dfe\Moip;
use Dfe\Moip\Settings\Boleto;
# 2017-04-11
/** @method static Settings s() */
final class Settings extends \Df\StripeClone\Settings {
/**
* 2017-07-30
* @used-by \Dfe\Moip\P\Charge::p()
* @used-by \Dfe\Moip\P\Charge::pInstructionLines()
*/
function boleto():Boleto {return dfc($this, function() {return new Boleto($this->m());});}
/**
* 2017-07-14
* «Private Key for Google Maps Geocoding API»
* «How to generate a key for the Google Maps Geocoding API?» https://mage2.pro/t/3828
* My key usage restrictions: https://console.developers.google.com/apis/credentials/key/65?project=mage2-pro
* My key usage statistics: https://console.developers.google.com/apis/api/geocoding-backend.googleapis.com/overview?project=mage2-pro&duration=P30D
* @used-by \Dfe\Moip\P\Charge::pAddress()
* @used-by \Dfe\Moip\Test\Data::ga()
*/
function googlePrivateKey():string {return $this->p();}
/**
* 2017-07-14 «Installments»
* @return int[]
*/
function installments():array {return dfc($this, function():array {return df_sort(array_unique(
array_merge([1], array_filter(df_int($this->csv('card/installments')), function($i) {return
$i >= 1 && $i <= 12
;}))
));});}
/**
* 2017-04-20 «The «Token» part of your Test Private Key (Chave de autenticação)»
* @used-by \Dfe\Moip\API\Client::headers()
*/
function privateToken():string {return $this->testableP();}
}