|
31 | 31 | use FacebookAds\Object\Values\AdsPixelSortByValues;
|
32 | 32 | use FacebookAds\Object\Values\BusinessActionSourceValues;
|
33 | 33 | use FacebookAds\Object\Values\BusinessAssetSharingAgreementRequestStatusValues;
|
| 34 | +use FacebookAds\Object\Values\BusinessBusinessVerticalValues; |
34 | 35 | use FacebookAds\Object\Values\BusinessImageValidationAdPlacementsValues;
|
35 | 36 | use FacebookAds\Object\Values\BusinessPagePermittedTasksValues;
|
36 | 37 | use FacebookAds\Object\Values\BusinessPermittedTasksValues;
|
|
40 | 41 | use FacebookAds\Object\Values\BusinessTwoFactorTypeValues;
|
41 | 42 | use FacebookAds\Object\Values\BusinessUserInvitedUserTypeValues;
|
42 | 43 | use FacebookAds\Object\Values\BusinessUserRoleValues;
|
| 44 | +use FacebookAds\Object\Values\BusinessVerificationStatusValues; |
43 | 45 | use FacebookAds\Object\Values\BusinessVerticalV2Values;
|
44 | 46 | use FacebookAds\Object\Values\BusinessVerticalValues;
|
45 | 47 | use FacebookAds\Object\Values\CPASCollaborationRequestRequesterAgencyOrBrandValues;
|
@@ -72,12 +74,14 @@ public static function getFieldsEnum() {
|
72 | 74 |
|
73 | 75 | protected static function getReferencedEnums() {
|
74 | 76 | $ref_enums = array();
|
| 77 | + $ref_enums['VerificationStatus'] = BusinessVerificationStatusValues::getInstance()->getValues(); |
75 | 78 | $ref_enums['TwoFactorType'] = BusinessTwoFactorTypeValues::getInstance()->getValues();
|
76 | 79 | $ref_enums['Vertical'] = BusinessVerticalValues::getInstance()->getValues();
|
77 | 80 | $ref_enums['PermittedTasks'] = BusinessPermittedTasksValues::getInstance()->getValues();
|
78 | 81 | $ref_enums['SurveyBusinessType'] = BusinessSurveyBusinessTypeValues::getInstance()->getValues();
|
79 | 82 | $ref_enums['TimezoneId'] = BusinessTimezoneIdValues::getInstance()->getValues();
|
80 | 83 | $ref_enums['PagePermittedTasks'] = BusinessPagePermittedTasksValues::getInstance()->getValues();
|
| 84 | + $ref_enums['BusinessVertical'] = BusinessBusinessVerticalValues::getInstance()->getValues(); |
81 | 85 | $ref_enums['SubverticalV2'] = BusinessSubverticalV2Values::getInstance()->getValues();
|
82 | 86 | $ref_enums['VerticalV2'] = BusinessVerticalV2Values::getInstance()->getValues();
|
83 | 87 | $ref_enums['ActionSource'] = BusinessActionSourceValues::getInstance()->getValues();
|
@@ -340,6 +344,7 @@ public function getAdNetworkAnalytics(array $fields = array(), array $params = a
|
340 | 344 | 'metrics' => 'list<metrics_enum>',
|
341 | 345 | 'ordering_column' => 'ordering_column_enum',
|
342 | 346 | 'ordering_type' => 'ordering_type_enum',
|
| 347 | + 'should_include_until' => 'bool', |
343 | 348 | 'since' => 'datetime',
|
344 | 349 | 'until' => 'datetime',
|
345 | 350 | );
|
@@ -2285,12 +2290,19 @@ public function createOpenBridgeConfiguration(array $fields = array(), array $pa
|
2285 | 2290 |
|
2286 | 2291 | $param_types = array(
|
2287 | 2292 | 'active' => 'bool',
|
| 2293 | + 'cloud_provider' => 'string', |
| 2294 | + 'cloud_region' => 'string', |
| 2295 | + 'destination_id' => 'string', |
2288 | 2296 | 'endpoint' => 'string',
|
2289 | 2297 | 'fallback_domain' => 'string',
|
2290 | 2298 | 'fallback_domain_enabled' => 'bool',
|
| 2299 | + 'first_party_domain' => 'string', |
2291 | 2300 | 'host_business_id' => 'unsigned int',
|
2292 | 2301 | 'host_external_id' => 'string',
|
2293 | 2302 | 'instance_id' => 'string',
|
| 2303 | + 'instance_version' => 'string', |
| 2304 | + 'is_sgw_instance' => 'bool', |
| 2305 | + 'partner_name' => 'string', |
2294 | 2306 | 'pixel_id' => 'unsigned int',
|
2295 | 2307 | );
|
2296 | 2308 | $enums = array(
|
@@ -3081,6 +3093,39 @@ public function getSelfCertifiedWhatsAppBusinessSubmissions(array $fields = arra
|
3081 | 3093 | return $pending ? $request : $request->execute();
|
3082 | 3094 | }
|
3083 | 3095 |
|
| 3096 | + public function createSelfCertifyWhatsAppBusiness(array $fields = array(), array $params = array(), $pending = false) { |
| 3097 | + $this->assureId(); |
| 3098 | + |
| 3099 | + $param_types = array( |
| 3100 | + 'average_monthly_revenue_spend_with_partner' => 'map', |
| 3101 | + 'business_documents' => 'list<file>', |
| 3102 | + 'business_vertical' => 'business_vertical_enum', |
| 3103 | + 'end_business_address' => 'map', |
| 3104 | + 'end_business_id' => 'string', |
| 3105 | + 'end_business_legal_name' => 'string', |
| 3106 | + 'end_business_trade_names' => 'list<string>', |
| 3107 | + 'end_business_website' => 'string', |
| 3108 | + 'num_billing_cycles_with_partner' => 'unsigned int', |
| 3109 | + ); |
| 3110 | + $enums = array( |
| 3111 | + 'business_vertical_enum' => BusinessBusinessVerticalValues::getInstance()->getValues(), |
| 3112 | + ); |
| 3113 | + |
| 3114 | + $request = new ApiRequest( |
| 3115 | + $this->api, |
| 3116 | + $this->data['id'], |
| 3117 | + RequestInterface::METHOD_POST, |
| 3118 | + '/self_certify_whatsapp_business', |
| 3119 | + new Business(), |
| 3120 | + 'EDGE', |
| 3121 | + Business::getFieldsEnum()->getValues(), |
| 3122 | + new TypeChecker($param_types, $enums) |
| 3123 | + ); |
| 3124 | + $request->addParams($params); |
| 3125 | + $request->addFields($fields); |
| 3126 | + return $pending ? $request : $request->execute(); |
| 3127 | + } |
| 3128 | + |
3084 | 3129 | public function createSetupManagedPartnerAdAccount(array $fields = array(), array $params = array(), $pending = false) {
|
3085 | 3130 | $this->assureId();
|
3086 | 3131 |
|
@@ -3320,7 +3365,6 @@ public function createVideo(array $fields = array(), array $params = array(), $p
|
3320 | 3365 | 'start_offset' => 'unsigned int',
|
3321 | 3366 | 'swap_mode' => 'swap_mode_enum',
|
3322 | 3367 | 'text_format_metadata' => 'string',
|
3323 |
| - 'throwback_camera_roll_media' => 'string', |
3324 | 3368 | 'thumb' => 'file',
|
3325 | 3369 | 'time_since_original_post' => 'unsigned int',
|
3326 | 3370 | 'title' => 'string',
|
|
0 commit comments