|
@@ 568-574 (lines=7) @@
|
| 565 |
|
} |
| 566 |
|
|
| 567 |
|
// Customer billing address. |
| 568 |
|
if ( isset( $request['billing'] ) ) { |
| 569 |
|
foreach ( array_keys( $schema['properties']['billing']['properties'] ) as $field ) { |
| 570 |
|
if ( isset( $request['billing'][ $field ] ) && is_callable( array( $customer, "set_billing_{$field}" ) ) ) { |
| 571 |
|
$customer->{"set_billing_{$field}"}( $request['billing'][ $field ] ); |
| 572 |
|
} |
| 573 |
|
} |
| 574 |
|
} |
| 575 |
|
|
| 576 |
|
// Customer shipping address. |
| 577 |
|
if ( isset( $request['shipping'] ) ) { |
|
@@ 577-583 (lines=7) @@
|
| 574 |
|
} |
| 575 |
|
|
| 576 |
|
// Customer shipping address. |
| 577 |
|
if ( isset( $request['shipping'] ) ) { |
| 578 |
|
foreach ( array_keys( $schema['properties']['shipping']['properties'] ) as $field ) { |
| 579 |
|
if ( isset( $request['shipping'][ $field ] ) && is_callable( array( $customer, "set_shipping_{$field}" ) ) ) { |
| 580 |
|
$customer->{"set_shipping_{$field}"}( $request['shipping'][ $field ] ); |
| 581 |
|
} |
| 582 |
|
} |
| 583 |
|
} |
| 584 |
|
} |
| 585 |
|
|
| 586 |
|
/** |